MIPS, SPARC: more fixes to the vfork aliases in libpthread.so
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
2
3         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
4         __libc_vfork.
5         (__vfork) [IS_IN (libc)]: Remove alias.
6         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
7         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
8         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
9
10 2016-06-24  Torvald Riegel  <triegel@redhat.com>
11
12         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
13         of atomic_compare_and_exchange_bool_rel.
14         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
15         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
16         catomic_compare_and_exchange_bool_rel): Remove.
17         * sysdeps/aarch64/atomic-machine.h
18         (atomic_compare_and_exchange_bool_rel): Likewise.
19         * sysdeps/alpha/atomic-machine.h
20         (atomic_compare_and_exchange_bool_rel): Likewise.
21         * sysdeps/arm/atomic-machine.h
22         (atomic_compare_and_exchange_bool_rel): Likewise.
23         * sysdeps/mips/atomic-machine.h
24         (atomic_compare_and_exchange_bool_rel): Likewise.
25         * sysdeps/microblaze/atomic-machine.h
26         ( __arch_compare_and_exchange_bool_8_rel,
27         __arch_compare_and_exchange_bool_16_rel): Likewise.
28         * sysdeps/powerpc/atomic-machine.h
29         ( __arch_compare_and_exchange_bool_8_rel,
30         __arch_compare_and_exchange_bool_16_rel): Likewise.
31         * sysdeps/powerpc/powerpc32/atomic-machine.h
32         ( __arch_compare_and_exchange_bool_32_rel,
33         __arch_compare_and_exchange_bool_64_rel): Likewise.
34         * sysdeps/powerpc/powerpc64/atomic-machine.h
35         ( __arch_compare_and_exchange_bool_32_rel,
36         __arch_compare_and_exchange_bool_64_rel): Likewise.
37         * sysdeps/tile/atomic-machine.h
38         (atomic_compare_and_exchange_bool_rel): Likewise.
39
40 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
41
42         [BZ #20296]
43         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
44         when either argument is a NaN.
45         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
46         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
47
48         * math/libm-test.inc (snan_value_ld): New macro.
49         (isgreater_test_data): Add sNaN tests.
50         (isgreaterequal_test_data): Likewise.
51         (isless_test_data): Likewise.
52         (islessequal_test_data): Likewise.
53         (islessgreater_test_data): Likewise.
54         (isunordered_test_data): Likewise.
55         (nextafter_test_data): Likewise.
56         (nexttoward_test_data): Likewise.
57         (remainder_test_data): Likewise.
58         (remquo_test_data): Likewise.
59         (significand_test_data): Likewise.
60         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
61
62 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
63
64         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
65         environment macros are defined.
66         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
67
68 2016-06-23  Florian Weimer  <fweimer@redhat.com>
69
70         [BZ #20191]
71         Implement vtable verification in libio.
72         * Makerules (shlib.lds): Place __libc_IO_vtables section.
73         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
74         * debug/vdprintf_chk.c (__vdprintf_chk): Call
75         _IO_new_file_init_internal instead of _IO_file_init.
76         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
77         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
78         * libio/Makefile (routines): Add vtables.
79         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
80         (_IO_init): Remove, not for internal use.
81         (_IO_init_internal): Declare, internal replacement for _IO_init.
82         (_IO_file_init): Remove, not for internal use.
83         (_IO_new_file_init): Remove, not for internal use.
84         (_IO_new_file_init_internal): Declare, internal replacement for
85         _IO_new_file_init.
86         (_IO_old_file_init): Remove, not for internal use.
87         (_IO_old_file_init_internal): Declare, internal replacement for
88         _IO_old_file_init.
89         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
90         internal use.
91         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
92         Declare.
93         (libio_vtable): New macro.
94         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
95         functions.
96         * libio/fileops.c (_IO_new_file_init_internal): Rename from
97         _IO_new_file_init.
98         (_IO_new_file_init): New externally visible wrapper which disables
99         vtable verification.
100         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
101         Define as vtables.
102         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
103         (_IO_init): New externally visible wrapper which disables
104         vtable verification.
105         * libio/iofdopen.c (_IO_new_fdopen): Call
106         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
107         comment.
108         * libio/iofopen.c (__fopen_internal): Call
109         _IO_new_file_init_internal instead of _IO_file_init.
110         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
111         Define as vtables.
112         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
113         _IO_new_file_init_internal instead of _IO_file_init.
114         * libio/iopopen.c (_IO_new_popen): Likewise.
115         (_IO_proc_jumps): Define as vtable.
116         * libio/iovdprintf.c (_IO_vdprintf): Call
117         _IO_new_file_init_internal instead of _IO_file_init.
118         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
119         (__open_memstream): Call _IO_init_internal instead of _IO_init.
120         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
121         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
122         _IO_old_file_init.
123         (_IO_old_file_init): New externally visible wrapper which disables
124         vtable verification.
125         (_IO_old_file_jumps): Define as vtable.
126         * libio/oldiofdopen.c (_IO_old_fdopen): Call
127         _IO_old_file_init_internal instead of _IO_old_file_init.
128         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
129         * libio/oldiopopen.c (_IO_old_popen): Likewise.
130         (_IO_old_proc_jumps): Define as vtable.
131         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
132         Define as vtables.
133         * libio/vtables.c: New file.
134         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
135         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
136         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
137         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
138         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
139         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
140         instead of _IO_init.
141
142 2016-06-23  Florian Weimer  <fweimer@redhat.com>
143
144         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
145
146 2016-06-23  Florian Weimer  <fweimer@redhat.com>
147
148         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
149         potentially unused.
150
151 2016-06-22  Florian Weimer  <fweimer@redhat.com>
152
153         * test-skeleton.c (write_message): New function.
154         * malloc/tst-mallocfork2.c (write_message): Remove.
155         * debug/tst-longjmp_chk2.c (write_indented): New function.
156         (write_message): Remove.
157         (stackoverflow_handler): Call write_indented.
158
159 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
160
161         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
162         "inexact" exceptions after fnstenv.
163         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
164         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
165         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
166
167 2015-06-22  Zack Weinberg  <zackw@panix.com>
168
169         * sysdeps/generic/bits/hwcap.h: Moved to ...
170         * bits/hwcap.h: Here.
171
172 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
173
174         * sysdeps/aarch64/memcpy.S (memcpy):
175         Further tuning for performance.
176
177 2016-06-21  Florian Weimer  <fweimer@redhat.com>
178
179         [BZ #20284]
180         * malloc/arena.c (reused_arena): Do not return NULL if we start
181         out with a non-corrupted arena.
182
183 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
184
185         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
186         * misc/tst-preadvwritev.c: New file.
187         * misc/tst-preadvwritev64.c: Likewise.
188         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
189         usage.
190         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
191         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
192         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
193         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
194
195 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
196
197         [BZ #19654]
198         * sysdeps/x86_64/fpu/Makefile: Added new tests.
199         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
200         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
201         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
202         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
203         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
204         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
205         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
206         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
207         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
208         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
209         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
210         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
211         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
212         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
213         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
214         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
215         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
216         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
217         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
218         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
219         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
220         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
221         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
222         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
223         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
224
225 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
226
227         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
228         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
229
230 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
231
232         * sysdeps/aarch64/memcpy.S (memcpy):
233         Rewrite of optimized memcpy and memmove.
234         * sysdeps/aarch64/memmove.S (memmove): Remove
235         memmove code (merged into memcpy.S).
236
237 2016-06-20  Florian Weimer  <fweimer@redhat.com>
238
239         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
240         * sysdeps/generic/dl-dtv.h: New file.
241         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
242         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
243         (dtv_t): Remove.
244         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
245         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
246         (dtv_t): Remove.
247         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
248         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
249         (dtv_t): Remove.
250         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
251         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
252         (dtv_t): Remove.
253         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
254         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
255         (dtv_t): Remove.
256         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
257         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
258         (dtv_t): Remove.
259         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
260         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
261         (dtv_t): Remove.
262         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
263         (dtv_t): Remove.
264         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
265         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
266         (dtv_t): Remove.
267         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
268         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
269         (dtv_t): Remove.
270         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
271         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
272         (dtv_t): Remove.
273         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
274         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
275         (dtv_t): Remove.
276         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
277         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
278         (dtv_t): Remove.
279         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
280         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
281         (dtv_t): Remove.
282         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
283         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
284         (dtv_t): Remove.
285         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
286         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
287         (dtv_t): Remove.
288
289 2016-06-20  Florian Weimer  <fweimer@redhat.com>
290
291         Revert symbol poisoning of  __malloc_initialize_hook.
292         * include/stdc-predef.h (__malloc_initialize_hook): Remove
293         poisoning.
294         * malloc/Makefile: Remove un-poisoning.
295         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
296         instead of old__malloc_initialize_hook.
297         * malloc/malloc-hooks.h: Likewise.
298         * malloc/malloc.c: Likewise.
299         * malloc/mcheck-init.c: Likewise.
300
301 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
302
303         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
304
305 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
306
307         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
308         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
309         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
310         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
311
312 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
313
314         * NEWS: Mention addition of nextup and nextdown.
315         * manual/arith.texi: Document nextup and nextdown.
316         * manual/libm-err-tab.pl: Add nextup and nextdown.
317         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
318         * math/Versions (libm): Add GLIBC_2.24.
319         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
320         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
321         Add new test.
322         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
323         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
324         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
325         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
326         (nextup_test_data): Likewise.
327         (nextdown_test_data): Likewise.
328         * math/s_nextdown.c: New file.
329         * math/s_nextdownf.c: Likewise.
330         * math/s_nextdownl.c: Likewise.
331         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
332         F(nextup): New function.
333         F(nextdown): Likewise.
334         * math/tgmath.h: Add nextup and nextdown.
335         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
336         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
337         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
338         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
339         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
340         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
341         Add nextup and nextdown.
342         (CFLAGS-nldbl-nextup.c): New variable.
343         (CFLAGS-nldbl-nextdown.c): Likewise.
344         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
345         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
346         * sysdeps/nacl/libm.abilist: Update.
347         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
348         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
349         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
350         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
351         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
352         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
353         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
354         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
355         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
356         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
357         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
358         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
361         Likewise.
362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
364         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
365         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
366         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
367         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
368         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
369         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
370         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
371         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
372         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
373         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
374         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
375
376 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
377
378         * manual/pattern.texi: Fix typos & grammar errors.
379
380 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
381
382         * manual/search.texi: Fix typos & grammar errors.
383
384 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
385
386         * manual/message.texi: Fix typos & grammar errors.
387
388 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
389
390         * manual/contrib.texi: Fix spelling typos.
391         * manual/crypt.texi: Likewise.
392         * manual/filesys.texi: Likewise.
393         * manual/locale.texi: Likewise.
394         * manual/message.texi: Likewise.
395         * manual/nss.texi: Likewise.
396         * manual/string.texi: Likewise.
397
398 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
399
400         * manual/locale.texi: Fix typos & grammar errors.
401
402 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
403
404         * manual/charset.texi: Fix typos & grammar errors.
405
406 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
407
408         * manual/string.texi: Fix typos.
409
410 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
411
412         * manual/ctype.texi: Fix typos.
413
414 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
415
416         * manual/memory.texi: Fix various typos & grammar errors.
417
418 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
419
420         [BZ #20255]
421         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
422         * math/libm-test.inc (fdim_test_data): Add another test.
423
424         [BZ #6796]
425         [BZ #20255]
426         [BZ #20256]
427         * math/s_fdim.c: Include <math_private.h>.
428         (__fdim): Use math_narrow_eval on result.
429         * math/s_fdimf.c: Include <math_private.h>.
430         (__fdimf): Use math_narrow_eval on result.
431         * sysdeps/i386/fpu/s_fdim.S: Remove file.
432         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
433         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
434         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
435         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
436         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
437         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
438         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
439         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
440         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
441         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
442         * math/libm-test.inc (fdim_test_data): Expect errno setting on
443         overflow.  Add sNaN tests.
444
445         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
446         fpclassify.
447         * math/s_fdimf.c (__fdimf): Likewise.
448         * math/s_fdiml.c (__fdiml): Likewise.
449
450 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
451
452         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
453         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
454         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
455         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
456         ifunc'ed strcasecmp/strncasecmp.
457         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
458         [EALIGN]: Removed.
459         [END]: Likewise.
460         [__strcasecmp]: Define instead of the above to control symbol name.
461         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
462         for __strcasecmp_power8.
463         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
464         for __strncasecmp_power8.
465         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
466         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
467         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
468         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
469         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
470         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
471
472 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
473
474         [BZ #20252]
475         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
476         arguments when second argument is a NaN.
477         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
478         qNaN tests.
479
480         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
481         (conj_test_data): Likewise.
482         (copysign_test_data): Likewise.
483         (creal_test_data): Likewise.
484         (fma_test_data): Likewise.
485         (fmod_test_data): Likewise.
486
487         [BZ #20250]
488         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
489         itself.
490         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
491         zero input to itself.
492         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
493         Likewise.
494         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
495         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
496         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
497         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
498         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
499
500 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
501
502         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
503         * nptl/tst-cancel4-common.c: New file.
504         * nptl/tst-cancel4-common.h: Likewise.
505         * nptl/tst-cancel4.c: Move common definitions to
506         tst-cancel4-common.{c,h} file.
507         * nptl/tst-cancel4_1.c: New test.
508         * nptl/tst-cancel4_2.c: New test.
509
510 2016-06-13  Florian Weimer  <fweimer@redhat.com>
511
512         [BZ #20248]
513         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
514         (write_message): New function.
515         (stackoverflow_handler): Call it instead of printf, to avoid
516         excessive stack usage by printf.
517         (do_test): Restore SIGSEGV, SIGBUS default handlers.
518
519 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
520
521         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
522         (prio_inherit_missing): Remove define.
523         * sysdeps/unix/sysv/linux/arm/kernel-features.h
524         (__ASSUME_FUTEX_LOCK_PI): Likewise.
525         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
526         Likewise.
527         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
528         (__ASSUME_FUTEX_LOCK_PI): Likewise.
529         * sysdeps/unix/sysv/linux/mips/kernel-features.h
530         (__ASSUME_FUTEX_LOCK_PI): Likewise.
531         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
532         (__ASSUME_FUTEX_LOCK_PI): Likewise.
533
534 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
535
536         [BZ #19670]
537         [BZ #19672]
538
539         * io/test-lfs.c (do_prepare): Use xmalloc.
540         * io/tst-fcntl.c (do_prepare): Likewise.
541         * libio/tst-fopenloc.c (do_bz17916): Likewise.
542         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
543         * login/tst-utmp.c (do_prepare): Likewise.
544         * posix/tst-exec.c (do_prepare): Likewise.
545         * posix/tst-pathconf.c (prepare): Likewise.
546         * posix/tst-spawn.c (do_prepare): Likewise.
547         * posix/tst-truncate.c (do_prepare): Likewise.
548         * rt/tst-aio.c (do_prepare): Likewise.
549         * rt/tst-aio64.c (do_prepare): Likewise.
550
551 2016-06-11  Florian Weimer  <fweimer@redhat.com>
552
553         [BZ #20237]
554         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
555         (get*ent): Set entidx to NULL during initialization.  If entidx is
556         NULL, start iteration from the beginning.
557
558 2016-06-11  Florian Weimer  <fweimer@redhat.com>
559
560         * malloc/malloc.c (musable): Return correct size for dumped fake
561         mmapped chunk.
562
563 2016-06-11  Florian Weimer  <fweimer@redhat.com>
564
565         [BZ #20222]
566         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
567         (_IO_cookie_write): Likewise.
568         (_IO_cookie_seek): Likewise.
569         (_IO_cookie_close): Likewise.
570         (_IO_old_cookie_seek): Likewise.
571         (set_callbacks): New function.
572         (_IO_cookie_init): Call set_callbacks to copy callbacks.
573
574 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
575
576         * locale/programs/localedef.c (oldstyle_tables): Remove.
577         * locale/programs/localedef.h (oldstyle_tables): Likewise.
578
579 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
580
581         [BZ #20240]
582         * math/Makefile (CFLAGS-s_modf.c): New variable.
583         (CFLAGS-s_modff.c): Likewise.
584         (CFLAGS-s_modfl.c): Likewise.
585         * math/libm-test.inc (modf_test_data): Add sNaN tests.
586
587 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
588
589         [BZ #20215]
590         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
591         [!__GNUC_PREREQ (3,2)]: Likewise.
592
593 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
594
595         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
596         (msghdr.msg_controllen): Likewise.
597         (cmsghdr.cmsg_len): Likewise.
598         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
599         ptw-oldsendmsg.
600         (CFLAGS-oldrecvmsg.c): Remove rule.
601         (CFLAGS-oldsendmsg.c): Likewise.
602         (CFLAGS-recvmsg.c): Add rule.
603         (CFLAGS-sendmsg.c): Likewise.
604         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
605         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
606         (CFLAGS-recvmsg.c): Remove rule.
607         (CFLAGS-sendmsg.c): Likewise.
608         (CFLAGS-oldrecvmsg.c): Likewise.
609         (CFLAGS-oldsendmsg.c): Likewise.
610         (CFLAGS-recvmmsg.c): Likewise.
611         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
612         to kernel defined interfaces.
613         (msghdr.msg_controllen): Likewise.
614         (cmsghdr.cmsg_len): Likewise.
615         (msghdr.__glibc_reserved1): Remove member.
616         (msghdr.__glibc_reserved2): Likewise.
617         (cmsghdr.__glibc_reserved1): Likewise.
618         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
619         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
620         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
621         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
622         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
623         version.
624         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
625         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
626         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
627         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
628         Remove recvmsg and sendmsg.
629         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
630         Likewise.
631         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
632         Likewise.
633         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
634         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
635         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
636         Likewise.
637         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
638         Likewise.
639         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
640         [libc] (GLIBC_2.24): Likewise.
641         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
642         Likewise.
643         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
644         Likewise.
645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
646         [libc] (GLIBC_2.24): Likewise.
647         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
648         Likewise.
649         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
650         Likewise.
651         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
652         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
653         Likewise.
654         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
655         Likewise.
656         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
657         Likewise.
658         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
659         Likewise.
660         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
661         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
662         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
663         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
664         version for {recv,send,recm,sendm}msg.
665         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
666         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
667         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
668         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
669         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
670         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
671         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
672         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
673         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
674         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
675         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
676         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
678         Likewise.
679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
680         Likewise.
681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
683         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
684         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
685         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
686         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
687         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
688         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
689         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
691         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
692         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
693         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
694
695 2016-06-10  Florian Weimer  <fweimer@redhat.com>
696
697         [BZ #19564]
698         Remove __malloc_initialize_hook from the API.
699         * malloc/malloc.h (__malloc_initialize_hook): Remove.
700         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
701         #pragma GCC poison.
702         * malloc/malloc-hooks.h: New file.
703         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
704         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
705         (old__malloc_initialize_hook): Rename from
706         __malloc_initialize_hook to evade poisoning.  Turn into compat
707         symbol.
708         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
709         __malloc_initialize_hook.
710         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
711         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
712         * manual/memory.texi (Hooks for Malloc): Remove
713         __malloc_initialize_hook.  Adjust hook example.
714
715 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
716
717         [BZ #20235]
718         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
719         itself.
720         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
721         * math/libm-test.inc (log2_test_data): Add sNaN tests.
722
723         [BZ #20234]
724         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
725         infinity or NaN input to itself.
726
727         [BZ #20233]
728         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
729         to itself.
730
731         [BZ #20232]
732         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
733         itself.
734
735 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
736
737         * sysdeps/x86_64/start.S (_start): Always indirect branch to
738         __libc_start_main via GOT.
739
740 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
741
742         * sysdeps/x86_64/memcopy.h: New file.
743         * sysdeps/x86_64/wordcopy.c: Likewise.
744
745 2016-06-09  Florian Weimer  <fweimer@redhat.com>
746
747         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
748         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
749         <cstdlib>.
750         (optimization_barrier): New.
751         (do_test): Use it.  Call quick_exit in the global namespace.
752         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
753         instead of <cstdlib>, <thread>.
754         (optimization_barrier): New.
755         (non_main_thread): Adjust declaration.  Call optimization_barrier.
756         Call quick_exit in the global namespace.
757         (do_test): Call optimization_barrier.  Use pthread_create,
758         pthread_join instead of std::thread.
759
760 2016-06-09  Andreas Schwab  <schwab@suse.de>
761
762         [BZ #19755]
763         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
764         new entries in auto-propagate mode.
765         * nscd/grpcache.c (cache_addgr): Likewise.
766
767 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
768
769         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
770         New functions.
771         (add_temp_file): Use them.
772
773 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
774
775         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
776
777 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
778
779         [BZ #20229]
780         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
781         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
782         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
783
784         [BZ #20228]
785         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
786         itself.
787         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
788         * math/libm-test.inc (log10_test_data): Add sNaN tests.
789
790         [BZ #20227]
791         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
792         itself.
793         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
794         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
795         * math/libm-test.inc (log_test_data): Add sNaN tests.
796
797         [BZ #20226]
798         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
799         itself.
800         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
801         * math/libm-test.inc (exp_test_data): Add sNaN tests.
802         (exp10_test_data): Likewise.
803         (expm1_test_data): Likewise.
804
805         [BZ #20225]
806         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
807         itself.
808         * math/s_ldexpf.c (__ldexpf): Likewise.
809         * math/s_ldexpl.c (__ldexpl): Likewise.
810         * math/w_scalbln.c (__w_scalbln): Likewise.
811         * math/w_scalblnf.c (__w_scalblnf): Likewise.
812         * math/w_scalblnl.c (__w_scalblnl): Likewise.
813         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
814         (scalbln_test_data): Likewise.
815
816         [BZ #20224]
817         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
818         argument to itself.
819         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
820
821 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
822
823         [BZ #19776]
824         * sysdeps/x86_64/memcpy.S: Make it dummy.
825         * sysdeps/x86_64/mempcpy.S: Likewise.
826         * sysdeps/x86_64/memmove.S: New file.
827         * sysdeps/x86_64/memmove_chk.S: Likewise.
828         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
829         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
830         * sysdeps/x86_64/memmove.c: Removed.
831         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
832         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
833         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
834         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
835         Likewise.
836         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
837         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
838         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
839         memcpy-sse2-unaligned, memmove-avx-unaligned,
840         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
841         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
842         (__libc_ifunc_impl_list): Replace
843         __memmove_chk_avx512_unaligned_2 with
844         __memmove_chk_avx512_unaligned.  Remove
845         __memmove_chk_avx_unaligned_2.  Replace
846         __memmove_chk_sse2_unaligned_2 with
847         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
848         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
849         with __memmove_avx512_unaligned.  Replace
850         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
851         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
852         with __memcpy_chk_avx512_unaligned.  Remove
853         __memcpy_chk_avx_unaligned_2.  Replace
854         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
855         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
856         Replace __memcpy_avx512_unaligned_2 with
857         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
858         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
859         with __mempcpy_chk_avx512_unaligned.  Remove
860         __mempcpy_chk_avx_unaligned_2.  Replace
861         __mempcpy_chk_sse2_unaligned_2 with
862         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
863         Replace __mempcpy_avx512_unaligned_2 with
864         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
865         Replace __mempcpy_sse2_unaligned_2 with
866         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
867         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
868         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
869         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
870         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
871         (ENTRY): Removed.
872         (END): Likewise.
873         (ENTRY_CHK): Likewise.
874         (libc_hidden_builtin_def): Likewise.
875         Don't include ../memcpy.S.
876         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
877         __memcpy_chk_avx512_unaligned_erms and
878         __memcpy_chk_avx512_unaligned.  Use
879         __memcpy_chk_avx_unaligned_erms and
880         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
881         Default to __memcpy_chk_sse2_unaligned.
882         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
883         Change function suffix from unaligned_2 to unaligned.
884         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
885         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
886         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
887         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
888         (ENTRY): Removed.
889         (END): Likewise.
890         (ENTRY_CHK): Likewise.
891         (libc_hidden_builtin_def): Likewise.
892         Don't include ../mempcpy.S.
893         (mempcpy): New.  Add a weak alias.
894         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
895         __mempcpy_chk_avx512_unaligned_erms and
896         __mempcpy_chk_avx512_unaligned.  Use
897         __mempcpy_chk_avx_unaligned_erms and
898         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
899         Default to __mempcpy_chk_sse2_unaligned.
900
901 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
902
903         [BZ #19881]
904         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
905         into ...
906         * sysdeps/x86_64/memset.S: This.
907         (__bzero): Removed.
908         (__memset_tail): Likewise.
909         (__memset_chk): Likewise.
910         (memset): Likewise.
911         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
912         defined.
913         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
914         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
915         (__memset_zero_constant_len_parameter): Check SHARED instead of
916         PIC.
917         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
918         memset-avx2 and memset-sse2-unaligned-erms.
919         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
920         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
921         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
922         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
923         (__bzero): Enabled.
924         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
925         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
926         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
927         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
928         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
929         (memset): Removed.
930         (__memset_chk): Likewise.
931         (MEMSET_SYMBOL): New.
932         (libc_hidden_builtin_def): Replace __memset_sse2 with
933         __memset_sse2_unaligned.
934         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
935         __memset_chk_sse2 and __memset_chk_avx2 with
936         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
937         Use __memset_chk_sse2_unaligned_erms or
938         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
939         __memset_chk_avx512_unaligned_erms and
940         __memset_chk_avx512_unaligned.
941
942 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
943
944         * math/gen-auto-libm-test.c (fp_format_desc): remove
945         suffix member.
946         (output_generic_value): Remove usage of suffix member,
947         and the resulting unuse of the fp_format argument.
948         (output_for_one_input_case): Remove unused fp_format
949         parameter.
950
951         * math/auto-libm-test-out: Regenerate.
952
953         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
954         usage with TEST_COND_ibm128.
955         (TEST_COND_flt_32): Remove.
956         (TEST_COND_dbl_64): Remove.
957         (TEST_COND_ldbl_96_intel): Remove.
958         (TEST_COND_ldbl_96_m68k): Remove.
959         (TEST_COND_ldbl_128): Remove.
960
961 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
962
963         * auto-libm-test-in:
964         Replace flt-32 usage with binary32.
965         Replace dbl-64 usage with binary64.
966         Replace ldbl-intel-96 usage with intel96.
967         Replace ldbl-m68k-96 usage with m68k96.
968         Replace ldbl-128ibm usage with ibm128.
969         Replace ldbl-128 usage with binary128.
970
971         * auto-libm-test-out: Regenerate.
972
973 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
974
975         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
976         (parse_ulps): Dynamically generate type name matching
977         string from all_floats.
978         (get_ulps): Generate the ulps as an array instead.
979         (output_ulps): Dynamically compose the type based
980         on the number of supported formats, and print
981         the indices as type specific helper macros.
982
983         * math/libm-test.inc: Remove comment about CHOOSE.
984         (ulp_data): Generate the type in libm-test-ulps.h.
985         (ULP_IDX): New macro.
986         (find_ulps): Update usage of max_ulp.
987
988         * math/test-double-vlen2.h (CHOOSE): Remove.
989         * math/test-double-vlen4.h (CHOOSE): Likewise.
990         * math/test-double-vlen8.h (CHOOSE): Likewise.
991         * math/test-float.c (CHOOSE): Likewise.
992         * math/test-float-finite.c (CHOOSE): Likewise.
993         * math/test-double.c (CHOOSE): Likewise.
994         * math/test-double-finite.c (CHOOSE): Likewise.
995         * math/test-idouble.c (CHOOSE): Likewise.
996         * math/test-ifloat.c (CHOOSE): Likewise.
997         * math/test-ildoubl.c (CHOOSE): Likewise.
998         * math/test-ldouble-finite.c (CHOOSE): Likewise.
999         * math/test-ldouble.c (CHOOSE): Likewise.
1000
1001         * math/test-float.h (TEST_FLOAT): Remove.
1002         * math/test-double.h (TEST_DOUBLE): Likewise.
1003         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1004
1005 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1006
1007         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1008         (parse_args): Strip C suffix from floating point literals
1009         typed with 'f' and wrap them with LIT().
1010
1011         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1012         (test_ff_f_data_nexttoward): Rename to
1013         (test_fj_f_data): New struct.
1014         (nexttoward_test_data): Relabel tests as
1015         TEST_fj_f instead of TEST_ff_f.
1016
1017 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1018
1019         Emacs bug 23726.
1020         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1021         (__libc_realloc): Correct size computation for dumped fake mmapped
1022         chunks.
1023
1024 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1025
1026         [BZ #20219]
1027         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1028         to itself.
1029         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1030
1031         [BZ #20218]
1032         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1033         to itself.
1034         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1035
1036 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1037
1038         [BZ #20195]
1039         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1040         check to ...
1041         (init_cpu_features): Here.
1042
1043 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1044
1045         [BZ #20214]
1046         * sysdeps/unix/sysv/linux/bits/in.h
1047         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1048          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1049         Define to 1.
1050         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1051          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1052         Define to 0.
1053         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1054         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1055
1056 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1057
1058         [BZ #20198]
1059         * stdlib/Makefile (tests): Add tst-quick_exit, and
1060         tst-thread-quick_exit.
1061         [ifeq ($(have-cxx-thread_local),yes)]
1062         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1063         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1064         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1065         (LDLIBS-tst-thread-quick_exit): Likewise.
1066         [ifneq ($(have-cxx-thread_local),yes)]
1067         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1068         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1069         If run_dtors is true call __call_tls_dtors.
1070         (exit): Call __run_exit_handlers with run_dtors set to true.
1071         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1072         definition.
1073         * stdlib/quick_exit.c (quick_exit): Remove function.
1074         (__new_quick_exit): New function.
1075         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1076         function.
1077         * stdlib/tst-quick_exit.cc: New file.
1078         * stdlib/tst-thread-quick_exit.cc: New file.
1079         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1080         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1081         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1082         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1083         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1084         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1085         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1086         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1087         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1088         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1089         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1090         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1091         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1092         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1093         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1094         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1099         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1100         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1101         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1102         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1103         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1104         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1106         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1107         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1108         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1109
1110 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1111
1112         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1113         a typo in comments.
1114
1115 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1116
1117         [BZ #20213]
1118         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1119         argument to itself.
1120         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1121
1122 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1123
1124         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1125         required flags.
1126         (CFLAGS-pwritev64.c): Likewise.
1127         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1128         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1129         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1130         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1131         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1132         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1133         syscall from auto-generation.
1134         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1135         [WORDSIZE == 64] (pwritev64): Remove macro.
1136         [!PWRITEV] (PWRITEV): Likewise.
1137         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1138         [!PWRITEV] (PWRITE): Likewise.
1139         [!PWRITEV] (OFF_T): Likewise.
1140         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1141         (LO_HI_LONG): Remove macro.
1142         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1143         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1144         (PWRITEV): Remove macro.
1145         (PWRITEV_REPLACEMENTE): Likewise.
1146         (PWRITE): Likewise.
1147         (OFF_T): Likewise.
1148         (pwritev64): New function.
1149         * nptl/tst-cancel4.c (tf_writev): Add test.
1150
1151         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1152         required flags.
1153         (CFLAGS-preadv64.c): Likewise.
1154         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1155         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1156         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1157         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1158         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1159         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1160         syscall from auto-generation.
1161         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1162         [WORDSIZE == 64] (preadv64): Remove macro.
1163         [!PREADV] (PREADV): Likewise.
1164         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1165         [!PREADV] (PREAD): Likewise.
1166         [!PREADV] (OFF_T): Likewise.
1167         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1168         (LO_HI_LONG): Remove macro.
1169         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1170         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1171         (PREADV): Remove macro.
1172         (PREADV_REPLACEMENTE): Likewise.
1173         (PREAD): Likewise.
1174         (OFF_T): Likewise.
1175         (preadv64): New function.
1176         * nptl/tst-cancel4.c (tf_preadv): Add test.
1177
1178 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1179
1180         [BZ #20212]
1181         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1182         argument to itself.
1183         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1184
1185 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1186
1187         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1188         New symbol defined as libc_hidden_def.
1189         (strcasestr): Became a weak alias to __strcasestr.
1190         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1191         according to multi-arch support.  Move __stpncpy hidden
1192         definition from here to...
1193         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1194         symbol stpncpy.
1195         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1196         libc_hidden_builtin_def.
1197         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1198         memset symbol to use when multi-arch support is available.
1199
1200 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1201
1202         * dlfcn/tst-rec-dlopen.c: Include string.h.
1203
1204 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1205
1206         * manual/install.texi: Remove mention of --without-tls
1207         * INSTALL: Regenerate.
1208
1209 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1210
1211         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1212         Remove.
1213         (call_function, interposed_malloc_called): New variables.
1214         (malloc): New function.
1215         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1216         and clear call_function as needed.
1217
1218 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1219
1220         * include/wchar.h (__wmemset): Use __typeof.
1221
1222 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1223
1224         * include/wchar.h (__wmemset): Declare function without typeof.
1225
1226 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1227
1228         [BZ #20205]
1229         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1230         exponent when incrementing negative subnormal with low mantissa
1231         word zero.
1232         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1233         Add another test.
1234
1235 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1236
1237         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1238         __wmemset instead of wmemset.
1239
1240 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1241
1242         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1243         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1244         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1245         __USE_KERNEL_IPV6_DEFS to 0.
1246         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1247         Update comment.
1248
1249 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1250
1251         [BZ #19861]
1252         Do not use IFUNC resolver with potentially unrelocated symbol.
1253         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1254         (DEFINE_FORK): Remove macro and inline definition.
1255         (fork_alias): Renamed from fork_ifunc.
1256         (__fork_alias): Renamed from __fork_ifunc.
1257
1258 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1259
1260         [BZ 19653]
1261         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1262         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1263
1264 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1265
1266         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1267         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1268         i386-linux-gnu).
1269         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1270         Set to no.
1271         * sysdeps/mach/hurd/configure: Refresh.
1272
1273 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1274
1275         [BZ #20178]
1276         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1277         on failure instead of exit.
1278
1279 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1280
1281         [BZ #3629]
1282         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1283         of POSIX.1-2008.
1284
1285 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1286
1287         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1288           Use PLT entry for calling _hurd_self_sigstate.
1289
1290 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1291
1292         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1293         available logical processors with SMT level type sharing L2
1294         cache for Intel processors.
1295
1296 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1297
1298         [BZ #20160]
1299         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1300         argument to itself before returning the result.
1301         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1302         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1303         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1304         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1305         Likewise.
1306         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1307         Likewise.
1308         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1309         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1310         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1311         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1312         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1313         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1314
1315         [BZ #20160]
1316         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1317         argument to itself before returning the result.
1318         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1319         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1320         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1321         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1322         Likewise.
1323         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1324         Likewise.
1325         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1326         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1327         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1328         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1329         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1330         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1331
1332 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1333
1334         * libm-test.inc: Replace usage of M_El with
1335         (lit_e): New macro.
1336
1337 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1338
1339         * libm-test.inc: Replace usage of M_PI_4l with
1340         (lit_pi_4_d): New macro.
1341
1342 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1343
1344         * libm-test.inc: Replace usage of M_PIl with
1345         (lit_pi): New macro.
1346
1347 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1348
1349         * libm-test.inc: Replace usage of M_PI2l with
1350         (lit_pi_2_d): New macro.
1351
1352         * math/test-double.h (LITM): New macro.
1353         * math/test-float.h (LITM): Likewise.
1354         * math/test-ldouble.h (LITM): Likewise.
1355
1356 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1357
1358         * libm-test.inc (M_PI_34l): Rename to
1359         (lit_pi_3_m_4_d): New Macro.
1360         (M_PI_34_LOG10El): Rename to
1361         (lit_pi_3_m_4_ln10_m_d): New Macro.
1362         (M_PI2_LOG10El): Rename to
1363         (lit_pi_2_ln10_m_d):  New Macro.
1364         (M_PI4_LOG10El): Rename to
1365         (lit_pi_4_ln10_m_d):  New Macro.
1366         (M_PI_LOG10El): Rename to
1367         (lit_pi_ln10_d):  New Macro.
1368
1369 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1370
1371         [BZ #20157]
1372         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1373         determine whether to negate low half if [_ARCH_PPCGR], and integer
1374         comparison otherwise.
1375         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1376         determine whether to negate low half.
1377
1378         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1379         (NO_TEST_INLINE_DOUBLE): Likewise.
1380         (TEST_COND_x86_64): Likewise.
1381         (TEST_COND_x86): Likewise.
1382         (M_PI_6l): Likewise.
1383
1384 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1385
1386         * math/libm-test.inc:
1387         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1388         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1389         (TEST_LDOUBLE): Update usage to evaluate as true if
1390         the guarded tests match the property being tested.
1391         (LDBL_MAX_EXP): Change to MAX_EXP.
1392         (LDBL_MIN_EXP): Change to MIN_EXP.
1393         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1394         nexttoward tests.
1395
1396 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1397
1398         * math/libm-test.inc:
1399         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1400         (TYPE_MIN): Likewise.
1401         (TYPE_TRUE_MIN): Likewise.
1402         (TYPE_MAX): Likewise.
1403         (MIN_EXP): Likewise.
1404         (MAX_EXP): Likewise.
1405         (MANT_DIG): Likewise.
1406
1407         (FSTR_MAX): New macro.
1408         (__CONCATX): Likewise.
1409         (QTYPE_STR): Likewise.
1410         (TEST_COND_binary32): Likewise.
1411         (TEST_COND_binary64): Likewise.
1412         (TEST_COND_binary128): Likewise.
1413         (TEST_COND_ibm128): Likewise.
1414         (TEST_COND_intel96): Likewise.
1415         (TEST_COND_m68k96): Likewise.
1416
1417         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1418         (TEST_COND_dbl_64): Likewise.
1419         (TEST_COND_ldbl_96_intel): Likewise.
1420         (TEST_COND_ldbl_96_m68k): Likewise.
1421         (TEST_COND_ldbl_128): Likewise.
1422         (TEST_COND_ldbl_128ibm): Likewise.
1423
1424         (plus_zero): Redefine using LIT macro.
1425         (minus_zero): Likewise.
1426         (plus_infty): Redefine as (INF).
1427         (minux_infty): Redefine as (-INF).
1428         (max_value): Redefine as TYPE_MAX.
1429         (min_value): Redefine as TYPE_MIN.
1430         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1431
1432         (print_float): Refactor to use snprintf to convert FLOAT values
1433         to string. This brings it closer to dropin replacement of strtof
1434         for the TS 18661 defined types.
1435         (update_stats): Likewise.
1436         (print_complex_function_ulps): Likewise.
1437         (print_max_error): Likewise.
1438         (print_complex_max_error): Likewise.
1439         (check_float_internal): Likewise.
1440
1441         * math/test-float.h (PREFIX): New macro.
1442         (LIT): Likewise.
1443         (TYPE_STR): Likewise.
1444         (FTOSTR): Likewise.
1445
1446         * math/test-double.h (PREFIX): New macro.
1447         (LIT): Likewise.
1448         (TYPE_STR): Likewise.
1449         (FTOSTR): Likewise.
1450
1451         * math/test-ldouble.h (PREFIX): New macro.
1452         (LIT): Likewise.
1453         (TYPE_STR): Likewise.
1454         (FTOSTR): Likewise.
1455
1456 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1457
1458         [BZ #20156]
1459         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1460         to itself when zero or not finite.
1461         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1462         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1463         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1464         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1465
1466 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1467
1468         [BZ #20153]
1469         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1470         x * x + x for infinities and NaNs.
1471
1472         [BZ #20151]
1473         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1474         argument to itself before returning result.
1475         (__ieee754_y0l): Likewise.
1476         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1477         (__ieee754_y1l).
1478
1479         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1480         (atan_test_data): Likewise.
1481         (ceil_test_data): Likewise.
1482         (cos_test_data): Likewise.
1483         (cosh_test_data): Likewise.
1484         (erf_test_data): Likewise.
1485         (exp2_test_data): Likewise.
1486         (fabs_test_data): Likewise.
1487         (floor_test_data): Likewise.
1488         (ilogb_test_data): Likewise.
1489         (j0_test_data): Likewise.
1490         (j1_test_data): Likewise.
1491         (jn_test_data): Likewise.
1492         (lgamma_test_data): Likewise.
1493         (lrint_test_data): Likewise.
1494         (llrint_test_data): Likewise.
1495         (logb_test_data): Likewise.
1496         (lround_test_data): Likewise.
1497         (llround_test_data): Likewise.
1498         (nearbyint_test_data): Likewise.
1499         (rint_test_data): Likewise.
1500         (round_test_data): Likewise.
1501         (sin_test_data): Likewise.
1502         (sincos_test_data): Likewise.
1503         (sinh_test_data): Likewise.
1504         (sqrt_test_data): Likewise.
1505         (tan_test_data): Likewise.
1506         (tanh_test_data): Likewise.
1507         (tgamma_test_data): Likewise.
1508         (trunc_test_data): Likewise.
1509         (y0_test_data): Likewise.
1510         (y1_test_data): Likewise.
1511         (yn_test_data): Likewise.
1512
1513         * math/libm-test.inc: Update comment about NaN testing.
1514         (TEST_SNAN): New macro.
1515         (snan_value): Likewise.
1516         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1517         (fpclassify_test_data): Add sNaN tests.
1518         (isfinite_test_data): Likewise.
1519         (isinf_test_data): Likewise.
1520         (isnan_test_data): Likewise.
1521         (isnormal_test_data): Likewise.
1522         (issignaling_test_data): Likewise.
1523         (signbit_test_data): Likewise.
1524         * math/gen-libm-test.pl (%beautify): Add snan_value.
1525         (show_exceptions): Add argument $test_snan.
1526         (parse_args): Handle snan_value as non-finite.  Update call to
1527         show_exceptions.
1528         * math/Makefile (libm-test-no-inline-cflags): Add
1529         -fsignaling-nans.
1530
1531 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1532
1533         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1534         (CFLAGS-oldsendmsg.c): Add rule.
1535         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1536         Correct recvmsg symbol name.
1537         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1538         Likewise.
1539
1540 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1541
1542         * sysdeps/unix/sysv/linux/Makefile
1543         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1544         oldsendmmsg.
1545         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1546         sendmmsg.
1547         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1548         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1549         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1550         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1552         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1553         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1555         Likewise.
1556         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1557         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1558         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1559         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1560         iovlen and controllen fields to adjust to POSIX specification.
1561         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1562
1563         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1564         and change to correct expected type.
1565         (msghdr.msg_controllen): Likewise.
1566         (cmsghdr.cmsg_len): Likewise.
1567         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1568         expected POSIX assumption about the size.
1569         (msghdr.msg_controllen): Likewise.
1570         (msghdr.__glibc_reserved1): Likewise.
1571         (msghdr.__glibc_reserved2): Likewise.
1572         (cmsghdr.cmsg_len): Likewise.
1573         (cmsghdr.__glibc_reserved1): Likewise.
1574         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1575         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1576         (CFLAGS-sendmsg.c): Remove rule.
1577         (CFLAGS-recvmsg.c): Likewise.
1578         (CFLAGS-oldsendmsg.c): Add rule.
1579         (CFLAGS-oldrecvmsg.c): Likewise.
1580         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1581         recvmsg and sendmsg.
1582         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1583         Likewise.
1584         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1585         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1586         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1587         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1588         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1589         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1590         Likewise.
1591         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1592         Likewise.
1593         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1594         Likewise.
1595         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1596         Likewise.
1597         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1598         Likewise.
1599         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1600         Likewise.
1601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1602         (GLIBC_2.24): Likewise.
1603         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1604         Likewise.
1605         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1606         Likewise.
1607         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1608         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1609         Likewise.
1610         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1611         Likewise.
1612         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1613         Likewise.
1614         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1615         (GLIBC_2.24): Likewise.
1616         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1617         Likewise.
1618         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1619         Likewise.
1620         * sysdeps/unix/sysv/linux/Makefile
1621         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1622         (CFLAGS-sendmsg.c): Add rule.
1623         (CFLAGS-recvmsg.c): Likewise.
1624         (CFLAGS-oldsendmsg.c): Likewise.
1625         (CFLAGS-oldrecvmsg.c): Likewise.
1626         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1627         initialization.
1628         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1629         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1630         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1631         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1632         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1633         iovlen and controllen fields to adjust to POSIX specification.
1634         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1635         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1636         added recvmsg and sendmsg.
1637         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1638         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1639         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1640         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1641         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1642         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1643         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1644         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1645         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1646         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1647         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1648         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1650         Likewise.
1651         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1653         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1654         Likewise.
1655         Likewise.
1656         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1657         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1658         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1659         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1660         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1661         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1662         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1663         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1664         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1665         Likewise.
1666         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1667         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1668
1669         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1670         from auto-generation.
1671         (sendmsg): Likewise.
1672         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1673         (sendmsg): Likewise.
1674         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1675         (sendmsg): Likewise.
1676         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1677         (sendmsg): Likewise.
1678         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1679         (sendmsg): Likewise.
1680         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1681         (sendmsg): Likewise.
1682         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1683         Likewise.
1684         (sendmsg): Likewise.
1685         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1686         (sendmsg): Likewise.
1687         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1688         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1689         Remove.
1690         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1691         Likewise.
1692         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1693         Undefine.
1694         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1695         Likewise.
1696         * sysdeps/unix/sysv/linux/kernel-features.h
1697         (__ASSUME_SENDMSG_SYSCALL): Define.
1698         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1699         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1700         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1701         Remove.
1702         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1703         Likewise.
1704         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1705         Undefine.
1706         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1707         Likewise.
1708         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1709         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1710         Remove.
1711         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1712         Likewise.
1713         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1714         Undefine.
1715         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1716         Likewise.
1717         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1718         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1719         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1720         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1721         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1722         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1723         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1724         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1725         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1726
1727 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1728
1729         * stdlib/gen-tst-strtod-round.c: Add backslash to
1730         compile command in comment.
1731         (printfp): Remove the literal suffix, and define an infinite
1732         value as INF to avoid expansion clash with INFINITY.
1733         (round_str): Remove the literal suffix.
1734         (round_for_all): Likewise, remove the now duplicate ldbl-64
1735         entry, and remove some magic constants.
1736
1737         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1738         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1739         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1740         (_CONCAT): New macro.
1741         (CONCAT): Likewise.
1742         (CHOOSE_ld): Likewise.
1743         (CHOOSE_f): Likewise.
1744         (CHOOSE_d): Likewise.
1745         (FTYPE_MEMBER): Likewise.
1746         (BOOL_MEMBER): Likewise.
1747         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1748         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1749         (_XNTRY): Likewise.
1750         (XNTRY): Likewise.
1751         (_ENTRY): Likewise.
1752         (ENTRY): Likewise.
1753         (test_exactness): Generate members via macro.
1754         (test_results): Likewise.
1755         (test): Update members.
1756         (TEST): Redefine using new macros.
1757         (INF): New macro.
1758         (fetestmodes): New structure.
1759         (do_test): Refactor to be type generic.
1760         (test_in_one_mode): Refactor duplicate code into
1761         (GEN_ONE_TEST): New macro.
1762
1763         * stdlib/tst-strtod-round-data.h: Regenerate.
1764
1765         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1766         Extend to pass additional arbitrary parameters to
1767         generators.
1768
1769 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1770
1771         [BZ #15479]
1772         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1773         floating-point state after first floating-point operation on
1774         input.  Restore full floating-point state instead of just rounding
1775         mode.
1776         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1777         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1778         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1779         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1780         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1781
1782         [BZ #15479]
1783         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1784         floating-point state after first floating-point operation on
1785         input.  Restore full floating-point state instead of just rounding
1786         mode.
1787         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1788         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1789         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1790         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1791         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1792
1793 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1794
1795         [BZ #19727]
1796         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1797         valid high surrogate.
1798         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1799         of an utf16 surrogate.
1800         * iconv/gconv_simple.c (BODY): Likewise.
1801         * iconvdata/bug-iconv12.c: New file.
1802         * iconvdata/Makefile (tests): Add bug-iconv12.
1803
1804 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1805
1806         [BZ #19726]
1807         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1808         outptrp in case of an illegal input.
1809         * iconv/tst-iconv6.c: New file.
1810         * iconv/Makefile (tests): Add tst-iconv6.
1811
1812 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1813
1814         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1815         an error in case of a value in range of an utf16 low surrogate.
1816
1817 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1818
1819         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1820         an error in case of a value in range of an utf16 low surrogate.
1821
1822 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1823
1824         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1825         Move to ...
1826         * sysdeps/s390/Makefile: ... here.
1827         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1828         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1829         (BRANCH_ON_COUNT): New define.
1830         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1831         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1832         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1833         run on s390-32, too.
1834         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1835         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1836         run on s390-32, too.
1837         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1838         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1839         run on s390-32, too.
1840
1841 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1842
1843         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1844         etf3eh or new vector loop-variant.
1845
1846 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1847
1848         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1849         etf3eh or new vector loop-variant.
1850
1851 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1852
1853         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1854         or new vector loop-variant.
1855
1856 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1857
1858         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1859         Rename to TR_LOOP and usage of tr instead of troo instruction.
1860
1861 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1862
1863         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1864         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1865
1866 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1867
1868         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1869         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1870         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1871         New override define.
1872         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1873
1874 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1875
1876         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1877         * sysdeps/s390/configure.ac: Add test for S390 vector register
1878         support in gcc.
1879         * sysdeps/s390/configure: Regenerated.
1880
1881 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1882
1883         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1884         Install file from $(objpfx)gconv-modules.
1885         ($(objpfx)gconv-modules): Concatenate architecture specific file
1886         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1887         * sysdeps/s390/gconv-modules: New file.
1888         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1889         Deleted.
1890         ($(objpfx)gconv-modules-s390): Deleted.
1891         (sysdeps-gconv-modules): New variable.
1892
1893 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1894
1895         [BZ #15479]
1896         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1897         of immediate operand to rounding instruction.
1898         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1899         Likewise.
1900         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1901         Likewise.
1902         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1903         Likewise.
1904
1905 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1906
1907         * math/libm-test.inc (MIN_EXP): Directly define as
1908         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1909
1910 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1911
1912         * math/libm-test.inc (MANT_DIG): Directly define as
1913         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1914
1915 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1916
1917         * stdlib/gen-tst-strtod-round.c (main):
1918           Change usage to more closely match the generated
1919           output.  Add usage and compilation instructions.
1920           (string_to_fp): Add and use FILE* parameter as
1921           output target.
1922           (print_fp): Likewise.
1923           (round_str): Likewise.
1924           (round_for_all): Likewise.
1925         * stdlib/tst-strtod-round.c (tests): Move into
1926         * stdlib/tst-strtod-round-data.h: New file.
1927
1928 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1929
1930         [BZ #15479]
1931         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1932         (__round): Do not force "inexact" exception.
1933         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1934         variable.
1935         (__round): Do not force "inexact" exception.
1936         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1937         (__roundf): Do not force "inexact" exception.
1938         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1939         (__roundl): Do not force "inexact" exception.
1940         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1941         (__roundl): Do not force "inexact" exception.
1942         * math/libm-test.inc (round_test_data): Do not allow spurious
1943         "inexact" exceptions.
1944
1945         [BZ #15479]
1946         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1947         exception in comment.
1948         (huge): Remove variable.
1949         (__floor): Do not force "inexact" exception.
1950         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1951         "inexact" exception in comment.
1952         (huge): Remove variable.
1953         (__floor): Do not force "inexact" exception.
1954         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1955         exception in comment.
1956         (huge): Remove variable.
1957         (__floorf): Do not force "inexact" exception.
1958         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1959         exception in comment.
1960         (huge): Remove variable.
1961         (__floorl): Do not force "inexact" exception.
1962
1963         [BZ #15479]
1964         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1965         exception in comment.
1966         (huge): Remove variable.
1967         (__ceil): Do not force "inexact" exception.
1968         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1969         "inexact" exception in comment.
1970         (huge): Remove variable.
1971         (__ceil): Do not force "inexact" exception.
1972         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1973         (__ceilf): Do not force "inexact" exception.
1974         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1975         exception in comment.
1976         (huge): Remove variable.
1977         (__ceill): Do not force "inexact" exception.
1978
1979 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1980
1981         * config.h.in (BIND_NOW): New.
1982         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1983         * configure: Regenerated.
1984         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1985         indirect branch via the GOT slot.
1986
1987 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1988
1989         [BZ #19765]
1990         * sysdeps/s390/mempcpy.S: New File.
1991         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1992         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1993         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1994         Add mempcpy variants.
1995         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1996         (memcpy): Adjust to be usable from mempcpy entry point.
1997         (__memcpy_mvcle): Likewise.
1998         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1999         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2000         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2001         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2002         (__memcpy_z10): Likewise.
2003         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2004
2005 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2006
2007         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2008         Remove __GI_ symbol.
2009         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2010         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2011         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2012         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2013         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2014         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2015
2016 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2017
2018         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2019         Use cghi instead of chi to compare 64bit value.
2020
2021 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2022
2023         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2024         Jump to 1MB check before executing mvc-loop.
2025
2026 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2027
2028         [BZ #6527]
2029         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2030         unconditionally.
2031         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2032
2033 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2034
2035         * stdlib/tst-strtod6.c (do_test): Use new type generic
2036         invocation of the test function.
2037         (test): Refactor into ...
2038         (TEST_STRTOD): New macro base function.
2039
2040 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2041
2042         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2043         (TEST_STRTOD): New macro.
2044         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2045
2046 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2047
2048         * stdlib/tst-strtod6.c (do_test): Use new type generic
2049         invocation of the test function.
2050         (test): Refactor into ...
2051         (TEST_STRTOD): New macro base function.
2052
2053 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2054
2055         CVE-2016-4429
2056         [BZ #20112]
2057         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2058         payload.
2059
2060 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2061
2062         [BZ #20111]
2063         * bits/sockaddr.h (_SS_SIZE): Define.
2064         * bits/socket.h (_SS_SIZE): Remove.
2065         (_SS_PADSIZE): Adjust to account for all padding.
2066         (struct sockaddr_storage): Update comment.  Avoid implicit
2067         padding.
2068         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2069         (_SS_PADSIZE): Adjust to account for all padding.
2070         (struct sockaddr_storage): Update comment.  Avoid implicit
2071         padding.
2072         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2073         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2074         (_SS_PADSIZE): Adjust to account for all padding.
2075         (struct sockaddr_storage): Update comment.  Avoid implicit
2076         padding.
2077         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2078         __SS_SIZE is 126 in this version.
2079         * inet/tst-sockaddr.c: New file.
2080         * inet/Makefile (tests): Add tst-sockaddr.c
2081         (tst-sockaddr.c): Compile with non-strict aliasing.
2082
2083 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2084
2085         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2086         [XPG3 || XPG4].
2087         (NL_ARGMAX): Also expect for [XPG3].
2088         (NL_LANGMAX): Likewise.
2089         (NL_MSGMAX): Likewise.
2090         (NL_NMAX): Likewise.
2091         (NL_SETMAX): Likewise.
2092         (NL_TEXTMAX): Likewise.
2093         (NZERO): Likewise.
2094         (TMP_MAX): Likewise.
2095         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2096         variable.
2097
2098         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2099         (PF_MAX): Update value.
2100         (AF_KCM): New macro.
2101         (SOL_NETBEUI): Likewise.
2102         (SOL_LLC): Likewise.
2103         (SOL_DCCP): Likewise.
2104         (SOL_NETLINK): Likewise.
2105         (SOL_TIPC): Likewise.
2106         (SOL_RXRPC): Likewise.
2107         (SOL_PPPOL2TP): Likewise.
2108         (SOL_BLUETOOTH): Likewise.
2109         (SOL_PNPIPE): Likewise.
2110         (SOL_RDS): Likewise.
2111         (SOL_IUCV): Likewise.
2112         (SOL_CAIF): Likewise.
2113         (SOL_ALG): Likewise.
2114         (SOL_NFC): Likewise.
2115         (SOL_KCM): Likewise.
2116         (MSG_BATCH): New enum value and macro.
2117
2118 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2119
2120         [BZ #18185]
2121         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2122         sharing L2 cache to 2 for Knights Landing.
2123
2124 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2125
2126         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2127         (FTW_DP): Do not expect for [XPG3 || XPG4].
2128         (FTW_SL): Do not expect for [XPG3].
2129         (FTW_SLN): Likewise.
2130         (FTW_PHYS): Likewise.
2131         (FTW_MOUNT): Likewise.
2132         (FTW_DEPTH): Likewise.
2133         (FTW_CHDIR): Likewise.
2134         (nftw): Likewise.
2135         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2136         variable.
2137
2138 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2139
2140         * manual/errno.texi: Fix various typos & grammar errors.
2141
2142 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2143
2144         * manual/intro.texi: Fix duplicated typo.
2145
2146 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2147
2148         [BZ #13304]
2149         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2150         <float.h>, <math_private.h> and <stdlib.h>.
2151         (add_split): New function.
2152         (mul_split): Likewise.
2153         (ext_val): New typedef.
2154         (store_ext_val): New function.
2155         (mul_ext_val): New function.
2156         (compare): New function.
2157         (add_split_ext): New function.
2158         (__fmal): After checking for Inf, NaN and zero, compute result as
2159         an exact sum of scaled double values in round-to-nearest before
2160         adding those up and adjusting for other rounding modes.
2161         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2162         tests of fma.
2163         * math/auto-libm-test-out: Regenerated.
2164
2165 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2166
2167         [BZ #20119]
2168         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2169         processor level type mask for CPUID with EAX == 11.
2170
2171 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2172
2173         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2174         logical threads if the HTT bit is 0.
2175         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2176         (index_cpu_HTT): Likewise.
2177         (reg_HTT): Likewise.
2178
2179 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2180
2181         [BZ #20115]
2182         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2183         Remove alignments on jump targets.
2184
2185 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2186
2187         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2188         (getpwent): Likewise.
2189         (setpwent): Likewise.
2190         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2191         variable.
2192
2193         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2194         (remque): Likewise.
2195         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2196         variable.
2197
2198 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2199
2200         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2201         not being tested.
2202
2203 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2204
2205         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2206         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2207         call.
2208         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2209         (__condvar_cleanup1): Likewise.
2210
2211 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2212
2213         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2214         New
2215         (__pthread_unwind): Renamed to ...
2216         (PTHREAD_UNWIND): This.
2217         (__pthread_enable_asynccancel): Replace
2218         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2219
2220 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2221
2222         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2223         (CLONE_NEWCGROUP): New macro.
2224
2225         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2226         (Q_GETNEXTQUOTA): New macro.
2227
2228 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2229
2230         [BZ #19907]
2231         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2232         buffer updated by the previous run.
2233         * string/test-memcpy.c (do_one_test): Likewise.
2234         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2235         * string/test-memmove.c (do_one_test): Likewise.
2236
2237 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2238
2239         [BZ #20094]
2240         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2241         not [__USE_XOPEN].
2242         (unlockpt): Likewise.
2243         (ptsname): Likewise.
2244         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2245         variable.
2246
2247         [BZ #20076]
2248         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2249         instead of [__USE_UNIX98].
2250         (S_ISSOCK): Likewise.
2251         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2252         variable.
2253
2254         [BZ #20074]
2255         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2256         [__USE_POSIX].
2257         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2258         variable.
2259
2260         [BZ #20051]
2261         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2262         (ttyslot): Do not declare.
2263         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2264         (ttyslot): New prototype.
2265         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2266         variable.
2267         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2268
2269 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2270
2271         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2272
2273 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2274
2275         Fix race condition in tst-mallocfork2, use fewer resources.
2276         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2277         to current process group.
2278         (signal_sender): Yield in the non-sleeping case.
2279
2280 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2281
2282         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2283         (ecvt): Likewise.
2284         (fcvt): Likewise.
2285         (gcvt): Likewise.
2286         (getsubopt): Likewise.
2287         (grantpt): Likewise.
2288         (initstate): Likewise.
2289         (l64a): Likewise.
2290         (mktemp): Likewise.
2291         (mkstemp): Likewise.
2292         (ptsname): Likewise.
2293         (random): Likewise.
2294         (realpath): Likewise.
2295         (setstate): Likewise.
2296         (srandom): Likewise.
2297         (ttyslot): Likewise.
2298         (unlockpt): Likewise.
2299         (valloc): Likewise.
2300
2301         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2302         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2303         variable.
2304
2305 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2306
2307         [BZ #20072]
2308         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2309         init_cpu_features only if SHARED is defined.
2310         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2311
2312 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2313
2314         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2315         non-inclusive caches on Intel processors.
2316
2317 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2318
2319         * malloc/malloc.c (dumped_main_arena_start)
2320         (dumped_main_arena_end): New variables.
2321         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2322         (do_check_chunk): Skip dumped fake mmapped chunks.
2323         (munmap_chunk): Likewise.
2324         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2325         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2326         mmapped chunks.
2327         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2328         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2329         and dumped_main_arena_end to cover the dumped heap.
2330
2331 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2332
2333         * conform/data/time.h-data (getdate_err): Do not expect for
2334         [XPG3].
2335         (getdate): Likewise.
2336         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2337         variable.
2338
2339         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2340         (F_ULOCK): Likewise.
2341         (F_TEST): Likewise.
2342         (F_TLOCK): Likewise.
2343         (useconds_t): Likewise.
2344         (intptr_t): Do not expect for [XPG3] or [XPG4].
2345         (brk): Do not expect for [XPG3]
2346         (fchown): Likewise.
2347         (fchdir): Likewise.
2348         (ftruncate): Likewise.
2349         (getdtablesize): Likewise.
2350         (gethostid): Likewise.
2351         (getpagesize): Likewise.
2352         (getpgid): Likewise.
2353         (getsid): Likewise.
2354         (getwd): Likewise.
2355         (lchown): Likewise.
2356         (lockf): Likewise.
2357         (readlink): Likewise.
2358         (sbrk): Likewise.
2359         (setpgrp): Likewise.
2360         (setregid): Likewise.
2361         (setreuid): Likewise.
2362         (symlink): Likewise.
2363         (sync): Likewise.
2364         (truncate): Likewise.
2365         (ualarm): Likewise.
2366         (usleep): Likewise.
2367         (vfork): Likewise.
2368         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2369         variable.
2370
2371         [BZ #20054]
2372         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2373         not [__USE_UNIX98].
2374         * conform/data/unistd.h-data (gethostname): Do not expect for
2375         [XPG3].
2376
2377         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2378         [!POSIX] (S_IFBLK): Likewise.
2379         [!POSIX] (S_IFCHR): Likewise.
2380         [!POSIX] (S_IFIFO): Likewise.
2381         [!POSIX] (S_IFREG): Likewise.
2382         [!POSIX] (S_IFDIR): Likewise.
2383         [!POSIX] (S_IFLNK): Likewise.
2384         [!POSIX] (S_IFSOCK): Likewise.
2385         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2386         variable.
2387         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2388
2389 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2390
2391         * sysdeps/aarch64/memset.S (__memset):
2392         Rewrite of optimized memset.
2393
2394 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2395
2396         [BZ #19703]
2397         Partially async-signal-safe fork for single-threaded processes.
2398         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2399         variable.  Do not acquire and reset/release malloc and libio locks
2400         in single-threaded processes.
2401         * malloc/tst-mallocfork2.c: New file.
2402         * malloc/Makefile (tests): Add it.
2403
2404 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2405
2406         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2407         argument.  Use scratch buffer instead of extend_alloca.
2408         (gethosts): Use scratch buffer instead of extend_alloca.
2409         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2410         extend_alloca.
2411         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2412
2413 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2414
2415         [BZ #20055]
2416         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2417         instead of [__USE_UNIX98].
2418         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2419         [__USE_UNIX98].
2420         * conform/data/termios.h-data (tcgetsid): Do not expect for
2421         [XPG3].
2422         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2423         variable.
2424         (test-xfail-XPG4/termios.h/conform): Likewise.
2425
2426 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2427
2428         Do not use mcheck in localedef.
2429         * locale/programs/localedef.c (turn_on_mcheck)
2430         (__malloc_initialize_hook): Remove.
2431
2432 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2433
2434         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2435         * sysdeps/s390/s390-64/Makefile: Likewise.
2436
2437 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2438
2439         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2440         Remove ifunc-defines.sym.
2441         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2442         Likewise.
2443         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2444         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2445         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2446         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2447         rtld-global-offsets.sym.
2448         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2449         * sysdeps/x86/cpu-features-offsets.sym: This.
2450         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2451         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2452
2453 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2454
2455         [BZ #20073]
2456         * io/sys/stat.h (fchmod): Declare for
2457         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2458         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2459         variable.
2460
2461         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2462         [XPG3] (S_IFSOCK): Likewise.
2463         [XPG3] (S_ISVTX): Likewise.
2464         [XPG3] (S_ISLNK): Likewise.
2465         [XPG3] (S_ISSOCK): Likewise.
2466         [XPG3] (fchmod): Likewise.
2467         [XPG3] (lstat): Likewise.
2468         [XPG3] (mknod): Likewise.
2469
2470         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2471         [XPG3].  Expect type long and XFAIL for [XPG4].
2472         (st_blocks): Likewise.
2473
2474         [BZ #20044]
2475         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2476         (pthread_atfork): New prototype.
2477         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2478         variable.
2479
2480         [BZ #20043]
2481         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2482         prototype.
2483
2484 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2485
2486         [BZ #20017]
2487         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2488         gmtime.
2489
2490 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2491
2492         [BZ #19994]
2493         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2494         flag in _res.options.
2495
2496 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2497
2498         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2499         [XPG3 || XPG4].
2500         (blksize_t): Likewise.
2501         (clockid_t): Likewise.
2502         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2503         variable.
2504         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2505
2506 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2507
2508         * sysdeps/unix/sysv/linux/s390/init-first.c:
2509         Add VDSO_SYMBOL(getcpu).
2510         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2511         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2512         Add VDSO_SYMBOL(getcpu).
2513         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2514         New define HAVE_GETCPU_VSYSCALL.
2515         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2516
2517 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2518
2519         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2520         instead of <sysdeps/x86_64/cacheinfo.c>.
2521         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2522         * sysdeps/x86/cacheinfo.c: Here.
2523
2524 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2525
2526         * malloc/malloc-internal.h: Adjust header file guard.
2527
2528 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2529
2530         [BZ #19787]
2531         * inet/getnameinfo.c (check_sprintf_result): New function.
2532         (CHECKED_SNPRINTF): New macro.
2533         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2534         to the host buffer.
2535         (gni_host_local): Use checked_copy to copy the host name.
2536         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2537         (gni_serv_local): Use checked_copy to copy the service name.
2538         (getnameinfo): Remove unnecessary truncation of result buffers.
2539
2540 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2541
2542         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2543         in case of inet_ntop failure.
2544
2545 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2546
2547         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2548         avoid long lines.
2549         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2550         variables.
2551         (gni_host_inet, gni_host_local): Add comment.
2552         (gni_host): Add comment.  Use temporary to avoid long lines.
2553
2554 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2555
2556         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2557         registers specifiers where general purpose registers specifiers should
2558         have been used.
2559
2560 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2561
2562         [BZ #19779]
2563         CVE-2016-1234
2564         Avoid copying names of directory entries.
2565         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2566         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2567         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2568         (struct readdir_result): New type.
2569         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2570         (GL_READDIR): New macros.
2571         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2572         (convert_dirent, convert_dirent64): New functions.
2573         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2574         convert_dirent64.  Adjust references to the readdir result.
2575         * sysdeps/unix/sysv/linux/i386/glob64.c:
2576         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2577         * posix/bug-glob2.c (LONG_NAME): Define.
2578         (filesystem): Add LONG_NAME.
2579         (my_DIR): Increase the size of room_for_dirent.
2580
2581 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2582
2583         [BZ #20041]
2584         * misc/sys/select.h (__need_timespec): Only define if
2585         [__USE_XOPEN2K].
2586         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2587         variable.
2588         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2589         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2590         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2591
2592 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2593             Segher Boessenkool  <segher@gcc.gnu.org>
2594
2595         [BZ #20004]
2596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2597         (__novec_swapcontext): Add missing load.
2598
2599 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2600
2601         [BZ #20023]
2602         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2603         <time.h>.
2604         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2605         variable.
2606         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2607
2608 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2609
2610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2611         flags CLONE_VM compare.
2612
2613 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2614
2615         [BZ #20031]
2616         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2617         completely empty.
2618
2619 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2620
2621         [BZ #19573]
2622         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2623         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2624         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2625         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2626         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2627         (hesiod_free_list): Mark as hidden.
2628         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2629         res_set, res_get.
2630         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2631         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2632         (hesiod_init): Remove obsolete res_ninit call.
2633         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2634         (hesiod_bind): Do not call init.
2635         (get_txt_records): Use res_mkquery, res_send instead of
2636         res_nmkquery, res_nsend.
2637         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2638         instead of _nss_hesiod_init.
2639         (_nss_hesiod_initgroups_dyn): Likewise.
2640         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2641         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2642         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2643
2644 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2645
2646         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2647         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2648
2649 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2650
2651         * hesiod/hesiod.h: Remove RCS keyword.
2652         * hesiod/hesiod_p.h: Likewise.
2653
2654         * hesiod/hesiod.c: Likewise.
2655
2656 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2657
2658         [BZ #12450]
2659         * locale/iso-639.def: Add Samogitian/sgs.
2660
2661 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2662
2663         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2664
2665         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2666
2667 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2668             Carlos O'Donell  <carlos@redhat.com>
2669
2670         [BZ #19072]
2671         * grp/Makefile (headers): Add grp-merge.h
2672         (routines): Add grp-merge.
2673         * grp/getgrgid_r.c: Include grp-merge.h.
2674         (DEEPCOPY_FN): Define.
2675         (MERGE_FN): Define.
2676         * grp/getgrname_r.c: Include grp-merge.h.
2677         (DEEPCOPY_FN): Define.
2678         (MERGE_FN): Define.
2679         * grp/grp-merge.c: New file.
2680         * grp/grp-merge.h: New file.
2681         * include/grp-merge.h: New file.
2682         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2683         __copy_grp@GLIBC_PRIVATE.
2684         * manual/nss.texi (Actions in the NSS configuration): Describe
2685         return, continue, and merge.
2686         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2687         (DEEPCOPY_FN): Define.
2688         (MERGE_FN): Define.
2689         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2690         (DEEPCOPY_FN): Define.
2691         (MERGE_FN): Define.
2692         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2693         [!MERGE_FN]: Define __merge_einval.
2694         (CHECK_MERGE): Define.
2695         (REENTRANT_NAME): Process merge if do_merge is true.
2696         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2697         (__nss_getent_r): Likewise.
2698         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2699         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2700
2701 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2702
2703         [BZ #20012]
2704         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2705         length to calculate the buffer to read.
2706         (fmemopen_write): Set the buffer position based on bytes written.
2707         (fmemopen_seek): Return EINVAL for invalid whence modes.
2708
2709         [BZ #19957]
2710         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2711         tst-getpid2.
2712         (test): Add tst-clone2.
2713         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2714         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2715         pid/tid fields for CLONE_VM.
2716         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2717         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2718         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2719         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2720         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2721         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2722         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2723         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2725         Likewise.
2726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2727         Likewise.
2728         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2729         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2730         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2731         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2732         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2733         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2734         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2735         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2736
2737 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2738
2739         [BZ #19642]
2740         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2741         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2742         (gni_serv_local, gni_serv): New functions extracted from
2743         getnameinfo.
2744         (getnameinfo): Call gni_host and gni_serv to perform the
2745         processing.  Always free scratch buffer.
2746
2747 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2748
2749         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2750         remaining bytes in the dest string, with zeros.
2751
2752 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2753
2754         [BZ #20010]
2755         CVE-2016-3706
2756         * sysdeps/posix/getaddrinfo.c
2757         (convert_hostent_to_gaih_addrtuple): New function.
2758         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2759         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2760         AF_INET data.
2761
2762 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2763
2764         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2765         callback function gl_readdir.
2766         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2767         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2768         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2769         memcpy to copy the name.
2770         * manual/pattern.texi (Calling Glob): Document requirements for
2771         implementations of the gl_readdir callback function.
2772         * manual/examples/mkdirent.c: New example.
2773         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2774         per the manual guidance.
2775         * posix/tst-gnuglob.c (my_readdir): Likewise.
2776
2777 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2778
2779         [BZ #20014]
2780         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2781         not [__USE_POSIX].
2782         (getchar_unlocked): Likewise.
2783         (putc_unlocked): Likewise.
2784         (putchar_unlocked): Likewise.
2785         (flockfile): Likewise.
2786         (ftrylockfile): Likewise.
2787         (funlockfile): Likewise.
2788         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2789         variable.
2790         (test-xfail-XPG4/stdio.h/conform): Likewise.
2791
2792         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2793         Expect constant.
2794         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2795         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2796         variable.
2797         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2798         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2799
2800         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2801         [__USE_LARGEFILE64] (off64_t): Likewise.
2802         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2803         variable.
2804
2805 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2806
2807         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2808
2809 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2810
2811         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2812         * resolv/res_init.c: Likewise.
2813         * resolv/res_mkquery.c: Likewise.
2814
2815 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2816
2817         * resolv/res_init.c (isascii): Do not define.  Use definition in
2818         <ctype.h>.
2819         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2820         (LOG_AUTH): Remove.
2821         (SPRINTF): Remove, adjust caller.
2822         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2823
2824 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2825
2826         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2827         SUNSECURITY conditional.
2828         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2829
2830 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2831
2832         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2833         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2834         Remove BSD-related preprocessor conditionals.
2835         * conf/portability.h: Remove.
2836
2837 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2838
2839         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2840         * resolv/res_data.c: Likewise.
2841
2842 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2843
2844         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2845         * resolv/res_data.c: Remove code conditional on ultrix.
2846
2847 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2848
2849         * resolv/res_init.c (RFC1535): Do not define.  Remove
2850         RFC1535 preprocessor conditionals.
2851         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2852         because there configuration options which make the resolver
2853         behavior different.
2854
2855 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2856
2857         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2858         RESOLVSORT preprocessor conditionals.
2859         * resolv/nss_dns/dns-host.c: Likewise.
2860         * resolv/res_init.c: Likewise.
2861
2862 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2863
2864         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2865         is never defined.
2866
2867 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2868
2869         * inet/inet_lnaof.c: Remove SCSS keyword.
2870         * inet/inet_mkadr.c: Likewise.
2871         * inet/inet_net.c: Likewise.
2872         * inet/inet_netof.c: Likewise.
2873         * inet/rcmd.c: Likewise.
2874         * inet/rexec.c: Likewise.
2875         * inet/ruserpass.c: Likewise.
2876
2877 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2878
2879         * resolv/inet_addr.c: Remove _LIBC conditionals.
2880         * resolv/res_data.c: Likewise.
2881         * resolv/res_init.c: Likewise.
2882         * resolv/res_mkquery.c: Likewise.
2883         * resolv/res_libc.c: Update comment.
2884         * resolv/README: Update.
2885
2886 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2887
2888         * resolv/gethnamaddr.c: Remove SCSS keyword.
2889         * resolv/herror.c: Likewise.
2890         * resolv/inet_addr.c: Likewise.
2891         * resolv/inet_net_ntop.c: Likewise.
2892         * resolv/inet_net_pton.c: Likewise.
2893         * resolv/inet_neta.c: Likewise.
2894         * resolv/inet_ntop.c: Likewise.
2895         * resolv/inet_pton.c: Likewise.
2896         * resolv/ns_date.c: Remove RCS keyword.
2897         * resolv/ns_name.c: Likewise.
2898         * resolv/ns_netint.c: Likewise.
2899         * resolv/ns_parse.c: Likewise.
2900         * resolv/ns_print.c: Likewise.
2901         * resolv/ns_samedomain.c: Likewise.
2902         * resolv/ns_ttl.c: Likewise.
2903         * resolv/nsap_addr.c: Likewise.
2904         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2905         * resolv/res_data.c: Remove RCS keyword.
2906         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2907         * resolv/res_init.c: Likewise.
2908         * resolv/res_mkquery.c: Likewise.
2909         * resolv/res_query.c: Likewise.
2910         * resolv/res_send.c: Likewise.
2911
2912 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2913
2914         * conform/data/stdio.h-data (fdopen): Expect also for
2915         [XPG3 || XPG4].
2916
2917         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2918         (fseeko): Likewise.
2919         (ftello): Likewise.
2920         (ftrylockfile): Likewise.
2921         (funlockfile): Likewise.
2922         (getc_unlocked): Likewise.
2923         (getchar_unlocked): Likewise.
2924         (putc_unlocked): Likewise.
2925         (putchar_unlocked): Likewise.
2926
2927 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2928
2929         [BZ #19868]
2930         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2931         DNS packet syntax checks (which were not needed before).  Skip
2932         over non-PTR records.
2933
2934 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2935
2936         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2937         definition.  Include <stddef.h> instead.
2938
2939 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2940
2941         [BZ #19831]
2942         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2943         function.
2944         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2945         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2946
2947 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2948
2949         [BZ #19862]
2950         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2951         (getanswer_r): Do not call syslog.
2952         (gaih_getanswer_slice): Likewise.
2953         * resolv/gethnamaddr.c (AskedForGot): Remove.
2954         (getanswer): Do not call syslog.
2955         (gethostbyaddr): Likewise.
2956
2957 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2958
2959         * conform/data/signal.h-data (union sigval): Expect also if
2960         [XOPEN2K].
2961         (struct sigevent): Likewise.
2962         (SIGEV_NONE): Likewise.
2963         (SIGEV_SIGNAL): Likewise.
2964         (SIGEV_THREAD): Likewise.
2965         (SIGRTMIN): Likewise.
2966         (SIGRTMAX): Likewise.
2967         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2968         variable.
2969         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2970
2971 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2972
2973         [BZ #19830]
2974         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2975         (gaih_getanswer_slice): Likewise.
2976         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2977         Also check for availability of RR metadata.
2978
2979 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2980
2981         [BZ #19825]
2982         * resolv/res_send.c (send_vc): Remove early *resplen2
2983         initialization.  Set *resplen2 on socket error.  Call
2984         close_and_return_error for other errors.
2985
2986 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2987
2988         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2989         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2990         (SCM_IUCV_TRGCLS): New define.
2991
2992 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2993
2994         [BZ #20005]
2995         * libio/fmemopen.c (fmemopen_write): Update internal position after
2996         write.
2997         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2998         * stdio-common/tst-fmemopen4.c: New file..
2999
3000 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3001
3002         [BZ #19996]
3003         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3004         not [__USE_XOPEN2K].
3005         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3006         variable.
3007
3008         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3009         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3010         variable.
3011
3012         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3013         [__USE_XOPEN2K8].
3014         [__USE_LARGEFILE64] (off64_t): Likewise.
3015         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3016         variable.
3017
3018 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3019
3020         [BZ #19989]
3021         * libio/stdio.h (cuserid): Do not declare if
3022         [__USE_XOPEN2K && !__USE_GNU].
3023         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3024         variable.
3025
3026 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3027
3028         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3029         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3030         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3031         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3032         ifunc'ed strcspn.
3033         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3034         [EALIGN]: Removed.
3035         [END]: Likewise
3036         [STRSPN]: Define instead of the above to control symbol name.
3037         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3038         New file.
3039         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3040         Likewise.
3041         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3042         Likewise.
3043         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3044         Likewise.
3045         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3046         [INITIAL_MASK]: New macro.
3047         [STRCSPN]: Likewise.
3048         [UPDATE_MASK]: Likewise.
3049         [USE_AS_STRCSPN]: Lisewise.
3050
3051 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3052
3053         [BZ #19931]
3054         * stdio-common/tst-vfprintf-width-prec.c: New file.
3055         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3056         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3057         (generated): Add mtrace-related files.
3058         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3059         (tst-%-mem.out): New pattern rule, replaces
3060         tst-printf-bz18872-mem.out.
3061         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3062         specifier, deallocate any previously allocated work buffer.
3063
3064 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3065
3066         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3067         Add nop before __startcontext, add explaining comments.
3068
3069 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3070
3071         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3072         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3073         completely different API.
3074
3075         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3076         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3077         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3078         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3079         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3080         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3081         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3082         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3083         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3084         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3085
3086 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3087
3088         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3089
3090 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3091
3092         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3093         when it is the default of 0.
3094
3095 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3096
3097         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3098         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3099         (sysdep_routines): Add new strcasestr targets.
3100         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3101         (__libc_ifunc_impl_list): Likewise.
3102         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3103         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3104         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3105         * sysdeps/powerpc/powerpc64/power8/Makefile:
3106         New file to add strcasestr-ppc64 to sysdep_routines.
3107         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3108         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3109
3110 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3111
3112         * benchtests/Makefile (wcsmbs-benchset): Include only for
3113         native builds and runs.
3114         (LOCALES): Likewise.
3115         (bench-build): Build timing-type here instead of the bench
3116         target.  Generate locale only for native builds.
3117         * benchtests/README: Add note for cross-building.
3118
3119         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3120
3121         * benchtests/README: Update README to include instructions on
3122         using bench-build.
3123
3124         * Makefile.in (bench-build): New target.
3125         * Rules (PHONY): Add bench-build target.
3126         * benchtests/Makefile (bench): Depend on bench-build.
3127         (bench-build): New target.
3128
3129 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3130
3131         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3132         profil_reply_port.
3133         (profile_waiter): Do not initialize profil_reply_port.
3134         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3135         frequency instead of tick length in us.
3136
3137 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3138
3139         [BZ #18712]
3140         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3141         (__old_mempcpy_small): Likewise.
3142         (__old_strcpy_small): Likewise.
3143         (__old_stpcpy_small): Likewise.
3144         (__old_strpbrk_c2): Fix compat symbol name.
3145         (__old_strpbrk_c3): Likewise.
3146         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3147         (__mempcpy_small): Remove.
3148         (__strcpy_small): Remove.
3149         (__stpcpy_small): Remove.
3150
3151 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3152
3153         [BZ #19400]
3154         * locale/iso-639.def: Add the Talossan/tzl language.
3155
3156 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3157
3158         [BZ #16983]
3159         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3160         comment.  Add "ln" to strchr check on postal_fmt.
3161
3162 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3163
3164         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3165         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3166         tel_dom_fmt.
3167
3168 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3169
3170         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3171         (sysdep_routines): Added __strlen_power8.
3172         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3173         __strlen_power8 entry.
3174         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3175         Implementation for POWER8.
3176         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3177         for __strlen_power8.
3178         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3179         Implementation for POWER8.
3180
3181 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3182
3183         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3184
3185 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3186
3187         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3188         Goldmont and Airmont processors.
3189
3190 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3191
3192         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3193         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3194         (__STRING2_SMALL_GET32): Remove.
3195         (memset): Remove.
3196         (__memset_1): Remove.
3197         (__memset_gc): Remove.
3198         (__mempcpy): Remove.
3199         (mempcpy): Remove.
3200         (__mempcpy_args): Remove.
3201         (strchr): Remove.
3202         (strcpy): Remove.
3203         (strcpy_args): Remove.
3204         (__stpcpy_args): Remove.
3205         (__strcmp_cc): Remove.
3206         (__strcmp_gc): Remove.
3207         (strstr): Remove.
3208
3209 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3210
3211         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3212         * nis/nis_call.c (nis_server_cache_add): Likewise.
3213
3214 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3215
3216         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3217
3218 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3219
3220         * malloc/arena.c (__malloc_fork_lock_parent)
3221         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3222         internal_function attribute.
3223
3224 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3225
3226         * stdio-common/printf_fp.c (__printf_fp_l):
3227         Rename ___printf_fp_l to __printf_fp_l and
3228         remove strong alias. Use libc_hidden_def instead
3229         of ldbl_hidden_def macro.
3230
3231 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3232
3233         Remove malloc hooks from fork handler.  They are no longer needed
3234         because malloc runs right before fork, and no malloc calls from
3235         other fork handlers are not possible anymore.
3236         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3237         declarations.
3238         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3239         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3240         (atfork_recursive_cntr): Remove.
3241         (__malloc_fork_lock_parent): Do not override malloc hooks and
3242         thread_arena.
3243         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3244         thread_arena.
3245         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3246         thread_arena instead of save_arena.
3247
3248 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3249
3250         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3251         (thread_atfork, thread_atfork_static): Remove.
3252         * sysdeps/mach/hurd/malloc-machine.h:
3253         (thread_atfork, thread_atfork_static): Remove.
3254
3255 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3256
3257         [BZ #19431]
3258         Run the malloc fork handler as late as possible to avoid deadlocks.
3259         * malloc/malloc-internal.h: New file.
3260         * malloc/malloc.c: Include it.
3261         * malloc/arena.c (ATFORK_MEM): Remove.
3262         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3263         Update comment.
3264         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3265         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3266         Remove outdated comment.
3267         (ptmalloc_init): Do not call thread_atfork.  Remove
3268         thread_atfork_static.
3269         * malloc/tst-malloc-fork-deadlock.c: New file.
3270         * Makefile (tests): Add tst-malloc-fork-deadlock.
3271         (tst-malloc-fork-deadlock): Link against libpthread.
3272         * manual/memory.texi (Aligned Memory Blocks): Update safety
3273         annotation comments.
3274         * sysdeps/nptl/fork.c (__libc_fork): Call
3275         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3276         __malloc_fork_unlock_child.
3277         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3278
3279 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3280
3281         [BZ #19613]
3282         Remove union wait.
3283         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3284         (w_stopsig, w_stopval): Remove.
3285         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3286         stat_loc argument.
3287         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3288         (__WAIT_STATUS_DEFN): Remove.
3289         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3290         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3291         (wait, wait3, wait4): Use int * for the stat_loc argument.
3292         * posix/wait.c (__wait): Likewise.
3293         * posix/wait3.c (__wait3): Likewise.
3294         * posix/wait4.c (__wait4): Likewise.
3295         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3296         (__WAIT_STATUS_DEFN): Remove.
3297         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3298         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3299         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3300         argument.
3301         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3302         * sysdeps/posix/wait3.c (__wait3): Likewise.
3303         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3304         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3305         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3306         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3307         stat_loc argument.
3308         * manual/process.texi (BSD Wait Functions): Remove union wait.
3309
3310 2016-04-13  Andreas Schwab  <schwab@suse.de>
3311
3312         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3313         (test-extras): Add tst-tlsalign-vars.
3314         * math/Makefile: Wrap long lines.
3315         (libm-vec-test-wrappers): Define.
3316         (test-extras): Add $(libm-vec-test-wrappers).
3317         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3318         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3319         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3320         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3321         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3322         (extra-test-objs): Add corresponding objects.
3323
3324 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3325
3326         [BZ #19928]
3327         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3328         New.
3329         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3330         times of shared cache size.
3331         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3332         (VMOVNT): New.
3333         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3334         (VMOVNT): Likewise.
3335         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3336         (VMOVNT): Likewise.
3337         (VMOVU): Changed to movups for smaller code sizes.
3338         (VMOVA): Changed to movaps for smaller code sizes.
3339         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3340         comments.
3341         (PREFETCH): New.
3342         (PREFETCH_SIZE): Likewise.
3343         (PREFETCHED_LOAD_SIZE): Likewise.
3344         (PREFETCH_ONE_SET): Likewise.
3345         Rewrite to use forward and backward loops, which move 4 vector
3346         registers at a time, to support overlapping addresses and use
3347         non temporal store if size is above the threshold and there is
3348         no overlap between destination and source.
3349
3350 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3351
3352         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3353         Include dl-vdso.
3354         * sysdeps/unix/sysv/linux/mips/Versions: Add
3355         __vdso_clock_gettime.
3356         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3357         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3358         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3359         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3360         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3361         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3362         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3363         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3364         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3365
3366 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3367
3368         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3369         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3370         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3371         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3372         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3373         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3376         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3377         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3378         syscalls generation.
3379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3380         [__NR_pwrite64] (__NR_write): Remove define.
3381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3382         [__NR_pwrite64] (__NR_write): Remove define.
3383         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3384         Remove define.
3385         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3386         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3387         Remove define.
3388         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3389         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3390         Linux implementation as base.
3391         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3392
3393         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3394         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3395         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3396         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3399         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3400         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3401         syscall generation.
3402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3403         [__NR_pread64] (__NR_pread): Remove define.
3404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3405         [__NR_pread64] (__NR_pread): Likewise.
3406         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3407         define.
3408         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3409         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3410         Remove define.
3411         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3412         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3413         Linux implementation as base.
3414         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3415         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3416         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3417
3418         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3419         definition.
3420         (__ALIGNMENT_COUNT): Likewise.
3421         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3422         (__ALIGNMENT_COUNT): Likewise.
3423         (SYSCALL_LL): New define.
3424         (SYSCALL_LL64): Likewise.
3425         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3426         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3427         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3428         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3429
3430         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3431         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3432         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3433         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3434         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3435         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3436
3437 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3438
3439         [BZ #19865]
3440         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3441         original buffer before retry.
3442
3443 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3444
3445         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3446         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3447         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3448         GLRO(dl_auxv) list.
3449         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3450         including <ldsodefs.h>.
3451         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3452
3453 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3454
3455         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3456         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3457         $(CPPFLAGS).
3458
3459 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3460
3461         [BZ #17950]
3462         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3463         Add -mfpmath=387.
3464
3465 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3466
3467         * sysdeps/i386/configure.ac: Change == to = when calling test.
3468         * sysdeps/x86_64/configure.ac: Likewise.
3469         * sysdeps/i386/configure: Regenerated.
3470         * sysdeps/x86_64/configure: Likewise.
3471
3472 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3473
3474         [BZ #16137]
3475         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3476         * benchtests/bench-strcoll.c (input_files): Likewise.
3477         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3478         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3479         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3480
3481 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3482
3483         [BZ #19929]
3484         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3485         [__USE_XOPEN2K8 && !__USE_GNU].
3486         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3487         variable.
3488
3489         [BZ #19925]
3490         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3491         define if [!__USE_MISC && __USE_XOPEN2K].
3492         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3493         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3494         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3495         Likewise.
3496         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3497         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3498         variable.
3499         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3500
3501 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3502
3503         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3504         (sysdep_routines): Add new strspn targets.
3505         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3506         (__libc_ifunc_impl_list): Add strspn.
3507         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3508         New file.
3509         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3510         Likewise.
3511         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3512         Likewise.
3513         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3514         Likewise.
3515
3516 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3517
3518         * misc/hsearch_r.c: Include <limits.h>.
3519
3520 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3521
3522         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3523
3524 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3525
3526         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3527         (MEMCPY_SYMBOL): New.
3528         (MEMPCPY_SYMBOL): Likewise.
3529         (MEMMOVE_CHK_SYMBOL): Likewise.
3530         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3531         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3532         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3533         Provide alias for memcpy in libc.a and ld.so.
3534
3535 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3536
3537         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3538         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3539         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3540         Disabled fro now.
3541         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3542         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3543
3544 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3545
3546         * benchtests/Makefile (string-benchset): Add memcpy-large,
3547         memmove-large and memset-large.
3548         * benchtests/bench-memcpy-large.c: New file.
3549         * benchtests/bench-memmove-large.c: Likewise.
3550         * benchtests/bench-memmove-large.c: Likewise.
3551         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3552
3553 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3554
3555         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3556         32-bit displacement to avoid long nop between instructions.
3557
3558 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3559
3560         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3561         a comment on VMOVU and VMOVA.
3562
3563 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3564
3565         [BZ #19633]
3566         Use specified locale for number formatting in strfmon_l.
3567         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3568         (__nl_lookup_word): New inline functions.
3569         * include/printf.h (__print_fp_l): Declare.
3570         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3571         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3572         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3573         (___printf_fp): New function.
3574         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3575         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3576         * stdlib/tst-strfmon_l.c (do_test): New test.
3577         * stdlib/Makefile (tests): Add kt.
3578         (LOCALES): Build additional locales.
3579         (tst-strfmon_l.out): Require locales.
3580
3581 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3582
3583         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3584         if not in libc.
3585         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3586         Likewise.
3587         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3588         Likewise.
3589         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3590         Likewise.
3591
3592 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3593
3594         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3595         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3596         with unaligned_erms.
3597         (__memmove_erms): Skip if source == destination.
3598         (__memmove_unaligned_erms): Don't check source == destination
3599         first.
3600
3601 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3602
3603         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3604         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3605
3606 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3607
3608         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3609         * string/strspn.c (strspn): Likewise.
3610
3611 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3612
3613         * benchtests/bench-memset.c (do_test): Support 64-byte
3614         alignment.
3615         (test_main): Test 64-byte alignment.
3616
3617 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3618
3619         * benchtests/bench-memmove.c (test_main): Test 64-byte
3620         alignment.
3621
3622 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3623
3624         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3625
3626 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3627
3628         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3629         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3630         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3631
3632         * string/strpbrk.c (strpbrk): Rewrite function.
3633         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3634         (__strpbrk_c2): Likewise.
3635         (__strpbrk_c3): Likewise.
3636         * string/string-inlines.c
3637         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3638         Likewise.
3639         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3640         Likewise.
3641
3642         * string/strspn.c (strcspn): Rewrite function.
3643         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3644         (__strspn_c1): Remove inline function.
3645         (__strspn_c2): Likewise.
3646         (__strspn_c3): Likewise.
3647         * string/string-inlines.c
3648         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3649         compatibility symbol.
3650         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3651         Likewise.
3652         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3653         Likewise.
3654         * string/string-inlines.c: Include generic version.
3655
3656 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3657             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3658
3659         * string/Version (libc): Add GLIBC_2.24.
3660         * string/strcspn.c (strcspn): Rewrite function.
3661         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3662         (__strcspn_c1): Remove inline function.
3663         (__strcspn_c2): Likewise.
3664         (__strcspn_c3): Likewise.
3665         * string/string-inline.c
3666         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3667         compatibility symbol.
3668         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3669         Likewise.
3670         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3671         Likewise.
3672         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3673
3674 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3675
3676         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3677         Use ahi instead of aghi to adjust stack pointer.
3678
3679 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3680
3681         [BZ #19853]
3682         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3683         TEST to take significant digits as second parameter.
3684         [TEST]: Redefine in terms of TEST_N taking 30
3685         significant digits.
3686         (do_test): Add test case to demonstrate precision
3687         failure in the ldbl-128ibm printf.
3688         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3689         (__mpn_extract_long_double): Carry 7 extra intermediate
3690         bits of precision to aide computing difference when
3691         signs differ.
3692
3693 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3694
3695         [BZ #19881]
3696         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3697         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3698         memset-avx512-unaligned-erms.
3699         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3700         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3701         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3702         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3703         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3704         __memset_sse2_unaligned_erms, __memset_erms,
3705         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3706         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3707         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3708         file.
3709         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3710         Likewise.
3711         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3712         Likewise.
3713         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3714         Likewise.
3715
3716 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3717
3718         [BZ #19776]
3719         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3720         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3721         memmove-avx512-unaligned-erms.
3722         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3723         (__libc_ifunc_impl_list): Test
3724         __memmove_chk_avx512_unaligned_2,
3725         __memmove_chk_avx512_unaligned_erms,
3726         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3727         __memmove_chk_sse2_unaligned_2,
3728         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3729         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3730         __memmove_avx512_unaligned_erms, __memmove_erms,
3731         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3732         __memcpy_chk_avx512_unaligned_2,
3733         __memcpy_chk_avx512_unaligned_erms,
3734         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3735         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3736         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3737         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3738         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3739         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3740         __mempcpy_chk_avx512_unaligned_erms,
3741         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3742         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3743         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3744         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3745         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3746         __mempcpy_erms.
3747         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3748         file.
3749         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3750         Likwise.
3751         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3752         Likwise.
3753         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3754         Likwise.
3755
3756 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3757
3758         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3759         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3760         (La_s390_64_regs): Likewise.
3761         (La_s390_32_retval): Append vector register lrv_v24.
3762         (La_s390_64_retval): Likeweise.
3763         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3764         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3765         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3766         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3767
3768 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3769
3770         [BZ #19916]
3771         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3772         to create a non-vector/vector version for _dl_runtime_resolve and
3773         _dl_runtime_profile. Move implementation to ...
3774         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3775         (_dl_runtime_resolve) Save and restore fpr/vrs.
3776         (_dl_runtime_profile) Save and restore vrs and fix some issues
3777         if _dl_call_pltexit is called.
3778         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3779         Choose the correct resolver function if running on a machine with vx.
3780         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3781         to create a non-vector/vector version for _dl_runtime_resolve and
3782         _dl_runtime_profile. Move implementation to ...
3783         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3784         (_dl_runtime_resolve) Save and restore fpr/vrs.
3785         (_dl_runtime_profile) Save and restore vrs and fix some issues
3786         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3787         Choose the correct resolver function if running on a machine with vx.
3788
3789 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3790
3791         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3792
3793 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3794
3795         [BZ #19509]
3796         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3797         skip_map != NULL.
3798         * elf/tst-dlsym-error.c: New file.
3799         * elf/Makefile (tests): Add tst-dlsym-error.
3800         (tst-dlsym-error): Link against libdl.
3801
3802 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3803
3804         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3805         (__ASSUME_FUTIMESAT): Remove macro.
3806         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3807
3808 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3809
3810         [BZ #19879]
3811         CVE-2016-3075
3812         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3813         copy name.
3814
3815 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3816
3817         [BZ #19837]
3818         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3819         error if parse_line fails.
3820
3821 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3822
3823         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3824         (index_cpu_ERMS): Likewise.
3825         (reg_ERMS): Likewise.
3826
3827 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3828
3829         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3830         PER_LINUX_FDPIC): Add.
3831
3832 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3833
3834         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3835         memcpy-avx512-no-vzeroupper.
3836         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3837         to ...
3838         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3839         (MEMCPY): Don't define.
3840         (MEMCPY_CHK): Likewise.
3841         (MEMPCPY): Likewise.
3842         (MEMPCPY_CHK): Likewise.
3843         (MEMPCPY_CHK): Renamed to ...
3844         (__mempcpy_chk_avx512_no_vzeroupper): This.
3845         (MEMPCPY_CHK): Renamed to ...
3846         (__mempcpy_chk_avx512_no_vzeroupper): This.
3847         (MEMCPY_CHK): Renamed to ...
3848         (__memmove_chk_avx512_no_vzeroupper): This.
3849         (MEMCPY): Renamed to ...
3850         (__memmove_avx512_no_vzeroupper): This.
3851         (__memcpy_avx512_no_vzeroupper): New alias.
3852         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3853
3854 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3855
3856         [BZ #18858]
3857         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3858         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3859         and mempcpy-avx512-no-vzeroupper.
3860         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3861         New.
3862         (MEMPCPY): Likewise.
3863         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3864         (MEMPCPY_CHK): New.
3865         (MEMPCPY): Likewise.
3866         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3867         (MEMPCPY): Likewise.
3868         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3869         (MEMPCPY): Likewise.
3870         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3871         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3872         Likewise.
3873         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3874         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3875
3876 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3877              Amit Pawar  <Amit.Pawar@amd.com>
3878
3879         [BZ #19583]
3880         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3881         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3882         processors.  Set Fast_Copy_Backward for AMD Excavator
3883         processors.
3884         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3885         New.
3886         (index_arch_Fast_Unaligned_Copy): Likewise.
3887         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3888         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3889
3890 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3891
3892         [BZ #19791]
3893         * resolv/res_send.c (close_and_return_error): New function.
3894         (send_dg): Initialize *resplen2 after reopen failure.  Call
3895         close_and_return_error for error returns.  On error paths without
3896         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3897         successful return.
3898
3899 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3900
3901         [BZ# 19860]
3902         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3903         zero if the compiler does not provide the AVX512F bit.
3904
3905 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3906
3907         [BZ #19848]
3908         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3909         from 8 to 4.
3910         (__ieee754_powl): Compare integer exponent against 4 not 8.
3911         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3912         from 8 to 4.
3913         (__ieee754_powl): Compare integer exponent against 4 not 8.
3914         * math/auto-libm-test-in: Add more tests of pow.
3915         * math/auto-libm-test-out: Regenerated.
3916         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3918
3919 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3920
3921         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3922         Make code unconditional.
3923         [!__NR_utimensat]: Remove conditional code.
3924         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3925         Make code unconditional.
3926         [!__NR_utimensat]: Remove conditional code.
3927         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3928         Make code unconditional.
3929         [!__NR_utimensat]: Remove conditional code.
3930
3931 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3932
3933         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3934         Make code unconditional.
3935
3936 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3937
3938         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3939         call-clobbered %eax on retry path.
3940         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3941
3942 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3943
3944         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3945         Don't set %rcx twice before "rep movsb".
3946
3947 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3948
3949         [BZ #19583]
3950         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3951         inline.  Check family before setting family, model and
3952         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3953         bits here.
3954         (init_cpu_features): Replace HAS_CPU_FEATURE and
3955         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3956         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3957         for Intel processors with usable AVX2.  Call get_common_indeces
3958         for other processors with family == NULL.
3959         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3960         (CPU_FEATURES_ARCH_P): Likewise.
3961         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3962         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3963
3964 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3965
3966         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3967         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3968         $(shared-thread-library) instead of hardcoding the path to libpthread.
3969
3970 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3971
3972         * sysdeps/unix/sysv/linux/kernel-features.h
3973         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3974         * sysdeps/unix/sysv/linux/getdents.c
3975         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3976         [!have_no_getdents64_defined]: Likewise.
3977         (__GETDENTS): Remove __have_no_getdents64 conditional.
3978
3979 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3980
3981         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3982         Remove macro.
3983         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3984         <kernel-features.h>.
3985         (signalfd) [__NR_signalfd4]: Make code unconditional.
3986         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3987
3988 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3989
3990         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3991         style.
3992
3993 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3994
3995         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3996         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3997         __pthread_unwind.
3998         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3999         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4000         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4001         (__condvar_cleanup1): Likewise.
4002
4003 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4004
4005         [BZ #19822]
4006         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4007         move it to the final $@ location.
4008
4009 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4010
4011         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4012         access where posix_spawn success and pid argument is null.
4013         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4014         success case.
4015
4016 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4017
4018         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4019
4020         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4021
4022         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4023         and __fcntl.
4024         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4025         __fcntl only.
4026         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4027         adding attribute_hidden to __open and __fcntl.
4028
4029         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4030         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4031         depend on libc-modules.h,
4032         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4033
4034 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4035
4036         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4037         Remove macro.
4038         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4039         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4040         entry.
4041
4042         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4043         Remove macro.
4044         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4045         include <kernel-features.h>.
4046         [!__ASSUME_FALLOCATE]: Remove conditional code.
4047         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4048
4049 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4050
4051         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4052         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4053         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4054         (_ZGVdN4v_cos_avx2): Likewise.
4055         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4056         (_ZGVdN4v_cos): Likewise.
4057         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4058         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4059         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4060         (_ZGVdN4v_exp_avx2): Likewise.
4061         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4062         (_ZGVdN4v_exp): Likewise.
4063         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4064         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4065         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4066         (_ZGVdN4v_log_avx2): Likewise.
4067         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4068         (_ZGVdN4v_log): Likewise.
4069         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4070         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4071         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4072         (_ZGVdN4vv_pow_avx2): Likewise.
4073         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4074         (_ZGVdN4vv_pow): Likewise.
4075         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4076         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4077         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4078         (_ZGVdN4v_sin_avx2): Likewise.
4079         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4080         (_ZGVdN4v_sin): Likewise.
4081         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4082         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4083         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4084         (_ZGVdN4vvv_sincos_avx2): Likewise.
4085         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4086         (_ZGVdN4vvv_sincos): Likewise.
4087         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4088         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4089         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4090         (_ZGVbN4v_cosf_sse4): Likewise.
4091         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4092         (_ZGVdN8v_cosf_avx2): Likewise.
4093         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4094         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4095         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4096         (_ZGVbN4v_expf_sse4): Likewise.
4097         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4098         (_ZGVdN8v_expf_avx2): Likewise.
4099         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4100         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4101         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4102         (_ZGVbN4v_logf_sse4): Likewise.
4103         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4104         (_ZGVdN8v_logf_avx2): Likewise.
4105         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4106         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4107         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4108         (_ZGVbN4vv_powf_sse4): Likewise.
4109         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4110         (_ZGVdN8vv_powf_avx2): Likewise.
4111         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4112         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4113         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4114         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4115         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4116         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4117         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4118         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4119         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4120         (_ZGVbN4v_sinf_sse4): Likewise.
4121         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4122         (_ZGVdN8v_sinf_avx2): Likewise.
4123         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4124         Use JUMPTARGET to call callee.
4125         (WRAPPER_IMPL_SSE2_ff): Likewise.
4126         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4127         (WRAPPER_IMPL_AVX): Likewise.
4128         (WRAPPER_IMPL_AVX_ff): Likewise.
4129         (WRAPPER_IMPL_AVX_fFF): Likewise.
4130         (WRAPPER_IMPL_AVX512): Likewise.
4131         (WRAPPER_IMPL_AVX512_ff): Likewise.
4132         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4133         Likewise.
4134         (WRAPPER_IMPL_SSE2_ff): Likewise.
4135         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4136         (WRAPPER_IMPL_AVX): Likewise.
4137         (WRAPPER_IMPL_AVX_ff): Likewise.
4138         (WRAPPER_IMPL_AVX_fFF): Likewise.
4139         (WRAPPER_IMPL_AVX512): Likewise.
4140         (WRAPPER_IMPL_AVX512_ff): Likewise.
4141         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4142
4143 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4144
4145         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4146         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4147         qualifier.
4148         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4149         internal_function qualifiers.
4150
4151 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4152
4153         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4154         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4155         * math/atest-exp.c (exp_mpn): Mark chk unused.
4156         * math/atest-exp2.c (exp_mpn): Likwise.
4157         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4158         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4159
4160 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4161
4162         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4163         Remove macro.
4164         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4165         <kernel-features.h>.
4166         [__NR_ppoll]: Make code unconditional.
4167         [!__ASSUME_PPOLL]: Remove conditional code.
4168
4169         * sysdeps/unix/sysv/linux/kernel-features.h
4170         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4171         (__ASSUME_ACCEPT4): Likewise.
4172         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4173         Define.
4174         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4175         Likewise.
4176         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4177         Likewise.
4178         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4179         Likewise.
4180         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4181         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4182         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4183         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4184         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4185         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4186         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4187         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4188         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4189         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4190         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4191         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4192         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4193         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4194         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4195         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4196         Likewise.
4197         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4198         Likewise.
4199         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4200         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4201         0x040300].
4202         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4203         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4204         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4205         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4206         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4207         0x030300].
4208         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4209         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4210         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4211         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4212         0x040300].
4213         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4214         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4215         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4216         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4217         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4218         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4219         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4220         0x030300].
4221         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4222         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4223         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4224         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4225         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4226         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4227         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4228         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4229         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4230         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4231         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4232         0x040300].
4233         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4234         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4235         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4236         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4237         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4238         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4239         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4240         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4241         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4242         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4243         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4244         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4245         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4246         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4247         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4248         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4249         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4250         Likewise.
4251         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4252         Likewise.
4253
4254 2016-03-15  Andreas Schwab  <schwab@suse.de>
4255
4256         [BZ #19257]
4257         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4258         statp->_u._ext.nscount as loop count.
4259
4260 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4261
4262         * math/test-signgam-finite-c99.c: Also #undef
4263         __LIBC_INTERNAL_MATH_INLINES.
4264         * math/test-signgam-main.c: Likewise.
4265
4266 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4267
4268         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4269         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4270         (MADV_FREE): Likewise.
4271         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4272         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4273         EPOLLEXCLUSIVE.
4274
4275 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4276
4277         * timezone/README: Remove mention of checktab.awk. Mention wiki
4278         SharedSourceFiles.
4279
4280 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4281
4282         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4283         WUNTRACED.
4284
4285 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4286
4287         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4288         order to match the type of p when calling atomic_exchange_acq().
4289
4290 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4291
4292         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4293         cfi_offset calls.
4294         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4295         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4296         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4297         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4298         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4299
4300 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4301
4302         * timezone/checktab.awk: Removed.
4303
4304 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4305
4306         * manual/math.texi (Errors in Math Functions): Document relaxed
4307         accuracy goals for IBM long double.
4308         * math/libm-test.inc (test_exceptions): Always allow spurious
4309         "underflow" and "inexact" exceptions for IBM long double.
4310
4311 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4312
4313         [BZ #19762]
4314         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4315         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4316         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4317         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4318         (bit_arch_*): This for feature array.
4319         (bit_*): Renamed to ...
4320         (bit_cpu_*): This for cpu array.
4321         (index_*): Renamed to ...
4322         (index_arch_*): This for feature array.
4323         (index_*): Renamed to ...
4324         (index_cpu_*): This for cpu array.
4325         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4326         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4327         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4328         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4329         bit_##name with index_cpu_##name and bit_cpu_##name.
4330         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4331         bit_##name with index_arch_##name and bit_arch_##name.
4332
4333 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4334
4335         [BZ #19792]
4336         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4337         Terminate FDE before return label.
4338
4339 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4340
4341         [BZ #19790]
4342         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4343         (rintl): Define as macro.
4344         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4345         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4346         of fesetround.  Ensure results are evaluated before end of scope.
4347         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4348         USE_AS_NEARBYINTL and include s_rintl.c.
4349         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4350         Disable exception traps in new environment.
4351         (libc_feholdsetround_ppc_ctx): Likewise.
4352
4353 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4354
4355         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4356         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4357         (tst_audit10_aux) [__AVX512F__]: ... here.
4358
4359 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4360
4361         * include/sys/auxv.h: New file.
4362
4363 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4364
4365         [BZ #19759]
4366         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4367
4368 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4369
4370         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4371         operand modifier.
4372         (feclearexcept): Likewise.
4373
4374 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4375
4376         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4377         to reflect the entire 32-bit HWCAP.
4378         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4379         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4380
4381 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4382
4383         [BZ #19783]
4384         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4385         $(test-via-rtld-prefix).
4386         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4387
4388 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4389
4390         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4391         union wait.  Report any non-zero exit status as error.
4392
4393 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4394
4395         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4396         configured with --enable-hardcoded-path-in-tests.
4397
4398 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4399
4400         [BZ #19677]
4401         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4402         (__ieee754_remainderl): Put zero low parts in canonical form.
4403         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4404         file.  Based on
4405         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4406         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4407         with wrapper round test-fmodrem-ldbl-128ibm.c.
4408         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4409         file.
4410         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4411         Likewise.
4412         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4413         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4414
4415 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4416
4417         [BZ #19610]
4418         * elf/ldconfig.c (opt_link): Update comment.
4419         (options): Update help string for option -X.
4420         (search_dir): Unlink stale symbolic link only if updating symbolic
4421         links.
4422         * elf/tst-ldconfig-X.sh: New file.
4423         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4424         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4425
4426 2016-03-07  Andreas Schwab  <schwab@suse.de>
4427
4428         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4429         needed arguments.
4430
4431 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4432
4433         [BZ #15333]
4434         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4435         to lstat64.
4436
4437 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4438
4439         * libio/filedoalloc.c (isatty): Remove.
4440         (local_isatty): Add comment.  Call __isatty directly.
4441         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4442         * libio/wfiledoalloc.c (isatty): Remove.
4443         (_IO_wfile_doallocate): Update comment.
4444
4445 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4446
4447         [BZ #19269]
4448         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4449         tst-audit4-aux.o.
4450         (tst-audit10): Depend on tst-audit10-aux.o.
4451         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4452         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4453         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4454         instead of inline AVX code.
4455         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4456         instead of inline AVX512 code.
4457         * sysdeps/x86_64/tst-audit4-aux.c: New file
4458         * sysdeps/x86_64/tst-audit10-aux.c: New file
4459
4460         [BZ #19648]
4461         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4462
4463 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4464
4465         [BZ #14750]
4466         [BZ #10354]
4467         [BZ #18433]
4468         * include/sched.h (__clone): Add hidden prototype.
4469         (__clone2): Likewise.
4470         * include/unistd.h (__dup): Likewise.
4471         * posix/Makefile (tests): Add tst-spawn2.
4472         * posix/tst-spawn2.c: New file.
4473         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4474         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4475         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4476         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4477         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4478         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4479         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4480         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4481         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4482         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4483         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4485         Likewise.
4486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4487         Likewise.
4488         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4489         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4490         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4491         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4492         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4493         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4494         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4495         * sysdeps/unix/sysv/linux/nptl-signals.h
4496         (____nptl_is_internal_signal): New function.
4497         * sysdeps/unix/sysv/linux/spawni.c: New file.
4498
4499         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4500         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4501         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4502         * posix/tst-execvp2.c (do_test): Likewise.
4503         * posix/tst-execvp3.c (do_test): Likewise.
4504         * posix/tst-execvp4.c (do_test): Likewise.
4505         * posix/tst-execvpe1.c: New file.
4506         * posix/tst-execvpe2.c: Likewise.
4507         * posix/tst-execvpe3.c: Likewise.
4508         * posix/tst-execvpe4.c: Likewise.
4509         * posix/tst-execvpe5.c: Likewise.
4510         * posix/tst-execvpe6.c: Likewise.
4511
4512         [BZ #19534]
4513         * posix/execl.c (execl): Remove dynamic memory allocation.
4514         * posix/execle.c (execle): Likewise.
4515         * posix/execlp.c (execlp): Likewise.
4516
4517 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4518
4519         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4520         Replace .text with .text.avx512.
4521         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4522         Likewise.
4523
4524 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4525
4526         * sysdeps/generic/libnsl.abilist: New file.
4527         * sysdeps/generic/libutil.abilist: New file.
4528
4529 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4530
4531         [BZ #19762]
4532         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4533         HAS_ARCH_FEATURE with Fast_Rep_String.
4534         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4535         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4536         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4537         Likewise.
4538         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4539         Likewise.
4540         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4541         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4542         Likewise.
4543         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4544         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4545         Likewise.
4546
4547 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4548
4549         [BZ #19745]
4550         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4551         with *%rax in call.
4552
4553 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4554
4555         [BZ #19745]
4556         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4557         with *__libc_start_main@GOTPCREL(%rip) in call.
4558
4559 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4560
4561         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4562         inside conditional for nonempty $(CXX).
4563
4564         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4565         nonempty.
4566
4567         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4568         to test for empty $(CXX) rather than $(CXX) of "no".
4569
4570 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4571
4572         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4573
4574 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4575             H.J. Lu  <hongjiu.lu@intel.com>
4576
4577         [BZ #18880]
4578         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4579         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4580         enable __memcpy_ssse3_back.
4581
4582 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4583
4584         [BZ #19758]
4585         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4586         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4587
4588 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4589
4590         [BZ #19490]
4591         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4592         (__fentry__): Likewise.
4593
4594 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4595
4596         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4597         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4598
4599 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4600
4601         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4602         __mcount_internal directly.
4603         (C_LABEL(__fentry__)): Likewise.
4604         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4605         directly.
4606
4607 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4608
4609         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4610         (__start_context): Call __setcontext directly.
4611
4612 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4613
4614         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4615         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4616         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4617         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4618         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4619         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4620         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4621         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4622         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4623         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4624         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4625         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4626         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4627         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4628         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4629         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4630         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4631         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4632         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4633         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4634         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4635         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4636         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4637         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4638         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4639         Remove conditional code.
4640         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4641         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4642         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4643         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4644         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4645         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4646         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4647         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4648         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4649         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4650         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4651         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4652
4653 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4654
4655         * NEWS (2.23): Fix typo in bug 19048 text.
4656
4657 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4658
4659         [BZ #14259]
4660         * Makeconfig: Rename msgcatdir to localedir.
4661         Rename inst_msgcatdir to inst_localedir.
4662         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4663         * config.make.in: Add localedir.
4664         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4665         (ldd-rewrite): Likewise.
4666         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4667         (install-others): Use inst_localedir.
4668         (CPPFLAGS): Use localedir.
4669         * locale/Makefile (locale-CPPFLAGS): Likewise.
4670         * po/Makefile (mo-installed): Use inst_localedir.
4671
4672         [BZ #19575]
4673         * localedata/charmaps/GB18030: Update comments regarding PAU to
4674         non-PUA mappings.
4675
4676 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4677
4678         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4679         test for header.
4680         * sysdeps/unix/sysv/linux/configure: Regenerated.
4681         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4682         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4683         Remove conditional code.
4684         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4685
4686         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4687         Define to 3.2.0.
4688         (arch_minimum_kernel): Likewise.
4689         * sysdeps/unix/sysv/linux/configure: Regenerated.
4690         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4691         Define to 2.6.32.
4692         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4693         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4694         (arch_minimum_kernel): Define to 2.6.32.
4695         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4696         * README: Document Linux 3.2 requirement.
4697         * manual/install.texi (Linux): Document Linux 3.2 headers
4698         requirement.
4699         * INSTALL: Regenerated.
4700
4701 2016-02-24  Andreas Schwab  <schwab@suse.de>
4702
4703         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4704         if !NO_LONG_DOUBLE.
4705
4706 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4707
4708         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4709         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4710
4711 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4712
4713         [BZ #19512]
4714         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4715
4716 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4717
4718         * posix/tst-dir.c: Include libc-internal.h.
4719
4720 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4721
4722         [BZ #19056]
4723         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4724         * manual/filesys.texi (Reading/Closing Directory): Mention
4725         deprecaion.
4726         * posix/tst-dir.c (main): Disable deprecation warning in test.
4727
4728 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4729
4730         [BZ #19679]
4731         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4732         Renamed to ...
4733         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4734         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4735         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4736         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4737         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4738         * sysdeps/x86_64/dl-trampoline.h
4739         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4740         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4741
4742 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4743
4744         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4745
4746 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4747
4748         * elf/elf.h (R_386_GOT32X): New.
4749         (R_386_NUM): Update.
4750         (R_X86_64_GOTPCRELX: New.
4751         (R_X86_64_REX_GOTPCRELX): New.
4752         (R_X86_64_NUM): Update.
4753
4754 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4755
4756         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4757
4758 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4759
4760         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4761         assign attr->stackaddr to it, and adjust it down when
4762         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4763         [_STACK_GROWS_UP]: Delete assert.
4764         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4765         Implement stack grows up logic.
4766         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4767         stack grows up logic.
4768
4769 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4770
4771         * NEWS: Update with 2.24 template.
4772
4773 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4774
4775         [BZ #19678]
4776         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4777         Ensure +0.0 is returned when taking the next value below the least
4778         positive value.
4779
4780 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4781
4782         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4783         available.  Do not define NO_THREADS.
4784         * malloc/malloc.c: Do not check NO_THREADS.
4785         * malloc/arena.c: Likewise.
4786
4787 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4788
4789         * malloc/malloc.c (__libc_mallinfo): Update comment.
4790         (struct malloc_par): Remove max_total_mem member, it was always 0.
4791         (int_mallinfo): Store 0 into usmblks (no functional change).
4792         * malloc/hooks.c (struct malloc_state): Document that
4793         max_total_mem is always 0.
4794         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4795         always 0.
4796         * manual/memory.texi (Statistics of Malloc): Likewise.
4797
4798 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4799
4800         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4801         * malloc/arena.c (arena_max): Remove.
4802         (heap_trim, _int_new_arena): Do not update arena_max.
4803
4804 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4805
4806         * resolv/res_init.c (res_ninit): Update comment.
4807
4808 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4809
4810         [BZ #19505]
4811         * posix/spawn_int.h: Add headers and include guard.
4812         (__spawn_valid_fd): New function.
4813         * posix/spawn_faction_addopen.c
4814         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4815         * posix/spawn_faction_addclose.c
4816         (posix_spawn_file_actions_addclose): Likewise.
4817         * posix/spawn_faction_adddup2.c
4818         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4819         second file descriptor.
4820         * posix/spawn_valid_fd.c: New file.
4821         * posix/tst-posix_spawn-fd.c: New file.
4822         * posix/Makefile (routines): Add spawn_valid_fd.
4823         (tests): Add tst-posix_spawn-fd.
4824
4825 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4826
4827         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4828         (do_test): Limit the number of arenas, so that we can use fewer
4829         outer threads.  Limit timeout to 3 seconds, in preparation for a
4830         larger TIMEOUT value.
4831
4832 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4833
4834         [BZ #19674]
4835         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4836         sign in overflowing and underflowing results when overflow or
4837         underflow is detected early.  Include sign in result before rather
4838         than after scaling.
4839
4840         [BZ #19603]
4841         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4842         (__ieee754_remainderl): Adjust sign of integer version of low part
4843         when taking absolute value of high part.
4844         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4845         * math/libm-test.inc (remainder_test_data): Add another test.
4846         (remquo_test_data): Likewise.
4847
4848 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4849
4850         [BZ #19602]
4851         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4852         equal high parts and both low parts zero specially.
4853         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4854         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4855         Add test-fmodl-ldbl-128ibm.
4856
4857         [BZ #19595]
4858         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4859         common logic for all cases of shifting subnormal results.  Do not
4860         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4861         exponent to ldbl_insert_mantissa in subnormal case.
4862
4863         [BZ #19594]
4864         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4865         on high and low parts then adjust result and use
4866         ldbl_canonicalize_int if needed.
4867
4868         [BZ #19593]
4869         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4870         on high part and __floor or __ceil on low part then use
4871         ldbl_canonicalize_int if needed.
4872
4873         [BZ #19592]
4874         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4875         high and low parts then use ldbl_canonicalize_int if needed.
4876
4877         [BZ #17899]
4878         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4879         New function.
4880         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4881         on high and low parts then use ldbl_canonicalize_int if needed.
4882
4883 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4884
4885         * configure: Regenerated.
4886
4887         * po/libc.pot: Regenerated.
4888
4889         * po/be.po: Updated translation.
4890         * po/bg.po: Likewise.
4891         * po/ca.po: Likewise.
4892         * po/cs.po: Likewise.
4893         * po/da.po: Likewise.
4894         * po/el.po: Likewise.
4895         * po/eo.po: Likewise.
4896         * po/es.po: Likewise.
4897         * po/fi.po: Likewise.
4898         * po/fr.po: Likewise.
4899         * po/gl.po: Likewise.
4900         * po/hr.po: Likewise.
4901         * po/hu.po: Likewise.
4902         * po/ia.po: Likewise.
4903         * po/id.po: Likewise.
4904         * po/it.po: Likewise.
4905         * po/ja.po: Likewise.
4906         * po/lt.po: Likewise.
4907         * po/nb.po: Likewise.
4908         * po/nl.po: Likewise.
4909         * po/pt_BR.po: Likewise.
4910         * po/rw.po: Likewise.
4911         * po/sk.po: Likewise.
4912         * po/sl.po: Likewise.
4913         * po/sv.po: Likewise.
4914         * po/tr.po: Likewise.
4915         * po/zh_CN.po: Likewise.
4916         * po/zh_TW.po: Likewise.
4917
4918         * version.h (RELEAES): Set to "development".
4919         (VERSION): Set to 2.23.90.
4920
4921         * version.h (RELEASE): Set to "stable".
4922         (VERSION): Set to 2.23.
4923         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4924
4925         * NEWS: Updated fixed bugs.
4926
4927 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4928             Wilco Dijkstra  <wdijkstr@arm.com>
4929
4930         [BZ #19462]
4931         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4932         (_STRING_INLINE_unaligned): This.
4933         * include/string.h: Include <string_private.h>.
4934         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4935         _STRING_INLINE_unaligned.
4936         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4937         (_STRING_INLINE_unaligned): New.
4938         * sysdeps/aarch64/string_private.h: New file.
4939         * sysdeps/generic/string_private.h: Likewise.
4940         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4941         * sysdeps/s390/string_private.h: Likewise.
4942         * sysdeps/x86/string_private.h: Likewise.
4943         * sysdeps/m68k/m680x0/m68020/bits/string.h
4944         (_STRING_ARCH_unaligned): Renamed to ...
4945         (_STRING_INLINE_unaligned): This.
4946         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4947         to ...
4948         (_STRING_INLINE_unaligned): This.
4949         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4950         to ...
4951         (_STRING_INLINE_unaligned): This.
4952         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4953         to ...
4954         (_STRING_INLINE_unaligned): This.
4955
4956 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4957             H.J. Lu  <hongjiu.lu@intel.com>
4958
4959         [BZ #19590]
4960         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4961         relocation.
4962
4963 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4964
4965         [BZ #18665]
4966         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4967         *herrno_p.
4968         (gaih_getanswer): Document functional behviour. Return tryagain
4969         if any result is tryagain.
4970         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4971         when freed.
4972         * resolv/res_send.c: Add copyright text.
4973         (__libc_res_nsend): Document that MAXPACKET is expected.
4974         (send_vc): Document. Remove buffer reuse.
4975         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4976         size of the buffer. Add Dprint for truncated UDP buffer.
4977
4978 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4979
4980         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4981         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4982         * INSTALL: Regenerate.
4983
4984 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4985             Jonathan Wakely  <jwakely@redhat.com>
4986             Carlos O'Donell  <carlos@redhat.com>
4987
4988         [BZ 19439]
4989         * math/Makefile (tests): Add test-math-isinff.
4990         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4991         * math/bits/mathcalls.h [__USE_MISC]: Use
4992         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4993         functions not in C++11 and which don't conflict e.g. isinff,
4994         isinfl etc.
4995         * math/test-math-isinff.cc: New file.
4996
4997 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4998
4999         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5000
5001 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5002
5003         [BZ #19529]
5004         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5005
5006 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5007
5008         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5009
5010 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5011
5012         [BZ #19550]
5013         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5014         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5015         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5016         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5017         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5018         New syscall entry.
5019         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5020         New syscall entry.
5021         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5022         syscall entry.
5023
5024 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5025
5026         [BZ #18240]
5027         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5028         unsigned int wraparound.
5029
5030 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5031
5032         [BZ #18240]
5033         * misc/bug18240.c: New test.
5034         * misc/Makefile (tests): Add it.
5035
5036 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5037             Joseph Myers  <joseph@codesourcery.com>
5038
5039         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5040         load in branch delay slot when less than a word of input left.
5041
5042 2016-01-27  Andreas Schwab  <schwab@suse.de>
5043
5044         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5045         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5046         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5047         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5048
5049 2016-01-26  David S. Miller  <davem@davemloft.net>
5050
5051         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5052
5053 2016-01-25  David S. Miller  <davem@davemloft.net>
5054
5055         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5056         __sqrtl_finite.
5057         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5058         instead using versioned_symbol.
5059         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5060         of entries.
5061
5062         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5063         __sqrtl_finite to GLIBC_2.23
5064
5065 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5066
5067         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5068
5069 2016-01-25  Andreas Schwab  <schwab@suse.de>
5070
5071         [BZ #17514]
5072         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5073         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5074         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5075         * nptl/tst-mutex-errorcheck.c: New file.
5076
5077 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5078
5079         [BZ #18560]
5080         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5081         (IPCOP_semop): Likewise.
5082         (IPCOP_semget): Likewise.
5083         (IPCOP_semctl): Likewise.
5084         (IPCOP_msgsnd): Likewise.
5085         (IPCOP_msgrcv): Likewise.
5086         (IPCOP_msgget): Likewise.
5087         (IPCOP_msgctl): Likewise.
5088         (IPCOP_shmat): Likewise.
5089         (IPCOP_shmdt): Likewise.
5090         (IPCOP_shmget): Likewise.
5091         (IPCOP_shmctl): Likewise.
5092
5093 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5094
5095         * string/tst-endian.c: Include <libc-internal.h>.
5096         (do_test): Ignore tautological-compare warnings around
5097         "htobeXX (beXXtoh (i)) != i" and
5098         "htoleXX (leXXtoh (i)) != i" if-statements.
5099
5100 2016-01-24  David S. Miller  <davem@davemloft.net>
5101
5102         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5103         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5104         alias.
5105         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5106         __sqrtl_finite.
5107
5108         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5109
5110 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5111
5112         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5113         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5114         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5115
5116 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5117
5118         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5119         (thread_func): Use new function to simplify barrier check.
5120         (do_test): Use new function to simplify checking barrier exit
5121         code, and actually join the child thread.
5122
5123 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5124
5125         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5126         semicolon.
5127         (__libc_tend): Likewise.
5128         (__libc_tabort): Likewise.
5129
5130 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5131
5132         * sysdeps/nios2/libm-test-ulps: Update.
5133         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5134         (__gtsf2): Likewise.
5135         (__unorddf2): Likewise.
5136         (__unordsf2): Likewise.
5137         (__ledf2): Likewise.
5138
5139 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5140
5141         * nis/nis_table.c (__follow_path): Disable diagnostic for
5142         uninitialized variable that is a false positive for gcc 4.7.
5143         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5144
5145 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5146
5147         * sysdeps/nacl/lowlevellock-futex.h
5148         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5149         Always evaluate PRIVATE argument.
5150
5151 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5152
5153         [BZ #19490]
5154         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5155         (pthread_cond_broadcast): Use ENTRY/END
5156         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5157         (pthread_cond_signal): Likewise.
5158         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5159         Likewise.
5160         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5161         Likewise.
5162         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5163         Likewise.
5164
5165 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5166
5167         * sysdeps/ieee754/dbl-64/s_finite.c
5168         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5169         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5170         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5171         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5172         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5173
5174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5175         (__gtsf2): Add as optional for libc.so.
5176         (__unordsf2): Likewise.
5177         (__signbit): Remove for libc.so.
5178         (__signbitl): Likewise.
5179
5180 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5181
5182         * iconvdata/bug-iconv11.c (test_ibm93x):
5183         Use %zu printf format specifier for size_t argument.
5184
5185 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5186
5187         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5188         already-recorded ulps.
5189         * sysdeps/arm/libm-test-ulps: Regenerated.
5190         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5191         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5192         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5193
5194 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5195             Paul Pluzhnikov  <ppluzhnikov@google.com>
5196
5197         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5198         assembler not supporting AVX-512.
5199
5200 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5201
5202         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5203
5204 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5205
5206         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5207         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5208
5209         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5210
5211         * sysdeps/arm/libm-test-ulps: Regenerated.
5212
5213 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5214
5215         [BZ #19451]
5216         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5217
5218 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5219
5220         [BZ #19486]
5221         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5222         * sysdeps/generic/fix-fp-int-convert-overflow.h
5223         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5224         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5225         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5226         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5227         Likewise.
5228         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5229         Avoid conversions to long int where inexact exceptions
5230         could be raised.
5231         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5232         Likewise.
5233         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5234         Avoid conversions to long long int where inexact exceptions
5235         could be raised.
5236         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5237         Likewise.
5238
5239 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5240
5241         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5242         * configure: Regenerated.
5243
5244 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5245
5246         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5247
5248 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5249
5250         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5251         outside of comment.
5252
5253 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5254
5255         * nptl/tst-barrier1.c: Add description on first line.
5256         * nptl/tst-barrier2.c: Likewise.
5257         * nptl/tst-barrier3.c: Likewise.
5258         * nptl/tst-barrier4.c: Likewise.
5259         * nptl/tst-barrier5.c: Likewise.
5260
5261 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5262
5263         [BZ #18868]
5264         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5265
5266 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5267
5268         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5269         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5270         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5271         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5272         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5273         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5274         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5275         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5276         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5277         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5278         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5279
5280 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5281
5282         [BZ #13065]
5283         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5284         new implementation.
5285         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5286         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5287         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5288         (BARRIER_IN_THRESHOLD): New macro.
5289         * nptl/pthread_barrierattr_setpshared.c
5290         (pthread_barrierattr_setpshared): Clean up.
5291         * nptl/tst-barrier4.c: Correct comment.
5292         * nptl/tst-barrier5.c: New file.
5293         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5294         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5295         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5296         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5297         * nptl/lowlevelbarrier.sym: Remove.
5298         * nptl/DESIGN-barrier.txt: Remove.
5299         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5300         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5301         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5302         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5303         error.
5304         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5305         implementation.
5306
5307 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5308
5309         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5310         (do_child): Mask SIGRTMIN while thr is running.
5311
5312 2016-01-15  Martin Sebor  <msebor@redhat.com>
5313
5314         [BZ #19432]
5315         * iconvdata/Makefile: Add bug-iconv11.
5316         * iconvdata/bug-iconv11.c: New test.
5317         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5318         * iconvdata/ibm933.c: Same.
5319         * iconvdata/ibm935.c: Same.
5320         * iconvdata/ibm937.c: Same.
5321         * iconvdata/ibm939.c: Same.
5322
5323 2016-01-15  Martin Sebor  <msebor@redhat.com>
5324
5325         [BZ #19443]
5326         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5327         [DEBUG] (_ufc_set_bits): Declare used.
5328         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5329         [DEBUG] (print_all): Declare used.
5330         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5331         operands of the ternary ?: expression to target type.
5332         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5333         calling the undeclared abort.
5334         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5335
5336 2016-01-15  Martin Sebor  <msebor@redhat.com>
5337
5338         [BZ #18755]
5339         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5340         warnings.
5341         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5342         (__gai_create_helper_thread): Same.
5343         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5344         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5345         to suppress -Wmaybe-uninitialized warnings.
5346
5347 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5348
5349         [BZ #19465]
5350         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5351         inside if.
5352         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5353         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5354         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5355
5356 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5357
5358         [BZ #19466]
5359         * time/tst-mktime2.c (time_t_max): Removed.
5360         (time_t_min): Likewise.
5361         (TYPE_SIGNED): New.
5362         (TYPE_MINIMUM): Likewise.
5363         (TYPE_MAXIMUM): Likewise.
5364         (TIME_T_MIN): Likewise.
5365         (TIME_T_MAX): Likewise.
5366         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5367         and TIME_T_MIN.
5368         (do_test): Likewise.
5369
5370 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5371
5372         [BZ #19467]
5373         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5374         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5375
5376 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5377
5378         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5379
5380 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5381
5382         * benchtests/Makefile (PYTHON): Define.
5383         (bench-func): Use $(PYTHON) to run python scripts.
5384         ($(objpfx)bench-%.c): Likewise.
5385
5386 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5387
5388         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5389         leading slash when `file_name' is "/".
5390
5391 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5392
5393         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5394         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5395         Likewise.
5396         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5397         Likewise.
5398         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5399         Likewise.
5400         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5401         enum constant and macro.
5402         (PTRACE_SETSIGMASK): Likewise.
5403         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5404         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5405         (PTRACE_GETSIGMASK): Likewise.
5406         (PTRACE_SETSIGMASK): Likewise.
5407         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5408         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5409         Likewise.
5410         (PTRACE_SETSIGMASK): Likewise.
5411         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5412         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5413         (PTRACE_GETSIGMASK): Likewise.
5414         (PTRACE_SETSIGMASK): Likewise.
5415         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5416         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5417         Likewise.
5418         (PTRACE_SETSIGMASK): Likewise.
5419         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5420         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5421         Likewise.
5422         (PTRACE_SETSIGMASK): Likewise.
5423         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5424         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5425         Likewise.
5426         (PTRACE_SETSIGMASK): Likewise.
5427         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5428
5429 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5430             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5431
5432         [BZ #19439]
5433         * math/bits/mathcalls.h
5434         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5435         prototype.
5436         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5437
5438 2016-01-11  Andreas Schwab  <schwab@suse.de>
5439
5440         [BZ #19253]
5441         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5442         cache when TZDEFRULES was used.
5443         * time/tst-tzname.c: New file.
5444         * time/Makefile (test): Add tst-tzname.
5445         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5446         * timezone/Makefile (test-zones): Add $(posixrules-file).
5447         ($(testdata)/$(posixrules-file)): New rule.
5448
5449 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5450
5451         Fix doc quoting problems with Texinfo 5
5452         Without this change, in the info file output, Texinfo 5 quotes code
5453         in text with undirected single quotes 'like this' and generates
5454         code examples that with many PDF readers cannot be cut out of PDFs
5455         and pasted into code.
5456         * manual/libc.texinfo: Configure the libc manual like the GNU
5457         Emacs manual, by using @documentencoding and setting
5458         txicodequoteundirected and txicodequotebacktick.  This way,
5459         Texinfo 5 quotes code in text with directed single quotes ‘like
5460         this’ and produces examples that can be cut out of PDFs.  This
5461         change causes Texinfo 5 to generate info files that contain UTF-8
5462         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5463         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5464
5465 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5466
5467         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5468         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5469         barriers to their respective compiler built-ins.
5470         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5471         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5472         * sysdeps/powerpc/sysdep.h: Likewise.
5473         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5474         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5475         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5476
5477 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5478
5479         * scripts/config.guess: Revert previous shebang change.
5480         * scripts/config.sub: Likewise.
5481         * scripts/mkinstalldirs: Likewise.
5482
5483 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5484
5485         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5486         PPC_FEATURE2_HAS_IEEE128.
5487         * sysdeps/powerpc/dl-procinfo.c:
5488         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5489
5490 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5491
5492         [BZ #19415]
5493         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5494         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5495         (_dl_lookup_address): Rewrite using function resolver trampoline.
5496         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5497         two bits in address.
5498
5499 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5500
5501         * longlong.h: Change !__SHMEDIA__ to
5502         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5503         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5504
5505 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5506             Joseph Myers  <joseph@codesourcery.com>
5507             Mark Shinwell  <shinwell@codesourcery.com>
5508             Andrew Stubbs  <ams@codesourcery.com>
5509             Rich Felker <dalias@libc.org>
5510
5511         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5512
5513 2016-01-07  Richard Henderson  <rth@redhat.com>
5514
5515         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5516
5517 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5518
5519         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5520         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5521         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5522         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5523         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5524
5525 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5526             Joseph Myers  <joseph@codesourcery.com>
5527
5528         * timezone/private.h: Update from tzcode 2015g.
5529         * timezone/tzfile.h: Likewise.
5530         * timezone/tzselect.ksh: Likewise.
5531         * timezone/zdump.c: Likewise.
5532         * timezone/zic.c: Likewise.
5533         * timezone/ialloc.c: Remove file.
5534         * timezone/scheck.c: Likewise.
5535         * timezone/Makefile (extra-objs): Remove variable.
5536         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5537         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5538         -Wno-maybe-uninitialized.
5539         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5540         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5541         (CFLAGS-ialloc.c): Remove variable.
5542         (CFLAGS-scheck.c): Likewise.
5543         * timezone/README: Update list of files from tzcode.
5544
5545 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5546
5547         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5548         instead of __fxprintf when _LIBC is undefined.
5549
5550 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5551
5552         * catgets/test-gencat.sh: Remove space after shebang.
5553         * conform/GlibcConform.pm: Likewise.
5554         * conform/check-header-lists.sh: Likewise.
5555         * conform/conformtest.pl: Likewise.
5556         * conform/linknamespace.pl: Likewise.
5557         * conform/list-header-symbols.pl: Likewise.
5558         * debug/catchsegv.sh: Likewise.
5559         * elf/genrtldtbl.awk: Likewise.
5560         * elf/tst-pathopt.sh: Likewise.
5561         * elf/tst-rtld-load-self.sh: Likewise.
5562         * grp/tst_fgetgrent.sh: Likewise.
5563         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5564         * iconvdata/gen-8bit-gap.sh: Likewise.
5565         * iconvdata/gen-8bit.sh: Likewise.
5566         * iconvdata/run-iconv-test.sh: Likewise.
5567         * intl/tst-gettext.sh: Likewise.
5568         * intl/tst-gettext2.sh: Likewise.
5569         * intl/tst-gettext4.sh: Likewise.
5570         * intl/tst-gettext6.sh: Likewise.
5571         * intl/tst-translit.sh: Likewise.
5572         * io/ftwtest-sh: Likewise.
5573         * libio/test-freopen.sh: Likewise.
5574         * locale/gen-translit.pl: Likewise.
5575         * malloc/tst-mtrace.sh: Likewise.
5576         * manual/check-safety.sh: Likewise.
5577         * manual/libc-texinfo.sh: Likewise.
5578         * manual/tsort.awk: Likewise.
5579         * manual/xtract-typefun.awk: Likewise.
5580         * nptl/tst-cancel-wrappers.sh: Likewise.
5581         * nptl/tst-tls6.sh: Likewise.
5582         * posix/globtest.sh: Likewise.
5583         * posix/tst-getconf.sh: Likewise.
5584         * posix/wordexp-tst.sh: Likewise.
5585         * scripts/check-c++-types.sh: Likewise.
5586         * scripts/check-local-headers.sh: Likewise.
5587         * scripts/config.guess: Likewise.
5588         * scripts/config.sub: Likewise.
5589         * scripts/cpp: Likewise.
5590         * scripts/cross-test-ssh.sh: Likewise.
5591         * scripts/documented.sh: Likewise.
5592         * scripts/evaluate-test.sh: Likewise.
5593         * scripts/gen-libc-abis: Likewise.
5594         * scripts/gen-sorted.awk: Likewise.
5595         * scripts/list-fixed-bugs.py: Likewise.
5596         * scripts/merge-test-results.sh: Likewise.
5597         * scripts/mkinstalldirs: Likewise.
5598         * scripts/rellns-sh: Likewise.
5599         * scripts/test-installation.pl: Likewise.
5600         * scripts/update-copyrights: Likewise.
5601         * stdio-common/tst-printf.sh: Likewise.
5602         * stdio-common/tst-unbputc.sh: Likewise.
5603         * stdlib/tst-fmtmsg.sh: Likewise.
5604         * stdlib/tst-setcontext3.sh: Likewise.
5605         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5606         * sysdeps/unix/make-syscalls.sh: Likewise.
5607
5608 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5609
5610         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5611         asm stw with atomic_exchange_rel.  Add explanatory comment.
5612         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5613         Likewise.
5614
5615 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5616
5617         [BZ #19122]
5618         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5619         * sysdeps/generic/dl-unistd.h: New file.
5620         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5621
5622 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5623
5624          [BZ #19122]
5625          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5626          * sysdeps/generic/dl-mman.h: New file.
5627          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5628
5629 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5630
5631         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5632         trailing whitespace removed.
5633         * scripts/config.guess: Update to version 2016-01-01.
5634         * scripts/config.sub: Update to version 2016-01-01.
5635         * scripts/move-if-change: Update from gnulib.
5636
5637 2016-01-04  Anton Blanchard  <anton@samba.org>
5638
5639         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5640         for array indices.
5641         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5642
5643 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5644
5645         * NEWS: Update copyright dates.
5646         * catgets/gencat.c (print_version): Likewise.
5647         * csu/version.c (banner): Likewise.
5648         * debug/catchsegv.sh: Likewise.
5649         * debug/pcprofiledump.c (print_version): Likewise.
5650         * debug/xtrace.sh (do_version): Likewise.
5651         * elf/ldconfig.c (print_version): Likewise.
5652         * elf/ldd.bash.in: Likewise.
5653         * elf/pldd.c (print_version): Likewise.
5654         * elf/sotruss.sh: Likewise.
5655         * elf/sprof.c (print_version): Likewise.
5656         * iconv/iconv_prog.c (print_version): Likewise.
5657         * iconv/iconvconfig.c (print_version): Likewise.
5658         * locale/programs/locale.c (print_version): Likewise.
5659         * locale/programs/localedef.c (print_version): Likewise.
5660         * login/programs/pt_chown.c (print_version): Likewise.
5661         * malloc/memusage.sh (do_version): Likewise.
5662         * malloc/memusagestat.c (print_version): Likewise.
5663         * malloc/mtrace.pl: Likewise.
5664         * manual/libc.texinfo: Likewise.
5665         * nptl/version.c (banner): Likewise.
5666         * nscd/nscd.c (print_version): Likewise.
5667         * nss/getent.c (print_version): Likewise.
5668         * nss/makedb.c (print_version): Likewise.
5669         * posix/getconf.c (main): Likewise.
5670         * scripts/test-installation.pl: Likewise.
5671         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5672
5673         * All files with FSF copyright notices: Update copyright dates
5674         using scripts/update-copyrights.
5675         * intl/plural.c: Regenerated.
5676         * locale/programs/charmap-kw.h: Likewise.
5677         * locale/programs/locfile-kw.h: Likewise.
5678
5679 2016-01-02  Helge Deller  <deller@gmx.de>
5680
5681         [BZ #19285]
5682         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5683         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5684         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5685         (MADV_xxK_PAGES): Remove.
5686
5687 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5688
5689         [BZ #15421]
5690         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5691         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5692         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5693         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5694
5695 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5696
5697         [BZ #19408]
5698         * sysdeps/unix/sysv/linux/personality.c: New file.
5699         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5700         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5701         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5702         (sysdep_routines): Add personality.
5703         (tests): Add tst-personality.
5704         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5705         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5706         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5707         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5708         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5709         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5710         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5711         Likewise.
5712         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5713         Likewise.
5714         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5715         Likewise.
5716         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5717         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5718         Likewise.
5719
5720 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5721
5722         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5723         (PATH_ARM_SYSTYPE): Remove.
5724         (PATH_CPUINFO): Likewise.
5725         (IO_BASE_FOOTBRIDGE): Likewise.
5726         (IO_SHIFT_FOOTBRIDGE): Likewise.
5727         (struct platform): Likewise.
5728         (init_iosys): Remove compatibility code for 2.4 kernels.
5729         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5730
5731 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5732
5733         * malloc/tst-malloc-thread-fail.c: New file.
5734         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5735         (tst-malloc-thread-fail): Link against libpthread.
5736
5737 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5738
5739         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5740         (get_parser): New function.
5741         (main): New function.
5742
5743 2015-12-29  Rob Wu  <rob@robwu.nl>
5744
5745         [BZ #19369]
5746         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5747
5748 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5749
5750         [BZ #19270]
5751         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5752
5753 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5754
5755         [BZ #15421]
5756         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5757
5758 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5759
5760         [BZ #13690]
5761         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5762         after releasing it.
5763         (__lll_robust_unlock): Likewise.
5764         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5765         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5766         (lll_robust_unlock): Likewise.
5767         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5768         Prevent warnings in callers.
5769
5770 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5771
5772         * malloc/arena.c (list_lock): Update comment.
5773
5774 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5775
5776         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5777         __parse_hwcap_and_convert_at_platform to libc.a.
5778
5779 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5780
5781         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5782         platform and feature support for POWER9.
5783         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5784         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5785         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5786         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5787         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5788         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5789         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5790         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5791
5792 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5793
5794         Harmonize generic stdio-lock support with nptl
5795
5796         This fixes build when _IO_funlockfile is a macro, fixes build where
5797         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5798         stack unwind.
5799
5800         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5801         _IO_release_lock ): Use cleanup attribute on new
5802         _IO_acquire_lock_file variable instead of assuming that
5803         _IO_release_lock will be called.
5804         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5805         _IO_acquire_lock_needs_exceptions_enabled.
5806         (_IO_acquire_lock_clear_flags2): New macro.
5807
5808 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5809
5810         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5811
5812 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5813
5814         [BZ #19182]
5815         * malloc/arena.c (list_lock): Document lock ordering requirements.
5816         (free_list_lock): New lock.
5817         (ptmalloc_lock_all): Comment on free_list_lock.
5818         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5819         (detach_arena): Update comment.  free_list_lock is now needed.
5820         (_int_new_arena): Use free_list_lock around detach_arena call.
5821         Acquire arena lock after list_lock.  Add comment, including FIXME
5822         about incorrect synchronization.
5823         (get_free_list): Switch to free_list_lock.
5824         (reused_arena): Acquire free_list_lock around detach_arena call
5825         and attached threads counter update.  Add two FIXMEs about
5826         incorrect synchronization.
5827         (arena_thread_freeres): Switch to free_list_lock.
5828         * malloc/malloc.c (struct malloc_state): Update comments to
5829         mention free_list_lock.
5830
5831 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5832
5833         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5834         Remove functions.
5835         (sloww, sloww1): Accept argument to offset quadrant.
5836         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5837         quadrant.
5838         (__sin, __cos): Consolidate common code into new functions.
5839         (reduce_sincos_1, do_sincos_1): New functions.
5840         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5841
5842         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5843         code to new functions.
5844         (reduce_sincos_2, do_sincos_2): New functions.
5845         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5846
5847         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5848         common code for sincos.
5849         (__cos) [!IN_SINCOS]: Likewise.
5850         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5851         New function.
5852         (__sincos): Use it.
5853
5854 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5855
5856         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5857         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5858         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5859
5860 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5861
5862         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5863         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5864         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5865         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5866         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5867         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5868         index_Prefer_No_VZEROUPPER): New feature.
5869         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5870         Prefer_No_VZEROUPPER for Knights Landing.
5871
5872 015-12-18  Torvald Riegel  <triegel@redhat.com>
5873
5874         * math/atest-exp2.c (mp_exp_m1): Remove.
5875
5876 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5877
5878         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5879         syscalls.
5880         (__SYSCALL0): New macro.
5881         (__SYSCALL1): Likewise.
5882         (__SYSCALL2): Likewise.
5883         (__SYSCALL3): Likewise.
5884         (__SYSCALL4): Likewise.
5885         (__SYSCALL5): Likewise.
5886         (__SYSCALL6): Likewise.
5887         (__SYSCALL_CONCAT_X): Likewise.
5888         (__SYSCALL_CONCAT): Likewise.
5889         (__SYSCALL_DIST): Likewise.
5890         (__SYSCALL_CALL): Likewise.
5891
5892 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5893
5894         [BZ #19363]
5895         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5896
5897 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5898
5899         [BZ #19375]
5900         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5901         negative subnormals.
5902
5903 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5904
5905         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5906         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5907         (INTERNAL_SYSCALL_NCS): Use it.
5908         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5909
5910 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5911
5912         [BZ #19243]
5913         * malloc/arena.c (get_free_list): Remove assert and adjust
5914         reference count handling.  Add comment about reused_arena
5915         interaction.
5916         (reused_arena): Add comments abount get_free_list interaction.
5917         * malloc/tst-malloc-thread-exit.c: New file.
5918         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5919         (tst-malloc-thread-exit): Link against libpthread.
5920
5921 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5922
5923         [BZ #19367]
5924         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5925         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5926         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5927         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5928         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5929
5930 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5931
5932         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5933         Silvermont optimizations for Knights Landing.
5934
5935 2015-12-15  Andreas Schwab  <schwab@suse.de>
5936
5937         [BZ #17197]
5938         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5939         immediately after emitting SI.
5940         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5941         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5942         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5943         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5944         * iconvdata/bug-iconv10.c: New file.
5945         * iconvdata/Makefile (tests): Add bug-iconv10.
5946         ($(objpfx)bug-iconv10.out): New rule.
5947
5948 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5949
5950         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5951         aliasing violation.
5952
5953 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5954
5955         [BZ #18472]
5956         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5957         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5958         conditionals for them.
5959         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5960         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5961         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5962         sys/kdaemon.h.
5963         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5964         compat-only syscall, obsoleted in glibc 2.23.
5965         (create_module): Likewise.
5966         (get_kernel_syms): Likewise.
5967         (query_module): Likewise.
5968         (uselib): Likewise.
5969         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5970
5971 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5972
5973         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5974         <linux/version.h>.
5975         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5976         conditional code.
5977         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5978         and ioshift_name initialization.
5979
5980 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5981
5982         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5983         Fix indentation.
5984
5985 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5986
5987         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5988
5989 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5990
5991         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5992
5993 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5994             Jakub Wilk  <jwilk@debian.org>
5995
5996         [BZ #19347]
5997         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5998         to change the group of the device to the tty group.
5999
6000 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6001
6002         Split large string section; add truncation advice
6003         * manual/examples/strncat.c: Remove.
6004         This example was misleading, as the code would have undefined
6005         behavior if "hello" was longer than SIZE.  Anyway, the manual
6006         shouldn't encourage strncpy+strncat for this sort of thing.
6007         * manual/string.texi (Copying Strings and Arrays): Split into
6008         three sections Copying Strings and Arrays, Concatenating Strings,
6009         and Truncating Strings, as this section was way too long.  All
6010         cross-referenced changed.  Add advice about string-truncation
6011         functions.  Remove misleading strncat example.
6012
6013 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6014
6015         * manual/nss.texi (NSS Modules Interface): Document
6016         NSS_STATUS_NOTFOUND and SUCCESS.
6017
6018 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6019
6020         [BZ 18568]
6021         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6022         201505L, for Unicode 8.
6023
6024 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6025
6026         * locale/C-translit.h: Regenerate.
6027
6028 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6029
6030         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6031         and U+0153.
6032
6033 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6034
6035         [BZ #19351]
6036         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6037         expanding log(1+z), compare z rather than its square with epsilon
6038         to determine when to avoid evaluating the expansion.
6039
6040         [BZ #19350]
6041         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6042         Increase overflow threshold.
6043
6044         [BZ #19349]
6045         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6046         when small.
6047
6048         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6049         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6050         New macro.
6051         [__LINUX_KERNEL_VERSION >= 0x040300]
6052         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6053         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6054         Likewise.
6055         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6056         Likewise.
6057         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6058         Likewise.
6059         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6060         Likewise.
6061         [__LINUX_KERNEL_VERSION >= 0x040300]
6062         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6063         [__LINUX_KERNEL_VERSION >= 0x040300]
6064         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6065         [__LINUX_KERNEL_VERSION >= 0x040300]
6066         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6067         [__LINUX_KERNEL_VERSION >= 0x040300]
6068         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6069         [__LINUX_KERNEL_VERSION >= 0x040300]
6070         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6071         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6072         Likewise.
6073         [__LINUX_KERNEL_VERSION >= 0x040300]
6074         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6075         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6076         Likewise.
6077         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6078         Likewise.
6079         [__LINUX_KERNEL_VERSION >= 0x040300]
6080         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6081         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6082         Likewise.
6083         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6084         Likewise.
6085         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6086         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6087         Likewise.
6088         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6089         Likewise.
6090         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6091         Likewise.
6092         [__LINUX_KERNEL_VERSION >= 0x040300]
6093         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6094         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6095         Likewise.
6096         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6097         Likewise.
6098         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6099         Likewise.
6100         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6101         Likewise.
6102         [__LINUX_KERNEL_VERSION >= 0x040300]
6103         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6104         [__LINUX_KERNEL_VERSION >= 0x040300]
6105         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6106         [__LINUX_KERNEL_VERSION >= 0x040300]
6107         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6108         [__LINUX_KERNEL_VERSION >= 0x040300]
6109         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6110         [__LINUX_KERNEL_VERSION >= 0x040300]
6111         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6112         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6113         Likewise.
6114         [__LINUX_KERNEL_VERSION >= 0x040300]
6115         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6116         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6117         Likewise.
6118         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6119         Likewise.
6120         [__LINUX_KERNEL_VERSION >= 0x040300]
6121         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6122         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6123         Likewise.
6124         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6125         Likewise.
6126         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6127         (__ASSUME_SOCKET_SYSCALL): Likewise.
6128         (__ASSUME_BIND_SYSCALL): Likewise.
6129         (__ASSUME_CONNECT_SYSCALL): Likewise.
6130         (__ASSUME_LISTEN_SYSCALL): Likewise.
6131         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6132         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6133         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6134         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6135         (__ASSUME_SEND_SYSCALL): Likewise.
6136         (__ASSUME_SENDTO_SYSCALL): Likewise.
6137         (__ASSUME_RECV_SYSCALL): Likewise.
6138         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6139         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6140         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6141         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6142         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6143         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6144         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6145         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6146         Likewise.
6147         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6148         Likewise.
6149         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6150         Likewise.
6151         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6152         Likewise.
6153         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6154         Likewise.
6155         [__LINUX_KERNEL_VERSION >= 0x020625]
6156         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6157         [__LINUX_KERNEL_VERSION >= 0x020625]
6158         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6159         [__LINUX_KERNEL_VERSION >= 0x020625]
6160         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6161         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6162         Likewise.
6163         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6164         Likewise.
6165         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6166         Likewise.
6167         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6168         Likewise.
6169         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6170         Likewise.
6171         [__LINUX_KERNEL_VERSION >= 0x020625]
6172         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6173         [__LINUX_KERNEL_VERSION >= 0x020625]
6174         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6175         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6176         Likewise.
6177         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6178         Likewise.
6179
6180 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6181
6182         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6183         record the current if the current ABI and CPU support the FP64
6184         extension.
6185         (has-modd-spreg): Define to record the current if the current ABI and
6186         CPU support 32-bit floating point values in odd FPU registers.
6187         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6188         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6189         $(has-modd-spreg) equals yes.
6190         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6191         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6192         $(has-modd-spreg) equal yes.
6193
6194 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6195
6196         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6197         basename.
6198
6199 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6200
6201         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6202         (bench-string): ... here.
6203         (bench): Add bench-string.
6204         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6205         to *-benchset to reflect what they are.
6206         (benchset): Adjust.
6207
6208         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6209         cos-inputs.
6210
6211 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6212
6213         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6214         __attribute__ ((__simd__)) for vector math function declarations.
6215
6216 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6217
6218         Fix typo in strncat, wcsncat manual entries
6219         * manual/string.texi (Copying and Concatenation): Fix typos in
6220         sample implementations of strncat and wcsncat, by having them use
6221         the old value of the destination length, not the new one.
6222
6223 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6224
6225         [BZ #16961]
6226         [BZ #16962]
6227         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6228         string on the stack for strtod.
6229         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6230         a string on the stack for strtof.
6231         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6232         constructing a string on the stack for strtold.
6233         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6234         __strtold_nan to GLIBC_PRIVATE.
6235         * math/test-nan-overflow.c: New file.
6236         * math/test-nan-payload.c: Likewise.
6237         * math/Makefile (tests): Add test-nan-overflow and
6238         test-nan-payload.
6239
6240 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6241
6242         Consistency about byte vs character in string.texi
6243         * manual/string.texi (String and Array Utilities):
6244         Distinguish more carefully among bytes, multibyte characters,
6245         and wide characters.  Use "byte" when talking about C 'char',
6246         to distinguish it more clearly from multibyte characters.
6247         Say "wide character" or "multibyte character" instead of
6248         "character", when a wide or multibyte character is intended.
6249         Similarly for "multibyte string" versus "string".
6250         Define these terms more carefully.
6251
6252 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6253
6254         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6255         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6256         Likewise.
6257         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6258         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6259         * sysdeps/sh/math_private.h: New file.
6260         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6261         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6262         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6263         long double function name.
6264         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6265         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6266         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6267         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6268         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6270         Remove __finitel, __isinfl, and __isnanl.
6271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6272         Likewise.
6273         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6275         Remove __finitel.
6276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6277         Likewise.
6278         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6279
6280 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6281
6282         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6283         installed libmvec_nonshared.a.
6284
6285 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6286
6287         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6288         (sysdep_routines): Likewise.
6289         (sysdep-rtld-routines): Likewise.
6290         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6291         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6292         * sysdeps/powerpc/Versions: Added new
6293         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6294         * sysdeps/powerpc/hwcapinfo.c: New file.
6295         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6296         and parse hwcap, hwcap2 and platform number information.
6297         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6298         to store HWCAP+HWCAP2 and platform number.
6299         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6300         for HWCAP+HWCAP2 and platform number in the TCB.
6301         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6302         the HWCAP, HWCAP2 and platform number in the TCB.
6303         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6304         (TLS_INIT_TP): Included calls to add the hwcap and
6305         at_platform values in the TCB in TP initialization.
6306         (TLS_DEFINE_INIT_TP): Likewise.
6307         (THREAD_GET_HWCAP): New macro.
6308         (THREAD_SET_HWCAP): Likewise.
6309         (THREAD_GET_AT_PLATFORM): Likewise.
6310         (THREAD_SET_AT_PLATFORM): Likewise.
6311         * sysdeps/powerpc/powerpc32/dl-machine.h:
6312         (dl_platform_init): New function that calls
6313         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6314         powerpc32.
6315         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6316         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6317         this functionality, static linking case.
6318         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6319         linking case.
6320         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6321         __parse_hwcap_and_convert_at_platform for the static linking case.
6322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6323         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6324         ABI list for GLIBC 2.23.
6325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6326         Likewise.
6327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6328         Likewise.
6329
6330 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6331
6332         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6333         * configure: Regenerate.
6334         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6335         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6336
6337 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6338
6339         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6340         * iconvdata/ibm933.c: Likewise.
6341         * iconvdata/ibm935.c: Likewise.
6342         * iconvdata/ibm937.c: Likewise.
6343         * iconvdata/ibm939.c: Likewise.
6344
6345 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6346
6347         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6348         pthread_join.
6349         * nptl/tst-cancel21.c (tf): Likewise.
6350
6351 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6352
6353         [BZ #19313]
6354         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6355         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6356         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6357         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6358         Likewise.
6359         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6360         Likewise.
6361         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6362         Likewise.
6363         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6364         Likewise.
6365         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6366         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6367         unsigned long int with __CPU_MASK_TYPE.
6368
6369 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6370
6371         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6372
6373 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6374
6375         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6376         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6377         t512.x.
6378         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6379
6380 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6381
6382         [BZ #19214]
6383         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6384         argument to return extended model.  Update family and model
6385         with extended family and model when family == 0x0f.
6386         (init_cpu_features): Updated.
6387
6388 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6389
6390         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6391         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6392
6393         * sysdeps/mach/hurd/mmap64.c: New file.
6394
6395 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6396
6397         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6398         rights for its main user thread in NEWTASK.
6399
6400 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6401
6402         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6403         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6404
6405 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6406
6407         [BZ #14259]
6408         * Makeconfig: Rename localedir to complocaledir.
6409         Rename inst_localedir to inst_complocaledir.
6410         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6411         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6412         * configure.ac: Use libc_cv_complocaledir.
6413         * configure: Regenerate.
6414         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6415         -DCOMPLOCALEDIR.
6416         * locale/findlocale.c: Use COMPLOCALEDIR.
6417         * locale/loadarchive.c: Likewise.
6418         * locale/programs/locale.c: Likewise.
6419         * locale/programs/localedef.c: Likewise.
6420         * locale/programs/locarchive.c: Likewise.
6421         * localedata/Makefile: Use inst_complocaledir.
6422         * sysdeps/gnu/configure: Regenerate.
6423         * sysdeps/hppa/configure: Regenerate.
6424         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6425         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6427         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6428         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6429         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6430         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6431
6432 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6433
6434         [BZ #19058]
6435         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6436         AS_NEEDED.
6437         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6438         workaround.
6439         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6440         libmvec-static-only-routines): Added new file.
6441         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6442
6443 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6444
6445         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6446         of interrupted RPC instead of restoring it.
6447
6448         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6449         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6450         libc_hidden_def.
6451         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6452         into initialized data instead of common. Define rtld_hidden_data_def.
6453         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6454         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6455         libc_hidden_def.
6456         (if_freenameindex): Add libc_hidden_weak.
6457         (if_nameindex): Add libc_hidden_weak.
6458         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6459         __open64.
6460         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6461         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6462         * sysdeps/mach/nanosleep.c: Include <time.h>
6463         (__nanosleep): Rename to __libc_nanosleep.
6464         (__nanosleep): Add weak_alias.
6465         (nanosleep): Update alias.
6466
6467 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6468
6469         * stdlib/strtod_nan.c: New file.
6470         * stdlib/strtod_nan_double.h: Likewise.
6471         * stdlib/strtod_nan_float.h: Likewise.
6472         * stdlib/strtod_nan_main.c: Likewise.
6473         * stdlib/strtod_nan_narrow.h: Likewise.
6474         * stdlib/strtod_nan_wide.h: Likewise.
6475         * stdlib/strtof_nan.c: Likewise.
6476         * stdlib/strtold_nan.c: Likewise.
6477         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6478         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6479         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6480         * wcsmbs/wcstod_nan.c: Likewise.
6481         * wcsmbs/wcstof_nan.c: Likewise.
6482         * wcsmbs/wcstold_nan.c: Likewise.
6483         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6484         strtold_nan.
6485         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6486         wcstof_nan.
6487         * include/stdlib.h (__strtof_nan): Declare and use
6488         libc_hidden_proto.
6489         (__strtod_nan): Likewise.
6490         (__strtold_nan): Likewise.
6491         (__wcstof_nan): Likewise.
6492         (__wcstod_nan): Likewise.
6493         (__wcstold_nan): Likewise.
6494         * include/wchar.h (____wcstoull_l_internal): Declare.
6495         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6496         (____strtoull_l_internal): Remove declaration.
6497         (STRTOF_NAN): Define macro.
6498         (SET_MANTISSA): Remove macro.
6499         (STRTOULL): Likewise.
6500         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6501         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6502         (STRTOF_NAN): Define macro.
6503         (SET_MANTISSA): Remove macro.
6504         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6505         (SET_MANTISSA): Remove macro.
6506         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6507         macro.
6508         (SET_MANTISSA): Remove macro.
6509         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6510         macro.
6511         (SET_MANTISSA): Remove macro.
6512         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6513         (SET_MANTISSA): Remove macro.
6514         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6515         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6516         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6517
6518         [BZ #19266]
6519         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6520         upper case and lower case letters inside NAN(), not using TOLOWER.
6521         * stdlib/tst-strtod-nan-locale-main.c: New file.
6522         * stdlib/tst-strtod-nan-locale.c: Likewise.
6523         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6524         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6525         Depend on $(gen-locales).
6526         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6527         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6528         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6529         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6530         Depend on $(gen-locales).
6531         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6532
6533 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6534
6535         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6536
6537         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6538         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6539         __finitel, __isinfl, and __isnanl.
6540         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6541         Likewise.
6542         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6544         __finitel.
6545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6546         Likewise.
6547         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6548
6549 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6550
6551         * malloc/memusage.c (me): Remove redundant getenv call.
6552
6553 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6554
6555         [BZ #19143]
6556         [BZ #19164]
6557         * nptl/check-cpuset.h: Remove.
6558         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6559         Remove CPU set size check.
6560         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6561         Likewise.
6562         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6563         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6564         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6565         (__pthread_setaffinity_new): Remove CPU set size check.
6566         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6567         (__kernel_cpumask_size): Remove.
6568         (__sched_setaffinity_new): Remove CPU set size check.
6569         * manual/threads.texi (Default Thread Attributes): Remove stale
6570         reference to check_cpuset_attr, determine_cpumask_size in comment.
6571         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6572         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6573         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6574         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6575         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6576         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6577         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6578         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6579         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6580         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6581         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6582         skeleton test file.
6583         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6584         tst-affinity-pid.
6585
6586 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6587
6588         * scripts/update-abilist.sh: New file.
6589         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6590         * Makerules (update-all-abi-%, update-all-abi)
6591         (subdir_update-all-abi): New targets.
6592         * elf/Makefile (update-all-abi): New target.
6593
6594 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6595
6596         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6597         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6598         (__libc_lock_define_initialized): Use it.
6599         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6600         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6601         * malloc/malloc.c (main_arena): Likewise.
6602         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6603         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6604
6605 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6606
6607         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6608         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6609         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6610         (PTRACE_O_MASK): Update value.
6611         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6612         New value in enum __ptrace_setoptions.
6613         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6614         (PTRACE_O_MASK): Update value.
6615         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6616         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6617         (PTRACE_O_MASK): Update value.
6618         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6619         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6620         (PTRACE_O_MASK): Update value.
6621         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6622         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6623         (PTRACE_O_MASK): Update value.
6624         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6625         New value in enum __ptrace_setoptions.
6626         (PTRACE_O_MASK): Update value.
6627         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6628         New value in enum __ptrace_setoptions.
6629         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6630         (PTRACE_O_MASK): Update value.
6631
6632         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6633         New macro.
6634         (PACKET_AUXDATA): Likewise.
6635         (PACKET_ORIGDEV): Likewise.
6636         (PACKET_VERSION): Likewise.
6637         (PACKET_HDRLEN): Likewise.
6638         (PACKET_RESERVE): Likewise.
6639         (PACKET_TX_RING): Likewise.
6640         (PACKET_LOSS): Likewise.
6641         (PACKET_VNET_HDR): Likewise.
6642         (PACKET_TX_TIMESTAMP): Likewise.
6643         (PACKET_TIMESTAMP): Likewise.
6644         (PACKET_FANOUT): Likewise.
6645         (PACKET_TX_HAS_OFF): Likewise.
6646         (PACKET_QDISC_BYPASS): Likewise.
6647         (PACKET_ROLLOVER_STATS): Likewise.
6648         (PACKET_FANOUT_DATA): Likewise.
6649         (PACKET_MR_UNICAST): Likewise.
6650
6651         [BZ #19242]
6652         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6653         (TOUPPER): Likewise.
6654         * stdlib/tst-strtol-locale-main.c: New file.
6655         * stdlib/tst-strtol-locale.c: Likewise.
6656         * stdlib/Makefile (tests): Add tst-strtol-locale.
6657         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6658         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6659         Depend on $(gen-locales).
6660         * wcsmbs/tst-wcstol-locale.c: New file.
6661         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6662         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6663         tr_TR.ISO-8859-9.
6664         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6665         Depend on $(gen-locales).
6666
6667 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6668
6669         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6670         __glibc_likely instead of __builtin_expect.  After falling back to
6671         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6672         system interface to register the code pages as occupied.
6673
6674 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6675
6676         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6677         [!ARM_MATH_PRIVATE_H].
6678         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6679         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6680         [!HPPA_MATH_PRIVATE_H].
6681         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6682         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6683         to [!I386_MATH_PRIVATE_H].
6684         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6685         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6686         Change guard to [!M68K_MATH_PRIVATE_H].
6687         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6688         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6689         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6690         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6691         macro.
6692         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6693         [!MIPS_MATH_PRIVATE_H].
6694         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6695         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6696         [!NIO2_MATH_PRIVATE_H].
6697         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6698         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6699         [!TILE_MATH_PRIVATE_H].
6700         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6701
6702         [BZ #15421]
6703         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6704         initialize with 0 and define as weak alias of __signgam.
6705         * include/math.h [!_ISOMAC] (__signgam): Declare.
6706         * math/Makefile (libm-calls): Add w_lgamma_compat.
6707         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6708         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6709         test-signgam-ullong-init.
6710         (tests-static): Add test-signgam-uchar-static,
6711         test-signgam-uchar-init-static, test-signgam-uint-static,
6712         test-signgam-uint-init-static, test-signgam-ullong-static and
6713         test-signgam-ullong-init-static.
6714         (CFLAGS-test-signgam-uchar.c): New variable.
6715         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6716         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6717         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6718         (CFLAGS-test-signgam-uint.c): Likewise.
6719         (CFLAGS-test-signgam-uint-init.c): Likewise.
6720         (CFLAGS-test-signgam-uint-static.c): Likewise.
6721         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6722         (CFLAGS-test-signgam-ullong.c): Likewise.
6723         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6724         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6725         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6726         * math/Versions (libm): Add GLIBC_2.23.
6727         * math/lgamma-compat.h: New file.
6728         * math/test-signgam-main.c: Likewise.
6729         * math/test-signgam-uchar-init-static.c: Likewise.
6730         * math/test-signgam-uchar-init.c: Likewise.
6731         * math/test-signgam-uchar-static.c: Likewise.
6732         * math/test-signgam-uchar.c: Likewise.
6733         * math/test-signgam-uint-init-static.c: Likewise.
6734         * math/test-signgam-uint-init.c: Likewise.
6735         * math/test-signgam-uint-static.c: Likewise.
6736         * math/test-signgam-uint.c: Likewise.
6737         * math/test-signgam-ullong-init-static.c: Likewise.
6738         * math/test-signgam-ullong-init.c: Likewise.
6739         * math/test-signgam-ullong-static.c: Likewise.
6740         * math/test-signgam-ullong.c: Likewise.
6741         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6742         wrapper of w_lgamma_main.c.
6743         * math/w_lgamma_compat.c: New file.
6744         * math/w_lgamma_compatf.c: Likewise.
6745         * math/w_lgamma_compatl.c: Likewise.
6746         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6747         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6748         defining compatibility symbols.
6749         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6750         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6751         wrapper of w_lgammaf_main.c.
6752         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6753         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6754         defining compatibility symbols.
6755         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6756         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6757         wrapper of w_lgammal_main.c.
6758         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6759         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6760         defining compatibility symbols.
6761         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6762         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6763         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6764         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6765         <lgamma-compat.h>.
6766         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6767         (__ieee754_gamma): Define as alias.
6768         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6769         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6770         <lgamma-compat.h>.
6771         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6772         (__ieee754_gammaf): Define as alias.
6773         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6774         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6775         <lgamma-compat.h>.
6776         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6777         (__ieee754_gammal): Define as alias.
6778         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6779         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6780         <math/w_lgamma_compat.c>.
6781         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6782         Define as alias of __lgamma_compat and use in defining lgammal.
6783         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6784         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6785         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6786         (USE_AS_COMPAT): New macro.
6787         (LGAMMA_OLD_VER): Undefine and redefine.
6788         (lgammal): Do not define here.
6789         (gammal): Only define here if [GAMMA_ALIAS].
6790         * conform/linknamespace.pl (@whitelist): Remove signgam.
6791         * sysdeps/nacl/libm.abilist: Update.
6792         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6793         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6794         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6795         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6796         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6797         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6798         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6799         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6800         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6801         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6802         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6803         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6805         Likewise.
6806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6807         Likewise.
6808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6809         Likewise.
6810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6811         Likewise.
6812         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6813         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6814         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6815         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6816         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6818         Likewise.
6819         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6820         Likewise.
6821         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6822         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6823         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6824
6825 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6826
6827         [BZ #16364]
6828         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6829         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6830
6831 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6832
6833         * sysdeps/s390/fpu/bits/mathinline.h:
6834         Use __asm__ [__volatile__] instead of asm [volatile].
6835         * sysdeps/s390/abort-instr.h: Likewise.
6836         * sysdeps/s390/atomic-machine.h: Likewise.
6837         * sysdeps/s390/bits/string.h: Likewise.
6838         * sysdeps/s390/dl-tls.h: Likewise.
6839         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6840         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6841         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6842         * sysdeps/s390/fpu/fesetround.c: Likewise.
6843         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6844         * sysdeps/s390/fpu/s_fma.c: Likewise.
6845         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6846         * sysdeps/s390/memusage.h: Likewise.
6847         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6848         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6849         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6850         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6851         * sysdeps/s390/nptl/tls.h: Likewise.
6852         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6853         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6854         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6855         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6856         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6857         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6858         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6859         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6860         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6861         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6862         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6863         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6864         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6865         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6866         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6867         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6868         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6869         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6870         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6871         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6872         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6873         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6874         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6875
6876 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6877             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6878
6879         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6880         Add lwarx hint, and use macro for acquire instruction.
6881         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6882         Likewise.
6883         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6884         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6885         update to use new atomic macros.
6886
6887 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6888
6889         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6890         (__lll_trylock_elision): Fix setting of adapt_count.
6891         * sysdeps/unix/sysv/linux/powerpc/htm.h
6892         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6893         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6894         (_ABORT_SYSCALL): Renumber, and clarify definition.
6895         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6896
6897 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6898
6899         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6900         after system headers to prevent MIN/MAX redefinition.  Define
6901         HAVE_ALLOCA to preserve builtin alloca usage.
6902
6903 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6904
6905         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6906         static and don't set or restore rounding.
6907         (__cos)[IN_SINCOS]: Likewise.
6908         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6909         (__sincos): Set and restore rounding mode.  Remove check for infinite
6910         or NaN input.
6911
6912         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6913
6914         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6915         as used.
6916
6917 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6918
6919         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6920
6921 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6922
6923         * config.make.in (have-glob-dat-reloc): New.
6924         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6925         target supports GLOB_DAT relocaton. AC_SUBST.
6926         * configure: Regenerated.
6927         * elf/Makefile (tests): Add tst-prelink.
6928         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6929         (tst-prelink-ENV): New.
6930         ($(objpfx)tst-prelink-conflict.out): Likewise.
6931         ($(objpfx)tst-prelink-cmp.out): Likewise.
6932         * sysdeps/x86/tst-prelink.c: Moved to ...
6933         * elf/tst-prelink.c: Here.
6934         * sysdeps/x86/tst-prelink.exp: Moved to ...
6935         * elf/tst-prelink.exp: Here.
6936         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6937         (tst-prelink-ENV): Removed.
6938         ($(objpfx)tst-prelink-conflict.out): Likewise.
6939         ($(objpfx)tst-prelink-cmp.out): Likewise.
6940         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6941
6942 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6943
6944         [BZ #14551]
6945         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6946         (__mpn_construct_long_double): If high part overflows to infinity,
6947         set errno and recompute overflowed result of the correct sign.
6948         * sysdeps/ieee754/ldbl-128ibm/Makefile
6949         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6950         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6951         $(libm).
6952         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6953
6954 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6955
6956         [BZ #15479]
6957         [BZ #19238]
6958         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6959         floating-point state after first operation on input.  Restore full
6960         state rather than just rounding mode.
6961         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6962         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6963         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6964
6965         [BZ #19235]
6966         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6967         add 0.5 to integer arguments.
6968         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6969         Likewise.
6970         (.LC2): New object.
6971
6972 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6973
6974         * scripts/pylintrc (reports): Set to no.
6975
6976 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6977
6978         * elf/dl-load.c (open_verify): Take new argument FD.
6979         Skip __open call if passed FD is not -1.
6980         (_dl_map_object, open_path): Update callers.
6981         * elf/dl-sysdep-open.h: New file.
6982         * elf/dl-load.c: Include it.
6983         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6984         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6985         * sysdeps/nacl/dl-sysdep-open.h: New file.
6986         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6987         from libc to rtld.
6988
6989 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6990
6991         [BZ #19228]
6992         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6993         and restore full floating-point state.
6994         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6995         Likewise.
6996         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6997         Likewise.
6998         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6999         Likewise.
7000         * math/test-nearbyint-except-2.c: New file.
7001         * math/Makefile (tests): Add test-nearbyint-except-2.
7002
7003 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7004
7005         [BZ #19178]
7006         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7007         (tst-prelink-ENV): New.
7008         ($(objpfx)tst-prelink-conflict.out): Likewise.
7009         ($(objpfx)tst-prelink-cmp.out): Likewise.
7010         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7011         * sysdeps/x86/tst-prelink.c: New file.
7012         * sysdeps/x86/tst-prelink.exp: Likewise.
7013
7014 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7015
7016         * math/auto-libm-test-in: Add another test of pow.
7017         * math/auto-libm-test-out: Regenerated.
7018         * math/libm-test.inc (pow_test_data): Add another test.
7019
7020 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7021
7022         [BZ #19219]
7023         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7024         weak_alias to nearbyintl.
7025
7026 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7027
7028         * sysdeps/aarch64/bits/string.h: New file.
7029         (_STRING_ARCH_unaligned): Define.
7030
7031 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7032
7033         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7034         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7035         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7036         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7038
7039 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7040
7041         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7042         for original name of the DSO.  Add it to the name list of the DSO
7043         if it is actually given.
7044         (_dl_map_object): Keep track of whether an audit module rewrote
7045         the file name.  If yes, pass the original name to
7046         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7047         debugging is enabled, log the change of the file name.
7048         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7049         _dl_map_object_from_fd.
7050         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7051         * elf/tst-audit11.c: New file
7052         * elf/tst-auditmod11.c: New file.
7053         * elf/tst-audit11mod1.c: New file.
7054         * elf/tst-audit11mod2.c: New file.
7055         * elf/tst-audit11mod2.map: New file.
7056         * elf/tst-audit12.c: New file
7057         * elf/tst-auditmod12.c: New file.
7058         * elf/tst-audit12mod1.c: New file.
7059         * elf/tst-audit12mod2.c: New file.
7060         * elf/tst-audit12mod2.map: New file.
7061         * elf/tst-audit12mod3.c: New file.
7062
7063 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7064
7065         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7066         Don't create weak aliases,
7067         because versioned symbols are created later.
7068         * sysdeps/s390/s390-32/setjmp.S
7069         (setjmp, _setjmp): Remove weak and rename to an unique name
7070         in SHARED case due to existing versioned symbols.
7071         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7072         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7073         (getcontext): Create weak alias only in non SHARED case.
7074         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7075
7076 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7077
7078         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7079         (__ASSUME_*_SYSCALL) Define new macros.
7080         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7081         Remove socketcall syscalls.
7082         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7083         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7084         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7085         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7086         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7087         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7088
7089 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7090
7091         [BZ #12926]
7092         Terminate process on invalid netlink response.
7093         * sysdeps/unix/sysv/linux/netlinkaccess.h
7094         (__netlink_assert_response): Declare.
7095         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7096         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7097         (sysdep_routines): Add netlink_assert_response.
7098         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7099         __netlink_assert_response.
7100         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7101         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7102         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7103         __netlink_assert_response.
7104
7105 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7106
7107         [BZ #19178]
7108         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7109         (RTYPE_CLASS_PLT): Likewise.
7110         (RTYPE_CLASS_COPY): Likewise.
7111         (RTYPE_CLASS_TLS): Likewise.
7112         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7113         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7114         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7115         DL_DEBUG_PRELINK.
7116
7117 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7118
7119         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7120         calls with argument -0.5.
7121         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7122
7123         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7124         (libc_cv_z_nodlopen): Likewise.
7125         (libc_cv_z_initfirst): Likewise.
7126         * configure: Regenerated.
7127
7128 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7129
7130         Simplify abilist format to be line-based.
7131         * scripts/abilist.awk: Collect descriptors in the descs variable.
7132         (emit): Write descs variable and sort it
7133         externally, with sort.
7134         * sysdeps/**/*.abilist: Convert to new format.
7135
7136 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7137
7138         [BZ #11460]
7139         * io/Makefile (routines): Add fts64.
7140         (tests): Add tst-fts and tst-fts-lfs.
7141         (CFLAGS-fts64.c): New.
7142         * io/Versions (GLIBC_2.23): New.
7143         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7144         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7145         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7146         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7147         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7148         (FTSENT64): Likewise.
7149         (fts64_children): Likewise.
7150         (fts64_close): Likewise.
7151         (fts64_open): Likewise.
7152         (fts64_read): Likewise.
7153         (fts64_set): Likewise.
7154         * io/fts64.c: New file.
7155         * io/tst-fts.c: New test.
7156         * io/tst-fts-lfs.c: Likewise.
7157         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7158         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7159         fts64_set.
7160         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7161         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7162         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7163         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7164         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7165         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7166         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7167         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7168         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7169         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7170         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7171         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7172         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7174         Likewise.
7175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7176         Likewise.
7177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7179         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7180         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7181         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7182         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7183         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7184         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7185         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7186         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7187         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7188         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7189         * sysdeps/wordsize-64/fts.c: New file.
7190         * sysdeps/wordsize-64/fts64.c: Likewise.
7191         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7192         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7193         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7194         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7195
7196 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7197
7198         * math/libm-test.inc (NON_FINITE): New macro.
7199         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7200         * math/gen-libm-test.pl (show_exceptions): Add argument
7201         $non_finite.
7202         (parse_args): Update call to show_exceptions.
7203         * math/test-math-finite.h: New file.
7204         * math/test-math-no-finite.h: Likewise.
7205         * math/test-double-finite.c: Likewise.
7206         * math/test-float-finite.c: Likewise.
7207         * math/test-ldouble-finite.c: Likewise.
7208         * math/test-double.c: Include "test-math-no-finite.h".
7209         * math/test-float.c: Include "test-math-no-finite.h".
7210         * math/test-ldouble.c: Include "test-math-no-finite.h".
7211         * math/test-math-inline.h (TEST_FINITE): New macro.
7212         * math/test-math-vector.h (TEST_FINITE): Likewise.
7213         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7214         (libm-tests): Add test-float-finite and test-double-finite.
7215         ($(objpfx)test-float-finite.o): New dependency on
7216         $(objpfx)libm-test.stmp.
7217         ($(objpfx)test-double-finite.o): Likewise.
7218         ($(objpfx)test-ldouble-finite.o): Likewise.
7219         (libm-test-no-inline-cflags): New variable.
7220         (libm-test-finite-cflags): Likewise.
7221         (CFLAGS-test-float-finite.c): Likewise.
7222         (CFLAGS-test-double-finite.c): Likewise.
7223         (CFLAGS-test-ldouble-finite.c): Likewise.
7224         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7225         (CFLAGS-test-double.c): Likewise.
7226         (CFLAGS-test-ldouble.c): Likewise.
7227
7228 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7229
7230         * io/fcntl.c (__fcntl): Add ... to prototype.
7231         * misc/ioctl.c (__ioctl): Likewise.
7232         * misc/syscall.c (syscall): Likewise.
7233
7234 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7235
7236         * scripts/list-fixed-bugs.py: New file.
7237
7238         [BZ #19213]
7239         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7240         returned for argument 1.
7241         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7242         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7243         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7244         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7245         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7246         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7247
7248         [BZ #19211]
7249         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7250         __USE_XOPEN], not if [!__USE_ISOC99].
7251         (lgammaf): Likewise.
7252         (lgammal): Likewise.
7253         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7254         (gammaf): Likewise.
7255         (gammal): Likewise.
7256         * math/test-signgam-finite-c11.c: New file.
7257         * math/test-signgam-finite-c99.c: Likewise.
7258         * math/test-signgam-finite.c: Likewise.
7259         * math/Makefile (tests): Add test-signgam-finite,
7260         test-signgam-finite-c99 and test-signgam-finite-c11.
7261         (CFLAGS-test-signgam-finite.c): New variable.
7262         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7263         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7264
7265         [BZ #19212]
7266         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7267         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7268         500].
7269         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7270         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7271         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7272         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7273         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7274         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7275         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7276         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7277         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7278         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7279
7280         [BZ #19209]
7281         * math/bits/math-finite.h (ldexp): Remove declaration.
7282         (ldexpf): Likewise.
7283         (ldexpl): Likewise.
7284
7285         [BZ #19205]
7286         * math/bits/math-finite.h (acosf): Condition declaration on
7287         [__USE_ISOC99].
7288         (acosl): Likewise.
7289         (acoshf): Likewise.
7290         (acoshl): Likewise.
7291         (asinf): Likewise.
7292         (asinl): Likewise.
7293         (atan2f): Likewise.
7294         (atan2l): Likewise.
7295         (atanhf): Likewise.
7296         (atanhl): Likewise.
7297         (coshf): Likewise.
7298         (coshl): Likewise.
7299         (expf): Likewise.
7300         (expl): Likewise.
7301         (fmodf): Likewise.
7302         (fmodl): Likewise.
7303         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7304         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7305         (j0l): Likewise.
7306         (y0f): Likewise.
7307         (y0l): Likewise.
7308         (j1f): Likewise.
7309         (j1l): Likewise.
7310         (y1f): Likewise.
7311         (y1l): Likewise.
7312         (jnf): Likewise.
7313         (jnl): Likewise.
7314         (ynf): Likewise.
7315         (ynl): Likewise.
7316         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7317         (lgammal_r): Likewise.
7318         (__lgamma_r_finite): New declaration.
7319         (__lgammaf_r_finite): Likewise.
7320         (__lgammal_r_finite): Likewise.
7321         (lgamma): Use __lgamma_r_finite.
7322         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7323         __lgammaf_r_finite.
7324         (lgammal): Condition definition on [__USE_ISOC99].  Use
7325         __lgammal_r_finite.
7326         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7327         __lgamma_r_finite.
7328         (gammaf): Condition definition on [__USE_ISOC99].  Use
7329         __lgammaf_r_finite.
7330         (gammal): Condition definition on [__USE_ISOC99].  Use
7331         __lgammal_r_finite.
7332         (logf): Condition declaration on [__USE_ISOC99].
7333         (logl): Likewise.
7334         (log10f): Likewise.
7335         (log10l): Likewise.
7336         (ldexpf): Likewise.
7337         (ldexpl): Likewise.
7338         (powf): Likewise.
7339         (powl): Likewise.
7340         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7341         __USE_ISOC99].
7342         (remainderf): Condition declaration on [__USE_ISOC99].
7343         (remainderl): Likewise.
7344         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7345         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7346         (scalbl): Likewise.
7347         (sinhf): Condition declaration on [__USE_ISOC99].
7348         (sinhl): Likewise.
7349         (sqrtf): Likewise.
7350         (sqrtl): Likewise.
7351
7352 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7353
7354         * sysdeps/arm/atomic-machine.h
7355         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7356         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7357         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7358         Remove conditional code.
7359         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7360         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7361         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7362         Change conditional to [__ASSEMBLER__].
7363         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7364         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7365         [!__ASSEMBLER__].
7366         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7367         code.
7368         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7369         conditional macro definitions.
7370         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7371         (__arch_compare_and_exchange_val_16_acq): Likewise.
7372         (__arch_compare_and_exchange_val_32_acq): Likewise.
7373         (atomic_exchange_and_add): Likewise.
7374         (atomic_add): Likewise.
7375         (atomic_add_negative): Likewise.
7376         (atomic_add_zero): Likewise.
7377         (atomic_bit_set): Likewise.
7378         (atomic_bit_test_set): Likewise.
7379         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7380         code unconditional.
7381         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7382
7383         * math/test-math-errno.h: New file.
7384         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7385         empty.
7386         (TEST_ERRNO): New macro.
7387         (TEST_EXCEPTIONS): Likewise.
7388         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7389         (TEST_EXCEPTIONS): Likewise.
7390         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7391         * math/test-double.c: Include "test-math-errno.h".
7392         * math/test-float.c: Likewise.
7393         * math/test-ldouble.c: Likewise.
7394         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7395         code unconditional.
7396         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7397         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7398         unconditional.
7399         (test_errno): Only run code if TEST_ERRNO.
7400         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7401
7402 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7403
7404         * nptl/tst-once5.cc: Remove attribution.
7405
7406 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7407
7408         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7409         sqrt, tan, tanh, y0, y1 and yn.
7410         * math/auto-libm-test-out: Regenerated.
7411         * math/libm-test.inc (scalb_test_data): Add more tests.
7412         (scalbn_test_data): Likewise.
7413         (scalbln_test_data): Likewise.
7414         (signbit_test_data): Likewise.
7415         (sin_test_data): Likewise.
7416         (sincos_test_data): Likewise.
7417         (sinh_test_data): Likewise.
7418         (sqrt_test_data): Likewise.
7419         (tan_test_data): Likewise.
7420         (tanh_test_data): Likewise.
7421         (tgamma_test_data): Likewise.
7422         (y0_test_data): Likewise.
7423         (y1_test_data): Likewise.
7424         (yn_test_data): Likewise.
7425         (significand_test_data): Likewise.
7426         * sysdeps/i386/fpu/libm-test-ulps: Update.
7427
7428 2015-11-03  David Kastrup  <dak@gnu.org>
7429
7430         [BZ #18604]
7431         * assert/assert.h (assert): Don't macro-expand failed assertion
7432         expression in error message.
7433         * malloc/malloc.c (assert): Likewise.
7434
7435 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7436
7437         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7438         test.
7439         * configure: Regenerated.
7440
7441 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7442
7443         * math/libm-test.inc (modf_test_data): Add more tests.
7444         (nearbyint_test_data): Likewise.
7445         (nextafter_test_data): Likewise.
7446         (nexttoward_test_data): Likewise.
7447         (pow_test_data): Likewise.
7448         (remainder_test_data): Likewise.
7449         (remquo_test_data): Likewise.
7450         (rint_test_data): Likewise.
7451
7452         [BZ #19201]
7453         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7454         Check for zero remainder in case of large exponents and ensure
7455         correct sign of result in that case.
7456         * math/libm-test.inc (remainder_test_data): Add more tests.
7457
7458         [BZ #6799]
7459         * math/s_nextafter.c: Include <errno.h>.
7460         (__nextafter): Set errno on overflow and underflow.
7461         * math/s_nexttowardf.c: Include <errno.h>.
7462         (__nexttowardf): Set errno on overflow and underflow.
7463         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7464         (__nextafterl): Set errno on overflow and underflow.
7465         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7466         (__nexttoward): Set errno on overflow and underflow.
7467         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7468         (__nexttowardf): Set errno on overflow and underflow.
7469         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7470         (__nextafterf): Set errno on overflow and underflow.
7471         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7472         (__nextafterl): Set errno on overflow and underflow.
7473         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7474         (__nexttoward): Set errno on overflow and underflow.
7475         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7476         (__nexttowardf): Set errno on overflow and underflow.
7477         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7478         (__nextafterl): Set errno on overflow and underflow.
7479         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7480         (__nexttoward): Set errno on overflow and underflow.
7481         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7482         (__nexttowardf): Set errno on overflow and underflow.
7483         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7484         (__nexttoward): Set errno on overflow and underflow.
7485         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7486         (__nexttowardf): Set errno on overflow and underflow.
7487         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7488         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7489         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7490         (__nextafterl): Set errno on overflow and underflow.
7491         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7492         setting to be missing on overflow.  Add more tests.
7493         (nexttoward_test_data): Likewise.
7494
7495         * configure.ac (libc_cv_initfini_array): Remove configure test.
7496         * configure: Regenerated.
7497
7498 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7499
7500         [BZ #19189]
7501         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7502         non-finite argument handle arguments with negative sign.
7503
7504         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7505         result from infinite argument.
7506         (j1_test_data): Likewise.
7507         (jn_test_data): Likewise.
7508         (y0_test_data): Likewise.
7509         (y1_test_data): Likewise.
7510         (yn_test_data): Likewise.
7511
7512         [BZ #16171]
7513         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7514         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7515         * math/w_remainderf.c (dremf): Define as weak alias of
7516         __remainderf.
7517         * math/w_remainderl.c (dreml): Define as weak alias of
7518         __remainderl.
7519         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7520         __remainder.
7521         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7522         __remainderf.
7523         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7524         __remainderl.
7525         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7526         weak alias of remainderl.
7527         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7528         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7529         alias of __remainder.
7530         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7531         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7532         strong alias of __remainderl.
7533         (dreml): Use long_double_symbol.
7534         * math/Makefile (libm-calls): Remove w_drem.
7535         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7536         (CFLAGS-nldbl-drem.c): Remove variable.
7537         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7538         * math/w_drem.c: Remove file.
7539         * math/w_dremf.c: Likewise.
7540         * math/w_dreml.c: Likewise.
7541         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7542         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7543         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7544
7545         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7546         * sysdeps/i386/configure: Regenerated.
7547         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7548         * sysdeps/x86_64/configure: Regenerated.
7549
7550         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7551         test.
7552         (libc_cv_visibility_attribute): Likewise.
7553         (libc_cv_protected_data): Test unconditionally.
7554         (libc_cv_broken_visibility_attribute): Remove configure test.
7555         (libc_cv_have_sdata_section): Test unconditionally.
7556         * configure: Regenerated.
7557
7558         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7559         * include/scratch_buffer.h: Include <stddef.h> instead of
7560         <libc-internal.h>.
7561         (struct scratch_buffer): Use max_align_t instead of
7562         libc_max_align_t.
7563
7564 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7565
7566         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7567         instead of extend_alloca.  Change control flow to avoid a goto.
7568         Remove assert which is trivially always true.
7569
7570 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7571
7572         [BZ #16068]
7573         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7574         (FE_ALL_EXCEPT_X86): New macro.
7575         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7576         FE_ALL_EXCEPT.  Ensure precision control is included in
7577         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7578         handle "denormal operand exception" and clear FZ and DAZ bits.
7579         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7580         (FE_ALL_EXCEPT_X86): New macro.
7581         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7582         FE_ALL_EXCEPT.  Ensure precision control is included in
7583         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7584         handle "denormal operand exception" and clear FZ and DAZ bits.
7585         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7586         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7587         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7588         test-fenv-x87 and test-fenv-sse-2.
7589         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7590
7591         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7592         * math/test-double.h (BUILD_COMPLEX): New macro.
7593         * math/test-float.h (BUILD_COMPLEX): Likewise.
7594         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7595
7596         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7597         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7598         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7599         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7600         instead of DBL_DENORM_MIN in comment.
7601         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7602         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7603         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7604         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7605         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7606         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7607
7608 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7609
7610         [BZ# 19048]
7611         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7612         attached_threads member.
7613         (main_arena): Initialize attached_threads.
7614         * malloc/arena.c (list_lock): Update comment.
7615         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7616         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7617         (deattach_arena): New function.
7618         (_int_new_arena): Initialize arena reference count and deattach
7619         replaced arena.
7620         (get_free_list, reused_arena): Update reference count and deattach
7621         replaced arena.
7622         (arena_thread_freeres): Update arena reference count and only put
7623         unreferenced arenas on the free list.
7624
7625 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7626
7627         [BZ #19181]
7628         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7629         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7630         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7631         * math/test-fenv-clear-main.c: New file.
7632         * math/test-fenv-clear.c: Likewise.
7633         * math/Makefile (tests): Add test-fenv-clear.
7634         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7635         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7636         test-fenv-clear-sse.
7637         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7638
7639         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7640         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7641         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7642
7643 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7644
7645         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7646         static libc.
7647
7648 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7649
7650         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7651         test.
7652         * sysdeps/i386/configure: Regenerated.
7653         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7654         test.
7655         * sysdeps/x86_64/configure: Regenerated.
7656         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7657         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7658         memset-avx2 unconditionally instead of conditionally on
7659         [$(config-cflags-avx2) = yes].
7660         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7661         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7662         unconditional.
7663         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7664         * sysdeps/x86_64/multiarch/memset_chk.S
7665         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7666         to [IS_IN (libc) && SHARED].
7667
7668 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7669
7670         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7671         configure test.
7672         * sysdeps/arm/configure: Regenerated.
7673         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7674         Define variable if not already defined.
7675
7676         [BZ #17404]
7677         * sysdeps/mips/atomic-machine.h
7678         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7679         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7680         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7681
7682         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7683         unconditional.
7684         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7685         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7686         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7687         unconditional.
7688         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7689         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7690         unconditional.
7691         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7692         * stdlib/setenv.c
7693         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7694         code unconditional.
7695         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7696         Remove conditional code.
7697         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7698         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7699         unconditional.
7700         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7701         code.
7702         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7703         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7704         unconditional.
7705         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7706         code.
7707         * sysdeps/ieee754/ldbl-128/k_tanl.c
7708         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7709         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7710         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7711         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7712         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7713         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7714         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7715         unconditional.
7716         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7717         code.
7718         * sysdeps/ieee754/ldbl-96/k_tanl.c
7719         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7720         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7721
7722         * nptl/tst-initializers1-c11.c: New file.
7723         * nptl/tst-initializers1-gnu11.c: Likewise.
7724         * nptl/Makefile (tests): Add these new tests.
7725         (CFLAGS-tst-initializers1-c11.c): New variable.
7726         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7727
7728         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7729         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7730         instead of -std=gnu99.
7731         * configure.ac (systemtap): Test with -std=gnu11 instead of
7732         -std=gnu99.
7733         * configure: Regenerated.
7734         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7735         in compilation command in comment.
7736
7737         * sysdeps/nptl/configure.ac: Remove file.
7738         * sysdeps/nptl/configure: Remove generated file.
7739         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7740         * configure: Regenerated.
7741         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7742         * config.make.in (have-forced-unwind): Remove variable.
7743         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7744         unconditional.
7745         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7746         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7747         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7748         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7749         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7750         unconditional.
7751
7752 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7753
7754         [BZ #19174]
7755         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7756         .skip_lock_out_of_tbegin_retries.
7757         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7758         (__lll_lock_elision): Likewise, and respect a value of
7759         try_tbegin <= 0.
7760
7761 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7762
7763         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7764         statement.
7765
7766 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7767
7768         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7769         variable.
7770         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7771         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7772
7773         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7774         of -std=c1x -D_ISOC11_SOURCE.
7775
7776         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7777         * configure: Regenerated.
7778         * manual/install.texi (Tools for Compilation): Document
7779         requirement for GCC 4.7 or later.
7780         * INSTALL: Regenerated.
7781
7782 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7783
7784         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7785         on CNT to a conditional jump to 'puntdata'.
7786
7787 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7788
7789         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7790         (libc_cv_gcc_tls_model_attr): Likewise.
7791         * configure: Regenerated.
7792
7793         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7794         * configure: Regenerated.
7795         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7796
7797 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7798
7799         * configure.ac (old_glibc_headers): Remove configure test.
7800         * configure: Regenerated.
7801         * config.make.in (old-glibc-headers): Remove variable.
7802         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7803         (install): Remove dependency on remove-old-headers.
7804         (headers2_0): Remove variable.
7805         (remove-old-headers): Remove rule.
7806
7807         * configure.ac (libc_cv_dot_text): Remove configure test.
7808         (libc_cv_asm_set_directive): Use .text instead of
7809         ${libc_cv_dot_text} in configure test.
7810         * configure: Regenerated.
7811
7812 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7813
7814         [BZ #19168]
7815         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7816
7817 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7818
7819         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7820         not support static linking.
7821         * configure: Regenerate.
7822
7823 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7824
7825         * math/libm-test.inc (check_float_internal): Do not special-case
7826         errors up to 0.5 ulp.
7827
7828         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7829         log2.
7830         * math/auto-libm-test-out: Regenerated.
7831         * math/libm-test.inc (MAX_EXP): New macro.
7832         (ilogb_test_data): Add more tests.
7833         (isfinite_test_data): Likewise.
7834         (isgreater_test_data): Likewise.
7835         (isgreaterequal_test_data): Likewise.
7836         (isinf_test_data): Likewise.
7837         (isless_test_data): Likewise.
7838         (islessequal_test_data): Likewise.
7839         (islessgreater_test_data): Likewise.
7840         (isnan_test_data): Likewise.
7841         (isnormal_test_data): Likewise.
7842         (issignaling_test_data): Likewise.
7843         (isunordered_test_data): Likewise.
7844         (j0_test_data): Likewise.
7845         (j1_test_data): Likewise.
7846         (jn_test_data): Likewise.
7847         (lgamma_test_data): Likewise.
7848         (log_test_data): Likewise.
7849         (log10_test_data): Likewise.
7850         (log1p_test_data): Likewise.
7851         (log2_test_data): Likewise.
7852         (logb_test_data): Likewise.
7853         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7854
7855         [BZ #18611]
7856         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7857         avoid excess range and precision on underflow.
7858         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7859         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7860         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7861         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7862         underflow.
7863         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7864         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7865         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7866         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7867         * math/auto-libm-test-in: Do not allow missing errno setting for
7868         tests of j1 and jn.
7869         * math/auto-libm-test-out: Regenerated.
7870
7871 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7872
7873         [BZ #15491]
7874         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7875         floating-point environment instead of clearing all exceptions.
7876         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7877         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7878         merging in "invalid" exceptions from frndint.
7879         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7880         * math/test-nearbyint-except.c: New file.
7881         * math/Makefile (tests): Add test-nearbyint-except.
7882
7883 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7884
7885         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7886
7887         * sysdeps/tile/libm-test-ulps: Regenerated.
7888
7889 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7890
7891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7892         (__NR_sync_file_range2): Assume it is always defined.
7893         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7894         (__NR_sync_file_range): Assume it is always defined.
7895
7896 2015-10-22  Andreas Schwab  <schwab@suse.de>
7897
7898         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7899         INTERNAL_SYSCALL_ERRNO.
7900         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7901         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7902         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7903         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7904         Likewise.
7905         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7906
7907 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7908
7909         * io/tst-fcntl.c (fd): New static variable.
7910         (do_prepare): Open temporary file here....
7911         (do_test): ...not here.
7912
7913         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7914
7915 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7916
7917         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7918         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7919         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7920         Moved before "#ifdef __ASSEMBLER__".
7921
7922 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7923
7924         [BZ #19156]
7925         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7926         arguments very close to 0.
7927
7928 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7929
7930         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7931         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7932
7933 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7934
7935         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7936         New.  Defined for GCC 5 and above when not compiling for
7937         profiling.
7938         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7939
7940         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7941         Renamed to ...
7942         (CFLAGS-epoll_pwait.o): This.
7943         (CFLAGS-mmap.c): Renamed to ...
7944         (CFLAGS-mmap.o): This.
7945         (CFLAGS-mmap64.c): Renamed to ...
7946         (CFLAGS-mmap64.o): This.
7947         (CFLAGS-epoll_pwait.os): New.
7948         (CFLAGS-mmap.os): Likewise.
7949         (CFLAGS-mmap64.os): Likewise.
7950         (CFLAGS-semtimedop.os): Likewise.
7951         (CFLAGS-semtimedop.c): Renamed to ...
7952         (CFLAGS-semtimedop.o): This.
7953
7954 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7955
7956         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7957         warning message.
7958
7959 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7960
7961         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7962         * Makefile ($(objpfx)c++-types-check.out): Filter out
7963         $(+gccwarn-c) instead of -Wstrict-prototypes.
7964
7965         * io/fts.c (fts_open): Convert to prototype-style function
7966         definition.
7967         * malloc/mcheck.c (mcheck): Likewise.
7968         (mcheck_pedantic): Likewise.
7969         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7970         internal_function.
7971         (re_search_internal): Likewise.
7972         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7973         prototype-style function definition.
7974         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7975         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7976         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7977         (xdr_utmpptr): Likewise.
7978         (xdr_utmparr): Likewise.
7979         (xdr_utmpidle): Likewise.
7980         (xdr_utmpidleptr): Likewise.
7981         (xdr_utmpidlearr): Likewise.
7982
7983         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7984         log, log10 and log2.
7985         * math/auto-libm-test-out: Regenerated.
7986         * math/libm-test.inc (fmod_test_data): Add more tests.
7987         (fpclassify_test_data): Likewise.
7988         (frexp_test_data): Likewise.
7989         (hypot_test_data): Likewise.
7990         (ilogb_test_data): Likewise.
7991
7992 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7993
7994         * debug/fortify_fail.c (__fortify_fail): Convert to
7995         prototype-style function definition.  Use internal_function.
7996         * libio/genops.c (save_for_backup): Convert to prototype-style
7997         function definition.
7998         * libio/wgenops.c (save_for_wbackup): Likewise.
7999         * login/grantpt.c (grantpt): Likewise.
8000         * login/ptsname.c (ptsname): Likewise.
8001         (__ptsname_r): Likewise.
8002         * login/unlockpt.c (unlockpt): Likewise.
8003         * mach/msgserver.c (__mach_msg_server): Likewise.
8004         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8005         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8006         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8007         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8008         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8009         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8010         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8011         Likewise.
8012         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8013         internal_function.
8014         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8015         prototype-style function definition.
8016         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8017         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8018         (__pthread_create_2_0): Likewise.
8019         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8020         * nptl/register-atfork.c (__register_atfork): Likewise.
8021         * posix/glob.c (glob): Likewise.
8022         * posix/regcomp.c (re_comp): Likewise.
8023         * posix/regexec.c (re_exec): Likewise.
8024         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8025         [!__STDC__]: Remove conditional code.
8026         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8027         [!__STDC__]: Remove conditional code.
8028         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8029         [!__STDC__]: Remove conditional code.
8030         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8031         [!__STDC__]: Remove conditional code.
8032         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8033         [!__STDC__]: Remove conditional code.
8034         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8035         [!__STDC__]: Remove conditional code.
8036         * stdlib/mul.c [__STDC__]: Make code unconditional.
8037         [!__STDC__]: Remove conditional code.
8038         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8039         [!__STDC__]: Remove conditional code.
8040         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8041         [!__STDC__]: Remove conditional code.
8042         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8043         function definition.
8044         (STRTOF): Likewise.
8045         * stdlib/strtod_l.c (__STRTOF): Likewise.
8046         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8047         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8048         (__strtol_l): Likewise.
8049         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8050         [!__STDC__]: Remove conditional code.
8051         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8052         definition.
8053         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8054         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8055         type.
8056         (__strcasecmp): Convert to prototype-style function definition.
8057         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8058         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8059         type.
8060         (__strncasecmp): Convert to prototype-style function definition.
8061         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8062         * sunrpc/xdr.c (xdr_union): Likewise.
8063         * sunrpc/xdr_array.c (xdr_array): Likewise.
8064         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8065         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8066         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8067         Likewise.
8068         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8069         Likewise.
8070         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8071         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8072         Likewise.
8073         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8074         (LOCALE_PARAM_PROTO): Likewise.
8075         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8076         argument type.
8077         (ut_argument_spec): Remove macro.
8078         (ut_argument_spec_iso): Rename to ut_argument_spec.
8079         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8080         prototype-style function definition.
8081         (memcpy_uppcase): Likewise.
8082         (__strftime_internal): Likewise.
8083         (my_strftime): Likewise.
8084         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8085         (LOCALE_PARAM_DECL): Likewise.
8086         [_LIBC] (LOCALE_PARAM): Include argument type.
8087         (__strptime_internal): Convert to prototype-style function
8088         definition.
8089         (strptime): Likewise.
8090         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8091         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8092         type.
8093         (__wcscasecmp): Convert to prototype-style function definition.
8094         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8095         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8096         type.
8097         (__wcsncasecmp): Convert to prototype-style function definition.
8098
8099         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8100         function definition.
8101         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8102         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8103         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8104         * elf/dl-minimal.c (_itoa): Likewise.
8105         * hurd/hurdmalloc.c (malloc): Likewise.
8106         (free): Likewise.
8107         (realloc): Likewise.
8108         * inet/inet6_option.c (inet6_option_space): Likewise.
8109         (inet6_option_init): Likewise.
8110         (inet6_option_append): Likewise.
8111         (inet6_option_alloc): Likewise.
8112         (inet6_option_next): Likewise.
8113         (inet6_option_find): Likewise.
8114         * io/ftw.c (FTW_NAME): Likewise.
8115         (NFTW_NAME): Likewise.
8116         (NFTW_NEW_NAME): Likewise.
8117         (NFTW_OLD_NAME): Likewise.
8118         * libio/iofwide.c (_IO_fwide): Likewise.
8119         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8120         (_IO_str_init_static): Likewise.
8121         (_IO_str_init_readonly): Likewise.
8122         (_IO_str_overflow): Likewise.
8123         (_IO_str_underflow): Likewise.
8124         (_IO_str_count): Likewise.
8125         (_IO_str_seekoff): Likewise.
8126         (_IO_str_pbackfail): Likewise.
8127         (_IO_str_finish): Likewise.
8128         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8129         (_IO_wstr_overflow): Likewise.
8130         (_IO_wstr_underflow): Likewise.
8131         (_IO_wstr_count): Likewise.
8132         (_IO_wstr_seekoff): Likewise.
8133         (_IO_wstr_pbackfail): Likewise.
8134         (_IO_wstr_finish): Likewise.
8135         * locale/programs/localedef.c (normalize_codeset): Likewise.
8136         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8137         (add_locales_to_archive): Likewise.
8138         (delete_locales_from_archive): Likewise.
8139         * malloc/malloc.c (__libc_mallinfo): Likewise.
8140         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8141         * misc/tsearch.c (__tfind): Likewise.
8142         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8143         * nptl/pthread_attr_getdetachstate.c
8144         (__pthread_attr_getdetachstate): Likewise.
8145         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8146         Likewise.
8147         * nptl/pthread_attr_getinheritsched.c
8148         (__pthread_attr_getinheritsched): Likewise.
8149         * nptl/pthread_attr_getschedparam.c
8150         (__pthread_attr_getschedparam): Likewise.
8151         * nptl/pthread_attr_getschedpolicy.c
8152         (__pthread_attr_getschedpolicy): Likewise.
8153         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8154         Likewise.
8155         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8156         Likewise.
8157         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8158         Likewise.
8159         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8160         Likewise.
8161         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8162         (__pthread_attr_init_2_0): Likewise.
8163         * nptl/pthread_attr_setdetachstate.c
8164         (__pthread_attr_setdetachstate): Likewise.
8165         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8166         Likewise.
8167         * nptl/pthread_attr_setinheritsched.c
8168         (__pthread_attr_setinheritsched): Likewise.
8169         * nptl/pthread_attr_setschedparam.c
8170         (__pthread_attr_setschedparam): Likewise.
8171         * nptl/pthread_attr_setschedpolicy.c
8172         (__pthread_attr_setschedpolicy): Likewise.
8173         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8174         Likewise.
8175         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8176         Likewise.
8177         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8178         Likewise.
8179         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8180         Likewise.
8181         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8182         Likewise.
8183         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8184         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8185         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8186         use internal_function.
8187         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8188         prototype-style function definition.
8189         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8190         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8191         internal_function.
8192         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8193         Convert to prototype-style function definition.
8194         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8195         Likewise.
8196         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8197         Likewise.
8198         (__pthread_mutex_unlock): Likewise.
8199         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8200         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8201         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8202         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8203         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8204         * nss/makedb.c (process_input): Likewise.
8205         * posix/fnmatch.c (__strchrnul): Likewise.
8206         (__wcschrnul): Likewise.
8207         (fnmatch): Likewise.
8208         * posix/fnmatch_loop.c (FCT): Likewise.
8209         * posix/glob.c (globfree): Likewise.
8210         (__glob_pattern_type): Likewise.
8211         (__glob_pattern_p): Likewise.
8212         * posix/regcomp.c (re_compile_pattern): Likewise.
8213         (re_set_syntax): Likewise.
8214         (re_compile_fastmap): Likewise.
8215         (regcomp): Likewise.
8216         (regerror): Likewise.
8217         (regfree): Likewise.
8218         * posix/regexec.c (regexec): Likewise.
8219         (re_match): Likewise.
8220         (re_search): Likewise.
8221         (re_match_2): Likewise.
8222         (re_search_2): Likewise.
8223         (re_search_stub): Likewise.  Use internal_function
8224         (re_copy_regs): Likewise.
8225         (re_set_registers): Convert to prototype-style function
8226         definition.
8227         (prune_impossible_nodes): Likewise.  Use internal_function.
8228         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8229         prototype-style function definition.
8230         (inet_net_pton_ipv4): Likewise.
8231         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8232         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8233         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8234         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8235         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8236         Make variadic.
8237         * time/strptime_l.c (localtime_r): Convert to prototype-style
8238         function definition.
8239         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8240         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8241         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8242         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8243
8244         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8245         definition.
8246         (_ufc_doit_r): Likewise.
8247         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8248         (_ufc_output_conversion_r): Likewise.
8249         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8250         * inet/rcmd.c (rcmd_af): Likewise.
8251         (rcmd): Likewise.
8252         (ruserok_af): Likewise.
8253         (ruserok): Likewise.
8254         (ruserok2_sa): Likewise.
8255         (ruserok_sa): Likewise.
8256         (iruserok_af): Likewise.
8257         (iruserok): Likewise.
8258         (__ivaliduser): Likewise.
8259         (__validuser2_sa): Likewise.
8260         * inet/rexec.c (rexec_af): Likewise.
8261         (rexec): Likewise.
8262         * inet/ruserpass.c (ruserpass): Likewise.
8263         * locale/programs/xmalloc.c (xcalloc): Likewise.
8264         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8265         * math/w_drem.c (__drem): Likewise.
8266         * math/w_dremf.c (__dremf): Likewise.
8267         * math/w_dreml.c (__dreml): Likewise.
8268         * misc/daemon.c (daemon): Likewise.
8269         * resolv/res_debug.c (p_fqnname): Likewise.
8270         * stdlib/div.c (div): Likewise.
8271         * string/memcmp.c (memcmp_bytes): Likewise.
8272         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8273         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8274
8275         * crypt/cert.c (main): Convert to prototype-style function
8276         definition.
8277         * io/pipe.c (__pipe): Likewise.
8278         * io/pipe2.c (__pipe2): Likewise.
8279         * misc/futimesat.c (futimesat): Likewise.
8280         * misc/utimes.c (__utimes): Likewise.
8281         * posix/execve.c (__execve): Likewise.
8282         * posix/execvp.c (execvp): Likewise.
8283         * posix/execvpe.c (__execvpe): Likewise.
8284         * posix/fexecve.c (fexecve): Likewise.
8285         * socket/socketpair.c (socketpair): Likewise.
8286         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8287         * stdlib/erand48.c (erand48): Likewise.
8288         * stdlib/erand48_r.c (__erand48_r): Likewise.
8289         * stdlib/jrand48.c (jrand48): Likewise.
8290         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8291         * stdlib/lcong48.c (lcong48): Likewise.
8292         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8293         * stdlib/nrand48.c (nrand48): Likewise.
8294         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8295         * stdlib/seed48.c (seed48): Likewise.
8296         * stdlib/seed48_r.c (__seed48_r): Likewise.
8297         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8298         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8299         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8300
8301 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8302
8303         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8304         * configure: Regenerated.
8305         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8306         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8307         unconditional.
8308         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8309         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8310         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8311         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8312         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8313         unconditional.
8314         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8315
8316         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8317         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8318
8319         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8320         function definition.
8321         * crypt/crypt_util.c (__encrypt_r): Likewise.
8322         * libio/genops.c (_IO_no_init): Likewise.
8323         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8324         (_IO_old_fopencookie): Likewise.
8325         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8326         * libio/iogetline.c (_IO_getline): Likewise.
8327         (_IO_getline_info): Likewise.
8328         * libio/iogetwline.c (_IO_getwline): Likewise.
8329         (_IO_getwline_info): Likewise.
8330         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8331         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8332         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8333         (find_entry): Likewise.
8334         (iterate_table): Likewise.
8335         (lookup): Likewise.
8336         * login/forkpty.c (forkpty): Likewise.
8337         * misc/hsearch_r.c (__hsearch_r): Likewise.
8338         * misc/select.c (__select): Likewise.
8339         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8340         Likewise.
8341         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8342         Likewise.
8343         * nptl/old_pthread_cond_timedwait.c
8344         (__pthread_cond_timedwait_2_0): Likewise.
8345         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8346         * nptl/pthread_barrierattr_getpshared.c
8347         (pthread_barrierattr_getpshared): Likewise.
8348         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8349         Likewise.
8350         * nptl/pthread_mutex_setprioceiling.c
8351         (pthread_mutex_setprioceiling): Likewise.
8352         * nptl/pthread_mutexattr_getprioceiling.c
8353         (pthread_mutexattr_getprioceiling): Likewise.
8354         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8355         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8356         Likewise.
8357         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8358         Likewise.
8359         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8360         Likewise.
8361         * socket/recvfrom.c (__recvfrom): Likewise.
8362         * socket/sendto.c (__sendto): Likewise.
8363         * socket/setsockopt.c (__setsockopt): Likewise.
8364         * stdio-common/_itoa.c (_itoa): Likewise.
8365         * stdio-common/_itowa.c (_itowa): Likewise.
8366         * stdio-common/reg-printf.c (__register_printf_specifier):
8367         Likewise.
8368         (__register_printf_function): Likewise.
8369         * stdio-common/tempname.c (__path_search): Likewise.
8370         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8371         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8372         * stdlib/random_r.c (__initstate_r): Likewise.
8373         * stdlib/setenv.c (__add_to_environ): Likewise.
8374         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8375         * streams/getpmsg.c (getpmsg): Likewise.
8376         * streams/putmsg.c (putmsg): Likewise.
8377         * streams/putpmsg.c (putpmsg): Likewise.
8378         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8379         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8380         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8381         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8382         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8383         * sunrpc/svc_udp.c (cache_get): Likewise.
8384         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8385         * sysdeps/mach/hurd/getcwd.c
8386         (__canonicalize_directory_name_internal): Likewise.
8387         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8388         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8389         * sysdeps/mach/hurd/select.c (__select): Likewise.
8390         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8391         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8392         * sysdeps/sparc/nptl/pthread_barrier_init.c
8393         (__pthread_barrier_init): Likewise.
8394         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8395         (__pthread_cond_timedwait): Likewise.
8396         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8397         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8398         Likewise.
8399         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8400         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8401         Likewise.
8402         * sysvipc/semtimedop.c (semtimedop): Likewise.
8403         * time/setitimer.c (__setitimer): Likewise.
8404         * time/strftime_l.c (emacs_strftime): Likewise.
8405
8406 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8407
8408         * config.make.in (have-ssp): Delete.
8409         (stack-protector): New variable.
8410         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8411         cache test for -fstack-protector-strong.  Export stack_protector to
8412         the best ssp flag.
8413         * configure: Regenerated.
8414         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8415         * nscd/Makefile (CFLAGS-nscd): Likewise.
8416         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8417
8418 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8419
8420         [BZ #19122]
8421         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8422         attribute_hidden.
8423
8424 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8425
8426         [BZ #18743]
8427         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8428         code to...
8429         (ELIDE_LOCK): ...here.
8430         (__get_new_count): New function with part of the code from
8431         __elide_lock that updates the value of adapt_count after a
8432         transaction abort.
8433         (__elided_trylock): Moved this code to...
8434         (ELIDE_TRYLOCK): ...here.
8435
8436 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8437
8438         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8439         * configure: Regenerate.
8440         * INSTALL: Regenerate.
8441         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8442         and tweak grammar.
8443
8444 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8445
8446         * login/programs/pt_chown.c: Include signal.h
8447         (main): Clear any signal mask from the parent process.
8448
8449 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8450
8451         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8452         * configure: Regenerated.
8453         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8454         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8455         $(gnu89-inline-CFLAGS).
8456
8457         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8458         test.
8459         (libc_cv_asm_weakext_directive): Likewise.
8460         * configure: Regenerated.
8461         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8462         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8463         * include/libc-symbols.h
8464         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8465         #error.
8466         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8467         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8468
8469         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8470         prototype-style function definition.
8471         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8472         * sysdeps/i386/ffs.c (__ffs): Likewise.
8473         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8474         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8475         Likewise.
8476         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8477         Likewise.
8478         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8479         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8480         Likewise.
8481         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8482         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8483         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8484         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8485         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8486         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8487         * sysdeps/mach/hurd/access.c (__access): Likewise.
8488         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8489         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8490         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8491         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8492         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8493         (cthread_getspecific): Likewise.
8494         (cthread_setspecific): Likewise.
8495         (__libc_getspecific): Likewise.
8496         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8497         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8498         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8499         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8500         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8501         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8502         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8503         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8504         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8505         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8506         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8507         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8508         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8509         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8510         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8511         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8512         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8513         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8514         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8515         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8516         * sysdeps/mach/hurd/link.c (__link): Likewise.
8517         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8518         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8519         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8520         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8521         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8522         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8523         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8524         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8525         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8526         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8527         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8528         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8529         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8530         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8531         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8532         * sysdeps/mach/hurd/send.c (__send): Likewise.
8533         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8534         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8535         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8536         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8537         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8538         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8539         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8540         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8541         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8542         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8543         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8544         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8545         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8546         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8547         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8548         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8549         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8550         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8551         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8552         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8553         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8554         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8555         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8556         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8557         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8558         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8559         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8560         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8561         * sysdeps/posix/alarm.c (alarm): Likewise.
8562         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8563         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8564         * sysdeps/posix/dup.c (__dup): Likewise.
8565         * sysdeps/posix/dup2.c (__dup2): Likewise.
8566         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8567         (main): Likewise.
8568         * sysdeps/posix/flock.c (__flock): Likewise.
8569         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8570         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8571         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8572         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8573         * sysdeps/posix/isatty.c (__isatty): Likewise.
8574         * sysdeps/posix/killpg.c (killpg): Likewise.
8575         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8576         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8577         * sysdeps/posix/raise.c (raise): Likewise.
8578         * sysdeps/posix/remove.c (remove): Likewise.
8579         * sysdeps/posix/rename.c (rename): Likewise.
8580         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8581         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8582         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8583         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8584         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8585         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8586         * sysdeps/posix/sigset.c (sigset): Likewise.
8587         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8588         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8589         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8590         * sysdeps/posix/time.c (time): Likewise.
8591         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8592         (ttyname): Likewise.
8593         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8594         * sysdeps/posix/utime.c (utime): Likewise.
8595         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8596         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8597         Likewise.
8598         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8599         (pthread_spin_trylock): Likewise.
8600         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8601         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8602         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8603         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8604         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8605         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8606         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8607         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8608         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8609         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8610         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8611         * sysdeps/s390/ffs.c (__ffs): Likewise.
8612         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8613         Likewise.
8614         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8615         Likewise.
8616         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8617         Likewise.
8618         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8619         (pthread_barrier_destroy): Likewise.
8620         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8621         (__pthread_barrier_wait): Likewise.
8622         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8623         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8624         (__pthread_barrier_wait): Likewise.
8625         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8626         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8627         (memcmp_not_common_alignment): Likewise.
8628         (MEMCMP): Likewise.
8629         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8630         (_wordcopy_fwd_dest_aligned): Likewise.
8631         (_wordcopy_bwd_aligned): Likewise.
8632         (_wordcopy_bwd_dest_aligned): Likewise.
8633         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8634         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8635         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8636         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8637         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8638         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8639         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8640         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8641         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8642         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8643         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8644         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8645         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8646         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8647         * sysdeps/unix/stime.c (stime): Likewise.
8648         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8649         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8650         Likewise.  Use internal_function.
8651         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8652         Convert to prototype-style function definition.
8653         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8654         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8655         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8656         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8657         Likewise.  Use internal_function.
8658         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8659         prototype-style function definition
8660         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8661         Likewise.
8662         (__getlogin_r): Likewise.
8663         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8664         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8665         (__pthread_cond_broadcast): Likewise.
8666         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8667         (__pthread_cond_destroy): Likewise.
8668         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8669         (__pthread_cond_init): Likewise.
8670         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8671         (__pthread_cond_signal): Likewise.
8672         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8673         (__pthread_cond_wait): Likewise.
8674         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8675         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8676         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8677         Likewise.
8678         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8679         Likewise.
8680         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8681         Likewise.
8682         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8683         Likewise.
8684         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8686         (__ftruncate64): Likewise.
8687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8688         (truncate64): Likewise.
8689         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8690         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8691         (pthread_getcpuclockid): Likewise.
8692         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8693         Likewise.
8694         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8695         Likewise.
8696         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8697         Likewise.
8698         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8699         Likewise.
8700         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8701         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8702         (__libc_sigaction): Likewise.
8703         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8704         Likewise.
8705         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8706         (__sigprocmask): Likewise.
8707         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8708         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8709         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8710         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8711         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8712         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8713         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8714         Likewise.
8715         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8716         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8717         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8718         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8719         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8720         Likewise.
8721         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8722         (__sigprocmask): Likewise.
8723         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8724         (cfgetispeed): Likewise.
8725         (cfsetospeed): Likewise.
8726         (cfsetispeed): Likewise.
8727         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8728         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8729         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8730         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8731         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8732         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8733         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8734         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8735         Likewise.
8736         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8737         Likewise.
8738         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8739         Likewise.
8740         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8741         Likewise.
8742         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8743
8744 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8745
8746         sunrpc: Rewrite with explicit TLS access using __thread.
8747         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8748         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8749         directly.
8750         (__rpc_thread_variables): Access thread_rpc_vars directly.
8751         Eliminate redundant assignment of the tvp variable.
8752
8753 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8754
8755         malloc: Rewrite with explicit TLS access using __thread.
8756         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8757         (tsd_setspecific, tsd_getspecific): Remove.
8758         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8759         (tsd_setspecific, tsd_getspecific): Likewise.
8760         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8761         (tsd_setspecific, tsd_getspecific): Likewise.
8762         * malloc/arena.c (thread_arena): New TLS variable.
8763         (arena_key): Remove variable.
8764         (arena_get): Use thread_arena.
8765         (arena_lookup): Remove macro.
8766         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8767         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8768         (_int_new_arena, get_free_list, reused_arena)
8769         (arena_thread_freeres): Use thread_arena.
8770         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8771         tsd_getspecific, tsd_setspecific from safety annotations.
8772         (Allocating Cleared Space): Remove arena_lookup from safety
8773         annotations.
8774
8775 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8776
8777         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8778         struct scratch_buffer instead of extend_alloca.
8779
8780 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8781
8782         * sysdeps/unix/sysv/linux/kernel-features.h
8783         (__ASSUME_SOCK_CLOEXEC): Remove.
8784         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8785         (__have_paccept): Remove unused macro.
8786         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8787         * misc/syslog.c (openlog_internal): Remove fallback code for
8788         !__ASSUME_SOCK_CLOEXEC.
8789         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8790         missing SOCK_CLOEXEC.
8791         * nscd/connections.c (have_sock_cloexec): Remove definition.
8792         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8793         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8794         !__ASSUME_SOCK_CLOEXEC.
8795         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8796         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8797         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8798         definition.
8799         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8800         code for !__ASSUME_SOCK_CLOEXEC.
8801
8802 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8803
8804         [BZ #18982]
8805         * manual/stdio.texi (Variable Arguments Output): Add portability
8806         note, explaining that vfprintf clobbers the va_list pointer.
8807
8808 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8809
8810         * math/libm-test.inc (fabs_test_data): Add more tests.
8811         (fdim_test_data): Likewise.
8812         (fma_test_data): Likewise.
8813         (fmax_test_data): Likewise.
8814         (fmin_test_data): Likewise.
8815         (fmod_test_data): Likewise.
8816
8817 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8818
8819         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8820         data.
8821
8822 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8823
8824         * math/libm-test.inc (ceil_test_data): Add more tests and more
8825         expectations for "inexact".
8826         (floor_test_data): Add more tests.
8827         (round_test_data): Likewise.
8828         (trunc_test_data): Likewise.
8829
8830         * crypt/cert.c (good_bye): Convert to prototype-style function
8831         definition.
8832         (get8): Likewise.
8833         (put8): Likewise.
8834         * crypt/crypt-entry.c (crypt): Likewise.
8835         (__fcrypt): Likewise.
8836         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8837         (_ufc_set_bits): Likewise.
8838         (_ufc_clearmem): Likewise.
8839         (__init_des_r): Likewise.
8840         (shuffle_sb): Likewise.
8841         (shuffle_sb): Likewise.
8842         (_ufc_setup_salt_r): Likewise.
8843         (_ufc_mk_keytab_r): Likewise.
8844         (_ufc_dofinalperm_r): Likewise.
8845         (encrypt): Likewise.
8846         (__setkey_r): Likewise.
8847         (setkey): Likewise.
8848         * crypt/md5.c (md5_init_ctx): Likewise.
8849         (md5_read_ctx): Likewise.
8850         (md5_finish_ctx): Likewise.
8851         (md5_stream): Likewise.
8852         (md5_buffer): Likewise.
8853         (md5_process_bytes): Likewise.
8854         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8855         (__sha256_finish_ctx): Likewise.
8856         (__sha256_process_bytes): Likewise.
8857         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8858         (__sha512_finish_ctx): Likewise.
8859         (__sha512_process_bytes): Likewise.
8860         * ctype/isctype.c (__isctype): Likewise.
8861         * debug/backtrace.c (__backtrace): Likewise.
8862         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8863         * debug/fgets_chk.c (__fgets_chk): Likewise.
8864         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8865         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8866         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8867         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8868         * debug/memset_chk.c (__memset_chk): Likewise.
8869         * debug/strcat_chk.c (__strcat_chk): Likewise.
8870         * debug/strncat_chk.c (__strncat_chk): Likewise.
8871         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8872         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8873         * dirent/dirfd.c (dirfd): Likewise.
8874         * dirent/getdents.c (__getdirentries): Likewise.
8875         * dirent/getdents64.c (getdirentries64): Likewise.
8876         * dirent/rewinddir.c (__rewinddir): Likewise.
8877         * dirent/seekdir.c (seekdir): Likewise.
8878         * dirent/telldir.c (telldir): Likewise.
8879         * elf/sln.c (makesymlinks): Likewise.
8880         (makesymlink): Likewise.
8881         * gmon/gmon.c (__moncontrol): Likewise.
8882         (__monstartup): Likewise.
8883         (write_hist): Likewise.
8884         (write_call_graph): Likewise.
8885         (write_bb_counts): Likewise.
8886         * grp/setgroups.c (setgroups): Likewise.
8887         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8888         * inet/inet_net.c (inet_network): Likewise.
8889         * inet/inet_netof.c (inet_netof): Likewise.
8890         * inet/rcmd.c (rresvport_af): Likewise.
8891         (rresvport): Likewise.
8892         * io/access.c (__access): Likewise.
8893         * io/chdir.c (__chdir): Likewise.
8894         * io/chmod.c (__chmod): Likewise.
8895         * io/chown.c (__chown): Likewise.
8896         * io/close.c (__close): Likewise.
8897         * io/creat.c (creat): Likewise.
8898         * io/creat64.c (creat64): Likewise.
8899         * io/dup.c (__dup): Likewise.
8900         * io/dup2.c (__dup2): Likewise.
8901         * io/dup3.c (__dup3): Likewise.
8902         * io/euidaccess.c (__euidaccess): Likewise.
8903         * io/faccessat.c (faccessat): Likewise.
8904         * io/fchmod.c (__fchmod): Likewise.
8905         * io/fchmodat.c (fchmodat): Likewise.
8906         * io/fchown.c (__fchown): Likewise.
8907         * io/fchownat.c (fchownat): Likewise.
8908         * io/fcntl.c (__fcntl): Likewise.
8909         * io/flock.c (__flock): Likewise.
8910         * io/fts.c (fts_load): Likewise.
8911         (fts_close): Likewise.
8912         (fts_read): Likewise.
8913         (fts_set): Likewise.
8914         (fts_children): Likewise.
8915         (fts_build): Likewise.
8916         (fts_stat): Likewise.
8917         (fts_sort): Likewise.
8918         (fts_alloc): Likewise.
8919         (fts_lfree): Likewise.
8920         (fts_palloc): Likewise.
8921         (fts_padjust): Likewise.
8922         (fts_maxarglen): Likewise.
8923         (fts_safe_changedir): Likewise.
8924         * io/getwd.c (getwd): Likewise.
8925         * io/isatty.c (__isatty): Likewise.
8926         * io/lchown.c (__lchown): Likewise.
8927         * io/link.c (__link): Likewise.
8928         * io/linkat.c (linkat): Likewise.
8929         * io/lseek.c (__libc_lseek): Likewise.
8930         * io/mkdir.c (__mkdir): Likewise.
8931         * io/mkdirat.c (mkdirat): Likewise.
8932         * io/mkfifo.c (mkfifo): Likewise.
8933         * io/mkfifoat.c (mkfifoat): Likewise.
8934         * io/open.c (__libc_open): Likewise.
8935         * io/open64.c (__libc_open64): Likewise.
8936         * io/readlink.c (__readlink): Likewise.
8937         * io/readlinkat.c (readlinkat): Likewise.
8938         * io/rmdir.c (__rmdir): Likewise.
8939         * io/symlink.c (__symlink): Likewise.
8940         * io/symlinkat.c (symlinkat): Likewise.
8941         * io/ttyname.c (ttyname): Likewise.
8942         * io/ttyname_r.c (__ttyname_r): Likewise.
8943         * io/umask.c (__umask): Likewise.
8944         * io/unlink.c (__unlink): Likewise.
8945         * io/unlinkat.c (unlinkat): Likewise.
8946         * io/utime.c (utime): Likewise.
8947         * libio/clearerr.c (clearerr): Likewise.
8948         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8949         * libio/feof.c (_IO_feof): Likewise.
8950         * libio/feof_u.c (feof_unlocked): Likewise.
8951         * libio/ferror.c (_IO_ferror): Likewise.
8952         * libio/ferror_u.c (ferror_unlocked): Likewise.
8953         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8954         * libio/fileno.c (__fileno): Likewise.
8955         * libio/fputc.c (fputc): Likewise.
8956         * libio/fputc_u.c (fputc_unlocked): Likewise.
8957         * libio/fputwc.c (fputwc): Likewise.
8958         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8959         * libio/freopen.c (freopen): Likewise.
8960         * libio/freopen64.c (freopen64): Likewise.
8961         * libio/fseek.c (fseek): Likewise.
8962         * libio/fseeko.c (fseeko): Likewise.
8963         * libio/fseeko64.c (fseeko64): Likewise.
8964         * libio/ftello.c (__ftello): Likewise.
8965         * libio/ftello64.c (ftello64): Likewise.
8966         * libio/fwide.c (fwide): Likewise.
8967         * libio/genops.c (_IO_un_link): Likewise.
8968         (_IO_link_in): Likewise.
8969         (_IO_least_marker): Likewise.
8970         (_IO_switch_to_main_get_area): Likewise.
8971         (_IO_switch_to_backup_area): Likewise.
8972         (_IO_switch_to_get_mode): Likewise.
8973         (_IO_free_backup_area): Likewise.
8974         (_IO_switch_to_put_mode): Likewise.
8975         (__overflow): Likewise.
8976         (__underflow): Likewise.
8977         (__uflow): Likewise.
8978         (_IO_setb): Likewise.
8979         (_IO_doallocbuf): Likewise.
8980         (_IO_default_underflow): Likewise.
8981         (_IO_default_uflow): Likewise.
8982         (_IO_default_xsputn): Likewise.
8983         (_IO_sgetn): Likewise.
8984         (_IO_default_xsgetn): Likewise.
8985         (_IO_sync): Likewise.
8986         (_IO_default_setbuf): Likewise.
8987         (_IO_default_seekpos): Likewise.
8988         (_IO_default_doallocate): Likewise.
8989         (_IO_init): Likewise.
8990         (_IO_old_init): Likewise.
8991         (_IO_default_sync): Likewise.
8992         (_IO_default_finish): Likewise.
8993         (_IO_default_seekoff): Likewise.
8994         (_IO_sputbackc): Likewise.
8995         (_IO_sungetc): Likewise.
8996         (_IO_set_column): Likewise.
8997         (_IO_set_column): Likewise.
8998         (_IO_adjust_column): Likewise.
8999         (_IO_get_column): Likewise.
9000         (_IO_init_marker): Likewise.
9001         (_IO_remove_marker): Likewise.
9002         (_IO_marker_difference): Likewise.
9003         (_IO_marker_delta): Likewise.
9004         (_IO_seekmark): Likewise.
9005         (_IO_unsave_markers): Likewise.
9006         (_IO_nobackup_pbackfail): Likewise.
9007         (_IO_default_pbackfail): Likewise.
9008         (_IO_default_seek): Likewise.
9009         (_IO_default_stat): Likewise.
9010         (_IO_default_read): Likewise.
9011         (_IO_default_write): Likewise.
9012         (_IO_default_showmanyc): Likewise.
9013         (_IO_default_imbue): Likewise.
9014         (_IO_iter_next): Likewise.
9015         (_IO_iter_file): Likewise.
9016         * libio/getc.c (_IO_getc): Likewise.
9017         * libio/getwc.c (_IO_getwc): Likewise.
9018         * libio/iofclose.c (_IO_new_fclose): Likewise.
9019         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9020         * libio/iofflush.c (_IO_fflush): Likewise.
9021         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9022         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9023         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9024         * libio/iofgets.c (_IO_fgets): Likewise.
9025         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9026         * libio/iofgetws.c (fgetws): Likewise.
9027         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9028         * libio/iofopen64.c (_IO_fopen64): Likewise.
9029         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9030         (_IO_cookie_write): Likewise.
9031         (_IO_cookie_seek): Likewise.
9032         (_IO_cookie_close): Likewise.
9033         (_IO_cookie_seekoff): Likewise.
9034         (_IO_old_cookie_seek): Likewise.
9035         * libio/iofputs.c (_IO_fputs): Likewise.
9036         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9037         * libio/iofputws.c (fputws): Likewise.
9038         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9039         * libio/iofread.c (_IO_fread): Likewise.
9040         * libio/iofread_u.c (__fread_unlocked): Likewise.
9041         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9042         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9043         * libio/ioftell.c (_IO_ftell): Likewise.
9044         * libio/iofwrite.c (_IO_fwrite): Likewise.
9045         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9046         * libio/iogets.c (_IO_gets): Likewise.
9047         * libio/iopadn.c (_IO_padn): Likewise.
9048         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9049         (_IO_new_popen): Likewise.
9050         (_IO_new_proc_close): Likewise.
9051         * libio/ioputs.c (_IO_puts): Likewise.
9052         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9053         (_IO_seekoff): Likewise.
9054         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9055         (_IO_seekpos): Likewise.
9056         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9057         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9058         * libio/ioungetc.c (_IO_ungetc): Likewise.
9059         * libio/ioungetwc.c (ungetwc): Likewise.
9060         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9061         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9062         * libio/iowpadn.c (_IO_wpadn): Likewise.
9063         * libio/libc_fatal.c (__libc_fatal): Likewise.
9064         * libio/memstream.c (__open_memstream): Likewise.
9065         (_IO_mem_sync): Likewise.
9066         (_IO_mem_finish): Likewise.
9067         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9068         (_IO_old_file_close_it): Likewise.
9069         (_IO_old_file_finish): Likewise.
9070         (_IO_old_file_fopen): Likewise.
9071         (_IO_old_file_attach): Likewise.
9072         (_IO_old_file_setbuf): Likewise.
9073         (_IO_old_do_write): Likewise.
9074         (old_do_write): Likewise.
9075         (_IO_old_file_underflow): Likewise.
9076         (_IO_old_file_overflow): Likewise.
9077         (_IO_old_file_sync): Likewise.
9078         (_IO_old_file_seekoff): Likewise.
9079         (_IO_old_file_write): Likewise.
9080         (_IO_old_file_xsputn): Likewise.
9081         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9082         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9083         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9084         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9085         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9086         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9087         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9088         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9089         (_IO_old_popen): Likewise.
9090         (_IO_old_proc_close): Likewise.
9091         * libio/oldpclose.c (__old_pclose): Likewise.
9092         * libio/pclose.c (__new_pclose): Likewise.
9093         * libio/peekc.c (_IO_peekc_locked): Likewise.
9094         * libio/putc.c (_IO_putc): Likewise.
9095         * libio/putc_u.c (putc_unlocked): Likewise.
9096         * libio/putchar.c (putchar): Likewise.
9097         * libio/putchar_u.c (putchar_unlocked): Likewise.
9098         * libio/putwc.c (putwc): Likewise.
9099         * libio/putwc_u.c (putwc_unlocked): Likewise.
9100         * libio/putwchar.c (putwchar): Likewise.
9101         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9102         * libio/rewind.c (rewind): Likewise.
9103         * libio/setbuf.c (setbuf): Likewise.
9104         * libio/setlinebuf.c (setlinebuf): Likewise.
9105         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9106         * libio/vscanf.c (_IO_vscanf): Likewise.
9107         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9108         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9109         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9110         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9111         (_IO_switch_to_main_wget_area): Likewise.
9112         (_IO_switch_to_wbackup_area): Likewise.
9113         (_IO_wsetb): Likewise.
9114         (_IO_wdefault_pbackfail): Likewise.
9115         (_IO_wdefault_finish): Likewise.
9116         (_IO_wdefault_uflow): Likewise.
9117         (__woverflow): Likewise.
9118         (__wuflow): Likewise.
9119         (__wunderflow): Likewise.
9120         (_IO_wdefault_xsputn): Likewise.
9121         (_IO_wdefault_xsgetn): Likewise.
9122         (_IO_wdoallocbuf): Likewise.
9123         (_IO_wdefault_doallocate): Likewise.
9124         (_IO_switch_to_wget_mode): Likewise.
9125         (_IO_free_wbackup_area): Likewise.
9126         (_IO_switch_to_wput_mode): Likewise.
9127         (_IO_sputbackwc): Likewise.
9128         (_IO_sungetwc): Likewise.
9129         (_IO_adjust_wcolumn): Likewise.
9130         (_IO_init_wmarker): Likewise.
9131         (_IO_wmarker_delta): Likewise.
9132         (_IO_seekwmark): Likewise.
9133         (_IO_unsave_wmarkers): Likewise.
9134         * libio/wmemstream.c (open_wmemstream): Likewise.
9135         (_IO_wmem_sync): Likewise.
9136         (_IO_wmem_finish): Likewise.
9137         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9138         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9139         * locale/programs/simple-hash.c (init_hash): Likewise.
9140         (delete_hash): Likewise.
9141         (insert_entry): Likewise.
9142         (set_entry): Likewise.
9143         (next_prime): Likewise.
9144         (is_prime): Likewise.
9145         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9146         (xmalloc): Likewise.
9147         (xrealloc): Likewise.
9148         * locale/programs/xstrdup.c (xstrdup): Likewise.
9149         * localedata/collate-test.c (xstrcoll): Likewise.
9150         * localedata/xfrm-test.c (xstrcmp): Likewise.
9151         * login/getlogin_r.c (__getlogin_r): Likewise.
9152         * login/getpt.c (__posix_openpt): Likewise.
9153         * login/login_tty.c (login_tty): Likewise.
9154         * login/setlogin.c (setlogin): Likewise.
9155         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9156         (mach_msg_destroy_port): Likewise.
9157         (mach_msg_destroy_memory): Likewise.
9158         * malloc/mcheck.c (flood): Likewise.
9159         * misc/acct.c (acct): Likewise.
9160         * misc/brk.c (__brk): Likewise.
9161         * misc/chflags.c (chflags): Likewise.
9162         * misc/chroot.c (chroot): Likewise.
9163         * misc/fchflags.c (fchflags): Likewise.
9164         * misc/fstab.c (getfsspec): Likewise.
9165         (getfsfile): Likewise.
9166         * misc/fsync.c (fsync): Likewise.
9167         * misc/ftruncate.c (__ftruncate): Likewise.
9168         * misc/ftruncate64.c (__ftruncate64): Likewise.
9169         * misc/getdomain.c (getdomainname): Likewise.
9170         (getdomainname): Likewise.
9171         * misc/gethostname.c (__gethostname): Likewise.
9172         * misc/getpass.c (getpass): Likewise.
9173         * misc/getttyent.c (skip): Likewise.
9174         (value): Likewise.
9175         * misc/gtty.c (gtty): Likewise.
9176         * misc/hsearch.c (hsearch): Likewise.
9177         (hcreate): Likewise.
9178         * misc/hsearch_r.c (__hcreate_r): Likewise.
9179         (__hdestroy_r): Likewise.
9180         * misc/ioctl.c (__ioctl): Likewise.
9181         * misc/mkdtemp.c (mkdtemp): Likewise.
9182         * misc/mkostemp.c (mkostemp): Likewise.
9183         * misc/mkostemp64.c (mkostemp64): Likewise.
9184         * misc/mkostemps.c (mkostemps): Likewise.
9185         * misc/mkostemps64.c (mkostemps64): Likewise.
9186         * misc/mkstemp.c (mkstemp): Likewise.
9187         * misc/mkstemp64.c (mkstemp64): Likewise.
9188         * misc/mkstemps.c (mkstemps): Likewise.
9189         * misc/mkstemps64.c (mkstemps64): Likewise.
9190         * misc/mktemp.c (__mktemp): Likewise.
9191         * misc/preadv.c (preadv): Likewise.
9192         * misc/preadv64.c (preadv64): Likewise.
9193         * misc/pwritev.c (pwritev): Likewise.
9194         * misc/pwritev64.c (pwritev64): Likewise.
9195         * misc/readv.c (__readv): Likewise.
9196         * misc/revoke.c (revoke): Likewise.
9197         * misc/setdomain.c (setdomainname): Likewise.
9198         * misc/setegid.c (setegid): Likewise.
9199         * misc/seteuid.c (seteuid): Likewise.
9200         * misc/sethostid.c (sethostid): Likewise.
9201         * misc/sethostname.c (sethostname): Likewise.
9202         * misc/setregid.c (__setregid): Likewise.
9203         * misc/setreuid.c (__setreuid): Likewise.
9204         * misc/sstk.c (sstk): Likewise.
9205         * misc/stty.c (stty): Likewise.
9206         * misc/syscall.c (syscall): Likewise.
9207         * misc/syslog.c (setlogmask): Likewise.
9208         * misc/truncate.c (__truncate): Likewise.
9209         * misc/truncate64.c (truncate64): Likewise.
9210         * misc/ualarm.c (ualarm): Likewise.
9211         * misc/usleep.c (usleep): Likewise.
9212         * misc/ustat.c (ustat): Likewise.
9213         * misc/writev.c (__writev): Likewise.
9214         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9215         * nptl/old_pthread_cond_broadcast.c
9216         (__pthread_cond_broadcast_2_0): Likewise.
9217         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9218         Likewise.
9219         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9220         Likewise.
9221         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9222         Likewise.
9223         * nptl/pt-raise.c (raise): Likewise.
9224         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9225         Likewise.
9226         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9227         * nptl/pthread_barrierattr_destroy.c
9228         (pthread_barrierattr_destroy): Likewise.
9229         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9230         Likewise.
9231         * nptl/pthread_barrierattr_setpshared.c
9232         (pthread_barrierattr_setpshared): Likewise.
9233         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9234         Likewise.
9235         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9236         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9237         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9238         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9239         Likewise.
9240         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9241         Likewise.
9242         * nptl/pthread_condattr_getpshared.c
9243         (pthread_condattr_getpshared): Likewise.
9244         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9245         Likewise.
9246         * nptl/pthread_condattr_setpshared.c
9247         (pthread_condattr_setpshared): Likewise.
9248         * nptl/pthread_detach.c (pthread_detach): Likewise.
9249         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9250         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9251         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9252         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9253         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9254         Likewise.
9255         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9256         Likewise.
9257         * nptl/pthread_mutex_getprioceiling.c
9258         (pthread_mutex_getprioceiling): Likewise.
9259         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9260         Likewise.
9261         * nptl/pthread_mutexattr_getprotocol.c
9262         (pthread_mutexattr_getprotocol): Likewise.
9263         * nptl/pthread_mutexattr_getpshared.c
9264         (pthread_mutexattr_getpshared): Likewise.
9265         * nptl/pthread_mutexattr_getrobust.c
9266         (pthread_mutexattr_getrobust): Likewise.
9267         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9268         Likewise.
9269         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9270         Likewise.
9271         * nptl/pthread_mutexattr_setprioceiling.c
9272         (pthread_mutexattr_setprioceiling): Likewise.
9273         * nptl/pthread_mutexattr_setprotocol.c
9274         (pthread_mutexattr_setprotocol): Likewise.
9275         * nptl/pthread_mutexattr_setpshared.c
9276         (pthread_mutexattr_setpshared): Likewise.
9277         * nptl/pthread_mutexattr_setrobust.c
9278         (pthread_mutexattr_setrobust): Likewise.
9279         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9280         Likewise.
9281         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9282         Likewise.
9283         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9284         Likewise.
9285         * nptl/pthread_rwlockattr_getkind_np.c
9286         (pthread_rwlockattr_getkind_np): Likewise.
9287         * nptl/pthread_rwlockattr_getpshared.c
9288         (pthread_rwlockattr_getpshared): Likewise.
9289         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9290         Likewise.
9291         * nptl/pthread_rwlockattr_setkind_np.c
9292         (pthread_rwlockattr_setkind_np): Likewise.
9293         * nptl/pthread_rwlockattr_setpshared.c
9294         (pthread_rwlockattr_setpshared): Likewise.
9295         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9296         Likewise.
9297         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9298         Likewise.
9299         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9300         Likewise.
9301         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9302         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9303         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9304         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9305         * nptl/sem_close.c (sem_close): Likewise.
9306         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9307         * nptl/sem_init.c (__old_sem_init): Likewise.
9308         * nptl/sigaction.c (__sigaction): Likewise.
9309         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9310         * posix/_exit.c (_exit): Likewise.
9311         * posix/alarm.c (alarm): Likewise.
9312         * posix/confstr.c (confstr): Likewise.
9313         * posix/fpathconf.c (__fpathconf): Likewise.
9314         * posix/getgroups.c (__getgroups): Likewise.
9315         * posix/getpgid.c (__getpgid): Likewise.
9316         * posix/group_member.c (__group_member): Likewise.
9317         * posix/pathconf.c (__pathconf): Likewise.
9318         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9319         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9320         * posix/setgid.c (__setgid): Likewise.
9321         * posix/setpgid.c (__setpgid): Likewise.
9322         * posix/setuid.c (__setuid): Likewise.
9323         * posix/sleep.c (__sleep): Likewise.
9324         * posix/sysconf.c (__sysconf): Likewise.
9325         * posix/times.c (__times): Likewise.
9326         * posix/uname.c (__uname): Likewise.
9327         * posix/waitid.c (__waitid): Likewise.
9328         * pwd/getpw.c (__getpw): Likewise.
9329         * resolv/base64.c (b64_pton): Likewise.
9330         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9331         * resolv/gethnamaddr.c (Dprintf): Likewise.
9332         (gethostbyname): Likewise.
9333         (gethostbyname2): Likewise.
9334         (gethostbyaddr): Likewise.
9335         (_sethtent): Likewise.
9336         (_gethtbyname): Likewise.
9337         (_gethtbyname2): Likewise.
9338         (_gethtbyaddr): Likewise.
9339         (map_v4v6_address): Likewise.
9340         (map_v4v6_hostent): Likewise.
9341         (addrsort): Likewise.
9342         (ht_sethostent): Likewise.
9343         (ht_gethostbyname): Likewise.
9344         (ht_gethostbyaddr): Likewise.
9345         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9346         (inet_net_ntop_ipv4): Likewise.
9347         * resolv/inet_neta.c (inet_neta): Likewise.
9348         * resolv/inet_ntop.c (inet_ntop): Likewise.
9349         (inet_ntop4): Likewise.
9350         (inet_ntop6): Likewise.
9351         * resolv/inet_pton.c (__inet_pton): Likewise.
9352         (inet_pton4): Likewise.
9353         (inet_pton6): Likewise.
9354         * resolv/res_debug.c (loc_aton): Likewise.
9355         (loc_ntoa): Likewise.
9356         * resource/getpriority.c (__getpriority): Likewise.
9357         * resource/getrusage.c (__getrusage): Likewise.
9358         * resource/nice.c (nice): Likewise.
9359         * resource/setpriority.c (__setpriority): Likewise.
9360         * resource/setrlimit64.c (setrlimit64): Likewise.
9361         * resource/vlimit.c (vlimit): Likewise.
9362         * resource/vtimes.c (vtimes): Likewise.
9363         * rt/aio_error.c (aio_error): Likewise.
9364         * rt/aio_return.c (aio_return): Likewise.
9365         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9366         * signal/kill.c (__kill): Likewise.
9367         * signal/killpg.c (killpg): Likewise.
9368         * signal/raise.c (raise): Likewise.
9369         * signal/sigaction.c (__sigaction): Likewise.
9370         * signal/sigaddset.c (sigaddset): Likewise.
9371         * signal/sigaltstack.c (sigaltstack): Likewise.
9372         * signal/sigandset.c (sigandset): Likewise.
9373         * signal/sigblock.c (__sigblock): Likewise.
9374         * signal/sigdelset.c (sigdelset): Likewise.
9375         * signal/sigempty.c (sigemptyset): Likewise.
9376         * signal/sigfillset.c (sigfillset): Likewise.
9377         * signal/sighold.c (sighold): Likewise.
9378         * signal/sigignore.c (sigignore): Likewise.
9379         * signal/sigintr.c (siginterrupt): Likewise.
9380         * signal/sigisempty.c (sigisemptyset): Likewise.
9381         * signal/sigismem.c (sigismember): Likewise.
9382         * signal/signal.c (signal): Likewise.
9383         * signal/sigorset.c (sigorset): Likewise.
9384         * signal/sigpause.c (__sigpause): Likewise.
9385         * signal/sigpending.c (sigpending): Likewise.
9386         * signal/sigprocmask.c (__sigprocmask): Likewise.
9387         * signal/sigrelse.c (sigrelse): Likewise.
9388         * signal/sigreturn.c (__sigreturn): Likewise.
9389         * signal/sigset.c (sigset): Likewise.
9390         * signal/sigsetmask.c (__sigsetmask): Likewise.
9391         * signal/sigstack.c (sigstack): Likewise.
9392         * signal/sigsuspend.c (__sigsuspend): Likewise.
9393         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9394         * signal/sysv_signal.c (__sysv_signal): Likewise.
9395         * socket/accept.c (accept): Likewise.
9396         * socket/accept4.c (__libc_accept4): Likewise.
9397         * socket/bind.c (__bind): Likewise.
9398         * socket/connect.c (__connect): Likewise.
9399         * socket/getpeername.c (getpeername): Likewise.
9400         * socket/getsockname.c (__getsockname): Likewise.
9401         * socket/getsockopt.c (getsockopt): Likewise.
9402         * socket/listen.c (__listen): Likewise.
9403         * socket/recv.c (__recv): Likewise.
9404         * socket/recvmsg.c (__recvmsg): Likewise.
9405         * socket/send.c (__send): Likewise.
9406         * socket/sendmsg.c (__sendmsg): Likewise.
9407         * socket/shutdown.c (shutdown): Likewise.
9408         * socket/sockatmark.c (sockatmark): Likewise.
9409         * socket/socket.c (__socket): Likewise.
9410         * stdio-common/ctermid.c (ctermid): Likewise.
9411         * stdio-common/cuserid.c (cuserid): Likewise.
9412         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9413         * stdio-common/remove.c (remove): Likewise.
9414         * stdio-common/rename.c (rename): Likewise.
9415         * stdio-common/renameat.c (renameat): Likewise.
9416         * stdio-common/tempname.c (__gen_tempname): Likewise.
9417         * stdio-common/xbug.c (InitBuffer): Likewise.
9418         (AppendToBuffer): Likewise.
9419         (ReadFile): Likewise.
9420         * stdlib/a64l.c (a64l): Likewise.
9421         * stdlib/drand48_r.c (drand48_r): Likewise.
9422         * stdlib/getcontext.c (getcontext): Likewise.
9423         * stdlib/getenv.c (getenv): Likewise.
9424         * stdlib/l64a.c (l64a): Likewise.
9425         * stdlib/llabs.c (llabs): Likewise.
9426         * stdlib/lldiv.c (lldiv): Likewise.
9427         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9428         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9429         * stdlib/putenv.c (putenv): Likewise.
9430         * stdlib/random.c (__srandom): Likewise.
9431         (__initstate): Likewise.
9432         (__setstate): Likewise.
9433         * stdlib/random_r.c (__srandom_r): Likewise.
9434         (__setstate_r): Likewise.
9435         (__random_r): Likewise.
9436         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9437         * stdlib/setcontext.c (setcontext): Likewise.
9438         * stdlib/setenv.c (setenv): Likewise.
9439         (unsetenv): Likewise.
9440         * stdlib/srand48.c (srand48): Likewise.
9441         * stdlib/srand48_r.c (__srand48_r): Likewise.
9442         * stdlib/swapcontext.c (swapcontext): Likewise.
9443         * stdlib/system.c (__libc_system): Likewise.
9444         * stdlib/tst-strtod.c (expand): Likewise.
9445         * stdlib/tst-strtol.c (expand): Likewise.
9446         * stdlib/tst-strtoll.c (expand): Likewise.
9447         * streams/fattach.c (fattach): Likewise.
9448         * streams/fdetach.c (fdetach): Likewise.
9449         * streams/getmsg.c (getmsg): Likewise.
9450         * streams/isastream.c (isastream): Likewise.
9451         * string/ffs.c (__ffs): Likewise.
9452         * string/ffsll.c (ffsll): Likewise.
9453         * string/memcmp.c (memcmp_common_alignment): Likewise.
9454         (memcmp_not_common_alignment): Likewise.
9455         (MEMCMP): Likewise.
9456         * string/memcpy.c (memcpy): Likewise.
9457         * string/memmove.c (MEMMOVE): Likewise.
9458         * string/memset.c (memset): Likewise.
9459         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9460         * string/strchrnul.c (STRCHRNUL): Likewise.
9461         * string/strerror.c (strerror): Likewise.
9462         * string/strndup.c (__strndup): Likewise.
9463         * string/strverscmp.c (__strverscmp): Likewise.
9464         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9465         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9466         (clnttcp_freeres): Likewise.
9467         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9468         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9469         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9470         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9471         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9472         (xdr_callhdr): Likewise.
9473         * sunrpc/rpcinfo.c (udpping): Likewise.
9474         (tcpping): Likewise.
9475         (pstatus): Likewise.
9476         (pmapdump): Likewise.
9477         (brdcst): Likewise.
9478         (deletereg): Likewise.
9479         (getprognum): Likewise.
9480         (getvers): Likewise.
9481         (get_inet_address): Likewise.
9482         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9483         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9484         (svcudp_stat): Likewise.
9485         (svcudp_recv): Likewise.
9486         (svcudp_reply): Likewise.
9487         (svcudp_getargs): Likewise.
9488         (svcudp_freeargs): Likewise.
9489         (svcudp_destroy): Likewise.
9490         * sunrpc/xdr.c (xdr_bytes): Likewise.
9491         (xdr_netobj): Likewise.
9492         (xdr_string): Likewise.
9493         (xdr_wrapstring): Likewise.
9494         * sunrpc/xdr_float.c (xdr_float): Likewise.
9495         (xdr_double): Likewise.
9496         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9497         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9498         * sysvipc/ftok.c (ftok): Likewise.
9499         * sysvipc/msgctl.c (msgctl): Likewise.
9500         * sysvipc/msgget.c (msgget): Likewise.
9501         * sysvipc/msgrcv.c (msgrcv): Likewise.
9502         * sysvipc/msgsnd.c (msgsnd): Likewise.
9503         * sysvipc/semget.c (semget): Likewise.
9504         * sysvipc/semop.c (semop): Likewise.
9505         * sysvipc/shmat.c (shmat): Likewise.
9506         * sysvipc/shmctl.c (shmctl): Likewise.
9507         * sysvipc/shmdt.c (shmdt): Likewise.
9508         * sysvipc/shmget.c (shmget): Likewise.
9509         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9510         * termios/speed.c (cfgetospeed): Likewise.
9511         (cfgetispeed): Likewise.
9512         (cfsetospeed): Likewise.
9513         (cfsetispeed): Likewise.
9514         * termios/tcflow.c (tcflow): Likewise.
9515         * termios/tcflush.c (tcflush): Likewise.
9516         * termios/tcgetattr.c (__tcgetattr): Likewise.
9517         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9518         * termios/tcgetsid.c (tcgetsid): Likewise.
9519         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9520         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9521         * time/adjtime.c (__adjtime): Likewise.
9522         * time/dysize.c (dysize): Likewise.
9523         * time/ftime.c (ftime): Likewise.
9524         * time/getitimer.c (__getitimer): Likewise.
9525         * time/gettimeofday.c (__gettimeofday): Likewise.
9526         * time/gmtime.c (__gmtime_r): Likewise.
9527         (gmtime): Likewise.
9528         * time/localtime.c (__localtime_r): Likewise.
9529         (localtime): Likewise.
9530         * time/offtime.c (__offtime): Likewise.
9531         * time/settimeofday.c (__settimeofday): Likewise.
9532         * time/stime.c (stime): Likewise.
9533         * time/strftime_l.c (tm_diff): Likewise.
9534         (iso_week_days): Likewise.
9535         * time/strptime.c (strptime): Likewise.
9536         * time/time.c (time): Likewise.
9537         * time/timespec_get.c (timespec_get): Likewise.
9538         * time/tzset.c (tzset_internal): Likewise.
9539         (compute_change): Likewise.
9540         (__tz_compute): Likewise.
9541         * wcsmbs/btowc.c (__btowc): Likewise.
9542         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9543         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9544         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9545         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9546         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9547         * wcsmbs/wcscat.c (__wcscat): Likewise.
9548         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9549         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9550         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9551         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9552         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9553         * wcsmbs/wcslen.c (__wcslen): Likewise.
9554         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9555         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9556         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9557         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9558         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9559         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9560         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9561         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9562         * wcsmbs/wcstok.c (wcstok): Likewise.
9563         * wcsmbs/wctob.c (wctob): Likewise.
9564         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9565         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9566         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9567         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9568         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9569         * wcsmbs/wmemset.c (__wmemset): Likewise.
9570         * wctype/wcfuncs.c (__towlower): Likewise.
9571         (__towupper): Likewise.
9572
9573         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9574         (lll_unlock_elision): Add adapt_count parameter.
9575
9576 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9577
9578         * sysdeps/nptl/configure.ac: Do not give errors based on the
9579         results of top-level configure tests.
9580         * sysdeps/nptl/configure: Regenerated.
9581
9582         * configure.ac (libc_cv_Bgroup): Remove configure test.
9583         * configure: Regenerated.
9584         * config.make.in (have-Bgroup): Remove variable.
9585
9586         * configure.ac (sizeof_long_double): Remove configure test.
9587         * configure: Regenerated.
9588         * config.make.in (sizeof-long-double): Remove variable.
9589
9590         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9591         * configure: Regenerated.
9592         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9593         variable.
9594         (exceptions): Likewise.
9595         * sysdeps/arm/configure: Regenerated.
9596         * config.make.in (exceptions): Remove variable.
9597         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9598         $(exceptions).
9599         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9600         (CFLAGS-vdprintf_chk.c): Likewise.
9601         (CFLAGS-printf_chk.c): Likewise.
9602         (CFLAGS-fprintf_chk.c): Likewise.
9603         (CFLAGS-vprintf_chk.c): Likewise.
9604         (CFLAGS-vfprintf_chk.c): Likewise.
9605         (CFLAGS-gets_chk.c): Likewise.
9606         (CFLAGS-fgets_chk.c): Likewise.
9607         (CFLAGS-fgets_u_chk.c): Likewise.
9608         (CFLAGS-fread_chk.c): Likewise.
9609         (CFLAGS-fread_u_chk.c): Likewise.
9610         (CFLAGS-wprintf_chk.c): Likewise.
9611         (CFLAGS-fwprintf_chk.c): Likewise.
9612         (CFLAGS-vwprintf_chk.c): Likewise.
9613         (CFLAGS-vfwprintf_chk.c): Likewise.
9614         (CFLAGS-fgetws_chk.c): Likewise.
9615         (CFLAGS-fgetws_u_chk.c): Likewise.
9616         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9617         (CFLAGS-fputc.c): Likewise.
9618         (CFLAGS-fputwc.c): Likewise.
9619         (CFLAGS-freopen64.c): Likewise.
9620         (CFLAGS-freopen.c): Likewise.
9621         (CFLAGS-fseek.c): Likewise.
9622         (CFLAGS-fseeko64.c): Likewise.
9623         (CFLAGS-fseeko.c): Likewise.
9624         (CFLAGS-ftello64.c): Likewise.
9625         (CFLAGS-ftello.c): Likewise.
9626         (CFLAGS-fwide.c): Likewise.
9627         (CFLAGS-genops.c): Likewise.
9628         (CFLAGS-getc.c): Likewise.
9629         (CFLAGS-getchar.c): Likewise.
9630         (CFLAGS-getwc.c): Likewise.
9631         (CFLAGS-getwchar.c): Likewise.
9632         (CFLAGS-iofclose.c): Likewise.
9633         (CFLAGS-iofflush.c): Likewise.
9634         (CFLAGS-iofgetpos64.c): Likewise.
9635         (CFLAGS-iofgetpos.c): Likewise.
9636         (CFLAGS-iofgets.c): Likewise.
9637         (CFLAGS-iofgetws.c): Likewise.
9638         (CFLAGS-iofputs.c): Likewise.
9639         (CFLAGS-iofputws.c): Likewise.
9640         (CFLAGS-iofread.c): Likewise.
9641         (CFLAGS-iofsetpos64.c): Likewise.
9642         (CFLAGS-iofsetpos.c): Likewise.
9643         (CFLAGS-ioftell.c): Likewise.
9644         (CFLAGS-iofwrite.c): Likewise.
9645         (CFLAGS-iogetdelim.c): Likewise.
9646         (CFLAGS-iogetline.c): Likewise.
9647         (CFLAGS-iogets.c): Likewise.
9648         (CFLAGS-iogetwline.c): Likewise.
9649         (CFLAGS-ioputs.c): Likewise.
9650         (CFLAGS-ioseekoff.c): Likewise.
9651         (CFLAGS-ioseekpos.c): Likewise.
9652         (CFLAGS-iosetbuffer.c): Likewise.
9653         (CFLAGS-iosetvbuf.c): Likewise.
9654         (CFLAGS-ioungetc.c): Likewise.
9655         (CFLAGS-ioungetwc.c): Likewise.
9656         (CFLAGS-oldfileops.c): Likewise.
9657         (CFLAGS-oldiofclose.c): Likewise.
9658         (CFLAGS-oldiofgetpos64.c): Likewise.
9659         (CFLAGS-oldiofgetpos.c): Likewise.
9660         (CFLAGS-oldiofsetpos64.c): Likewise.
9661         (CFLAGS-oldiofsetpos.c): Likewise.
9662         (CFLAGS-peekc.c): Likewise.
9663         (CFLAGS-putc.c): Likewise.
9664         (CFLAGS-putchar.c): Likewise.
9665         (CFLAGS-putwc.c): Likewise.
9666         (CFLAGS-putwchar.c): Likewise.
9667         (CFLAGS-rewind.c): Likewise.
9668         (CFLAGS-wfileops.c): Likewise.
9669         (CFLAGS-wgenops.c): Likewise.
9670         (CFLAGS-oldiofopen.c): Likewise.
9671         (CFLAGS-iofopen.c): Likewise.
9672         (CFLAGS-iofopen64.c): Likewise.
9673         (CFLAGS-oldtmpfile.c): Likewise.
9674         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9675         (CFLAGS-fprintf.c): Likewise.
9676         (CFLAGS-printf.c): Likewise.
9677         (CFLAGS-vfwprintf.c): Likewise.
9678         (CFLAGS-vfscanf.c): Likewise.
9679         (CFLAGS-vfwscanf.c): Likewise.
9680         (CFLAGS-fscanf.c): Likewise.
9681         (CFLAGS-scanf.c): Likewise.
9682         (CFLAGS-isoc99_vfscanf.c): Likewise.
9683         (CFLAGS-isoc99_vscanf.c): Likewise.
9684         (CFLAGS-isoc99_fscanf.c): Likewise.
9685         (CFLAGS-isoc99_scanf.c): Likewise.
9686         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9687         (CFLAGS-isoc99_fwscanf.c): Likewise.
9688         (CFLAGS-isoc99_vwscanf.c): Likewise.
9689         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9690
9691         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9692         after mkstemp64.
9693         * login/tst-utmp.c (do_prepare): Likewise.
9694         * rt/tst-aio.c (do_prepare): Likewise.
9695         * rt/tst-aio64.c (do_prepare): Likewise.
9696
9697 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9698
9699         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9700         (__lll_lock_elision): Remove adapt_count decrement...
9701         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9702         (__lll_trylock_elision): Likewise.
9703         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9704         (__lll_unlock_elision): ... to here. And utilize
9705         new adapt_count parameter.
9706         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9707         (__lll_unlock_elision): Update to include adapt_count
9708         parameter.
9709         (lll_unlock_elision): Pass pointer to adapt_count
9710         variable.
9711
9712 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9713
9714         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9715         Add elision adapt_count parameter to list of arguments.
9716         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9717         (lll_unlock_elision): Update with new parameter list
9718         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9719         (lll_unlock_elision): Likewise.
9720         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9721         (lll_unlock_elision): Likewise.
9722
9723 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9724
9725         [BZ #19122]
9726         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9727         attribute_hidden.
9728
9729         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9730         attribute_hidden.
9731         [IS_IN (rtld)] (__strdup): Likewise.
9732         [IS_IN (rtld)] (__strerror_r): Likewise.
9733         [IS_IN (rtld)] (__strsep_g): Likewise.
9734         [IS_IN (rtld)] (memchr): Likewise.
9735         [IS_IN (rtld)] (memcmp): Likewise.
9736         [IS_IN (rtld)] (memcpy): Likewise.
9737         [IS_IN (rtld)] (memmove): Likewise.
9738         [IS_IN (rtld)] (memset): Likewise.
9739         [IS_IN (rtld)] (rawmemchr): Likewise.
9740         [IS_IN (rtld)] (stpcpy): Likewise.
9741         [IS_IN (rtld)] (strchr): Likewise.
9742         [IS_IN (rtld)] (strcmp): Likewise.
9743         [IS_IN (rtld)] (strlen): Likewise.
9744         [IS_IN (rtld)] (strnlen): Likewise.
9745         [IS_IN (rtld)] (strsep): Likewise.
9746
9747         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9748         attribute_hidden.
9749         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9750
9751         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9752         attribute_hidden.
9753         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9754
9755         * include/setjmp.h (__longjmp): Add attribute_hidden.
9756         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9757
9758         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9759         Add attribute_hidden.
9760
9761         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9762         [IS_IN (rtld)] (__open): Likewise.
9763         [IS_IN (rtld)] (__fcntl): Likewise.
9764
9765         * include/dirent.h (__opendirat): Add attribute_hidden.
9766         (__getdents): Likewise.
9767         (__getdents64): Likewise.
9768         (__alloc_dir): Likewise.
9769         [IS_IN (rtld)] (__closedir): Likewise.
9770         [IS_IN (rtld)] (__fdopendir): Likewise.
9771         [IS_IN (rtld)] (__readdir): Likewise.
9772         [IS_IN (rtld)] (__readdir64): Likewise.
9773         [IS_IN (rtld)] (__rewinddir): Likewise.
9774
9775         * include/dlfcn.h (_dl_catch_error): Moved to ...
9776         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9777         attribute_hidden.
9778
9779         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9780         (_itoa_word): Likewise.
9781
9782         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9783         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9784         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9785         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9786         (_dl_higher_prime_number): Likewise.
9787         (_dl_debug_printf_c): Likewise.
9788         (_dl_signal_cerror): Likewise.
9789         (_dl_receive_error): Likewise.
9790         (_dl_reloc_bad_type): Likewise.
9791         (_dl_resolve_conflicts): Likewise.
9792         (_dl_check_all_versions): Likewise.
9793         (_dl_check_map_versions): Likewise.
9794         (_dl_sort_fini): Likewise.
9795         (_dl_debug_initialize): Likewise.
9796         (_dl_init_paths): Likewise.
9797         (_dl_show_auxv): Likewise.
9798         (_dl_next_ld_env_entry): Likewise.
9799         (_dl_important_hwcaps): Likewise.
9800         (_dl_load_cache_lookup): Likewise.
9801         (_dl_update_slotinfo): Likewise.
9802         (_dl_show_scope): Likewise.
9803
9804         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9805         attribute_hidden.
9806         (_wordcopy_fwd_dest_aligned): Likewise.
9807         (_wordcopy_bwd_aligned): Likewise.
9808         (_wordcopy_bwd_dest_aligned): Likewise.
9809
9810         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9811         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9812         Likewise.
9813         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9814         Likewise.
9815         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9816
9817 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9818
9819         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9820         GCC 5 requirement.
9821
9822 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9823
9824         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9825         test.
9826         * sysdeps/i386/configure: Regenerated.
9827         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9828         code unconditional.
9829
9830         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9831         test.
9832         (libc_cv_asm_popsection_directive): Likewise.
9833         * configure: Regenerated.
9834         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9835         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9836         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9837         (__make_section_unallocated): Make definition unconditional.
9838         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9839         Remove conditional definition.
9840         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9841         (__make_section_unallocated): Likewise.
9842
9843         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9844         * configure: Regenerated.
9845         * config.make.in (static-libgcc): Remove variable.
9846         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9847         $(static-libgcc).
9848         (build-module-helper): Likewise.
9849
9850         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9851         * configure: Regenerated.
9852
9853 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9854
9855         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9856         (struct char_buffer): New type.
9857         (char_buffer_start, char_buffer_size, char_buffer_error)
9858         (char_buffer_rewind, char_buffer_add): New functions.
9859         (ADDW): Remove macro, replaced by the char_buffer_add function.
9860         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9861         of extend_alloca.  Make control flow more explicit.
9862
9863 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9864
9865         [BZ #19137]
9866         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9867         Add -fomit-frame-pointer.
9868         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9869
9870 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9871
9872         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9873         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9874         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9875         only if !__GNUC_PREREQ (5,0).
9876         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9877         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9878         (INTERNAL_SYSCALL_NCS): Likewise.
9879         (LOADREGS_0): New macro for GCC 5.
9880         (ASMARGS_0): Likewise.
9881         (LOADREGS_1): Likewise.
9882         (ASMARGS_1): Likewise.
9883         (LOADREGS_2): Likewise.
9884         (ASMARGS_2): Likewise.
9885         (LOADREGS_3): Likewise.
9886         (ASMARGS_3): Likewise.
9887         (LOADREGS_4): Likewise.
9888         (ASMARGS_4): Likewise.
9889         (LOADREGS_5): Likewise.
9890         (ASMARGS_5): Likewise.
9891         (LOADREGS_6): Likewise.
9892         (ASMARGS_6): Likewise.
9893
9894 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9895
9896         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9897         -fomit-frame-pointer.
9898         (CFLAGS-mmap64.c): Likewise.
9899         (CFLAGS-semtimedop.c): Likewise.
9900         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9901         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9902         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9903         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9904
9905 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9906
9907         [BZ #18928]
9908         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9909         _dl_pointer_guard member.
9910         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9911         initializer.
9912         (security_init): Always set up pointer guard.
9913         (process_envvars): Do not process LD_POINTER_GUARD.
9914
9915 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9916
9917         [BZ #19134]
9918         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9919         (.LC2): Likewise.
9920         (.LC3): Likewise.
9921         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9922
9923 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9924
9925         [BZ #19129]
9926         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9927         r0 and r1.
9928
9929 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9930
9931         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9932
9933 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9934
9935         * include/stap-probe.h: Fix macro definition formatting.
9936
9937 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9938
9939         [BZ #19074]
9940         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9941         load and store num_ifs.
9942
9943 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9944
9945         [BZ #18822]
9946         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9947         (__sched_getaffinity_new): Add libc_hidden_proto and
9948         libc_hidden_def.
9949
9950 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9951
9952         [BZ #19007]
9953         * scripts/localplt.awk: Also allow GOT references.
9954         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9955         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9956         with "+ REL R_386_GLOB_DAT".
9957         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9958         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9959
9960 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9961
9962         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9963         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9964         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9965         Likewise.
9966         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9967         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9968         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9969         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9970         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9971         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9972         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9973         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9974         Likewise.
9975         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9976
9977 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9978
9979         [BZ #19125]
9980         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9981         <math_private.h> and <stdint.h>.
9982         (__llround): Avoid conversions to and from long long int, and
9983         subtractions, where those might raise spurious exceptions.
9984         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9985         <math_private.h> and <stdint.h>.
9986         (__llroundf): Avoid conversions to and from long long int, and
9987         subtractions, where those might raise spurious exceptions.
9988
9989 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9990
9991         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9992         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9993         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9994         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9995         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9996         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9997         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9998         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9999         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10000         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10001         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10002         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10003         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10004         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10005         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10006         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10007         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10008         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10009         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10010         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10011         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10012         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10013         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10014         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10015         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10016         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10017         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10018         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10019         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10020         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10021         (__xstat64_conv): Likewise.
10022         (__xstat32_conv): Likewise.
10023
10024 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10025
10026         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10027         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10028         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10029         <sysdeps/unix/sysv/linux/sysdep.h>.
10030         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10031         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10032         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10033         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10034         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10035         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10036         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10037         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10038         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10041         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10042         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10043         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10044         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10045         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10046         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10047         (sysdep-dl-routines): Add sysdep.
10048         [$(subdir) == nptl] (libpthread-routines): Likewise.
10049         [$(subdir) == rt] (librt-routines): Likewise.
10050         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10051         PIC when branching to SYSCALL_ERROR_LABEL.
10052         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10053         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10054         <sysdeps/unix/sysv/linux/sysdep.h>.
10055         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10056         (SYSCALL_ERROR_ERRNO): Removed.
10057         (SYSCALL_ERROR_HANDLER): Changed to empty.
10058         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10059         (__syscall_error): New prototype.
10060         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10061         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10062
10063 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10064
10065         [BZ #19124]
10066         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10067         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10068         _dl_runtime_resolve_avx.
10069         (_dl_runtime_profile_avx512): Make it a hidden alias of
10070         _dl_runtime_profile_avx.
10071
10072 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10073
10074         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10075         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10076         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10077         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10078
10079         [BZ #16422]
10080         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10081         New configure test.
10082         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10083         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10084         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10085         <math_private.h> and <stdint.h>.
10086         (__llrint): Avoid conversions to long long int where those might
10087         raise spurious exceptions.
10088         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10089         <math_private.h> and <stdint.h>.
10090         (__llrintf): Avoid conversions to long long int where those might
10091         raise spurious exceptions.
10092
10093 2015-10-12  Andreas Schwab  <schwab@suse.de>
10094
10095         [BZ #18969]
10096         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10097         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10098         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10099         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10100         $(gen-locales).
10101         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10102         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10103         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10104         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10105         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10106         $(gen-locales).
10107         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10108         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10109         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10110         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10111         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10112         ($(objpfx)tst-ftell-active-handler.out)
10113         ($(objpfx)tst-ftell-append.out)
10114         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10115         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10116         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10117         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10118         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10119         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10120         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10121         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10122         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10123         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10124         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10125         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10126         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10127         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10128         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10129         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10130         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10131         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10132         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10133         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10134         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10135         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10136         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10137         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10138         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10139         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10140         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10141         $(gen-locales).
10142         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10143         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10144         $(gen-locales).
10145         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10146         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10147         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10148         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10149         $(gen-locales).
10150         * libio/tst_wprintf2.c (main): Use explicit locale.
10151         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10152
10153 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10154
10155         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10156         __msg_sig_post.
10157         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10158
10159 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10160
10161         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10162         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10163
10164         * sysdeps/arm/libm-test-ulps: Regenerated.
10165
10166         [BZ #15470]
10167         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10168
10169         [BZ #16399]
10170         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10171         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10172         and <fix-fp-int-convert-overflow.h>.
10173         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10174         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10175         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10176         and <fix-fp-int-convert-overflow.h>.
10177         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10178         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10179         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10180         <fix-fp-int-convert-overflow.h>.
10181         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10182         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10183         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10184         <fix-fp-int-convert-overflow.h>.
10185         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10186         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10187         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10188         and <fix-fp-int-convert-overflow.h>.
10189         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10190         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10191         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10192         <limits.h> and <fix-fp-int-convert-overflow.h>.
10193         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10194         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10195         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10196         and <fix-fp-int-convert-overflow.h>.
10197         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10198         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10199         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10200         and <fix-fp-int-convert-overflow.h>.
10201         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10202         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10203         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10204
10205 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10206
10207         [BZ #18589]
10208         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10209         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10210         $(gen-locales).
10211
10212 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10213             Phil Blundell <pb@pbcl.net>
10214
10215         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10216         * nptl/tst-cancel26.c: New file.
10217         * nptl/tst-cancel27.c: Likewise.
10218
10219 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10220
10221         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10222         __ILP32__ isn't defined.
10223         (lrint): Likewise.
10224         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10225         (lrintf): Likewise.
10226         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10227         (lrintl): Likewise.
10228         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10229         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10230         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10231
10232 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10233
10234         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10235         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10236
10237         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10238         file.
10239         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10240         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10241
10242 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10243
10244         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10245         configure test.
10246         * sysdeps/i386/configure: Regenerated.
10247         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10248         configure test.
10249         * sysdeps/x86_64/configure: Regenerated.
10250         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10251         Make code unconditional.
10252
10253         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10254         test.
10255         * sysdeps/i386/configure: Regenerated.
10256         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10257         test.
10258         * sysdeps/x86_64/configure: Regenerated.
10259         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10260         Make code unconditional.
10261         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10262         Likewise.
10263         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10264         Likewise.
10265         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10266         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10267         code unconditional.
10268         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10269         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10270         code unconditional.
10271         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10272         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10273         code unconditional.
10274         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10275         code unconditional.
10276         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10277         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10278         code unconditional.
10279         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10280         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10281         code unconditional.
10282         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10283         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10284         code unconditional.
10285         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10286         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10287         code unconditional.
10288         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10289         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10290
10291         [BZ #19095]
10292         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10293         mantissa to long int before shifting left.
10294
10295 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10296
10297         [BZ #19094]
10298         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10299         <limits.h>.
10300         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10301         when result overflows but exception would not result from cast.
10302         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10303         <limits.h>.
10304         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10305         when result overflows but exception would not result from cast.
10306         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10307         <limits.h>.
10308         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10309         when result overflows but exception would not result from cast.
10310         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10311         <limits.h>.
10312         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10313         when result overflows but exception would not result from cast.
10314         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10315         <limits.h>.
10316         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10317         when result overflows but exception would not result from cast.
10318         * math/libm-test.inc (lrint_test_data): Add more tests.
10319         (llrint_test_data): Likewise.
10320
10321 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10322
10323         [BZ #18872]
10324         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10325         Move out from under [$(run-built-tests) = yes] conditional.
10326         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10327         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10328
10329 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10330
10331         [BZ #18589]
10332         * string/Makefile (tests): Add bug-strcoll2.
10333         (LOCALES): Add cs_CZ.UTF-8.
10334         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10335
10336         [BZ #18589]
10337         * string/bug-strcoll2.c: New file.
10338         * locale/categories.def: Revert commit
10339         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10340         * locale/langinfo.h: Likewise.
10341         * locale/localeinfo.h: Likewise.
10342         * locale/C-collate.c: Likewise.
10343         * locale/programs/ld-collate.c (collate_output): Likewise.
10344         * string/strcoll_l.c (STRDIFF): Likewise.
10345         (STRCOLL): Likewise.
10346         * wcsmbs/wcscoll_l.c: Likewise.
10347
10348 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10349
10350         * math/libm-test.inc (lround_test_data): Do not expect the absence
10351         of "inexact" for some tests with non-integer arguments.
10352         (llround_test_data): Likewise.
10353
10354         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10355         test.
10356         (libc_cv_cc_sse2avx): Likewise.
10357         * sysdeps/i386/configure: Regenerated.
10358         * sysdeps/i386/i686/multiarch/Makefile
10359         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10360         [$(subdir) = math].
10361         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10362         code unconditional.
10363         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10364         Likewise.
10365         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10366         Likewise.
10367         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10368         Likewise.
10369         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10370         test.
10371         (libc_cv_cc_sse2avx): Likewise.
10372         * sysdeps/x86_64/configure: Regenerated.
10373         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10374         unconditional.
10375         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10376         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10377         unconditional.
10378         (_dl_runtime_profile)
10379         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10380         conditional code.
10381         * sysdeps/x86_64/fpu/multiarch/Makefile
10382         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10383         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10384         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10385         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10386         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10387         * sysdeps/x86_64/fpu/multiarch/e_log.c
10388         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10389         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10390         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10391         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10392         Likewise.
10393         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10394         Likewise.
10395         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10396         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10397         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10398         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10399         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10400         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10401         (HAVE_SSE2AVX_SUPPORT): Likewise.
10402
10403 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10404
10405         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10406         instead of #pragma optimize.
10407
10408 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10409
10410         [BZ #17195]
10411         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10412         as is similarly done in systrim and _int_free already.
10413
10414 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10415
10416         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10417
10418 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10419
10420         [BZ #19088]
10421         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10422         <limits.h>.
10423         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10424         overflows but exception would not result from cast.
10425         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10426         and <limits.h>.
10427         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10428         overflows but exception would not result from cast.
10429         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10430         <limits.h>.
10431         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10432         overflows but exception would not result from cast.
10433         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10434         <limits.h>.
10435         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10436         overflows but exception would not result from cast.
10437         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10438         <limits.h>.
10439         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10440         overflows but exception would not result from cast.
10441         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10442         <limits.h>.
10443         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10444         overflows but exception would not result from cast.
10445         * math/libm-test.inc (lround_test_data): Add more tests.
10446         (llround_test_data): Likewise.
10447
10448 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10449
10450         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10451         (CFLAGS-ialloc.c): Ditto.
10452         (CFLAGS-scheck.c): Ditto.
10453
10454 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10455
10456         [BZ #19086]
10457         * manual/filesys.texi (Storage Allocation): Fix argument order for
10458         posix_fallocate64.
10459
10460 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10461
10462         [BZ #19085]
10463         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10464         exponent below 48 inside case for non-overflowing exponent.
10465         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10466
10467 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10468
10469         * iconvdata/cp737.h (from_idx): Add const.
10470         * iconvdata/cp775.h (from_idx): Likewise.
10471
10472 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10473
10474         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10475         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10476         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10477
10478         [BZ #19079]
10479         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10480         file, conditioned on [!_LP64].
10481         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10482         [!_LP64] (__lround): Do not define as function or alias.
10483         [!_LP64] (lround): Likewise.
10484         [!_LP64] (__lroundl): Likewise.
10485         [!_LP64] (lroundl): Likewise.
10486         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10487         macro.
10488         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10489         Likewise.
10490
10491 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10492
10493         * math/libm-test.inc (lrint_test_data): Add more tests.
10494         (llrint_test_data): Likewise.
10495         (lround_test_data): Likewise.
10496         (llround_test_data): Likewise.
10497
10498         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10499         (llrint_test_data): Add tests used for lrint.
10500
10501         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10502         test.
10503         * sysdeps/i386/configure: Regenerated.
10504         * sysdeps/i386/i686/multiarch/Makefile
10505         [$(config-cflags-sse4) = yes]: Make code unconditional.
10506         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10507         Likewise.
10508         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10509         Likewise.
10510         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10511         test.
10512         * sysdeps/x86_64/configure: Regenerated.
10513         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10514         Make code unconditional.
10515         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10516         Likewise.
10517         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10518         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10519
10520         * scripts/rpm2dynsym.sh: Remove file.
10521
10522 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10523
10524         * configure.ac (libc_cv_cxx_thread_local): Define.
10525         * configure: Regenerate.
10526         * config.make.in (have-cxx-thread_local): Define.
10527         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10528         (LDLIBS-tst-thread_local1): Define.
10529         (tests): Add tst-thread_local1.
10530         [have-cxx-thread_local != yes] (tests-unsupported): Add
10531         tst-thread_local1.
10532         * nptl/tst-thread_local1.cc: New file.
10533
10534 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10535
10536         [BZ #19078]
10537         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10538         (u_thres): Likewise.
10539         (__expl): Determine whether to call __kernel_standard_l based on
10540         value of result, not argument.
10541
10542         * math/libm-test.inc (scalb_test_data): Add more expectations for
10543         the "inexact" exception.
10544
10545         [BZ #19077]
10546         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10547         0.0L for argument 1.0L.
10548
10549         [BZ #19076]
10550         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10551         constant 0.0L when computing infinite result.
10552
10553 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10554
10555         [BZ #10432]
10556         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10557         malloc_usable_size.
10558
10559 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10560
10561         [BZ #19018]
10562         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10563         Mangle function pointer before storing it.
10564         (__call_tls_dtors): Demangle function pointer before calling it.
10565
10566 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10567
10568         [BZ #19012]
10569         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10570         Clean up on failure.
10571
10572 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10573
10574         [BZ #19071]
10575         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10576         long int variable to store possibly incremented high part of
10577         mantissa.
10578         * math/libm-test.inc (lround_test_data): Add tests used for
10579         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10580         for tests requiring 64-bit long.  Do not condition tests on
10581         [TEST_FLOAT] unnecessarily.
10582         (llround_test_data): Add tests used for lround.  Add another
10583         expectation for the "inexact" exception.  Do not condition tests
10584         on [TEST_FLOAT] unnecessarily.
10585
10586         [BZ #887]
10587         [BZ #19049]
10588         [BZ #19050]
10589         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10590         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10591         <fix-int-fp-convert-zero.h>.
10592         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10593         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10594         <fix-int-fp-convert-zero.h>.
10595         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10596         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10597         <fix-int-fp-convert-zero.h>.
10598         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10599         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10600         <fix-int-fp-convert-zero.h>.
10601         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10602         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10603         <fix-int-fp-convert-zero.h>.
10604         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10605         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10606         <fix-int-fp-convert-zero.h>.
10607         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10608         * sysdeps/ieee754/flt-32/s_erff.c: Include
10609         <fix-int-fp-convert-zero.h>.
10610         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10611         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10612         <fix-int-fp-convert-zero.h>.
10613         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10614         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10615         <fix-int-fp-convert-zero.h>.
10616         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10617         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10618         <fix-int-fp-convert-zero.h>.
10619         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10620         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10621         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10622         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10623         file.
10624         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10625
10626 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10627
10628         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10629
10630 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10631
10632         [BZ #19059]
10633         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10634         overflowing computation.
10635         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10636         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10637         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10638         Likewise.
10639         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10640         Likewise.
10641         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10642         Likewise.
10643         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10644         Likewise.
10645         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10646         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10647         Likewise.
10648         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10649         Likewise.
10650         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10651
10652         * nss/rewrite_field.c (__nss_rewrite_field): Use
10653         internal_function.
10654         * nss/valid_field.c (__nss_valid_field): Likewise.
10655         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10656
10657 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10658
10659         [BZ #18724]
10660         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10661         (__nss_invalid_field_characters, __nss_valid_field)
10662         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10663         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10664         tst-field.c: New file.
10665         * nss/Makefile (routines): Add valid_field, rewrite_field.
10666         (tests-static): Define unconditionally.
10667         (tests): Include tests-static.
10668         [build-static-nss] (tests-static): Use append.
10669         [build-static-nss] (tests): Remove modification.
10670         * nss/getent.c (print_group): Call putgrent.  Report error.
10671         (print_gshadow): Call putsgent.  Report error.
10672         (print_passwd): Call putpwent.  Report error.
10673         (print_shadow): Call putspent.  Report error.
10674         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10675         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10676         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10677         name, password, directory, shell fields for valid syntax.  Rewrite
10678         GECOS field to match syntax.
10679         * pwd/Makefile (tests): Add tst-putpwent.
10680         * pwd/tst-putpwent.c: New file.
10681         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10682         Check grName, grpasswd, gr_mem fields for valid syntax.
10683         Change loop variable i to size_t.
10684         * grp/Makefile (tests): Add tst-putgrent.
10685         * grp/tst-putgrent.c: New file.
10686         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10687         valid syntax.
10688         * shadow/Makefile (tests): Add tst-putspent.
10689         * shadow/tst-putspent.c: New file.
10690         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10691         sg_mem fields for valid syntax.
10692         * gshadow/Makefile (tests): Add tst-putsgent.
10693         * gshadow/tst-putsgent.c: New file.
10694
10695 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10696
10697         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10698         assembly instructions.
10699
10700 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10701
10702         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10703         prefix from operands.
10704
10705 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10706
10707         [BZ #16347]
10708         [BZ #19046]
10709         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10710         <libc-internal.h>.
10711         (MAXLGM): Do not use diagnostic control macros.
10712         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10713         threshold for ldbl-128ibm.
10714         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10715         instead of multiplying by log then subtracting.
10716         * math/auto-libm-test-in: Add more tests of lgamma.
10717         * math/auto-libm-test-out: Regenerated.
10718
10719         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10720         (TYPE_HEX_DIG): Likewise.
10721         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10722         precisions when printing floating-point numbers.
10723         (check_float_internal): Likewise.
10724
10725 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10726
10727         [BZ #16620]
10728         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10729         of log (10) rounded downward to 48 bits.
10730         (log10_low): Use corresponding low part of log (10).
10731
10732         [BZ #19032]
10733         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10734         compute result as (x - x) / (x - x) not as 0 / 0.
10735         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10736         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10737
10738         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10739         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10740         and expm1.
10741         * math/auto-libm-test-out: Regenerated.
10742         * math/libm-test.inc (acos_test_data): Add more tests.
10743         (asin_test_data): Likewise.
10744         (asinh_test_data): Likewise.
10745         (atan_test_data): Likewise.
10746         (atanh_test_data): Likewise.
10747         (atan2_test_data): Likewise.
10748         (cbrt_test_data): Likewise.
10749         (ceil_test_data): Likewise.
10750         (copysign_test_data): Likewise.
10751         (cos_test_data): Likewise.
10752         (cosh_test_data): Likewise.
10753         (erf_test_data): Likewise.
10754         (erfc_test_data): Likewise.
10755         (exp_test_data): Likewise.
10756         (exp10_test_data): Likewise.
10757         (exp2_test_data): Likewise.
10758         (expm1_test_data): Likewise.
10759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10760
10761 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10762
10763         [BZ #19006]
10764         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10765         to ...
10766         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10767         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10768         to ...
10769         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10770         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10771         to ...
10772         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10773         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10774         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10775         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10776         to ...
10777         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10778         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10779         Moved to ...
10780         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10781         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10782         Moved to ...
10783         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10784         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10785         to ...
10786         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10787         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10788         Moved to ...
10789         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10790         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10791         to ...
10792         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10793         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10794         Removed.
10795         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10796         Likewise.
10797         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10798         Likewise.
10799         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10800         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10801         Likewise.
10802         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10803         Likewise.
10804         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10805         Likewise.
10806         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10807         Likewise.
10808         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10809         Likewise.
10810         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10811         Likewise.
10812         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10813         Likewise.
10814         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10815         Likewise.
10816         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10817         Likewise.
10818         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10819         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10820         Likewise.
10821         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10822         Likewise.
10823         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10824         Likewise.
10825         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10826         Likewise.
10827         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10828         Likewise.
10829         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10830         Replace ../i486/pthread_cond_timedwait.S with
10831         ../pthread_cond_timedwait.S.
10832
10833 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10834
10835         * math/libm-test.inc (acos_test_data): Refine expectations for
10836         errno and "inexact" exceptions.
10837         (acosh_test_data): Likewise.
10838         (asin_test_data): Likewise.
10839         (asinh_test_data): Likewise.
10840         (atan_test_data): Likewise.
10841         (atanh_test_data): Likewise.
10842         (atan2_test_data): Likewise.
10843         (cbrt_test_data): Likewise.
10844         (ceil_test_data): Likewise.
10845         (copysign_test_data): Likewise.
10846         (cosh_test_data): Likewise.
10847         (erf_test_data): Likewise.
10848         (erfc_test_data): Likewise.
10849         (exp_test_data): Likewise.
10850         (exp10_test_data): Likewise.
10851         (exp2_test_data): Likewise.
10852         (expm1_test_data): Likewise.
10853         (fabs_test_data): Likewise.
10854         (floor_test_data): Likewise.
10855         (fma_test_data): Likewise.
10856         (fmax_test_data): Likewise.
10857         (fmin_test_data): Likewise.
10858         (fmod_test_data): Likewise.
10859         (fpclassify_test_data): Likewise.
10860         (frexp_test_data): Likewise.
10861         (hypot_test_data): Likewise.
10862         (ilogb_test_data): Likewise.
10863         (isgreater_test_data): Likewise.
10864         (isgreaterequal_test_data): Likewise.
10865         (isinf_test_data): Likewise.
10866         (isless_test_data): Likewise.
10867         (islessequal_test_data): Likewise.
10868         (islessgreater_test_data): Likewise.
10869         (isnan_test_data): Likewise.
10870         (isnormal_test_data): Likewise.
10871         (issignaling_test_data): Likewise.
10872         (isunordered_test_data): Likewise.
10873         (j0_test_data): Likewise.
10874         (j1_test_data): Likewise.
10875         (jn_test_data): Likewise.
10876         (lgamma_test_data): Likewise.
10877         (lrint_test_data): Likewise.
10878         (llrint_test_data): Likewise.
10879         (log_test_data): Likewise.
10880         (log10_test_data): Likewise.
10881         (log1p_test_data): Likewise.
10882         (log2_test_data): Likewise.
10883         (logb_test_data): Likewise.
10884         (lround_test_data): Likewise.
10885         (llround_test_data): Likewise.
10886         (modf_test_data): Likewise.
10887         (nearbyint_test_data): Likewise.
10888         (nextafter_test_data): Likewise.
10889         (nexttoward_test_data): Likewise.
10890         (pow_test_data): Likewise.
10891         (remainder_test_data): Likewise.
10892         (remquo_test_data): Likewise.
10893         (rint_test_data): Likewise.
10894         (round_test_data): Likewise.
10895         (signbit_test_data): Likewise.
10896         (sinh_test_data): Likewise.
10897         (sqrt_test_data): Likewise.
10898         (tanh_test_data): Likewise.
10899         (tgamma_test_data): Likewise.
10900         (trunc_test_data): Likewise.
10901         (y0_test_data): Likewise.
10902         (y1_test_data): Likewise.
10903         (yn_test_data): Likewise.
10904         (significand_test_data): Likewise.
10905
10906 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10907
10908         * manual/filesys.texi (Storage Allocation): Document that
10909         posix_fallocate emulation fails when fd is open with O_WRONLY.
10910
10911 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10912
10913         [BZ #19016]
10914         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10915         allow more cases with X^2 + Y^2 >= 0.5.
10916         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10917         normal element in sum instead of special-casing based on values of
10918         arguments.
10919         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10920         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10921         -1 as normal element in sum instead of special-casing based on
10922         values of arguments.
10923         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10924         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10925         (__x2y2m1): Update comment.
10926         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10927         as normal element in sum instead of special-casing based on values
10928         of arguments.
10929         * math/s_clog.c (__clog): Handle more cases using log1p without
10930         hypot.
10931         * math/s_clog10.c (__clog10): Likewise.
10932         * math/s_clog10f.c (__clog10f): Likewise.
10933         * math/s_clog10l.c (__clog10l): Likewise.
10934         * math/s_clogf.c (__clogf): Likewise.
10935         * math/s_clogl.c (__clogl): Likewise.
10936         * math/auto-libm-test-in: Add more tests of clog and clog10.
10937         * math/auto-libm-test-out: Regenerated.
10938         * sysdeps/i386/fpu/libm-test-ulps: Update.
10939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10940
10941 2015-09-28  Martin Sebor  <msebor@redhat.com>
10942
10943         [BZ #18969]
10944         * string/Makefile (LOCALES): Define.
10945         (gen-locales.mk): Include.
10946         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10947         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10948         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10949         on setlocale failure.
10950
10951 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10952
10953         [BZ #18985]
10954         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10955         (__strftime_internal): Likewise.
10956         * time/tst-strftime.c (do_bz18985): New test.
10957         (do_test): Call it.
10958
10959 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10960
10961         [BZ #18956]
10962         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10963         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10964         extracting high part.
10965         * math/auto-libm-test-in: Add another test of pow.
10966         * math/auto-libm-test-out: Regenerated.
10967         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10968
10969 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10970
10971         [BZ #18825]
10972         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10973         New macro.
10974         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10975         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10976         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10977         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10978         DBL_NARROW_EVAL, reloading the PIC register as needed.
10979         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10980         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10981         FLT_NARROW_EVAL.  Use separate return path for case when first
10982         argument is NaN.
10983         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10984         DEFINE_LDBL_MIN.
10985         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10986         PIC register.
10987         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10988         math_check_force_underflow_nonneg.
10989         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10990         underflow for subnormal result.
10991         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10992         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10993         math_check_force_underflow_nonneg.
10994         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10995         math_check_force_underflow.
10996         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10997         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10998         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10999         DEFINE_LDBL_MIN.
11000         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11001         * math/auto-libm-test-in: Add more tests of pow.
11002         * math/auto-libm-test-out: Regenerated.
11003
11004 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11005
11006         * nss/bug17079.c (init_test_items): Add diagnostic for
11007         inconsistent entries.
11008         (test_buffer_size): Skip inconsistent entries.
11009
11010 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11011
11012         [BZ #13304]
11013         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11014         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11015         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11016
11017         [BZ #13304]
11018         * sysdeps/microblaze/s_fma.c: New file.
11019         * sysdeps/microblaze/s_fmaf.c: Likewise.
11020         * sysdeps/microblaze/sfp-machine.h: Likewise.
11021
11022 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11023
11024         [BZ #17250]
11025         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11026         member.
11027
11028 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11029
11030         [BZ #18803]
11031         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11032         (MO): New macro.
11033         (__ieee754_hypot) [PIC]: Load PIC register.
11034         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11035         DBL_NARROW_EVAL.
11036         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11037         math_check_force_underflow_nonneg in case where result might be
11038         tiny.
11039         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11040         Likewise.
11041         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11042         Likewise.
11043         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11044         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11045         * math/auto-libm-test-in: Add more tests of hypot.
11046         * math/auto-libm-test-out: Regenerated.
11047
11048 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11049
11050         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11051
11052 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11053
11054         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11055         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11056         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11057         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11058         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11059         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11060         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11061
11062         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11063         LOAD_PIC_REG.
11064
11065         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11066         (FLT_CHECK_FORCE_UFLOW): Likewise.
11067         (DBL_CHECK_FORCE_UFLOW): Likewise.
11068         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11069         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11070         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11071         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11072         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11073         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11074         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11075         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11076         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11077         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11078         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11079         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11080         (flt_min): Replace with use of DEFINE_FLT_MIN.
11081         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11082         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11083         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11084         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11085         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11086         (flt_min): Replace with use of DEFINE_FLT_MIN.
11087         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11088         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11089         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11090         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11091         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11092         (flt_min): Replace with use of DEFINE_FLT_MIN.
11093         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11094         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11095         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11096         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11097         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11098         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11099         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11100         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11101         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11102         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11103         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11104         (flt_min): Replace with use of DEFINE_FLT_MIN.
11105         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11106         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11107         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11108         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11109         main computation.
11110         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11111         (flt_min): Replace with use of DEFINE_FLT_MIN.
11112         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11113         main computation.
11114         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11115         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11116         (MO): New macro.
11117         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11118         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11119         (flt_min): Replace with use of DEFINE_FLT_MIN.
11120         (MO): New macro.
11121         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11122         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11123         (__log1pl): Use MO.
11124
11125         [BZ #19003]
11126         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11127         $(config-cflags-nofma).
11128
11129 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11130
11131         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11132
11133 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11134
11135         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11136         (TWO127): Likewise.
11137
11138         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11139         (min_of_type): Likewise.
11140         (math_check_force_underflow): Likewise.
11141         (math_check_force_underflow_nonneg): Likewise.
11142         (math_check_force_underflow_complex): Likewise.
11143         * math/e_exp2l.c (__ieee754_exp2l): Use
11144         math_check_force_underflow_nonneg.
11145         * math/k_casinh.c (__kernel_casinh): Likewise.
11146         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11147         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11148         * math/s_catan.c (__catan): Use
11149         math_check_force_underflow_complex.
11150         * math/s_catanf.c (__catanf): Likewise.
11151         * math/s_catanh.c (__catanh): Likewise.
11152         * math/s_catanhf.c (__catanhf): Likewise.
11153         * math/s_catanhl.c (__catanhl): Likewise.
11154         * math/s_catanl.c (__catanl): Likewise.
11155         * math/s_ccosh.c (__ccosh): Likewise.
11156         * math/s_ccoshf.c (__ccoshf): Likewise.
11157         * math/s_ccoshl.c (__ccoshl): Likewise.
11158         * math/s_cexp.c (__cexp): Likewise.
11159         * math/s_cexpf.c (__cexpf): Likewise.
11160         * math/s_cexpl.c (__cexpl): Likewise.
11161         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11162         * math/s_clog10.c (__clog10): Likewise.
11163         * math/s_clog10f.c (__clog10f): Likewise.
11164         * math/s_clog10l.c (__clog10l): Likewise.
11165         * math/s_clogf.c (__clogf): Likewise.
11166         * math/s_clogl.c (__clogl): Likewise.
11167         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11168         * math/s_csinf.c (__csinf): Likewise.
11169         * math/s_csinh.c (__csinh): Likewise.
11170         * math/s_csinhf.c (__csinhf): Likewise.
11171         * math/s_csinhl.c (__csinhl): Likewise.
11172         * math/s_csinl.c (__csinl): Likewise.
11173         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11174         * math/s_csqrtf.c (__csqrtf): Likewise.
11175         * math/s_csqrtl.c (__csqrtl): Likewise.
11176         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11177         * math/s_ctanf.c (__ctanf): Likewise.
11178         * math/s_ctanh.c (__ctanh): Likewise.
11179         * math/s_ctanhf.c (__ctanhf): Likewise.
11180         * math/s_ctanhl.c (__ctanhl): Likewise.
11181         * math/s_ctanl.c (__ctanl): Likewise.
11182         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11183         instead of volatile.
11184         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11185         math_check_force_underflow.
11186         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11187         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11188         volatile when forcing underflow.
11189         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11190         math_check_force_underflow_nonneg.
11191         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11192         Likewise.
11193         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11194         math_check_force_underflow.
11195         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11196         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11197         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11198         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11199         math_check_force_underflow_nonneg.
11200         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11201         math_check_force_underflow.
11202         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11203         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11204         instead of volatile.
11205         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11206         math_check_force_underflow.
11207         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11208         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11209         math_check_force_underflow_nonneg.
11210         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11211         math_check_force_underflow.
11212         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11213         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11214         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11215         math_check_force_underflow_nonneg.
11216         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11217         Likewise.
11218         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11219         math_check_force_underflow.
11220         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11221         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11222         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11223         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11224         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11225         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11226         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11227         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11228         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11229         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11230         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11231         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11232         Likewise.
11233         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11234         math_check_force_underflow_nonneg.
11235         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11236         Likewise.
11237         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11238         math_check_force_underflow.
11239         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11240         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11241         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11242         Likewise.
11243         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11244         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11245         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11246         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11247         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11248         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11249         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11250         instead of volatile.
11251         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11252         math_check_force_underflow.
11253         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11254         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11255         math_check_force_underflow.
11256         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11257         Likewise.
11258         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11259         Use math_check_force_underflow_nonneg.
11260         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11261         math_check_force_underflow.
11262         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11263         Likewise.
11264         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11265         Likewise.
11266         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11267         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11268         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11269         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11270         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11271         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11272         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11273         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11274         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11275         math_check_force_underflow_nonneg.
11276         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11277         math_check_force_underflow.
11278         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11279         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11280         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11281         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11282         math_check_force_underflow_nonneg.
11283         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11284         math_check_force_underflow.
11285         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11286         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11287         instead of volatile.
11288         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11289         math_check_force_underflow.
11290
11291         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11292         * stdlib/strtod_l.c: Include <math_private.h>.
11293         (overflow_value): Use math_narrow_eval.
11294         (underflow_value): Likewise.
11295         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11296         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11297         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11298         (__ieee754_gamma_r): Likewise.
11299         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11300         Likewise.
11301         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11302         Likewise.
11303         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11304         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11305         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11306         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11307         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11308         (__ieee754_gammaf_r): Likewise.
11309         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11310         Likewise.
11311         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11312         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11313         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11314         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11315         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11316         volatile.
11317         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11318         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11319         math_narrow_eval.
11320         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11321         Likewise.
11322         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11323         Likewise.
11324         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11325         Likewise.
11326         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11327         volatile.
11328         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11329         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11330         math_narrow_eval.
11331         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11332         Likewise.
11333         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11334         Likewise.
11335
11336 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11337
11338         * nptl/Versions: Remove ignored symbols.
11339
11340 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11341
11342         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11343         * nss/Makefile (tests): Update.
11344
11345 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11346
11347         * nss/bug18287.c: New file.
11348         * nss/Makefile (tests): Add bug18287.
11349
11350 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11351
11352         * mach/Versions (__mach_host_self_): Add symbol.
11353
11354 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11355
11356         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11357         vm_page_size.
11358
11359 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11360
11361         Really fix sysdeps/i386/fpu/s_scalbn.S build
11362
11363         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11364         (libc: GLIBC_2_22): Remove unused version set.
11365
11366 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11367
11368         * config.make.in (enable-timezone-tools): New variable.
11369         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11370         (enable_timezone_tools): Export to generated files.
11371         * configure: Regenerate.
11372         * INSTALL: Regenerate.
11373         * manual/install.texi (--disable-timezone-tools): Document new flag.
11374         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11375         ifeq ($(enable-timezone-tools),yes) check.
11376
11377 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11378
11379         * timezone/Makefile: Revert previous change.
11380
11381         [BZ #18980]
11382         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11383         (DEFINE_DBL_MIN): Likewise.
11384         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11385         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11386         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11387         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11388         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11389         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11390         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11391         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11392         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11393         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11394         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11395         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11396         (flt_min): Replace with use of DEFINE_FLT_MIN.
11397         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11398         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11399         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11400         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11401         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11402         (flt_min): Replace with use of DEFINE_FLT_MIN.
11403         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11404         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11405         (flt_min): Replace with use of DEFINE_FLT_MIN.
11406         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11407         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11408         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11409         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11410         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11411         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11412         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11413         (__ieee754_pow): Use DBL_NARROW_EVAL.
11414         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11415         (__ieee754_powf): Use FLT_NARROW_EVAL.
11416         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11417         (__ieee754_expf_sse2): Convert double-precision result to single
11418         precision.
11419         * sysdeps/i386/fpu/libm-test-ulps: Update.
11420
11421 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11422
11423         * timezone/Makefile: Ignore unused variable errors due to private.h
11424         (time_t_min) and (time_t_max).
11425         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11426         Likewise.
11427
11428 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11429
11430         [BZ #18981]
11431         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11432         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11433         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11434         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11435         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11436         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11437         (__scalbn): Use DBL_NARROW_EVAL.
11438         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11439         (__scalbnf): Use FLT_NARROW_EVAL.
11440
11441 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11442
11443         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11444         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11445         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11446         * stdio-common/printf_fp.c (___printf_fp):
11447         Use signbit to get the sign. Use isinf macro to allow inlining.
11448         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11449         * stdio-common/printf_size.c (__printf_size): Likewise.
11450
11451 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11452
11453         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11454
11455 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11456
11457         [BZ #18980]
11458         * sysdeps/generic/math_private.h: Include <float.h>.
11459         (math_narrow_eval): New macro.
11460         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11461         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11462         math_narrow_eval on overflowing return value.
11463         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11464         Likewise.
11465         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11466         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11467         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11468         Likewise.
11469         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11470
11471 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11472
11473         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11474         * math/Makefile: Remove isinf_ns.c.
11475         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11476         * math/multc3.c (__multc3): Likewise.
11477         * math/s_casin.c (__casin): Likewise.
11478         * math/s_casinf.c (__casinf): Likewise.
11479         * math/s_casinl.c (__casinl): Likewise.
11480         * math/s_cproj.c (__cproj): Likewise.
11481         * math/s_cprojf.c (__cprojf): Likewise.
11482         * math/s_cprojl.c (__cprofl): Likewise.
11483         * math/s_ctan.c (__ctan): Likewise.
11484         * math/s_ctanf.c (__ctanf): Likewise.
11485         * math/s_ctanh.c (__ctanh): Likewise.
11486         * math/s_ctanhf.c (__ctanhf): Likewise.
11487         * math/s_ctanhl.c (__ctanhl): Likewise.
11488         * math/s_ctanl.c (__ctanl): Likewise.
11489         * math/w_fmod.c (__fmod): Likewise.
11490         * math/w_fmodf.c (__fmodf): Likewise.
11491         * math/w_fmodl.c (_fmodl): Likewise.
11492         * math/w_remainder.c (__remainder): Likewise.
11493         * math/w_remainderf.c (__remainderf): Likewise.
11494         * math/w_remainderl.c (__remainderl): Likewise.
11495         * math/w_scalb.c (__scalb): Likewise.
11496         * math/w_scalbf.c (__scalbf): Likewise.
11497         * math/w_scalbl.c (__scalbl): Likewise.
11498         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11499         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11500         with isinf.
11501         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11502         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11503         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11504         __isinf_nsf with isinf.
11505         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11506         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11507         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11508         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11509         with isinf.
11510         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11511         __isinf_nsl with isinf.
11512         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11513         with isinf.
11514         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11515         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11516         __isinf_nsl with isinf.
11517         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11518         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11519         with isinf.
11520
11521 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11522
11523         * resolv/base64.c (rcsid): Remove unused static.
11524         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11525         static.  (tqpi1): Likewise.
11526         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11527         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11528         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11529         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11530         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11531         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11532         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11533         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11534         Likewise.
11535
11536 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11537
11538         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11539         <nptl/pthreadP.h>.
11540         (_longjmp_unwind): Use __libc_ptf_call.
11541         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11542
11543 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11544
11545         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11546         * sysdeps/arm/__longjmp.S: Likewise.
11547
11548 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11549
11550         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11551         Use __builtin_signbit.
11552         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11553         Use __builtin_signbitf.
11554         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11555         Use __builtin_signbitl.
11556         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11557         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11558
11559 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11560
11561         [BZ #15367]
11562         [BZ #17441]
11563
11564         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11565         * math/math.h (fpclassify): Use __builtin_fpclassify when
11566         available.  (signbit): Use __builtin_signbit(f/l).
11567         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11568         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11569         (isinf): Use __builtin_isinf_sign.
11570
11571 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11572
11573         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11574         * benchtests/bench-math-inlines.c: New benchmark.
11575         * benchtests/bench-util.h: New file.
11576         * benchtests/bench-util.c: New file.
11577         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11578
11579 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11580
11581         * elf/tst-dlmopen1.c: Define TEST_SO.
11582         (do_test): Use TEST_SO.
11583
11584         * elf/dl-load.c: Include libc-internal.h.
11585         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11586
11587 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11588
11589         [BZ #17887]
11590         * time/strptime_l.c (__strptime_internal): Make %z accept
11591         [+-]HH:MM time zones.
11592
11593 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11594
11595         [BZ #17886]
11596         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11597         valid time zone.
11598
11599 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11600
11601         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11602         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11603         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11604         (__ASSUME_FDATASYNC): Delete.
11605
11606 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11607
11608         * conform/linknamespace.pl: Require weak undefined symbols to be
11609         in the standard namespace.
11610         (%strong_syms): Rename to %seen_syms.
11611         (%strong_seen): Rename to %seen_where.
11612
11613 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11614
11615         [BZ #18970]
11616         * misc/error.c (error): Replace pthread_setcancelstate with
11617         __pthread_setcancelstate.
11618         (error_at_line): Likewise.
11619         * posix/wordexp.c (parse_comm): Likewise.
11620         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11621         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11622         (__pthread_setcancelstate): This.
11623         (pthread_setcancelstate): Add an alias.
11624         * nptl/nptl-init.c (pthread_functions): Replace
11625         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11626         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11627         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11628         hidden_proto.
11629         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11630         it with hidden_def.
11631         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11632         (pthread_setcancelstate): Renamed to ...
11633         (__pthread_setcancelstate): This.
11634         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11635         __libc_ptf_call with __pthread_setcancelstate.
11636
11637 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11638             Andreas Schwab  <schwab@suse.de>
11639
11640         [BZ #17118]
11641         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11642         result when imaginary part of argument is infinite using sine and
11643         cosine.
11644         * math/s_ctanf.c (__ctanf): Likewise.
11645         * math/s_ctanl.c (__ctanl): Likewise.
11646         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11647         of result when real part of argument is infinite using sine and
11648         cosine.
11649         * math/s_ctanhf.c (__ctanhf): Likewise.
11650         * math/s_ctanhl.c (__ctanhl): Likewise.
11651         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11652         (ctanh_test_data): Add more tests of ctanh.
11653
11654 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11655
11656         [BZ #15384]
11657         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11658         bit-mask as in subtraction.
11659         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11660         Likewise.
11661         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11662         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11663         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11664
11665         [BZ #18951]
11666         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11667         underflow exception for small results.
11668         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11669         Likewise.
11670         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11671         Likewise.
11672         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11673         Likewise.
11674         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11675         Likewise.
11676         * math/auto-libm-test-in: Add more tests of tgamma.
11677         * math/auto-libm-test-out: Regenerated.
11678
11679 2015-09-17  Andreas Schwab  <schwab@suse.de>
11680
11681         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11682
11683 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11684
11685         [BZ #18977]
11686         * math/bits/mathcalls.h
11687         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11688         not declare.
11689         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11690         Likewise.
11691         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11692         Likewise.
11693         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11694         Likewise.
11695         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11696         Likewise.
11697         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11698         Likewise.
11699         * conform/data/math.h-data
11700         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11701         function.
11702         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11703         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11704         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11705         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11706         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11707         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11708         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11709         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11710         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11711         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11712         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11713
11714         [BZ #6803]
11715         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11716         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11717         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11718         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11719         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11720         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11721         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11722         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11723         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11724         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11725         Likewise.
11726         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11727         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11728         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11729         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11730         long_double_symbol calls.
11731         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11732         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11733         strong alias of __ldexpl.
11734         (scalbnl): Define using long_double_symbol.
11735         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11736         Remove alias.
11737         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11738         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11739         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11740         (scalbln_test_data): Add more errno expectations.
11741
11742 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11743
11744         Cache the host port like we cache the task port.  This way we do not
11745         need to call the kernel just to get the port.  Furthermore, we no
11746         longer increase the reference count on every invocation of
11747         `mach_host_self'.
11748
11749         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11750         Protect declarations against the macro expansion.
11751         * mach/mach_init.c (__mach_host_self_): New variable.
11752         (mach_init): Initialize `__mach_host_self_'.
11753         * mach/mach_init.h (__mach_host_self_): New declaration.
11754         (__mach_host_self, mach_host_self): New macros.
11755         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11756         Release reference.
11757
11758 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11759
11760         [BZ #4404]
11761         * po/de.po: Update from Translation Project.
11762
11763         [BZ #16415]
11764         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11765         (__expm1l): Remove code to handle positive infinity and overflow.
11766         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11767         variable.
11768         (__expm1l): Remove code to handle positive infinity and overflow.
11769
11770 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11771             Paul Pluzhnikov  <ppluzhnikov@google.com>
11772
11773         [BZ #18872]
11774         * stdio-common/Makefile (tst-printf-bz18872): New test.
11775         (tst-printf-bz18872-mem.out): Likewise.
11776         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11777         * stdio-common/vfprintf.c: Fix memory leaks.
11778
11779 2015-09-16  Andreas Schwab  <schwab@suse.de>
11780
11781         [BZ #17244]
11782         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11783         Remove extra va_start/va_end calls.
11784
11785         [BZ #17243]
11786         * posix/execl.c (execl): Add missing va_end.
11787         * posix/execle.c (execle): Likewise.
11788         * posix/execlp.c (execlp): Likewise.
11789
11790 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11791
11792         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11793         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11794
11795 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11796
11797         [BZ #18967]
11798         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11799         undefine around includes of <bits/mathcalls.h>.
11800         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11801         not declare function.
11802         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11803         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11804         (scalb): Likewise.
11805         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11806         not define macro.
11807         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11808         variable.
11809         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11810         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11811         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11812
11813         [BZ #18857]
11814         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11815         return non-finite argument without doing ordered comparisons on
11816         it.
11817
11818         [BZ #16296]
11819         * math/fenv.h (fegetround): Use __attribute_pure__.
11820         * include/fenv.h (__fegetround): Likewise.
11821
11822         [BZ #18595]
11823         * math/s_ctan.c (__ctan): Force underflow exception for results
11824         whose real or imaginary part has small absolute value.
11825         * math/s_ctanf.c (__ctanf): Likewise.
11826         * math/s_ctanh.c (__ctanh): Likewise.
11827         * math/s_ctanhf.c (__ctanhf): Likewise.
11828         * math/s_ctanhl.c (__ctanhl): Likewise.
11829         * math/s_ctanl.c (__ctanl): Likewise.
11830         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11831         and ctanh.  Add more tests of ctan and ctanh.
11832
11833         [BZ #15918]
11834         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11835         handling of cases where one argument is an infinity.
11836
11837         [BZ #18875]
11838         [BZ #18966]
11839         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11840         (MO): New macro.
11841         (__ieee754_exp10): For small results, force underflow exception
11842         and remove excess range and precision from return value.
11843         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11844         (MO): New macro.
11845         (__ieee754_exp10f): For small results, force underflow exception
11846         and remove excess range and precision from return value.
11847         * math/auto-libm-test-in: Add more tests of exp10.
11848         * math/auto-libm-test-out: Regenerated.
11849
11850 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11851
11852         [BZ #18875]
11853         [BZ #18961]
11854         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11855         (MO): New macro.
11856         (__ieee754_exp): For small results, force underflow exception and
11857         remove excess range and precision from return value.
11858         (__exp_finite): Likewise.
11859         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11860         (MO): New macro.
11861         (__ieee754_expf): For small results, force underflow exception and
11862         remove excess range and precision from return value.
11863         (__expf_finite): Likewise.
11864         * math/auto-libm-test-in: Add more tests of exp.
11865         * math/auto-libm-test-out: Regenerated.
11866
11867         [BZ #16521]
11868         [BZ #18875]
11869         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11870         small results.
11871         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11872         (MO): New macro.
11873         (__ieee754_exp2): For small results, force underflow exception and
11874         remove excess range and precision from return value.
11875         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11876         (MO): New macro.
11877         (__ieee754_exp2f): For small results, force underflow exception
11878         and remove excess range and precision from return value.
11879         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11880         (MO): New macro.
11881         (__ieee754_exp2l): Force underflow exception for small results.
11882         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11883         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11884         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11885         (MO): New macro.
11886         (__ieee754_exp2l): Force underflow exception for small results.
11887         * math/auto-libm-test-in: Add more tests or exp2.
11888         * math/auto-libm-test-out: Regenerated.
11889
11890 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11891
11892         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11893
11894         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11895         /dev/null.
11896
11897 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11898
11899         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11900         io fs process)): Drop spurious backslash.
11901
11902 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11903
11904         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11905         Use sysinfo system call instead of parsing /proc/meminfo.
11906         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11907         Likewise.
11908
11909 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11910
11911         [BZ #16985]
11912         * programs/localedef.c (main): Display argv[remaining] when
11913         output_path is NULL.
11914
11915 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11916
11917         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11918         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11919         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11920         tanh.
11921         * math/auto-libm-test-out: Regenerated.
11922         * sysdeps/i386/fpu/libm-test-ulps: Update.
11923         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11924         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11926
11927 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11928
11929         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11930         Use 'override' keyword to freeze the value here, preventing
11931         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11932
11933 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11934
11935         [BZ #14912]
11936         * sysdeps/aarch64/bits/atomic.h: Move to ...
11937         * sysdeps/aarch64/atomic-machine.h: ...here.
11938         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11939         _AARCH64_ATOMIC_MACHINE_H.
11940         * sysdeps/alpha/bits/atomic.h: Move to ...
11941         * sysdeps/alpha/atomic-machine.h: ...here.
11942         * sysdeps/arm/bits/atomic.h: Move to ...
11943         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11944         * bits/atomic.h: Move to ...
11945         * sysdeps/generic/atomic-machine.h: ...here.
11946         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11947         * sysdeps/i386/bits/atomic.h: Move to ...
11948         * sysdeps/i386/atomic-machine.h: ...here.
11949         * sysdeps/ia64/bits/atomic.h: Move to ...
11950         * sysdeps/ia64/atomic-machine.h: ...here.
11951         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11952         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11953         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11954         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11955         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11956         * sysdeps/microblaze/bits/atomic.h: Move to ...
11957         * sysdeps/microblaze/atomic-machine.h: ...here.
11958         * sysdeps/mips/bits/atomic.h: Move to ...
11959         * sysdeps/mips/atomic-machine.h: ...here.
11960         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11961         * sysdeps/powerpc/bits/atomic.h: Move to ...
11962         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11963         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11964         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11965         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11966         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11967         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11968         <atomic-machine.h> instead of <bits/atomic.h>.
11969         * sysdeps/s390/bits/atomic.h: Move to ...
11970         * sysdeps/s390/atomic-machine.h: ...here.
11971         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11972         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11973         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11974         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11975         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11976         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11977         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11978         * sysdeps/tile/bits/atomic.h: Move to ...
11979         * sysdeps/tile/atomic-machine.h: ...here.
11980         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11981         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11982         <sysdeps/tile/atomic-machine.h> instead of
11983         <sysdeps/tile/bits/atomic.h>.
11984         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11985         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11986         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11987         <sysdeps/tile/atomic-machine.h> instead of
11988         <sysdeps/tile/bits/atomic.h>.
11989         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11990         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11991         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11992         <sysdeps/arm/atomic-machine.h> instead of
11993         <sysdeps/arm/bits/atomic.h>.
11994         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11995         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11996         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11997         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11998         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11999         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12000         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12001         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12002         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12003         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12004         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12005         * sysdeps/x86_64/bits/atomic.h: Move to ...
12006         * sysdeps/x86_64/atomic-machine.h: ...here.
12007         * include/atomic.h: Include <atomic-machine.h> instead of
12008         <bits/atomic.h>.
12009
12010         * sysdeps/mips/mips32/libm-test-ulps: Update.
12011         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12012
12013         [BZ #18952]
12014         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12015         not convert non-integer negative arguments to int to determine the
12016         value of signgam.
12017         * math/auto-libm-test-in: Add more tests of lgamma.
12018         * math/auto-libm-test-out: Regenerated.
12019
12020         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12021         cosh, csqrt, erfc, expm1 and lgamma.
12022         * math/auto-libm-test-out: Regenerated.
12023         * sysdeps/i386/fpu/libm-test-ulps: Update.
12024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12025
12026 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12027
12028         [BZ #2542]
12029         [BZ #2543]
12030         [BZ #2558]
12031         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12032         __lgamma_neg for arguments from -28.0 to -2.0.
12033         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12034         __lgamma_negf for arguments from -15.0 to -2.0.
12035         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12036         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12037         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12038         Call __lgamma_negl for arguments from -33.0 to -2.0.
12039         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12040         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12041         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12042         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12043         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12044         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12045         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12046         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12047         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12048         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12049         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12050         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12051         (__lgamma_neg): Likewise.
12052         (__lgamma_negl): Likewise.
12053         (__lgamma_product): Likewise.
12054         (__lgamma_productl): Likewise.
12055         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12056         * math/auto-libm-test-in: Add more tests of 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-09  Justin Maggard  <jmaggard@netgear.com>
12062
12063         [BZ #18675]
12064         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12065
12066 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12067
12068         [BZ #14912]
12069         * bits/libc-lock.h: Move to ...
12070         * sysdeps/generic/libc-lock.h: ...here.
12071         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12072         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12073         * sysdeps/mach/hurd/libc-lock.h: ...here.
12074         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12075         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12076         * sysdeps/mach/bits/libc-lock.h: Move to ...
12077         * sysdeps/mach/libc-lock.h: ...here.
12078         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12079         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12080         * sysdeps/nptl/libc-lock.h: ...here.
12081         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12082         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12083         * sysdeps/nptl/libc-lockP.h: ...here.
12084         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12085         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12086         <bits/libc-lock.h>.
12087         * dirent/scandir-tail.c: Likewise.
12088         * dlfcn/dlerror.c: Likewise.
12089         * elf/dl-close.c: Likewise.
12090         * elf/dl-iteratephdr.c: Likewise.
12091         * elf/dl-lookup.c: Likewise.
12092         * elf/dl-open.c: Likewise.
12093         * elf/dl-support.c: Likewise.
12094         * elf/dl-writev.h: Likewise.
12095         * elf/rtld.c: Likewise.
12096         * grp/fgetgrent.c: Likewise.
12097         * gshadow/fgetsgent.c: Likewise.
12098         * gshadow/sgetsgent.c: Likewise.
12099         * iconv/gconv_conf.c: Likewise.
12100         * iconv/gconv_db.c: Likewise.
12101         * iconv/gconv_dl.c: Likewise.
12102         * iconv/gconv_int.h: Likewise.
12103         * iconv/gconv_trans.c: Likewise.
12104         * include/link.h: Likewise.
12105         * inet/getnameinfo.c: Likewise.
12106         * inet/getnetgrent.c: Likewise.
12107         * inet/getnetgrent_r.c: Likewise.
12108         * intl/bindtextdom.c: Likewise.
12109         * intl/dcigettext.c: Likewise.
12110         * intl/finddomain.c: Likewise.
12111         * intl/gettextP.h: Likewise.
12112         * intl/loadmsgcat.c: Likewise.
12113         * intl/localealias.c: Likewise.
12114         * intl/textdomain.c: Likewise.
12115         * libidn/idn-stub.c: Likewise.
12116         * libio/libioP.h: Likewise.
12117         * locale/duplocale.c: Likewise.
12118         * locale/freelocale.c: Likewise.
12119         * locale/newlocale.c: Likewise.
12120         * locale/setlocale.c: Likewise.
12121         * login/getutent_r.c: Likewise.
12122         * login/getutid_r.c: Likewise.
12123         * login/getutline_r.c: Likewise.
12124         * login/utmp-private.h: Likewise.
12125         * login/utmpname.c: Likewise.
12126         * malloc/mtrace.c: Likewise.
12127         * misc/efgcvt.c: Likewise.
12128         * misc/error.c: Likewise.
12129         * misc/fstab.c: Likewise.
12130         * misc/getpass.c: Likewise.
12131         * misc/mntent.c: Likewise.
12132         * misc/syslog.c: Likewise.
12133         * nis/nis_call.c: Likewise.
12134         * nis/nis_callback.c: Likewise.
12135         * nis/nss-default.c: Likewise.
12136         * nis/nss_compat/compat-grp.c: Likewise.
12137         * nis/nss_compat/compat-initgroups.c: Likewise.
12138         * nis/nss_compat/compat-pwd.c: Likewise.
12139         * nis/nss_compat/compat-spwd.c: Likewise.
12140         * nis/nss_nis/nis-alias.c: Likewise.
12141         * nis/nss_nis/nis-ethers.c: Likewise.
12142         * nis/nss_nis/nis-grp.c: Likewise.
12143         * nis/nss_nis/nis-hosts.c: Likewise.
12144         * nis/nss_nis/nis-network.c: Likewise.
12145         * nis/nss_nis/nis-proto.c: Likewise.
12146         * nis/nss_nis/nis-pwd.c: Likewise.
12147         * nis/nss_nis/nis-rpc.c: Likewise.
12148         * nis/nss_nis/nis-service.c: Likewise.
12149         * nis/nss_nis/nis-spwd.c: Likewise.
12150         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12151         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12152         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12153         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12154         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12155         * nis/nss_nisplus/nisplus-network.c: Likewise.
12156         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12157         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12158         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12159         * nis/nss_nisplus/nisplus-service.c: Likewise.
12160         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12161         * nis/ypclnt.c: Likewise.
12162         * nptl/libc_pthread_init.c: Likewise.
12163         * nss/getXXbyYY.c: Likewise.
12164         * nss/getXXent.c: Likewise.
12165         * nss/getXXent_r.c: Likewise.
12166         * nss/nss_db/db-XXX.c: Likewise.
12167         * nss/nss_db/db-netgrp.c: Likewise.
12168         * nss/nss_db/nss_db.h: Likewise.
12169         * nss/nss_files/files-XXX.c: Likewise.
12170         * nss/nss_files/files-alias.c: Likewise.
12171         * nss/nsswitch.c: Likewise.
12172         * posix/regex_internal.h: Likewise.
12173         * posix/wordexp.c: Likewise.
12174         * pwd/fgetpwent.c: Likewise.
12175         * resolv/res_hconf.c: Likewise.
12176         * resolv/res_libc.c: Likewise.
12177         * shadow/fgetspent.c: Likewise.
12178         * shadow/lckpwdf.c: Likewise.
12179         * shadow/sgetspent.c: Likewise.
12180         * socket/opensock.c: Likewise.
12181         * stdio-common/reg-modifier.c: Likewise.
12182         * stdio-common/reg-printf.c: Likewise.
12183         * stdio-common/reg-type.c: Likewise.
12184         * stdio-common/vfprintf.c: Likewise.
12185         * stdio-common/vfscanf.c: Likewise.
12186         * stdlib/abort.c: Likewise.
12187         * stdlib/cxa_atexit.c: Likewise.
12188         * stdlib/fmtmsg.c: Likewise.
12189         * stdlib/random.c: Likewise.
12190         * stdlib/setenv.c: Likewise.
12191         * string/strsignal.c: Likewise.
12192         * sunrpc/auth_none.c: Likewise.
12193         * sunrpc/bindrsvprt.c: Likewise.
12194         * sunrpc/create_xid.c: Likewise.
12195         * sunrpc/key_call.c: Likewise.
12196         * sunrpc/rpc_thread.c: Likewise.
12197         * sysdeps/arm/backtrace.c: Likewise.
12198         * sysdeps/generic/ldsodefs.h: Likewise.
12199         * sysdeps/generic/stdio-lock.h: Likewise.
12200         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12201         * sysdeps/i386/backtrace.c: Likewise.
12202         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12203         * sysdeps/m68k/backtrace.c: Likewise.
12204         * sysdeps/mach/hurd/cthreads.c: Likewise.
12205         * sysdeps/mach/hurd/dirstream.h: Likewise.
12206         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12207         * sysdeps/nptl/malloc-machine.h: Likewise.
12208         * sysdeps/nptl/stdio-lock.h: Likewise.
12209         * sysdeps/posix/dirstream.h: Likewise.
12210         * sysdeps/posix/getaddrinfo.c: Likewise.
12211         * sysdeps/posix/system.c: Likewise.
12212         * sysdeps/pthread/aio_suspend.c: Likewise.
12213         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12214         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12215         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12216         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12217         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12218         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12219         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12220         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12221         * sysdeps/unix/sysv/linux/system.c: Likewise.
12222         * sysdeps/x86_64/backtrace.c: Likewise.
12223         * time/alt_digit.c: Likewise.
12224         * time/era.c: Likewise.
12225         * time/tzset.c: Likewise.
12226         * wcsmbs/wcsmbsload.c: Likewise.
12227         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12228         instead of <bits/libc-lock.h> in comment.
12229
12230 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12231
12232         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12233         Only use .set mips2 if the current ISA is below mips2.
12234         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12235         Likewise.
12236         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12237         mips32r2 if the current ISA is below mips32r2.
12238         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12239         (TLS_IE): Updated to use the TLD_RDHWR macro.
12240         (TLS_LE): Likewise.
12241         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12242         __ASSEMBLER__ condition.
12243
12244 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12245
12246         Fix parallel build of before-compile targets.
12247
12248         * sysdeps/mach/Makefile ($(patsubst
12249         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12250         mach-before-compile target.
12251         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12252         io fs process)): Move rule to dedicated hurd-before-compile target.
12253
12254 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12255
12256         Fix rules generating headers in hurd/ and mach/ when initial make call
12257         has subdir= explicitly set.
12258
12259         * sysdeps/mach/Makefile ($(patsubst
12260         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12261         calling $(MAKE).
12262         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12263         io fs process)): Force subdir to hurd when calling $(MAKE).
12264         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12265         subdir to mach when calling $(MAKE).
12266
12267 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12268
12269         Check sysheaders when looking for Mach and Hurd headers
12270
12271         * sysdeps/mach/configure.ac: Add sysheaders check.
12272         * sysdeps/mach/configure: Regenerate.
12273         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12274         * sysdeps/mach/hurd/configure: Regenerate.
12275
12276 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12277
12278         [BZ #18921]
12279         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12280         Fix inverted sense of test of 'o_directory_works' value.
12281         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12282         Bernhard Voelker <mail@bernhard-voelker.de>.
12283
12284 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12285
12286         [BZ #14912]
12287         * bits/linkmap.h: Move to ...
12288         * sysdeps/generic/linkmap.h: ...here.
12289         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12290         * sysdeps/aarch64/linkmap.h: ...here.
12291         * sysdeps/arm/bits/linkmap.h: Move to ...
12292         * sysdeps/arm/linkmap.h: ...here.
12293         * sysdeps/hppa/bits/linkmap.h: Move to ...
12294         * sysdeps/hppa/linkmap.h: ...here.
12295         * sysdeps/ia64/bits/linkmap.h: Move to ...
12296         * sysdeps/ia64/linkmap.h: ...here.
12297         * sysdeps/mips/bits/linkmap.h: Move to ...
12298         * sysdeps/mips/linkmap.h: ...here.
12299         * sysdeps/s390/bits/linkmap.h: Move to ...
12300         * sysdeps/s390/linkmap.h: ...here.
12301         * sysdeps/sh/bits/linkmap.h: Move to ...
12302         * sysdeps/sh/linkmap.h: ...here.
12303         * sysdeps/x86/bits/linkmap.h: Move to ...
12304         * sysdeps/x86/linkmap.h: ...here.
12305         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12306
12307 2015-09-04  Andreas Schwab  <schwab@suse.de>
12308
12309         [BZ #18635]
12310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12311         (__makecontext): Terminate FDE before return label.
12312         (__novec_makecontext): Likewise.
12313
12314 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12315
12316         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12317         first member of struct sv in syscall macro.
12318
12319 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12320
12321         [BZ #14912]
12322         * bits/stdio-lock.h: Move to ...
12323         * sysdeps/generic/stdio-lock.h: ...here.
12324         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12325         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12326         * sysdeps/nptl/stdio-lock.h: ...here.
12327         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12328         * include/libio.h: Include <stdio-lock.h> instead of
12329         <bits/stdio-lock.h>.
12330         * sysdeps/nptl/fork.c: Likewise.
12331         * sysdeps/pthread/flockfile.c: Likewise.
12332         * sysdeps/pthread/ftrylockfile.c: Likewise.
12333         * sysdeps/pthread/funlockfile.c: Likewise.
12334
12335         [BZ #14912]
12336         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12337         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12338         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12339         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12340         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12341         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12342         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12343
12344 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12345
12346         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12347         (test-xfail-tst-protected1b): New variable.
12348
12349 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12350
12351         [BZ #14912]
12352         * bits/libc-tsd.h: Move to ...
12353         * sysdeps/generic/libc-tsd.h: ...here.
12354         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12355         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12356         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12357         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12358         * include/ctype.h: Include <libc-tsd.h> instead of
12359         <bits/libc-tsd.h>.
12360         * include/rpc/rpc.h: Likewise.
12361         * locale/localeinfo.h: Likewise.
12362         * sunrpc/rpc_thread.c: Likewise.
12363         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12364         * sysdeps/nptl/malloc-machine.h: Likewise.
12365
12366         * Makefile (headers): Remove bits/libc-lock.h.
12367         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12368
12369         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12370         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12371         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12372         <bits/stdio-lock.h>.
12373         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12374         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12375
12376 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12377
12378         [BZ #18757]
12379         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12380         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12381         BZ #18757.
12382
12383 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12384
12385         * malloc/mtrace.pl: Filter out NULL entries.
12386
12387 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12388
12389         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12390         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12391         macro.
12392
12393         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12394         (TCP_CC_INFO): Likewise.
12395         (TCP_SAVE_SYN): Likewise.
12396         (TCP_SAVED_SYN): Likewise.
12397
12398 2015-08-31  Brett Neumeier <brett@neumeier.us>
12399
12400         [BZ #18870]
12401         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12402
12403 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12404
12405         [BZ #18873]
12406         Fix broken overflow check in posix_fallocate
12407         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12408         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12409         Fix parenthesization typo.
12410
12411 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12412
12413         [BZ #18887]
12414         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12415         tst-mntent-blank-passno.
12416         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12417         * misc/tst-mntent-blank-corrupt.c: New test.
12418         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12419         * misc/tst-mntent.c (do_test): ... here.
12420
12421 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12422
12423         [BZ #4404]
12424         * po/de.po: Fix SIGALRM typo.
12425
12426 2015-08-28  James Perkins  <james@loowit.net>
12427
12428         * time/tst-strptime2.c (tests): Replace short list of test
12429         strings for strptime %z specifier with code which exhaustively
12430         tests every combination of sign and 0 to 5 digits. Tests for
12431         rejection of invalid strings.
12432
12433 2015-08-28  James Perkins  <james@loowit.net>
12434
12435         [BZ #16141]
12436         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12437         calculation, removing incorrect decimal time rounding, so that
12438         all minute values result in a valid seconds value.
12439         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12440         offset range limits to UTC-99:59 through UTC+99:59 to parse
12441         current and historical use cases.
12442         * time/tst-strptime2.c (tests): Modify and add tests for the
12443         strptime %z input field descriptor, specifically conversion of
12444         minutes to seconds and validating an offset range of -9959 to
12445         +9959.
12446
12447 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12448             Dmitry V. Levin  <ldv@altlinux.org>
12449
12450         [BZ #18877]
12451         * posix/Makefile (tests): Add tst-mmap-offset.
12452         * posix/tst-mmap.c: New file.
12453         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12454         offset calculation for negative values.
12455
12456 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12457
12458         * sysdeps/i386/init-arch.h: New file.
12459         * sysdeps/i386/i586/init-arch.h: Likewise.
12460         * sysdeps/i386/i686/init-arch.h: Likewise.
12461         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12462         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12463         * sysdeps/x86/cpu-features.h (bit_I586): New.
12464         (bit_I686): Likewise.
12465         (bit_CX8): Likewise.
12466         (bit_CMOV): Likewise.
12467         (index_CX8): Likewise.
12468         (index_CMOV): Likewise.
12469         (index_I586): Likewise.
12470         (index_I686): Likewise.
12471         (reg_CX8): Likewise.
12472         (reg_CMOV): Likewise.
12473         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12474         available at compile-time.
12475         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12476         available at compile-time.
12477         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12478         (USE_I686): Likewise.
12479
12480 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12481
12482         * sysdeps/i386/bcopy.S: New file.
12483         * sysdeps/i386/bzero.S: Likewise.
12484         * sysdeps/i386/memcpy.S: Likewise.
12485         * sysdeps/i386/memmove.S: Likewise.
12486         * sysdeps/i386/mempcpy.S: Likewise.
12487         * sysdeps/i386/memset.S: Likewise.
12488         * sysdeps/i386/bzero.c: Removed.
12489         * sysdeps/i386/memset.c: Likewise.
12490         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12491         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12492         * sysdeps/i386/i586/memset_chk.S: Likewise.
12493         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12494         * sysdeps/i386/memcpy_chk.S: Here.
12495         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12496         * sysdeps/i386/memmove_chk.S: Here.
12497         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12498         * sysdeps/i386/mempcpy_chk.S: Likewise.
12499         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12500         * sysdeps/i386/memset_chk.S: Likewise.
12501
12502 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12503
12504         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12505         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12506         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12507         * soft-fp/fmadf4.c: Ditto.
12508         * soft-fp/fmatf4.c: Ditto.
12509
12510 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12511
12512         * sysdeps/i386/i586/Implies: Removed.
12513         * sysdeps/i386/i686/Implies: Likewise.
12514
12515 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12516
12517         * sysdeps/i386/i486/strlen.S: Moved to ...
12518         * sysdeps/i386/strlen.S: Here.
12519
12520 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12521
12522         * sysdeps/i386/i486/strcat.S: Moved to ...
12523         * sysdeps/i386/strcat.S: Here.
12524
12525 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12526
12527         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12528         * sysdeps/i386/pthread_spin_trylock.S: Here.
12529         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12530         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12531
12532 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12533
12534         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12535         * sysdeps/i386/string-inlines.c: Here.
12536
12537 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12538
12539         * sysdeps/i386/i486/htonl.S: Moved ...
12540         * sysdeps/i386/htonl.S: here.
12541
12542 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12543
12544         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12545         * sysdeps/i386/bits/atomic.h: Here.
12546
12547 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12548
12549         * sysdeps/i386/i486/Versions: Removed.
12550
12551 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12552
12553         [BZ #2898]
12554         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12555         Based on patch by Aurelien Jarno.
12556
12557 2015-08-26  Stan Shebs  <stanshebs@google.com>
12558
12559         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12560         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12561
12562 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12563
12564         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12565         * sysdeps/powerpc/dl-procinfo.c:
12566         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12567         feature so it shows when LD_SHOW_AUXV=1.
12568
12569 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12570
12571         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12572         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12573         definition.  ISA 2.07B no longer requires full sync.
12574
12575 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12576
12577         [BZ #18863]
12578         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12579         (si_call_addr): Define.
12580         (si_syscall): Define.
12581         (si_arch): Define.
12582
12583 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12584
12585         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12586         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12587         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12588         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12589         (__memset_zero_constant_len_parameter): New.
12590         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12591         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12592         (__memset_zero_constant_len_parameter): Don't define if
12593         __memset_chk or USE_AS_BZERO are defined.
12594
12595         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12596         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12597         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12598
12599         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12600         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12601         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12602         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12603         comments.
12604         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12605         -mno-mmx for $(all-rtld-routines).
12606         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12607         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12608         i386.
12609
12610 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12611
12612         * sysdeps/generic/unwind.h
12613         (_Unwind_Word): Use __mode__(__unwind_word__)
12614         instead of __mode__(__word__).
12615         (_Unwind_Sword): Likewise.
12616
12617         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12618         (MAX_NEEDED_INPUT): New define.
12619         (MAX_NEEDED_OUTPUT): New define.
12620
12621         * NEWS: New item for IBM z13 string optimizations.
12622
12623         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12624         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12625         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12626         * sysdeps/s390/multiarch/Makefile
12627         (sysdep_routines): Add memrchr functions.
12628         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12629         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12630
12631         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12632         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12633         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12634         * sysdeps/s390/multiarch/Makefile
12635         (sysdep_routines): Add wmemcmp functions.
12636         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12637         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12638         * benchtests/bench-wmemcmp.c: New File.
12639         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12640
12641         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12642         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12643         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12644         * sysdeps/s390/multiarch/Makefile
12645         (sysdep_routines): Add wmemset functions.
12646         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12647         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12648         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12649         * string/test-memset.c: Add wmemset support.
12650         * wcsmbs/test-wmemset.c: New File.
12651         * wcsmbs/Makefile (strop-tests): Add wmemset.
12652         * benchtests/bench-memset.c: Add wmemset support.
12653         * benchtests/bench-wmemset.c: New File.
12654         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12655
12656         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12657         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12658         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12659         * sysdeps/s390/multiarch/Makefile
12660         (sysdep_routines): Add memccpy functions.
12661         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12662         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12663         * string/memccpy.c: Use MEMCCPY if defined.
12664
12665         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12666         * sysdeps/s390/multiarch/memchr.c: Likewise.
12667         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12668         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12669         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12670         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12671         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12672         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12673         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12674         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12675         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12676         and rawmemchr functions.
12677         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12678         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12679         and wmemchr.
12680         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12681         * string/test-memchr.c: Add wmemchr support.
12682         * wcsmbs/test-wmemchr.c: New File.
12683         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12684         * benchtests/bench-memchr.c: Add wmemchr support.
12685         * benchtests/bench-wmemchr.c: New File.
12686         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12687
12688         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12689         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12690         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12691         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12692         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12693         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12694         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12695         wcscspn functions.
12696         * sysdeps/s390/multiarch/ifunc-impl-list.c
12697         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12698         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12699         * string/test-strcspn.c: Add wcscspn support.
12700         * wcsmbs/test-wcscspn.c: New File.
12701         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12702         * benchtests/bench-strcspn.c: Add wcscspn support.
12703         * benchtests/bench-wcscspn.c: New File.
12704         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12705
12706         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12707         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12708         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12709         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12710         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12711         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12712         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12713         wcspbrk functions.
12714         * sysdeps/s390/multiarch/ifunc-impl-list.c
12715         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12716         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12717         * string/test-strpbrk.c: Add wcspbrk support.
12718         * wcsmbs/test-wcspbrk.c: New File.
12719         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12720         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12721         * benchtests/bench-wcspbrk.c: New File.
12722         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12723
12724         * sysdeps/s390/multiarch/strspn-c.c: New File.
12725         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12726         * sysdeps/s390/multiarch/strspn.c: Likewise.
12727         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12728         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12729         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12730         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12731         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12732         wcsspn functions.
12733         * sysdeps/s390/multiarch/ifunc-impl-list.c
12734         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12735         * string/test-strspn.c: Add wcsspn support.
12736         * wcsmbs/test-wcsspn.c: New File.
12737         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12738         * benchtests/bench-strspn.c: Add wcsspn support.
12739         * benchtests/bench-wcsspn.c: New File.
12740         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12741
12742         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12743         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12744         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12745         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12746         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12747         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12748         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12749         wcsrchr functions.
12750         * sysdeps/s390/multiarch/ifunc-impl-list.c
12751         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12752         * benchtests/bench-wcsrchr.c: New File.
12753         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12754
12755         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12756         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12757         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12758         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12759         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12760         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12761         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12762         wcschrnul functions.
12763         * sysdeps/s390/multiarch/ifunc-impl-list.c
12764         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12765         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12766         * string/test-strchr.c: Add wcschrnul support.
12767         * wcsmbs/test-wcschrnul.c: New File.
12768         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12769         * benchtests/bench-strchr.c: Add wcschrnul support.
12770         * benchtests/bench-wcschrnul.c: New File.
12771         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12772
12773         * sysdeps/s390/multiarch/strchr-c.c: New File.
12774         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12775         * sysdeps/s390/multiarch/strchr.c: Likewise.
12776         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12777         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12778         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12779         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12780         wcschr functions.
12781         * sysdeps/s390/multiarch/ifunc-impl-list.c
12782         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12783         * string/strchr.c (STRCHR): Define and use macro.
12784         * benchtests/bench-wcschr.c: New File.
12785         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12786
12787         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12788         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12789         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12790         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12791         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12792         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12793         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12794         wcsncmp functions.
12795         * sysdeps/s390/multiarch/ifunc-impl-list.c
12796         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12797         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12798         * benchtests/bench-strncmp.c: Add wcsncmp support.
12799         * benchtests/bench-wcsncmp.c: New File.
12800         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12801
12802         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12803         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12804         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12805         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12806         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12807         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12808         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12809         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12810         wcscmp functions.
12811         * sysdeps/s390/multiarch/ifunc-impl-list.c
12812         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12813         * string/strcmp.c (STRCMP): Define and use macro.
12814         * benchtests/bench-wcscmp.c: New File.
12815         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12816         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12817         instead of _HAVE_STRING_ARCH_memchr.
12818
12819         * sysdeps/s390/multiarch/strncat-c.c: New File.
12820         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12821         * sysdeps/s390/multiarch/strncat.c: Likewise.
12822         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12823         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12824         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12825         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12826         wcsncat functions.
12827         * sysdeps/s390/multiarch/ifunc-impl-list.c
12828         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12829         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12830         * string/test-strncat.c: Add wcsncat support.
12831         * wcsmbs/test-wcsncat.c: New File.
12832         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12833         * benchtests/bench-strncat.c: Add wcsncat support.
12834         * benchtests/bench-wcsncat.c: New File.
12835         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12836
12837         * sysdeps/s390/multiarch/strcat-c.c: New File.
12838         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12839         * sysdeps/s390/multiarch/strcat.c: Likewise.
12840         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12841         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12842         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12843         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12844         wcscat functions.
12845         * sysdeps/s390/multiarch/ifunc-impl-list.c
12846         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12847         * string/strcat.c (STRCAT): Define and use macro.
12848         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12849         * string/test-strcat.c: Add wcscat support.
12850         * wcsmbs/test-wcscat.c: New File.
12851         * wcsmbs/Makefile (strop-tests): Add wcscat.
12852         * benchtests/bench-strcat.c: Add wcscat support.
12853         * benchtests/bench-wcscat.c: New File.
12854         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12855
12856         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12857         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12858         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12859         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12860         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12861         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12862         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12863         wcpncpy functions.
12864         * sysdeps/s390/multiarch/ifunc-impl-list.c
12865         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12866         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12867         * string/test-stpncpy.c: Add wcpncpy support.
12868         * wcsmbs/test-wcpncpy.c: New File.
12869         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12870         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12871         * benchtests/bench-wcpncpy.c: New File.
12872         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12873
12874         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12875         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12876         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12877         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12878         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12879         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12880         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12881         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12882         wcsncpy functions.
12883         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12884         * sysdeps/s390/multiarch/ifunc-impl-list.c
12885         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12886         * string/test-strncpy.c: Add wcsncpy support.
12887         * wcsmbs/test-wcsncpy.c: New File.
12888         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12889         * benchtests/bench-strncpy.c: Add wcsncpy support.
12890         * benchtests/bench-wcsncpy.c: New File.
12891         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12892
12893         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12894         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12895         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12896         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12897         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12898         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12899         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12900         wcpcpy functions.
12901         * string/stpcpy.c: Use STPCPY if defined.
12902         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12903         * sysdeps/s390/multiarch/ifunc-impl-list.c
12904         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12905         * string/test-stpcpy.c: Add wcpcpy support.
12906         * wcsmbs/test-wcpcpy.c: New File.
12907         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12908         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12909         * benchtests/bench-wcpcpy.c: New File.
12910         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12911
12912         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12913         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12914         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12915         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12916         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12917         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12918         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12919         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12920         wcscpy functions.
12921         * sysdeps/s390/multiarch/ifunc-impl-list.c
12922         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12923         * benchtests/bench-wcscpy.c: New File.
12924         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12925
12926         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12927         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12928         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12929         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12930         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12931         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12932         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12933         wcsnlen functions.
12934         * sysdeps/s390/multiarch/ifunc-impl-list.c
12935         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12936         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12937         * string/test-strnlen.c: Add wcsnlen support.
12938         * wcsmbs/test-wcsnlen.c: New File.
12939         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12940         * benchtests/bench-strnlen.c: Add wcsnlen support.
12941         * benchtests/bench-wcsnlen.c: New File.
12942         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12943
12944         * sysdeps/s390/multiarch/Makefile: New File.
12945         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12946         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12947         * sysdeps/s390/multiarch/strlen.c: Likewise.
12948         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12949         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12950         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12951         * string/strlen.c (STRLEN): Define and use macro.
12952         * sysdeps/s390/multiarch/ifunc-impl-list.c
12953         (IFUNC_VX_IMPL): New macro function.
12954         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12955         * benchtests/Makefile (wcsmbs-bench): New variable.
12956         (string-bench-all): Added wcsmbs-bench.
12957         * benchtests/bench-wcslen.c: New File.
12958
12959         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12960         s390_vx_libc_ifunc2): New macro function.
12961
12962         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12963         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12964         assembler support.
12965         * sysdeps/s390/configure: Regenerated.
12966
12967         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12968         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12969
12970         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12971         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12972         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12973
12974         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12975         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12976         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12977         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12978         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12979         (memcmp, bcmp): Use __memcmp_default as alias source.
12980         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12981         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12982         Rename to __memcmp_default.
12983         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12984         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12985         (memcpy): Use __memcpy_default as alias source.
12986         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12987         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12988         Rename to __memcpy_default.
12989         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12990         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12991         (memset): Use __memset_default as alias source.
12992         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12993         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12994         Rename to __memset_default.
12995         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12996         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12997         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12998         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12999         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13000         (memcmp, bcmp): Use __memcmp_default as alias source.
13001         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13002         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13003         Rename to __memcmp_default.
13004         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13005         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13006         (memcpy): Use __memcpy_default as alias source.
13007         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13008         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13009         Rename to __memcpy_default.
13010         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13011         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13012         (memset): Use __memset_default as alias source.
13013         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13014         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13015         Rename to __memset_default.
13016         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13017         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13018
13019         [BZ #18610]
13020         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13021         __ieee_instruction_pointer to __unused.
13022         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13023         __ieee_instruction_pointer.
13024         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13025         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13026         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13027         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13028         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13029         Mark dxc-field as reserved.
13030
13031 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13032
13033         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13034         if the weak reference is not null.
13035
13036 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13037
13038         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13039
13040         [BZ #11214]
13041         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13042
13043 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13044
13045         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13046         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13047         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13048         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13049         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13050         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13051         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13052         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13053         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13054         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13055         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13056         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13057         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13058         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13059         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13060         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13061         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13062         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13063
13064 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13065
13066         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13067         register other than r0 for tabort, it has special meaning.
13068         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13069         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13070         transaction before starting syscall.
13071
13072 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13073
13074         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13075
13076 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13077
13078         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13079
13080         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13081         * sysdeps/x86_64/rtld-memset.S: Likewise.
13082         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13083         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13084         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13085         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13086
13087         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13088
13089 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13090
13091         * debug/strcpy_chk.c: Improve performance.
13092         * debug/stpcpy_chk.c: Likewise.
13093         * sysdeps/x86_64/strcpy_chk.S: Remove.
13094         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13095
13096         [BZ #18240]
13097         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13098
13099 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13100
13101         [BZ #15128]
13102         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13103         ifuncmain8.
13104         (modules-names): Add ifuncmod8.
13105         ($(objpfx)ifuncmain8): New rule.
13106         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13107         <cpuid.h>.
13108         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13109         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13110         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13111         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13112         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13113         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13114         * sysdeps/x86_64/ifuncmain8.c: New file.
13115         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13116         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13117         Removed.
13118         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13119         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13120         Change rtld_savespace_sse to __glibc_unused2.
13121         (RTLD_CHECK_FOREIGN_CALL): Removed.
13122         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13123         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13124         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13125
13126 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13127
13128         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13129
13130 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13131
13132         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13133         Unconditionally set __fpcr to avoid uninialized warning.
13134         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13135
13136 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13137
13138         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13139         is corrupt.
13140
13141         * malloc/arena.c (arena_get2): Drop unused argument.
13142         (arena_lock): Adjust.
13143         (arena_get_retry): Likewise.
13144
13145 2015-08-24  Andreas Schwab  <schwab@suse.de>
13146
13147         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13148         Don't define.
13149         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13150         (__ASSUME_IPC64): Don't undef.
13151         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13152         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13153         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13154         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13155         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13156         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13157         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13158         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13159         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13160         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13161         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13162         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13163         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13164         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13165         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13166         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13167         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13168         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13169         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13170         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13171         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13172
13173 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13174
13175         * manual/Makefile (install): Only build manual when perl is available.
13176
13177 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13178
13179         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13180         '#undef memcpy' by '#undef memchr'.
13181
13182 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13183
13184         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13185         memchr not point to the internal __GI_memchr implementation.
13186
13187 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13188
13189         * timezone/Makefile (CFLAGS-zdump.c): Remove
13190         -Wno-strict-prototypes.
13191         (CFLAGS-zic.c): Likewise.
13192         (CFLAGS-ialloc.c): Likewise.
13193         (CFLAGS-scheck.c): Likewise.
13194
13195         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13196         -Wno-error=undef.
13197
13198 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13199
13200         * i386/i686/multiarch/strcasestr-c.c: Removed.
13201         * x86_64/multiarch/strcasestr.c: Likewise.
13202         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13203         Remove strcasestr.
13204
13205 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13206
13207         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13208
13209         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13210         variables for high and low parts before possibly modifying them.
13211
13212 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13213
13214         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13215         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13216         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13217         of "multiarch/init-arch.h".
13218         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13219         * sysdeps/x86/init-arch.h: This.
13220
13221 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13222
13223         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13224         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13225
13226 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13227
13228         [BZ #17787]
13229         * manual/macros.texi: Add twoexp macro.
13230         * manual/filesys.texi: Fix exponents.
13231         * manual/llio.texi: Likewise.
13232         * manual/stdio.texi: Likewise.
13233
13234 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13235
13236         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13237         incorrect use.
13238
13239 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13240
13241         [BZ #18370]
13242         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13243         whose real or imaginary part has small absolute value.
13244         * math/s_csqrtf.c (__csqrtf): Likewise.
13245         * math/s_csqrtl.c (__csqrtl): Likewise.
13246         * math/auto-libm-test-in: Add more tests of csqrt.
13247         * math/auto-libm-test-out: Regenerated.
13248         * sysdeps/i386/fpu/libm-test-ulps: Update.
13249
13250 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13251
13252         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13253         __ppc_set_ppr_very_low): New functions.
13254         * manual/platform.texi: Add documentation about
13255         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13256
13257 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13258
13259         * string/stpncpy.c (stpncpy): Improve performance using
13260         __strnlen/memcpy/memset.
13261
13262 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13263
13264         [BZ #18796]
13265         * scripts/test-installation.pl: Don't add -lmvec to build options if
13266         libmvec wasn't built.
13267
13268 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13269
13270         [BZ #14341]
13271         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13272         case when there is a gap between DT_REL and DT_JMPREL sections.
13273         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13274         (LDFLAGS-tst-split-dynreloc): New.
13275         (tst-split-dynreloc-ENV): Likewise.
13276         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13277         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13278
13279 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13280
13281         [BZ #18822]
13282         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13283         attribute_hidden.
13284         (__xstat64_conv): Likewise.
13285         (__xstat32_conv): Likewise.
13286
13287 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13288
13289         [BZ #18822]
13290         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13291         Don't load %ebx when calling __setcontext.  Call __setcontext
13292         with HIDDEN_JUMPTARGET.
13293         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13294         libc_hidden_def.
13295
13296 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13297
13298         * sysdeps/i386/i686/Makefile
13299         [$(subdir) == string] (sysdep_routines): Moved to ...
13300         * sysdeps/i386/Makefile: Here.
13301         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13302         * sysdeps/i386/cacheinfo.c: Here.
13303         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13304         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13305         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13306         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13307
13308 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13309
13310         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13311         __i586__ is defined.
13312         (HAS_I686): Defined to 1 if __i686__ is defined.
13313
13314 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13315
13316         * elf/Makefile [$(have-z-execstack) = yes]
13317         (CPPFLAGS-tst-execstack.c): New variable.
13318
13319         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13320         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13321         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13322         UTMPX || _HAVE_UT_TV].
13323         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13324         UTMPX || _HAVE_UT_TV - 0].
13325
13326 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13327
13328         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13329         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13330         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13331
13332 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13333
13334         * sysdeps/powerpc/dl-procinfo.c:
13335         (_dl_powerpc_cap_flags): Added missing strings for some
13336         hwcap features.
13337         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13338
13339 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13340
13341         Port the 0x7efe...feff pattern to GCC 6.
13342         See Steve Ellcey's bug report in:
13343         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13344         * string/memrchr.c (MEMRCHR):
13345         * string/rawmemchr.c (RAWMEMCHR):
13346         * string/strchr.c (strchr):
13347         * string/strchrnul.c (STRCHRNUL):
13348         Rewrite code to avoid issues with signed shift overflow.
13349
13350 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13351
13352         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13353         whether cpuid is available only if HAS_CPUID is 0.
13354         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13355         (HAS_I586): Likewise.
13356         (HAS_I686): Likewise.
13357
13358 2015-08-18  Zack Weinberg  <zackw@panix.com>
13359
13360         * misc/Versions (libc): Add GLIBC_2.23.
13361
13362 2015-08-18  Alan Modra  <amodra@gmail.com>
13363
13364         [BZ #18421]
13365         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13366         .Lp__global.
13367         (_start): Load %dp via .Lp__global.
13368         [!SHARED]: Use .section .rodata.
13369
13370 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13371
13372         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13373         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13374
13375 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13376
13377         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13378         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13379
13380 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13381
13382         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13383         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13384
13385 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13386
13387         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13388         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13389
13390 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13391
13392         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13393         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13394
13395 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13396
13397         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13398         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13399
13400 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13401
13402         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13403
13404 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13405
13406         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13407         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13408         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13409         (__ASSUME_LWS_CAS): Delete.
13410
13411 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13412
13413         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13414         * sysdeps/hppa/configure: Regenerated.
13415         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13416         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13417         * sysdeps/hppa/nptl/tls.h: Likewise.
13418
13419 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13420
13421         [BZ #18823]
13422         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13423         for scaling up small arguments.
13424         * math/s_csqrtf.c (__csqrtf): Likewise.
13425         * math/s_csqrtl.c (__csqrtl): Likewise.
13426         * math/auto-libm-test-in: Add more tests of csqrt.
13427         * math/auto-libm-test-out: Regenerated.
13428
13429 2015-08-17  Andreas Schwab  <schwab@suse.de>
13430
13431         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13432         version set GLIBC_2.19.
13433
13434 2015-08-16  Zack Weinberg  <zackw@panix.com>
13435
13436         [BZ #18681]
13437         * misc/regexp.h: This interface is no longer supported.
13438         Remove all contents, leaving only an #error directive.
13439         * misc/regexp.c (loc1, loc2, locs, step, advance):
13440         Demote to compatibility symbols.
13441
13442 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13443
13444         [BZ #18084]
13445         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13446         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13447         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13448         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13449         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13450         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13451         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13452         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13453         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13454
13455 2015-08-15  Zack Weinberg  <zackw@panix.com>
13456
13457         [BZ #18795]
13458         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13459         buffer length is known to be too large, not if it's known to be
13460         small enough.
13461         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13462         overflow at runtime, involving a length parameter, twice: once
13463         with a compile-time constant length parameter, once without.
13464
13465 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13466
13467         [BZ #18824]
13468         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13469         scaling x * y up instead of down.
13470         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13471         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13472         * math/auto-libm-test-in: Add more tests of fma.
13473         * math/auto-libm-test-out: Regenerated.
13474
13475 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13476
13477         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13478
13479 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13480
13481         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13482         unnecessary movq.
13483         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13484         Likewise.
13485
13486 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13487
13488         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13489         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13490         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13491         and tgamma.
13492         * math/auto-libm-test-out: Regenerated.
13493         * sysdeps/i386/fpu/libm-test-ulps: Update.
13494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13495
13496         [BZ #16520]
13497         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13498         (__tanh): Force underflow exception for arguments with small
13499         absolute value.
13500         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13501         (__tanhf): Force underflow exception for arguments with small
13502         absolute value.
13503         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13504         (__tanhl): Force underflow exception for arguments with small
13505         absolute value.
13506         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13507         (__tanhl): Force underflow exception for arguments with small
13508         absolute value.
13509         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13510         (__tanhl): Force underflow exception for arguments with small
13511         absolute value.
13512         * math/auto-libm-test-in: Add more tests of tanh.
13513         * math/auto-libm-test-out: Regenerated.
13514         * sysdeps/i386/fpu/libm-test-ulps: Update.
13515
13516 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13517
13518         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13519         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13520
13521 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13522
13523         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13524         <cpuid.h>.
13525
13526 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13527
13528         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13529         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13530
13531 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13532
13533         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13534         Remove $(objpfx)init-arch.o.
13535         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13536         init-arch.
13537         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13538         (INIT_ARCH_EXT): Defined as empty.
13539         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13540         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13541         __init_cpu_features call.  Replace HAS_XXX with
13542         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13543         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13544         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13545         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13546         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13547         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13548         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13549         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13550         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13551         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13552         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13553         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13554         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13555         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13556         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13557         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13558         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13559         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13560         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13561         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13562         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13563         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13564         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13565         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13566         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13567         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13568         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13569         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13570         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13571         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13572         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13573         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13574         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13575         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13576         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13577         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13578
13579 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13580
13581         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13582         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13583         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13584         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13585         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13586         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13587         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13588         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13589         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13590         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13591         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13592         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13593         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13594         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13595         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13596         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13597         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13598         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13599         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13600         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13601         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13602         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13603         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13604         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13605         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13606         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13607         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13608         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13609         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13610         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13611         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13612         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13613         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13614         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13615         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13616         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13617         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13618         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13619         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13620         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13621         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13622         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13623         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13624
13625 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13626
13627         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13628         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13629         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13630         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13631         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13632         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13633         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13634         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13635         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13636         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13637         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13638         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13639         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13640         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13641         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13642         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13643         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13644         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13645         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13646         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13647         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13648         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13649         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13650         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13651         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13652         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13653         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13654         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13655         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13656         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13657         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13658         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13659         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13660         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13661         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13662         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13663         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13664         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13665         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13666         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13667         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13668         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13669         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13670
13671 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13672
13673         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13674         (dl_platform_init): Call init_cpu_features.
13675         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13676         * sysdeps/i386/i686/cacheinfo.c
13677         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13678         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13679         * sysdeps/i386/i686/multiarch/Versions: Removed.
13680         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13681         Removed.
13682         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13683         * sysdeps/unix/sysv/linux/x86/Makefile
13684         (libpthread-sysdep_routines): Remove init-arch.
13685         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13686         <sysdeps/x86_64/dl-procinfo.c> instead of
13687         sysdeps/generic/dl-procinfo.c>.
13688         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13689         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13690         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13691         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13692         [$(subdir) == elf] (tests-static): Add
13693         tst-get-cpu-features-static.
13694         * sysdeps/x86/Versions: New file.
13695         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13696         * sysdeps/x86/cpu-features.c: Likewise.
13697         * sysdeps/x86/cpu-features.h: Likewise.
13698         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13699         * sysdeps/x86/libc-start.c: Likewise.
13700         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13701         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13702         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13703         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13704         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13705         Assume USE_MULTIARCH is defined and don't check it.
13706         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13707         (is_amd): Likewise.
13708         (max_cpuid): Likewise.
13709         (intel_check_word): Likewise.
13710         (__cache_sysconf): Don't call __init_cpu_features.
13711         (__x86_preferred_memory_instruction): Removed.
13712         (init_cacheinfo): Don't call __init_cpu_features. Replace
13713         __cpu_features with GLRO(dl_x86_cpu_features).
13714         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13715         (dl_platform_init): Call init_cpu_features.
13716         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13717         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13718         * sysdeps/x86_64/multiarch/Versions: Removed.
13719         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13720         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13721         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13722         Removed.
13723         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13724
13725 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13726
13727         [BZ #18820]
13728         * libio/Makefile (test-fmemopen-mem): New test.
13729         * libio/test-fmemopen.c (do_bz18820): New test.
13730         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13731         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13732
13733 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13734
13735         [BZ #16734]
13736         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13737         (FREE_BUF): Delete.
13738         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13739         * libio/genops.c (_IO_setb): Use malloc and free directly.
13740         (_IO_default_doallocate, _IO_default_finish): Likewise.
13741         ( _IO_unbuffer_all): Likewise.
13742         ( libc_freeres_fn): Likewise.
13743         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13744         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13745         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13746         (_IO_wdefault_doallocate): Likewise.
13747
13748 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13749
13750         [BZ #18086]
13751         * sysdeps/posix/nice.c (nice): Restore old errno.
13752         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13753
13754 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13755
13756         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13757
13758 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13759
13760         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13761         __bcopy and add a weak_alias to bcopy.
13762         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13763         for static build.
13764
13765         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13766         cleanup macro usage.
13767         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13768         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13769         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13770         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13771         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13772         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13773         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13774         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13775         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13776         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13777         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13778         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13779         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13780         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13781         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13782         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13783         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13784         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13785         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13786
13787         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13788         libc_hidden_def.
13789         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13790
13791         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13792         (sysdep_routines): Add strstr-ppc64.
13793         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13794
13795 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13796
13797         [BZ #18778]
13798         * elf/Makefile (tests): Add Add tst-nodelete2.
13799         (modules-names): Add tst-nodelete2mod.
13800         (tst-nodelete2mod.so-no-z-defs): New.
13801         ($(objpfx)tst-nodelete2): Likewise.
13802         ($(objpfx)tst-nodelete2.out): Likewise.
13803         (LDFLAGS-tst-nodelete2): Likewise.
13804         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13805         out of loop through all loaded libraries.
13806         * elf/tst-nodelete2.c: New file.
13807         * elf/tst-nodelete2mod.c: Likewise.
13808         * elf/tst-znodelete-zlib.cc: Delete.
13809
13810 2015-08-11  Andreas Schwab  <schwab@suse.de>
13811
13812         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13813         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13814         (__openat64_nocancel): Likewise.
13815
13816 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13817
13818         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13819         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13820         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13821         * math/auto-libm-test-out: Regenerated.
13822         * sysdeps/i386/fpu/libm-test-ulps: Update.
13823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13824
13825 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13826
13827         [BZ #18790]
13828         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13829         threshold for returning +/- 1.
13830         * math/auto-libm-test-in: Add more tests of tanh.
13831         * math/auto-libm-test-out: Regenerated.
13832         * sysdeps/i386/fpu/libm-test-ulps: Update.
13833
13834 2015-08-10  Andreas Schwab  <schwab@suse.de>
13835
13836         [BZ #18781]
13837         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13838         MORE_OFLAGS to oflag.
13839         * io/test-lfs.c (do_test): Test openat64.
13840
13841 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13842
13843         [BZ #18789]
13844         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13845         smaller threshold for returning the argument.
13846         * math/auto-libm-test-in: Add more tests of sinh.
13847         * math/auto-libm-test-out: Regenerated.
13848         * sysdeps/i386/fpu/libm-test-ulps: Update.
13849
13850 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13851
13852         [BZ #18674]
13853         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13854         break.
13855
13856 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13857
13858         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13859         (generated): Don't add $(addprefix z.,$(tzfiles)).
13860
13861 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13862
13863         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13864         * scripts/sysd-rules.awk: Likewise.
13865
13866 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13867
13868         * iconvdata/tst-tables.sh: Change echo -n to printf.
13869         * nss/db-Makefile: Likewise.
13870         * posix/tst-getconf.sh: Likewise.
13871         * stdio-common/tst-unbputc.sh: Likewise.
13872
13873 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13874
13875         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13876         MADV_*_PAGES defines behind this feature check.
13877
13878 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13879
13880         [BZ #18480]
13881         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13882         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13883         Define.
13884         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13885         LOAD_REGS_5, LOAD_REGS_6): Update.
13886         (INTERNAL_SYSCALL): Update using new LOAD defines.
13887         (INTERNAL_SYSCALL_NCS): Likewise.
13888         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13889
13890 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13891
13892         [BZ #16734]
13893         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13894
13895 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13896
13897         [BZ #17905]
13898         * catgets/Makefile (tst-catgets-mem): New test.
13899         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13900         * catgets/open_catalog.c (__open_catalog): Likewise.
13901         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13902
13903 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13904
13905         [BZ #18787]
13906         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13907         clobber registers.
13908         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13909         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13910         Cast return to __typeof (oldval).
13911
13912 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13913
13914         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13915         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13916         and delete sys/syscall.h include.
13917
13918 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13919
13920         [BZ #16517]
13921         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13922         (tan): Force underflow exception for arguments with small absolute
13923         value.
13924         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13925         (__kernel_tanf): Force underflow exception for arguments with
13926         small absolute value.
13927         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13928         (__kernel_tanl): Force underflow exception for arguments with
13929         small absolute value.
13930         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13931         (__kernel_tanl): Force underflow exception for arguments with
13932         small absolute value.
13933         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13934         (__kernel_tanl): Force underflow exception for arguments with
13935         small absolute value.
13936         * math/auto-libm-test-in: Add more tests of tan.
13937         * math/auto-libm-test-out: Regenerated.
13938
13939 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13940
13941         Fix sysdeps/i386/fpu/s_scalbn.S build
13942
13943         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13944
13945 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13946
13947         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13948
13949 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13950
13951         Fix gcrt0.o compilation
13952
13953         When static-start-installed-name is different from
13954         start-installed-name, we must not use the shared objects.
13955
13956         * csu/Makefile
13957         (extra-objs): Add gmon-start.o when building shared library and
13958         $(static-start-installed-name) is different from
13959         $(start-installed-name).
13960         $(objpfx)g$(static-start-installed-name): When building shared
13961         library and $(static-start-installed-name) is different from
13962         $(static-start-installed-name), revert to non-shared rule,
13963         i.e. using $(objpfx)% and gmon-start.o.
13964
13965 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13966
13967         [BZ #16519]
13968         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13969         (__ieee754_sinh): Force underflow exception for arguments with
13970         small absolute value.
13971         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13972         (__ieee754_sinhf): Force underflow exception for arguments with
13973         small absolute value.
13974         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13975         (__ieee754_sinhl): Force underflow exception for arguments with
13976         small absolute value.
13977         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13978         (__ieee754_sinhl): Force underflow exception for arguments with
13979         small absolute value.
13980         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13981         (__ieee754_sinhl): Force underflow exception for arguments with
13982         small absolute value.
13983         * math/auto-libm-test-in: Add more tests of sinh.
13984         * math/auto-libm-test-out: Regenerated.
13985         * sysdeps/i386/fpu/libm-test-ulps: Update.
13986
13987 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13988
13989         * libio/oldfileops.c: Include unistd.h.
13990
13991 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13992
13993         * stdlib/isomac.c: Include ctype.h.
13994
13995 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13996
13997         * dirent/tst-seekdir.c (main): Converted to ...
13998         (do_test): ... this.
13999         (TEST_FUNCTION): New macro.
14000         Include test-skeleton.c.
14001         * elf/tst-dlmodcount.c (main): Converted to ...
14002         (do_test): ... this.
14003         (TEST_FUNCTION): New macro.
14004         Include test-skeleton.c.
14005         * elf/tst-order-main.c (main): Converted to ...
14006         (do_test): ... this.
14007         (TEST_FUNCTION): New macro.
14008         Include test-skeleton.c.
14009         * elf/tst-pie2.c (main): Converted to ...
14010         (do_test): ... this.
14011         (TEST_FUNCTION): New macro.
14012         Include test-skeleton.c.
14013         * inet/tst-ether_aton.c (main): Converted to ...
14014         (do_test): ... this.
14015         (TEST_FUNCTION): New macro.
14016         Include test-skeleton.c.
14017         * misc/tst-mntent.c (main): Converted to ...
14018         (do_test): ... this.
14019         (TEST_FUNCTION): New macro.
14020         Include test-skeleton.c.
14021         * misc/tst-tsearch.c (main): Converted to ...
14022         (do_test): ... this.
14023         (TEST_FUNCTION): New macro.
14024         Include test-skeleton.c.
14025         * posix/tst-regexloc.c (main): Converted to ...
14026         (do_test): ... this.
14027         (TEST_FUNCTION): New macro.
14028         Include test-skeleton.c.
14029         * resolv/tst-aton.c (main): Converted to ...
14030         (do_test): ... this.
14031         (TEST_FUNCTION): New macro.
14032         Include test-skeleton.c.
14033         * stdio-common/test-fwrite.c (main): Converted to ...
14034         (do_test): ... this.
14035         (TEST_FUNCTION): New macro.
14036         Include test-skeleton.c.
14037         * stdio-common/tst-ferror.c (main): Converted to ...
14038         (do_test): ... this.
14039         (TEST_FUNCTION): New macro.
14040         Include test-skeleton.c.
14041         * stdio-common/tst-printf.c (main): Converted to ...
14042         (do_test): ... this.
14043         (TEST_FUNCTION): New macro.
14044         Include test-skeleton.c.
14045         * stdio-common/tst-printfsz.c (main): Converted to ...
14046         (do_test): ... this.
14047         (TEST_FUNCTION): New macro.
14048         Include test-skeleton.c.
14049         * stdlib/tst-strtod.c (main): Converted to ...
14050         (do_test): ... this.
14051         (TEST_FUNCTION): New macro.
14052         Include test-skeleton.c.
14053         * string/tst-strlen.c (main): Converted to ...
14054         (do_test): ... this.
14055         (TEST_FUNCTION): New macro.
14056         Include test-skeleton.c.
14057         * string/tst-svc.c (main): Converted to ...
14058         (do_test): ... this.
14059         (TEST_FUNCTION): New macro.
14060         Include test-skeleton.c.
14061         * time/tst-strptime.c (main): Converted to ...
14062         (do_test): ... this.
14063         (TEST_FUNCTION): New macro.
14064         Include test-skeleton.c.
14065         * timezone/tst-timezone.c (main): Converted to ...
14066         (do_test): ... this.
14067         (TEST_FUNCTION): New macro.
14068         Include test-skeleton.c.
14069
14070 2015-08-05  Zack Weinberg  <zackw@panix.com>
14071
14072         * misc/regexp.h: Update comments.
14073
14074 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14075
14076         [BZ #18635]
14077         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14078         before return label.
14079
14080 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14081
14082         [BZ #18661]
14083         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14084         when calling __errno_location.
14085         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14086         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14087
14088 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14089
14090         [BZ #18661]
14091         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14092         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14093         __gettimeofday.
14094
14095 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14096
14097         [BZ #18661]
14098         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14099         (__start_context): Don't use pop to restore %rdi so that stack
14100         is aligned to 16 bytes when calling __setcontext.
14101
14102 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14103
14104         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14105         only for libc.
14106         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14107
14108 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14109
14110         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14111         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14112         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14113
14114 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14115
14116         * string/memccpy.c (memccpy):
14117         Improve performance by using memchr/memcpy/__mempcpy.
14118
14119 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14120
14121         * string/strncpy.c (strncpy):
14122         Improve performance by using __strnlen/memcpy.
14123
14124 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14125
14126         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14127         Optimize to avoid an unnecessary FPCR read.
14128
14129 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14130
14131         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14132         Optimize to reduce FPCR/FPSR accesses.
14133
14134 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14135
14136         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14137         dead->data[category] != NULL.
14138
14139 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14140
14141         [BZ #18647]
14142         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14143         and |x| close to 1, use absolute value of x when computing log.
14144         * math/auto-libm-test-in: Add more tests of pow.
14145         * math/auto-libm-test-out: Regenerated.
14146
14147 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14148
14149         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14150         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14151         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14152
14153 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14154
14155         [BZ #18525]
14156         * locales/km_KH: Remove timezone definition.
14157         * locales/lo_LA: Likewise.
14158         * locales/my_MM: Likewise.
14159         * locales/nan_TW@latin: Likewise.
14160         * locales/th_TH: Likewise.
14161         * locales/uk_UA: Likewise.
14162
14163 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14164
14165         [BZ #18265]
14166         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14167         (wcsncat): Likewise.
14168         (wcscmp): Likewise.
14169         (wcsncmp): Likewise.
14170
14171 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14172
14173         * test-skeleton.c (usage): New function.
14174         (main): Call usage when opt is '?'.
14175
14176 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14177
14178         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14179         before first use.
14180
14181 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14182
14183         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14184         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14185         in there too.
14186
14187 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14188
14189         * version.h (RELEASE): Set to "development".
14190         (VERSION): Set to "2.22.90"
14191
14192         * version.h (RELEASE): Set to "stable".
14193         (VERSION): Set to "2.22"
14194         * include/features.h (__GLIBC_MINOR__): Set to 22.
14195
14196 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14197
14198         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14199         Restructure macro to avoid "value computed is not used" warning.
14200         (atomic_compare_and_exchange_val_acq): Likewise.
14201
14202 2015-08-04  Andreas Schwab  <schwab@suse.de>
14203
14204         [BZ #18635]
14205         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14206         ret.
14207         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14208
14209 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14210
14211         * po/pl.po: Updated translation.
14212         * po/uk.po: Likewise.
14213         * po/fi.po: Likewise.
14214         * po/ko.po: Likewise.
14215         * po/ru.po: Likewise.
14216         * po/vi.po: Likewise.
14217
14218 2015-07-31  Zack Weinberg  <zackw@panix.com>
14219
14220         [BZ #18681]
14221         * regexp.h: Add unconditional #warning stating that this header
14222         will be removed soon.  Revise banner comment to match.
14223         (compile): Consistently use ERROR instead of RETURN to report
14224         errors (partial fix for bz#18681).
14225         * regexp.c: Don't include regexp.h. Remove some unnecessary
14226         declarations.
14227
14228 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14229
14230         * po/libc.pot: Regenerated.
14231
14232 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14233
14234         [BZ #18740]
14235         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14236         float-vlen4-arch-ext-cflags): Removed.
14237         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14238         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14239
14240 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14241
14242         [BZ #14113]
14243         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14244         aligned to __aligned__.
14245         (pthread_cond_t, pthread_rwlock_t): Likewise.
14246
14247 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14248
14249         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14250
14251 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14252
14253         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14254         (struct sigaction): Change sa_flags from a long to an int, and add
14255         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14256
14257 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14258
14259         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14260         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14261         sysdeps/generic/sysdep.h include.
14262         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14263         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14264         sysdeps/hppa/sysdep.h.
14265         (ENTRY, PSEUDO): Undefine before defining.
14266
14267 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14268
14269         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14270         from scratch to use INTERNAL_SYSCALL.
14271
14272 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14273
14274         [BZ #18078]
14275         * scripts/check-localplt.awk: Support alternate relocations.
14276         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14277         sections.
14278         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14279         malloc entries with + REL R_386_GLOB_DAT.
14280         * sysdeps/x86_64/localplt.data: New file.
14281
14282 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14283
14284         [BZ #18731]
14285         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14286         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14287         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14288
14289 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14290
14291         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14292
14293 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14294
14295         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14296         directly in terms of __sync_fetch_and_add and delete (int) cast.
14297
14298 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14299
14300         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14301         the -D_ASM_IA64_CURRENT_H flag.
14302
14303 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14304
14305         [BZ #18641]
14306         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14307
14308 2015-07-27  Andreas Schwab  <schwab@suse.de>
14309
14310         * conform/conformtest.pl (checknamespace): Filter out string
14311         literals while tokenizing.
14312
14313 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14314
14315         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14316         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14317         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14318
14319 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14320
14321         * nptl/tst-join7mod.c: Add #include <string.h>.
14322
14323 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14324
14325         * sysdeps/nios2/libm-test-ulps: Update.
14326
14327 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14328
14329         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14330         Fix order of arguments to the rt_sigprocmask syscall.
14331         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14332         Likewise.
14333
14334 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14335
14336         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14337
14338 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14339
14340         [BZ #18457]
14341         * nptl/Makefile (tests): New test case tst-join7.
14342         (modules-names): New test case module tst-join7mod.
14343         * nptl/tst-join7.c: New file.
14344         * nptl/tst-join7mod.c: New file.
14345         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14346         all translation units in libc.so, libpthread.so and rtld.
14347
14348 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14349
14350         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14351
14352 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14353
14354         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14355         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14356         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14357         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14358         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14359         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14360         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14361         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14362         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14363         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14364         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14365         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14366         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14367         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14368         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14369         implementation.
14370
14371 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14372
14373         [BZ #17711]
14374         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14375         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14376         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14377         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14378         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14379         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14380
14381 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14382
14383         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14384         instead of just saying load lock in the comments.
14385
14386 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14387
14388         * sysdeps/unix/Subdirs: Moved ...
14389         * sysdeps/posix/Subdirs: ... here.
14390         * login/pty.h (struct termios, struct winsize): Add forward decls.
14391         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14392         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14393         * sysdeps/arm/nacl/libc.abilist: Updated.
14394         * sysdeps/nacl/libutil.abilist: New file.
14395
14396         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14397         (SIGWINCH): New macro.
14398
14399         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14400         * sysdeps/arm/nacl/libc.abilist: Add it.
14401
14402 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14403
14404         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14405
14406 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14407
14408         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14409         Swap __glibc_reserved0 and sa_flags order.
14410
14411 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14412
14413         [BZ #18657]
14414         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14415         are pending TLS destructor calls.
14416         * include/link.h (struct link_map): Add concurrency note for
14417         L_TLS_DTOR_COUNT.
14418         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14419         Don't touch the link map flag.  Atomically increment
14420         l_tls_dtor_count.
14421         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14422         Avoid taking the load lock and don't touch the link map flag.
14423         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14424         * stdlib/Makefile (tests): Use it.
14425         * stdlib/tst-tls-atexit.c (do_test): dlopen
14426         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14427         to allow tst-tls-atexit-nodelete test case to use it.
14428
14429 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14430
14431         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14432         to bits/types.h.
14433         (msgqnum_t): New typedef.
14434         (msglen_t): Likewise.
14435         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14436         and msg_qbytes type to msglen_t.
14437
14438 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14439
14440         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14441         pad0 to __glibc_reserved0.
14442         (struct stat64): Likewise.
14443
14444 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14445
14446         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14447         Change sa_flags from a long to an int and add __glibc_reserved0 before
14448         it for padding.
14449
14450 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14451
14452         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14453         anonymous by deleting "siginfo" name.
14454
14455 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14456
14457         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14458         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14459         rather than __nacl_irt_filename.
14460         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14461
14462         * NEWS: New item for arm-nacl port.
14463         * sysdeps/arm/nacl/libc.abilist: New file.
14464         * sysdeps/nacl/ld.abilist: New file.
14465         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14466         * sysdeps/nacl/libanl.abilist: New file.
14467         * sysdeps/nacl/libcrypt.abilist: New file.
14468         * sysdeps/nacl/libdl.abilist: New file.
14469         * sysdeps/nacl/libm.abilist: New file.
14470         * sysdeps/nacl/libpthread.abilist: New file.
14471         * sysdeps/nacl/libresolv.abilist: New file.
14472         * sysdeps/nacl/librt.abilist: New file.
14473
14474 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14475
14476         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14477         __startcontext to initialize the new context.
14478         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14479         up CFI directive to forbid further backtracing.
14480
14481 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14482
14483         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14484         reference.
14485         * charmaps/ANSI_X3.4-1968: Likewise.
14486         * charmaps/BS_4730: Likewise.
14487         * charmaps/BS_VIEWDATA: Likewise.
14488         * charmaps/CP1250: Likewise.
14489         * charmaps/CP1251: Likewise.
14490         * charmaps/CP1252: Likewise.
14491         * charmaps/CP1253: Likewise.
14492         * charmaps/CP1254: Likewise.
14493         * charmaps/CP1255: Likewise.
14494         * charmaps/CP1256: Likewise.
14495         * charmaps/CSN_369103: Likewise.
14496         * charmaps/EBCDIC-DK-NO: Likewise.
14497         * charmaps/GB_1988-80: Likewise.
14498         * charmaps/GREEK-CCITT: Likewise.
14499         * charmaps/GREEK7: Likewise.
14500         * charmaps/INIS-8: Likewise.
14501         * charmaps/ISIRI-3342: Likewise.
14502         * charmaps/ISO_2033-1983: Likewise.
14503         * charmaps/ISO_5427-EXT: Likewise.
14504         * locales/POSIX: Likewise.
14505         * locales/ar_SA: Likewise.
14506         * locales/be_BY: Likewise.
14507         * locales/be_BY@latin: Likewise.
14508         * locales/ca_ES: Likewise.
14509         * locales/cs_CZ: Likewise.
14510         * locales/da_DK: Likewise.
14511         * locales/de_BE: Likewise.
14512         * locales/de_CH: Likewise.
14513         * locales/de_LU: Likewise.
14514         * locales/en_AU: Likewise.
14515         * locales/en_BW: Likewise.
14516         * locales/en_CA: Likewise.
14517         * locales/en_DK: Likewise.
14518         * locales/en_GB: Likewise.
14519         * locales/en_IE: Likewise.
14520         * locales/en_NZ: Likewise.
14521         * locales/en_ZA: Likewise.
14522         * locales/en_ZW: Likewise.
14523         * locales/es_AR: Likewise.
14524         * locales/es_BO: Likewise.
14525         * locales/es_CL: Likewise.
14526         * locales/es_CO: Likewise.
14527         * locales/es_DO: Likewise.
14528         * locales/es_EC: Likewise.
14529         * locales/es_ES: Likewise.
14530         * locales/es_HN: Likewise.
14531         * locales/es_MX: Likewise.
14532         * locales/es_PA: Likewise.
14533         * locales/es_PE: Likewise.
14534         * locales/es_PY: Likewise.
14535         * locales/es_SV: Likewise.
14536         * locales/es_US: Likewise.
14537         * locales/es_UY: Likewise.
14538         * locales/es_VE: Likewise.
14539         * locales/et_EE: Likewise.
14540         * locales/fa_IR: Likewise.
14541         * locales/fo_FO: Likewise.
14542         * locales/fr_CA: Likewise.
14543         * locales/fr_CH: Likewise.
14544         * locales/gv_GB: Likewise.
14545         * locales/he_IL: Likewise.
14546         * locales/hr_HR: Likewise.
14547         * locales/id_ID: Likewise.
14548         * locales/is_IS: Likewise.
14549         * locales/it_CH: Likewise.
14550         * locales/iw_IL: Likewise.
14551         * locales/kl_GL: Likewise.
14552         * locales/ko_KR: Likewise.
14553         * locales/kw_GB: Likewise.
14554         * locales/lg_UG: Likewise.
14555         * locales/lt_LT: Likewise.
14556         * locales/lv_LV: Likewise.
14557         * locales/mi_NZ: Likewise.
14558         * locales/nhn_MX: Likewise.
14559         * locales/nl_BE: Likewise.
14560         * locales/pl_PL: Likewise.
14561         * locales/sk_SK: Likewise.
14562         * locales/sl_SI: Likewise.
14563         * locales/sv_FI: Likewise.
14564         * locales/tl_PH: Likewise.
14565         * locales/tr_TR: Likewise.
14566         * locales/vi_VN: Likewise.
14567
14568 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14569
14570         [BZ #17475]
14571         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14572         of tu_IN and bh_IN.
14573
14574 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14575
14576         [BZ #18694]
14577         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14578         bits/wordsize.h.
14579         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14580
14581 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14582
14583         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14584         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14585         (spawn_thread): New function.
14586         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14587         (do_test): ... here.  Use IS_LOADED to test for its
14588         availability.
14589
14590 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14591
14592         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14593
14594 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14595
14596         [BZ #18696]
14597         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14598         si_addr_bnd.
14599         (si_lower): New.
14600         (si_upper): Likewise.
14601
14602 2015-07-16  David S. Miller  <davem@davemloft.net>
14603
14604         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14605
14606 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14607
14608         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14609         buffer.
14610         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14611         fail output information.
14612
14613 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14614
14615         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14616         and strstr-ppc64..
14617         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14618         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14619         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14620         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14621         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14622
14623 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14624
14625         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14626         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14627         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14628         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14629
14630 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14631
14632         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14633         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14634         rtld_hidden_proto.
14635         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14636
14637 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14638
14639         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14640         the test can fail.
14641
14642         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14643
14644         [BZ #18676]
14645         * elf/tst-nodelete-opened.c: New test case.
14646         * elf/tst-nodelete-opened-lib.c: New test case module.
14647         * elf/Makefile (tests, modules-names): Use them.
14648         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14649         early.
14650
14651 2015-07-15  David S. Miller  <davem@davemloft.net>
14652
14653         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14654         futex-intenal.h
14655         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14656         * sysdeps/sparc/sparc64/Makefile: Likewise.
14657         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14658         Remove space from macro define.
14659         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14660
14661 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14662
14663         [BZ #17475]
14664         * locale/iso-639.def: Update Bhili and Tulu language codes as
14665         per iso639-3.
14666
14667 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14668
14669         * elf/tst-leaks1.c (main): Converted to ...
14670         (do_test): ... this.
14671         (TEST_FUNCTION): New macro.
14672         Include test-skeleton.c.
14673         * localedata/tst-langinfo.c (main): Converted to ...
14674         (do_test): ... this.
14675         (TEST_FUNCTION): New macro.
14676         Include test-skeleton.c.
14677         * math/test-fpucw.c (main): Converted to ...
14678         (do_test): ... this.
14679         (TEST_FUNCTION): New macro.
14680         Include test-skeleton.c.
14681         * math/test-tgmath.c (main): Converted to ...
14682         (do_test): ... this.
14683         (TEST_FUNCTION): New macro.
14684         Include test-skeleton.c.
14685         * math/test-tgmath2.c (main): Converted to ...
14686         (do_test): ... this.
14687         (TEST_FUNCTION): New macro.
14688         Include test-skeleton.c.
14689         * setjmp/tst-setjmp.c (main): Converted to ...
14690         (do_test): ... this.
14691         (TEST_FUNCTION): New macro.
14692         Include test-skeleton.c.
14693         * stdio-common/tst-sscanf.c (main): Converted to ...
14694         (do_test): ... this.
14695         (TEST_FUNCTION): New macro.
14696         Include test-skeleton.c.
14697         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14698         (do_test): ... this.
14699         (TEST_FUNCTION): New macro.
14700         Include test-skeleton.c.
14701
14702         * elf/tst-audit9.c (main): Converted to ...
14703         (do_test): ... this.
14704         (TEST_FUNCTION): New macro.
14705         Include test-skeleton.c.
14706
14707 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14708
14709         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14710
14711 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14712
14713         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14714         New variable.
14715
14716 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14717
14718         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14719
14720 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14721
14722         * sysdeps/generic/dl-fileid.h: New file.
14723         * sysdeps/posix/dl-fileid.h: New file.
14724         * sysdeps/nacl/dl-fileid.h: New file.
14725         * include/link.h: Include <dl-fileid.h>.
14726         (struct link_map): Replace l_dev and l_ino with l_file_id.
14727         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14728         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14729         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14730
14731 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14732
14733         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14734
14735 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14736
14737         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14738         Add iff $CXX is set.
14739         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14740         Likewise.
14741         (tst-nodelete-zmodiff): Likewise.
14742         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14743
14744 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14745
14746         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14747
14748 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14749
14750         * sysdeps/aarch64/fpu/math_private.h
14751         (define math_opt_barrier): Add AArch64 version.
14752         (math_force_eval): Likewise.
14753
14754 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14755
14756         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14757
14758 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14759
14760         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14761         %ld with %jd and cast to intmax_t.
14762         (do_test_length_zero): Likewise.
14763
14764 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14765
14766         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14767
14768 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14769
14770         * sysdeps/tile/libm-test-ulps: Regenerated.
14771
14772         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14773         Comment out the whole function, not just its body.
14774
14775 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14776
14777         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14778         locks.
14779
14780         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14781
14782 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14783
14784         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14785         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14786
14787 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14788
14789         * sysdeps/nptl/futex-internal.h: New file.
14790         * sysdeps/nacl/futex-internal.h: New file.
14791         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14792         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14793         error checking.
14794         (setxid_unmark_thread): Likewise.
14795         (__nptl_setxid): Likewise.
14796         (__wait_lookup_done): Likewise.
14797         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14798         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14799         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14800         * nptl/pthread_once.c (clear_once_control): Likewise.
14801         (__pthread_once_slow): Likewise.
14802         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14803         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14804         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14805         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14806         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14807         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14808         Likewise.
14809         (__pthread_rwlock_rdlock): Likewise.
14810         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14811         Likewise.
14812         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14813         Likewise.
14814         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14815         Likewise.
14816         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14817         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14818         Likewise.
14819         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14820         __ASSUME_PRIVATE_FUTEX check.
14821         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14822         Check that shared futexes are supported.
14823         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14824         wrappers with error checking.
14825         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14826         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14827         * nptl/pthread_barrierattr_setpshared.c
14828         (pthread_barrierattr_setpshared): Check that shared futexes are
14829         supported.
14830         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14831         Likewise.
14832         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14833         Likewise.
14834         * nptl/sem_init.c (futex_private_if_supported): Remove.
14835         (__new_sem_init): Adapt and check that shared futexes are supported.
14836         * nptl/sem_open.c (sem_open): Likewise.
14837         * nptl/sem_post.c (futex_wake): Remove.
14838         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14839         (do_futex_wait): Use futex wrappers with error checking.
14840         * nptl/sem_wait.c: Include lowlevellock.h.
14841         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14842         Use futex_supports_pshared.
14843         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14844         Use futex wrappers with error checking.
14845         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14846         Likewise.
14847         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14848         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14849         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14850         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14851         (futex_wake): Likewise.
14852         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14853         (do_futex_wait): Use futex wrappers with error checking.
14854         (__new_sem_wait_slow): Update EINTR handling.
14855         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14856
14857 2015-07-09  Martin Sebor  <msebor@redhat.com>
14858
14859         [BZ #18435]
14860         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14861         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14862         * nptl/Makefile (test-xfail-tst-once5): Define.
14863
14864 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14865
14866         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14867         * elf/dl-minimal.c: For readability, reorder some definitions and
14868         introduce more page breaks.  Include <stdio.h>.
14869         (__libc_fatal): New function.
14870
14871         * include/unistd.h: Add rtld_hidden_proto for _exit.
14872         * posix/_exit.c: Add rtld_hidden_def.
14873         * sysdeps/mach/hurd/_exit.c: Likewise.
14874         * sysdeps/nacl/_exit.c: Likewise.
14875         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14876         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14877
14878 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14879
14880         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14881         bndmov encoding with zero displacement.
14882
14883 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14884             H.J. Lu  <hongjiu.lu@intel.com>
14885
14886         [BZ #18134]
14887         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14888         * sysdeps/i386/configure: Regenerated.
14889         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14890         (_dl_runtime_profile): Save and restore Intel MPX return bound
14891         registers when calling _dl_call_pltexit.  Add
14892         PRESERVE_BND_REGS_PREFIX before return.
14893         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14894         (LRV_BND1_OFFSET): Likewise.
14895         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14896         lrv_bnd1.
14897         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14898         typo in bndmov encoding.
14899         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14900         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14901         branch instructions to preserve bounds.
14902
14903 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14904
14905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14906         [GLIBC_2.22]: Add fmemopen.
14907
14908 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14909
14910         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14911         returns an error, also try to use host port from __mach_host_self for
14912         the __vm_wire call.
14913         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14914
14915 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14916
14917         [BZ #18400]
14918         [BZ #18648]
14919         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14920         Fix pr_uid and pr_gid members.
14921         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14922         definition to elf_greg_t.
14923
14924 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14925
14926         [BZ #18383]
14927         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14928         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14929         * sysdeps/arm/configure: Regenerated.
14930         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14931         (test-xfail-tst-tlsalign-static): Variable removed.
14932
14933         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14934         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14935         rather than explicit 'ln -s'.
14936
14937         * resolv/rpc/netdb.h: New file.
14938         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14939
14940 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14941
14942         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14943         length buffers.
14944         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14945         test-skeleton.c.
14946
14947         [BZ #6544]
14948         [BZ #11216]
14949         [BZ #12836]
14950         [BZ #13151]
14951         [BZ #13152]
14952         [BZ #14292]
14953         * include/stdio.h (fmemopen): Remove hidden prototype.
14954         (__fmemopen): Add new hidden prototype.
14955         * libio/Makefile: Add oldfmemopen object.
14956         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14957         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14958         compliance.
14959         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14960         symbol compatibility.
14961         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14962         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14963         fmemopen.
14964         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14965         on append and read mode.
14966         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14967         fmemopen.
14968         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14969         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14970         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14971         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14972         Likewise.
14973         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14974         [GLIBC_2.22]: Likewise.
14975         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14976         Likewise.
14977         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14978         Likewise.
14979         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14980         [GLIBC_2.22]: Likewise.
14981         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14982         [GLIBC_2.22]: Likewise.
14983         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14984         [GLIBC_2.22]: Likewise.
14985         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14986         [GLIBC_2.22]: Likewise.
14987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14988         [GLIBC_2.22]: Likewise.
14989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14990         [GLIBC_2.22]: Likewise.
14991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14992         [GLIBC_2.22]: Likewise.
14993         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14994         Likewise.
14995         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14996         Likewise.
14997         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14998         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14999         [GLIBC_2.22]: Likewise.
15000         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15001         [GLIBC_2.22]: Likewise.
15002         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15003         [GLIBC_2.22]: Likewise.
15004         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15005         [GLIBC_2.22]: Likewise.
15006         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15007         Likewise.
15008         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15009         Likewise.
15010         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15011         Likewise.
15012         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15013         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15014
15015 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15016
15017         [BZ #18643]
15018         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15019         IPV6_PATHMTU, and IPV6_DONTFRAG.
15020
15021 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15022
15023         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15024         and _IO_UNBUFFERED.
15025         * libio/oldfileops.c: Likewise.
15026         * libio/wfileops.c: Likewise.
15027
15028 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15029
15030         * nscd/selinux.c: Delete selinux/flask.h include.
15031
15032 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15033
15034         [BZ #18641]
15035         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15036         (putpwent): Likewise.
15037         (getpwnam): Likewise.
15038         (getpwent_r): Likewise.
15039         (getpwuid_r): Likewise.
15040         (getpwnam_r): Likewise.
15041         (fgetpwent_r): Likewise.
15042
15043 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15044
15045         [BZ #18557]
15046         * inet/rcmd.c (__validuser2_sa): Check user first to
15047         short-circuit host check.
15048
15049 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15050             Mikhail Ilin  <m.ilin@samsung.com>
15051
15052         [BZ #17833]
15053         * elf/Makefile (tests): Add tst-nodelete.
15054         (modules-names): Add tst-nodelete-uniquemod.
15055         (tst-nodelete-uniquemod.so-no-z-defs): New.
15056         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15057         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15058         ($(objpfx)tst-nodelete): Likewise.
15059         ($(objpfx)tst-nodelete.out): Likewise.
15060         (LDFLAGS-tst-nodelete): Likewise.
15061         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15062         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15063         implement forced object deletion.
15064         (_dl_close): Pass false to _dl_close_worker.
15065         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15066         * elf/tst-nodelete.cc: New file.
15067         * elf/tst-nodeletelib.cc: Likewise.
15068         * elf/tst-znodeletelib.cc: Likewise.
15069         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15070
15071 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15072
15073         [BZ #18508]
15074         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15075         Depend on $(libdl).
15076         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15077         is not called infinitely times.
15078         (backtrace_helper): New function.
15079         (trace_arg): New struct.
15080         (st1): Enlarge stack size.
15081         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15082         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15083         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15084         Likewise.
15085
15086 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15087
15088         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15089
15090 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15091
15092         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15093         Include sys/types.h instead of bits/types.h.
15094         Remove inclusion of bits/wordsize.h.
15095
15096 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15097
15098         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15099         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15100         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15101         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15102         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15103         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15104
15105 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15106
15107         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15108         link-defines.sym.
15109         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15110         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15111         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15112         and LR_SIZE.
15113         * sysdeps/i386/link-defines.sym: New file.
15114
15115 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15116
15117         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15118         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15119         ($(objpfx)tst-audit3): New rule.
15120         ($(objpfx)tst-audit3.out): Likewise.
15121         * sysdeps/i386/tst-audit3.c: New file.
15122         * sysdeps/i386/tst-audit3.h: Likewise.
15123         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15124         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15125
15126 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15127
15128         [BZ #18633]
15129         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15130         pointer in C code.
15131         (__strcat_c): Likewise.
15132         (__strcat_g): Likewise.
15133
15134 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15135
15136         [BZ #18592]
15137         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15138
15139 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15140
15141         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15142         New function.  (__ieee754_sqrtf): New function.
15143         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15144         New function.
15145         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15146         New function.
15147
15148 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15149
15150         * sysdeps/ieee754/support.c: Remove unused file.
15151
15152 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15153
15154         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15155         registers instead of d ones so the layout is kernel abi compatible.
15156         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15157         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15158         Likewise.
15159
15160 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15161
15162         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15163
15164 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15165
15166         [BZ #18619]
15167         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15168         and return argument in case of subnormal argument.
15169
15170 2015-07-01  Martin Sebor  <msebor@redhat.com>
15171
15172         [BZ #18435]
15173         * nptl/Makefile: Add tst-once5.cc.
15174         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15175         Remove macro redefinitions.
15176         * nptl/tst-once5.cc: New test.
15177
15178 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15179
15180         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15181
15182         * sysdeps/arm/libm-test-ulps: Regenerated.
15183
15184         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15185         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15186
15187 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15188
15189         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15190         lll_lock_wait_private and lll_futex_wake probes.
15191
15192         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15193         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15194         Likewise.
15195         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15196         atomic_spin_nop.
15197         * sysdeps/x86_64/bits/atomic.h: Likewise.
15198         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15199         to atomic_spin_nop and move ...
15200         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15201         ... here and ...
15202         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15203         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15204         atomic_spin_nop instead of BUSY_WAIT_NOP.
15205         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15206         Likewise.
15207         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15208         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15209         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15210         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15211         instead of atomic_delay.
15212
15213 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15214
15215         [BZ #18613]
15216         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15217         X_ADJ not X when adjusting exponent.
15218         (__ieee754_gamma_r): Do intermediate computations in
15219         round-to-nearest then adjust overflowing and underflowing results
15220         as needed.
15221         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15222         of X_ADJ not X when adjusting exponent.
15223         (__ieee754_gammaf_r): Do intermediate computations in
15224         round-to-nearest then adjust overflowing and underflowing results
15225         as needed.
15226         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15227         log of X_ADJ not X when adjusting exponent.
15228         (__ieee754_gammal_r): Do intermediate computations in
15229         round-to-nearest then adjust overflowing and underflowing results
15230         as needed.  Use 1.0L not 1.0f as numerator of division.
15231         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15232         log of X_ADJ not X when adjusting exponent.
15233         (__ieee754_gammal_r): Do intermediate computations in
15234         round-to-nearest then adjust overflowing and underflowing results
15235         as needed.  Use 1.0L not 1.0f as numerator of division.
15236         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15237         of X_ADJ not X when adjusting exponent.
15238         (__ieee754_gammal_r): Do intermediate computations in
15239         round-to-nearest then adjust overflowing and underflowing results
15240         as needed.  Use 1.0L not 1.0f as numerator of division.
15241         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15242         to auto-libm-test-in.
15243         (tgamma_test): Use ALL_RM_TEST.
15244         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15245         tests of tgamma with spurious-overflow.
15246         * math/auto-libm-test-out: Regenerated.
15247         * math/gen-libm-have-vector-test.sh: Do not check for START.
15248         * sysdeps/i386/fpu/libm-test-ulps: Update.
15249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15250
15251         [BZ #18612]
15252         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15253         arguments, just return 0.5 times the argument, with underflow
15254         forced as needed.
15255         * math/auto-libm-test-in: Add more tests of j1.
15256         * math/auto-libm-test-out: Regenerated.
15257
15258         [BZ #16559]
15259         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15260         (__ieee754_j1): Force underflow exception for small results.
15261         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15262         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15263         (__ieee754_j1f): Force underflow exception for small results.
15264         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15265         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15266         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15267         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15268         (__ieee754_j1l): Force underflow exception for small results.
15269         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15270         * math/auto-libm-test-in: Add more tests of j1 and jn.
15271         * math/auto-libm-test-out: Regenerated.
15272
15273         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15274         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15275         (PF_MPLS): Likewise.
15276         (AF_IB): Likewise.
15277         (AF_MPLS): Likewise.
15278         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15279         value and macro.
15280         (MS_RMT_MASK): Include MS_LAZYTIME.
15281
15282 2015-06-26  Mel Gorman  <mgorman@suse.de>
15283
15284         [BZ #18502]
15285         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15286         already minimal.
15287
15288 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15289
15290         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15291         (DT_MIPS_NUM): Update.
15292         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15293         DT_MIPS_RLD_MAP_REL.
15294
15295 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15296
15297         [BZ #16559]
15298         [BZ #18602]
15299         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15300         round-to-nearest internally then recompute results that
15301         underflowed to zero in the original rounding mode.
15302         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15303         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15304         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15305         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15306         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15307         * sysdeps/i386/fpu/libm-test-ulps: Update.
15308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15309
15310 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15311
15312         * NEWS: Fixed description of link with vector math library.
15313
15314 2015-06-25  Andreas Schwab  <schwab@suse.de>
15315
15316         [BZ #18549]
15317         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15318         * libio/test-fmemopen.c (do_test): Add test for it.
15319
15320 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15321
15322         [BZ #17841]
15323         * Makeconfig (no-pie-ldflag): New.
15324         (+link): Set to $(+link-pie) if default to PIE.
15325         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15326         * config.make.in (build-pie-default): New.
15327         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15328         is default.  AC_SUBST.
15329         * configure: Regenerated.
15330         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15331
15332 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15333
15334         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15335         to 'unsigned int'.
15336
15337         * resolv/gai_misc.h (struct waitlist): Change type of field
15338         counterp to 'volatile unsigned int *'.
15339         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15340         FUTEXADDR and OLDVAL.
15341         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15342         Give local variable TOTAL type 'volatile unsigned int'.
15343         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15344         * resolv/gai_suspend.c (gai_suspend):
15345         Give local variable CNTR type 'unsigned int'.
15346
15347         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15348         counterp to 'volatile unsigned int *'.
15349         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15350         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15351         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15352         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15353         Give local variable TOTAL type 'volatile unsigned int'.
15354         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15355
15356 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15357
15358         [BZ #18383]
15359         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15360         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15361         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15362         comment for i386/x86-64.
15363         (test-xfail-tst-tlsalign-extern-static): Removed.
15364
15365 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15366
15367         * math/test-double.h: New file.
15368         * math/test-float.h: Likewise.
15369         * math/test-ldouble.h: Likewise.
15370         * math/test-math-inline.h: Likewise.
15371         * math/test-math-no-inline.h: Likewise.
15372         * math/test-math-scalar.h: Likewise.
15373         * math/test-math-vector.h: Likewise.
15374         * math/test-vec-loop.h: Remove file.  Contents moved into
15375         test-math-vector.h.
15376         * math/libm-test.inc (MATHCONST): Do not document macro.
15377         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15378         and test-math-scalar.h.
15379         (FUNC): Remove macro.
15380         (FUNC_TEST): Likewise.
15381         (FLOAT): Likewise.
15382         (MATHCONST): Likewise.
15383         (PRINTF_EXPR): Likewise.
15384         (PRINTF_XEXPR): Likewise.
15385         (PRINTF_NEXPR): Likewise.
15386         (TEST_DOUBLE): Likewise.
15387         (TEST_MATHVEC): Likewise.
15388         (__NO_MATH_INLINES): Likewise.
15389         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15390         and test-math-scalar.h.
15391         (FUNC): Remove macro.
15392         (FUNC_TEST): Likewise.
15393         (FLOAT): Likewise.
15394         (MATHCONST): Likewise.
15395         (PRINTF_EXPR): Likewise.
15396         (PRINTF_XEXPR): Likewise.
15397         (PRINTF_NEXPR): Likewise.
15398         (TEST_FLOAT): Likewise.
15399         (TEST_MATHVEC): Likewise.
15400         (__NO_MATH_INLINES): Likewise.
15401         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15402         and test-math-scalar.h.
15403         (FUNC): Remove macro.
15404         (FUNC_TEST): Likewise.
15405         (FLOAT): Likewise.
15406         (MATHCONST): Likewise.
15407         (PRINTF_EXPR): Likewise.
15408         (PRINTF_XEXPR): Likewise.
15409         (PRINTF_NEXPR): Likewise.
15410         (TEST_DOUBLE): Likewise.
15411         (TEST_MATHVEC): Likewise.
15412         (TEST_INLINE): Likewise.
15413         (__NO_MATH_INLINES): Likewise.
15414         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15415         test-math-scalar.h.
15416         (FUNC): Remove macro.
15417         (FUNC_TEST): Likewise.
15418         (FLOAT): Likewise.
15419         (MATHCONST): Likewise.
15420         (PRINTF_EXPR): Likewise.
15421         (PRINTF_XEXPR): Likewise.
15422         (PRINTF_NEXPR): Likewise.
15423         (TEST_FLOAT): Likewise.
15424         (TEST_MATHVEC): Likewise.
15425         (TEST_INLINE): Likewise.
15426         (__NO_MATH_INLINES): Likewise.
15427         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15428         and test-math-scalar.h.
15429         (FUNC): Remove macro.
15430         (FUNC_TEST): Likewise.
15431         (FLOAT): Likewise.
15432         (MATHCONST): Likewise.
15433         (PRINTF_EXPR): Likewise.
15434         (PRINTF_XEXPR): Likewise.
15435         (PRINTF_NEXPR): Likewise.
15436         (TEST_LDOUBLE): Likewise.
15437         (TEST_MATHVEC): Likewise.
15438         (TEST_INLINE): Likewise.
15439         (__NO_MATH_INLINES): Likewise.
15440         * math/test-ldouble.c: Include test-ldouble.h,
15441         test-math-no-inline.h and test-math-scalar.h.
15442         (FUNC): Remove macro.
15443         (FUNC_TEST): Likewise.
15444         (FLOAT): Likewise.
15445         (MATHCONST): Likewise.
15446         (PRINTF_EXPR): Likewise.
15447         (PRINTF_XEXPR): Likewise.
15448         (PRINTF_NEXPR): Likewise.
15449         (TEST_LDOUBLE): Likewise.
15450         (TEST_MATHVEC): Likewise.
15451         (__NO_MATH_INLINES): Likewise.
15452         * math/test-double-vlen2.h: Include test-double.h,
15453         test-math-no-inline.h and test-math-vector.h.
15454         (FLOAT): Remove macro.
15455         (FUNC): Likewise.
15456         (MATHCONST): Likewise.
15457         (PRINTF_EXPR): Likewise.
15458         (PRINTF_XEXPR): Likewise.
15459         (PRINTF_NEXPR): Likewise.
15460         (TEST_DOUBLE): Likewise.
15461         (TEST_MATHVEC): Likewise.
15462         (__NO_MATH_INLINES): Likewise.
15463         (CNCT): Likewise.
15464         (CONCAT): Likewise.
15465         (WRAPPER_NAME): Likewise.
15466         (WRAPPER_DECL): Likewise.
15467         (WRAPPER_DECL_ff): Likewise.
15468         (WRAPPER_DECL_fFF): Likewise.
15469         (VECTOR_WRAPPER): Likewise.
15470         (VECTOR_WRAPPER_ff): Likewise.
15471         (VECTOR_WRAPPER_fFF): Likewise.
15472         (VEC_LEN): New macro.
15473         * math/test-double-vlen4.h: Include test-double.h,
15474         test-math-no-inline.h and test-math-vector.h.
15475         (FLOAT): Remove macro.
15476         (FUNC): Likewise.
15477         (MATHCONST): Likewise.
15478         (PRINTF_EXPR): Likewise.
15479         (PRINTF_XEXPR): Likewise.
15480         (PRINTF_NEXPR): Likewise.
15481         (TEST_DOUBLE): Likewise.
15482         (TEST_MATHVEC): Likewise.
15483         (__NO_MATH_INLINES): Likewise.
15484         (CNCT): Likewise.
15485         (CONCAT): Likewise.
15486         (WRAPPER_NAME): Likewise.
15487         (WRAPPER_DECL): Likewise.
15488         (WRAPPER_DECL_ff): Likewise.
15489         (WRAPPER_DECL_fFF): Likewise.
15490         (VECTOR_WRAPPER): Likewise.
15491         (VECTOR_WRAPPER_ff): Likewise.
15492         (VECTOR_WRAPPER_fFF): Likewise.
15493         (VEC_LEN): New macro.
15494         * math/test-double-vlen8.h: Include test-double.h,
15495         test-math-no-inline.h and test-math-vector.h.
15496         (FLOAT): Remove macro.
15497         (FUNC): Likewise.
15498         (MATHCONST): Likewise.
15499         (PRINTF_EXPR): Likewise.
15500         (PRINTF_XEXPR): Likewise.
15501         (PRINTF_NEXPR): Likewise.
15502         (TEST_DOUBLE): Likewise.
15503         (TEST_MATHVEC): Likewise.
15504         (__NO_MATH_INLINES): Likewise.
15505         (CNCT): Likewise.
15506         (CONCAT): Likewise.
15507         (WRAPPER_NAME): Likewise.
15508         (WRAPPER_DECL): Likewise.
15509         (WRAPPER_DECL_ff): Likewise.
15510         (WRAPPER_DECL_fFF): Likewise.
15511         (VECTOR_WRAPPER): Likewise.
15512         (VECTOR_WRAPPER_ff): Likewise.
15513         (VECTOR_WRAPPER_fFF): Likewise.
15514         (VEC_LEN): New macro.
15515         * math/test-float-vlen4.h: Include test-float.h,
15516         test-math-no-inline.h and test-math-vector.h.
15517         (FLOAT): Remove macro.
15518         (FUNC): Likewise.
15519         (MATHCONST): Likewise.
15520         (PRINTF_EXPR): Likewise.
15521         (PRINTF_XEXPR): Likewise.
15522         (PRINTF_NEXPR): Likewise.
15523         (TEST_FLOAT): Likewise.
15524         (TEST_MATHVEC): Likewise.
15525         (__NO_MATH_INLINES): Likewise.
15526         (CNCT): Likewise.
15527         (CONCAT): Likewise.
15528         (WRAPPER_NAME): Likewise.
15529         (WRAPPER_DECL): Likewise.
15530         (WRAPPER_DECL_ff): Likewise.
15531         (WRAPPER_DECL_fFF): Likewise.
15532         (VECTOR_WRAPPER): Likewise.
15533         (VECTOR_WRAPPER_ff): Likewise.
15534         (VECTOR_WRAPPER_fFF): Likewise.
15535         (VEC_LEN): New macro.
15536         * math/test-float-vlen8.h: Include test-float.h,
15537         test-math-no-inline.h and test-math-vector.h.
15538         (FLOAT): Remove macro.
15539         (FUNC): Likewise.
15540         (MATHCONST): Likewise.
15541         (PRINTF_EXPR): Likewise.
15542         (PRINTF_XEXPR): Likewise.
15543         (PRINTF_NEXPR): Likewise.
15544         (TEST_FLOAT): Likewise.
15545         (TEST_MATHVEC): Likewise.
15546         (__NO_MATH_INLINES): Likewise.
15547         (CNCT): Likewise.
15548         (CONCAT): Likewise.
15549         (WRAPPER_NAME): Likewise.
15550         (WRAPPER_DECL): Likewise.
15551         (WRAPPER_DECL_ff): Likewise.
15552         (WRAPPER_DECL_fFF): Likewise.
15553         (VECTOR_WRAPPER): Likewise.
15554         (VECTOR_WRAPPER_ff): Likewise.
15555         (VECTOR_WRAPPER_fFF): Likewise.
15556         (VEC_LEN): New macro.
15557         * math/test-float-vlen16.h: Include test-float.h,
15558         test-math-no-inline.h and test-math-vector.h.
15559         (FLOAT): Remove macro.
15560         (FUNC): Likewise.
15561         (MATHCONST): Likewise.
15562         (PRINTF_EXPR): Likewise.
15563         (PRINTF_XEXPR): Likewise.
15564         (PRINTF_NEXPR): Likewise.
15565         (TEST_FLOAT): Likewise.
15566         (TEST_MATHVEC): Likewise.
15567         (__NO_MATH_INLINES): Likewise.
15568         (CNCT): Likewise.
15569         (CONCAT): Likewise.
15570         (WRAPPER_NAME): Likewise.
15571         (WRAPPER_DECL): Likewise.
15572         (WRAPPER_DECL_ff): Likewise.
15573         (WRAPPER_DECL_fFF): Likewise.
15574         (VECTOR_WRAPPER): Likewise.
15575         (VECTOR_WRAPPER_ff): Likewise.
15576         (VECTOR_WRAPPER_fFF): Likewise.
15577         (VEC_LEN): New macro.
15578         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15579         test-vec-loop.h.
15580         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15581         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15582         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15583         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15584         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15585         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15586         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15587
15588 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15589
15590         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15591         (__getlogin_r): ... this.
15592
15593 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15594
15595         [BZ #18594]
15596         * math/s_ccosh.c (__ccosh): Compare with least normal value
15597         instead of comparing class with FP_SUBNORMAL.
15598         * math/s_ccoshf.c (__ccoshf): Likewise.
15599         * math/s_ccoshl.c (__ccoshl): Likewise.
15600         * math/s_cexp.c (__cexp): Likewise.
15601         * math/s_cexpf.c (__cexpf): Likewise.
15602         * math/s_cexpl.c (__cexpl): Likewise.
15603         * math/s_csin.c (__csin): Likewise.
15604         * math/s_csinf.c (__csinf): Likewise.
15605         * math/s_csinh.c (__csinh): Likewise.
15606         * math/s_csinhf.c (__csinhf): Likewise.
15607         * math/s_csinhl.c (__csinhl): Likewise.
15608         * math/s_csinl.c (__csinl): Likewise.
15609         * math/s_ctan.c (__ctan): Likewise.
15610         * math/s_ctanf.c (__ctanf): Likewise.
15611         * math/s_ctanh.c (__ctanh): Likewise.
15612         * math/s_ctanhf.c (__ctanhf): Likewise.
15613         * math/s_ctanhl.c (__ctanhl): Likewise.
15614         * math/s_ctanl.c (__ctanl): Likewise.
15615         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15616         csin, csinh, ctan and ctanh.
15617         * math/auto-libm-test-out: Regenerated.
15618         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15619         * sysdeps/i386/fpu/libm-test-ulps: Update.
15620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15621
15622 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15623
15624         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15625         return value is wrong, print the expected value too.
15626
15627 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15628
15629         [BZ #18585]
15630         * elf/readlib.c (is_gdb_python_file): New.
15631         (process_file): Don't issue errors on filenames with -gdb.py
15632         suffix.
15633
15634 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15635
15636         * math/auto-libm-test-in: Add more tests of csin and csinh.
15637         * math/auto-libm-test-out: Regenerated.
15638         * math/libm-test.inc (csin_test_data): Remove tests moved to
15639         auto-libm-test-in.
15640         (csinh_test_data): Likewise.
15641
15642         [BZ #18593]
15643         * math/s_csin.c (__csin): Negate before rather than after possibly
15644         overflowing multiplication.
15645         * math/s_csinf.c (__csinf): Likewise.
15646         * math/s_csinh.c (__csinh): Likewise.
15647         * math/s_csinhf.c (__csinhf): Likewise.
15648         * math/s_csinhl.c (__csinhl): Likewise.
15649         * math/s_csinl.c (__csinl): Likewise.
15650         * math/auto-libm-test-in: Add some tests of csin and csinh.
15651         * math/auto-libm-test-out: Regenerated.
15652         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15653         (csinh_test_data): Likewise.
15654         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15655
15656         [BZ #18586]
15657         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15658         underflow exception for small results.
15659
15660 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15661
15662         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15663         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15664         variable and included header.
15665         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15666         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15667         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15668         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15669         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15670         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15671         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15672         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15673         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15674         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15675         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15676         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15677         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15678         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15679         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15680         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15681
15682 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15683
15684         [BZ #16526]
15685         [BZ #16538]
15686         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15687         (__sin): Force underflow exception for arguments with small
15688         absolute value.
15689         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15690         (__kernel_sinf): Force underflow exception for arguments with
15691         small absolute value.
15692         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15693         (__kernel_sincosl): Force underflow exception for arguments with
15694         small absolute value.
15695         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15696         (__kernel_sinl): Force underflow exception for arguments with
15697         small absolute value.
15698         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15699         (__kernel_sincosl): Force underflow exception for arguments with
15700         small absolute value.
15701         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15702         (__kernel_sinl): Force underflow exception for arguments with
15703         small absolute value.
15704         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15705         (__kernel_sinl): Force underflow exception for arguments with
15706         small absolute value.
15707         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15708         (__kernel_sinf): Force underflow exception for arguments with
15709         small absolute value.
15710         * math/auto-libm-test-in: Add more tests of sin and sincos.
15711         * math/auto-libm-test-out: Regenerated.
15712
15713         [BZ #18245]
15714         [BZ #18583]
15715         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15716         (__kernel_standard_l): Use feholdexcept and fesetenv around
15717         conversion to double instead of special-casing overflow and
15718         underflow.
15719         * math/libm-test.inc (fmod_test_data): Add more tests.
15720         (remainder_test_data): Likewise.
15721         (sqrt_test_data): Likewise.
15722
15723 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15724
15725         [BZ #17403]
15726         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15727         atomic_read_barrier, atomic_write_barrier): Define.
15728         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15729         atomic_read_barrier, atomic_write_barrier): Define.
15730
15731 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15732
15733         * math/Makefile [$(PERL) != no]
15734         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15735         dependency on libm-test.stmp below the inclusion of Rules.
15736
15737 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15738
15739         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15740         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15741         and included header.
15742         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15743         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15744         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15745         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15746         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15747         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15748         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15749         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15750         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15751         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15752         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15753         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15754         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15755         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15756         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15757         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15758         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15759         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15760         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15761
15762 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15763
15764         [BZ #18371]
15765         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15766         intermediate but not final result might underflow.
15767         * math/s_csqrtf.c (__csqrtf): Likewise.
15768         * math/s_csqrtl.c (__csqrtl): Likewise.
15769         * math/auto-libm-test-in: Add more tests of csqrt.
15770         * math/auto-libm-test-out: Regenerated.
15771         * sysdeps/i386/fpu/libm-test-ulps: Update.
15772
15773         [BZ #18219]
15774         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15775         threshold on absolute value of exponent for which scaling is used.
15776         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15777         * math/auto-libm-test-in: Add more tests of exp2.
15778         * math/auto-libm-test-out: Regenerated.
15779
15780 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15781
15782         [BZ #17977]
15783         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15784         when initializing interface list, based on the bug analysis
15785         and the patch proposed by Eric Newton.
15786         * resolv/tst-res_hconf_reorder.c: New test.
15787         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15788         tst-res_hconf_reorder.
15789         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15790         and $(shared-thread-library).
15791         (tst-res_hconf_reorder-ENV): New variable.
15792
15793         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15794         in comment.
15795
15796 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15797
15798         [BZ #16353]
15799         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15800         (__expm1): Force underflow exception for arguments with small
15801         absolute value.
15802         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15803         (__expm1f): Force underflow exception for arguments with small
15804         absolute value.
15805         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15806         (__expm1): Force underflow exception for arguments with small
15807         absolute value.
15808         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15809         (__expm1f): Force underflow exception for arguments with small
15810         absolute value.
15811         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15812         Check for small arguments before calling __expm1.
15813         * math/auto-libm-test-in: Do not mark underflow exceptions as
15814         possibly missing for bug 16353.
15815         * math/auto-libm-test-out: Regenerated.
15816
15817 2015-06-22  Andreas Schwab  <schwab@suse.de>
15818
15819         [BZ #18513]
15820         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15821         PTR queries.
15822
15823 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15824
15825         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15826
15827         * string/strcoll_l.c: Remove unused struct element idxnow.
15828
15829 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15830
15831         [BZ #18569]
15832         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15833         underflow and return argument in case of subnormal argument.
15834         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15835         Likewise.
15836         * math/auto-libm-test-in: Add more tests of expm1.
15837         * math/auto-libm-test-out: Regenerated.
15838
15839         [BZ #16361]
15840         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15841         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15842         tiny results.
15843         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15844         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15845         tiny results.
15846         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15847         mark underflow exceptions as possibly missing for bug 16361.
15848         * math/auto-libm-test-out: Regenerated.
15849
15850 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15851
15852         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15853         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15854         Remove variable.
15855         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15856         (test-xfail-XOPEN2K8/utmpx.h/conform).
15857
15858         * conform/conformtest.pl ($xerrors): New variable.
15859         (note_error): New function.
15860         (compiletest): New argument $xfail.  Use not_error.
15861         (runtest): Likewise.
15862         (top level): Handle xfail- lines.  Update calls to compiletest and
15863         runtest.  Handle xfail- and optional- in headers listed with
15864         allow-header.
15865         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15866         (O_EXEC): Likewise.
15867         (O_SEARCH): Likewise.
15868         * conform/data/stropts.h-data (ioctl): Likewise.
15869         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15870         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15871         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15872         (msghdr.msg_controllen): Likewise.
15873         (cmsghdr.cmsg_len): Likewise.
15874         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15875         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15876         variable.
15877         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15878         (test-xfail-XPG4/stropts.h/conform): Likewise.
15879         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15880         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15881         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15882         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15883         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15884         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15885         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15886         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15887         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15888         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15889         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15890         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15891         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15892         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15893         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15894         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15895         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15896         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15897         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15898
15899 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15900
15901         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15902         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15903         definitions for proper unfolding of __MATHDECL_VEC.
15904
15905 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15906
15907         * benchtests/bench-strcoll.c:
15908         Include string.h.
15909         (main): Remove unused variable res.
15910
15911 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15912
15913         * timezone/Makefile (%/UTC %/Universal):
15914         Generate test-result files for UTC and Universal.
15915
15916 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15917
15918         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15919
15920 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15921
15922         [BZ #16350]
15923         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15924         for arguments with small absolute value.
15925         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15926         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15927         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15928         (__asinh): Force underflow exception for arguments with small
15929         absolute value.
15930         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15931         (__asinhf): Force underflow exception for arguments with small
15932         absolute value.
15933         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15934         (__asinhl): Force underflow exception for arguments with small
15935         absolute value.
15936         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15937         (__asinhl): Force underflow exception for arguments with small
15938         absolute value.
15939         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15940         (__asinhl): Force underflow exception for arguments with small
15941         absolute value.
15942         * math/auto-libm-test-in: Do not mark underflow exceptions as
15943         possibly missing for bug 16350.
15944         * math/auto-libm-test-out: Regenerated.
15945
15946         * include/bits/ipc.h: Remove file.
15947         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15948         variable.
15949         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15950         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15951         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15952         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15953         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15954         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15955         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15956         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15957         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15958
15959         * math/auto-libm-test-in: Remove spurious underflow allowance for
15960         tests of cexp.
15961         * math/auto-libm-test-out: Regenerated.
15962
15963         [BZ #18558]
15964         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15965         unconditional definition.
15966         (MCAST_BLOCK_SOURCE): Likewise.
15967         (MCAST_UNBLOCK_SOURCE): Likewise.
15968         (MCAST_LEAVE_GROUP): Likewise.
15969         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15970         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15971         (MCAST_MSFILTER): Likewise.
15972         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15973         Remove variable.
15974         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15975         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15976         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15977         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15978         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15979
15980 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15981
15982         * NEWS: Mention addition of x86_64 vector sincosf.
15983         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15984         * math/test-float-vlen4.h: Likewise.
15985         * math/test-float-vlen8.h: Likewise.
15986         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15987         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15988         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15989         * sysdeps/x86_64/fpu/Versions: New versions added.
15990         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15991         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15992         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15993         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15994         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15995         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15996         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15997         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15998         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15999         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16000         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16001         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16002         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16003         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16004         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16005         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16006         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16007         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16008         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16009         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16010         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16011         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16012         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16013         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16014
16015         * NEWS: Mention addition of x86_64 vector sincos.
16016         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16017         * math/math.h (__MATHDECL_VEC): New macro.
16018         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16019         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16020         declaration under condition.
16021         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16022         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16023         TEST_VEC_LOOP change.
16024         * math/test-double-vlen4.h: Likewise.
16025         * math/test-double-vlen8.h: Likewise.
16026         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16027         * math/test-float-vlen4.h: Likewise.
16028         * math/test-float-vlen8.h: Likewise.
16029         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16030         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16031         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16032         * sysdeps/x86_64/fpu/Versions: New versions added.
16033         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16034         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16035         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16036         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16037         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16038         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16039         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16040         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16041         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16042         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16043         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16044         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16045         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16046         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16047         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16048         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16049         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16050         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16051         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16052         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16053         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16054         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16055         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16056         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16057
16058         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16059         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16060         redirections for powf.
16061         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16062         * sysdeps/x86_64/fpu/Versions: New versions added.
16063         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16064         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16065         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16066         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16067         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16068         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16069         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16070         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16071         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16072         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16073         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16074         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16075         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16076         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16077         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16078         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16079         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16080         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16081         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16082         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16083         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16084         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16085         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16086         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16087         * math/test-float-vlen16.h: Fixed 2 argument macro.
16088         * math/test-float-vlen4.h: Likewise.
16089         * math/test-float-vlen8.h: Likewise.
16090         * NEWS: Mention addition of x86_64 vector powf.
16091
16092 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16093
16094         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16095         and redefine.
16096         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16097         and redefine.
16098         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16099         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16100         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16101
16102         [BZ #18553]
16103         * resource/getpriority.c (getpriority): Rename to __getpriority
16104         and define as weak alias of __getpriority.
16105         * resource/setpriority.c (setpriority): Rename to __setpriority
16106         and define as weak alias of __setpriority.
16107         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16108         __getpriority and define as weak alias of __getpriority.
16109         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16110         __setpriority and define as weak alias of __setpriority.
16111         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16112         strong name.
16113         (setpriority): Use __setpriority as strong name.
16114         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16115         __getpriority and define as weak alias of __getpriority.
16116         * include/sys/resource.h (__getpriority): Declare.  Use
16117         libc_hidden_proto.
16118         (__setpriority): Likewise.
16119         (getpriority): Don't use libc_hidden_proto.
16120         (setpriority): Likewise.
16121         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16122         getpriority.  Call __setpriority instead of setpriority.
16123         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16124         Remove variable.
16125
16126         [BZ #18547]
16127         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16128         as weak alias of __getttynam.  Use prototype function definition.
16129         Call __setttyent, __getttyent and __endttyent instead of
16130         setttyent, getttyent and endttyent.
16131         (getttyent): Rename to __getttyent and define as weak alias of
16132         __getttyent.  Call __setttyent instead of setttyent.  Call
16133         __fgets_unlocked instead of fgets_unlocked.
16134         (setttyent): Rename to __setttyent and define as weak alias of
16135         __setttyent.
16136         (endttyent): Rename to __endttyent and define as weak alias of
16137         __endttyent.
16138         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16139         (__setttyent): Likewise.
16140         (__endttyent): Likewise.
16141         (getttyent): Don't use libc_hidden_proto.
16142         (setttyent): Likewise.
16143         (endttyent): Likewise.
16144         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16145         __endttyent instead of setttyent, getttyent and endttyent.
16146         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16147         Remove variable.
16148
16149         [BZ #18546]
16150         * socket/recv.c (__recv): Use libc_hidden_def.
16151         * socket/socket.c (__socket): Likewise.
16152         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16153         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16154         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16155         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16156         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16157         libc_hidden_def.
16158         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16159         libc_hidden_weak.
16160         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16161         Use libc_hidden_proto.
16162         (__recv): Likewise.
16163         * socket/Versions (libc): Export __recv and __socket at version
16164         GLIBC_PRIVATE.
16165         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16166         instead of recv.
16167         (init_mq_netlink): Call __socket instead of socket.
16168         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16169         Remove variable.
16170
16171         [BZ #18545]
16172         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16173         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16174         hidden_weak.
16175         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16176         define as alias of __mq_timedsend.  Use hidden_weak.
16177         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16178         __mq_timedsend as strong name.
16179         (mq_timedreceive): Use __mq_timedreceive as strong name.
16180         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16181         (__mq_timedreceive): Likewise.
16182         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16183         __mq_timedreceive instead of mq_timedreceive.
16184         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16185         instead of mq_timedsend.
16186         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16187         Remove variable.
16188
16189         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16190         hidden_def and hidden_weak instead of libc_hidden_def and
16191         libc_hidden_weak.
16192         (top level): Refer to hidden_def in comment.
16193         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16194         macro.  Use it instead of libc_hidden_def.
16195         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16196         specify __GI_* name explicitly.
16197         (mq_timedreceive): Likewise.
16198         (mq_setattr): Likewise.
16199
16200         [BZ #18544]
16201         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16202         __pthread_barrier_init and define as weak alias of
16203         __pthread_barrier_init.
16204         * sysdeps/sparc/nptl/pthread_barrier_init.c
16205         (pthread_barrier_init): Likewise.
16206         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16207         __pthread_barrier_wait and define as weak alias of
16208         __pthread_barrier_wait.
16209         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16210         (pthread_barrier_wait): Likewise.
16211         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16212         (pthread_barrier_wait): Likewise.
16213         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16214         (pthread_barrier_wait): Likewise.
16215         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16216         (pthread_barrier_wait): Likewise.
16217         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16218         __pthread_barrier_wait at version GLIBC_PRIVATE.
16219         * include/pthread.h (__pthread_barrier_init): Declare.
16220         (__pthread_barrier_wait): Likewise.
16221         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16222         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16223         (helper_thread): Likewise.
16224         (init_mq_netlink): Call __pthread_barrier_init instead of
16225         pthread_barrier_init.
16226
16227         [BZ #18542]
16228         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16229         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16230         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16231         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16232         vswscanf.
16233         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16234         Remove variable.
16235
16236         [BZ #18540]
16237         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16238         strong alias of _IO_fflush.  Use libc_hidden_def.
16239         * libio/iofflush_u.c (fflush_unlocked): Rename to
16240         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16241         Use libc_hidden_weak.
16242         * include/stdio.h (__fflush_unlocked): Declare.  Use
16243         libc_hidden_proto.
16244         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16245         fflush_unlocked.
16246         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16247         Remove variable.
16248
16249         [BZ #18539]
16250         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16251         define as weak alias of __addseverity.
16252         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16253         Remove variable.
16254         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16255         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16256         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16257
16258         [BZ #18536]
16259         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16260         (__tfind): Likewise.
16261         (__tdelete): Likewise.
16262         (__twalk): Likewise.
16263         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16264         __twalk to GLIBC_PRIVATE.
16265         * include/search.h (__tsearch): Use libc_hidden_proto.
16266         (__tfind): Likewise.
16267         (__tdelete): Likewise.
16268         (__twalk): Likewise.
16269         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16270         Call __tdelete instead of tdelete.
16271         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16272         tfind.  Call __tsearch instead of tsearch.
16273         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16274         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16275         Remove variable.
16276         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16277
16278         [BZ #18534]
16279         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16280         (dprintf): Define as a weak alias of __dprintf, not a strong
16281         alias.
16282         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16283         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16284         dprintf.
16285         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16286         Remove variable.
16287         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16288         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16289
16290         [BZ #18533]
16291         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16292         not a strong alias.
16293         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16294         Remove variable.
16295
16296         [BZ #18532]
16297         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16298         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16299         (in6addr_loopback): Rename to __in6addr_loopback and define as
16300         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16301         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16302         libc_hidden_proto.
16303         (__in6addr_any): Likewise.
16304         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16305         in6addr_any.
16306         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16307         variable.
16308         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16309
16310 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16311
16312         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16313         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16314         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16315         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16316         redirections for pow.
16317         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16318         * sysdeps/x86_64/fpu/Versions: New versions added.
16319         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16320         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16321         build of SSE, AVX2 and AVX512 IFUNC versions.
16322         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16323         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16324         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16325         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16326         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16327         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16328         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16329         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16330         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16331         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16332         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16333         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16334         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16335         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16336         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16337         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16338         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16339         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16340         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16341         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16342         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16343         * NEWS: Mention addition of x86_64 vector pow.
16344
16345         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16346         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16347         redirections for expf.
16348         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16349         * sysdeps/x86_64/fpu/Versions: New versions added.
16350         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16351         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16352         build of SSE, AVX2 and AVX512 IFUNC versions.
16353         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16354         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16355         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16356         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16357         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16358         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16359         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16360         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16361         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16362         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16363         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16364         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16365         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16366         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16367         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16368         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16369         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16370         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16371         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16372         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16373         * NEWS: Mention addition of x86_64 vector expf.
16374
16375         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16376         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16377         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16378         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16379         redirections for exp.
16380         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16381         * sysdeps/x86_64/fpu/Versions: New versions added.
16382         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16383         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16384         build of SSE, AVX2 and AVX512 IFUNC versions.
16385         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16386         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16387         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16388         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16389         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16390         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16391         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16392         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16393         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16394         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16395         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16396         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16397         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16398         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16399         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16400         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16401         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16402         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16403         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16404         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16405         * NEWS: Mention addition of x86_64 vector exp.
16406
16407         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16408         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16409         redirections for logf.
16410         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16411         * sysdeps/x86_64/fpu/Versions: New versions added.
16412         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16413         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16414         build of SSE, AVX2 and AVX512 IFUNC versions.
16415         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16416         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16417         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16418         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16419         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16420         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16421         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16422         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16423         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16424         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16425         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16426         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16427         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16428         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16429         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16430         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16431         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16432         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16433         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16434         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16435         * NEWS: Mention addition of x86_64 vector logf.
16436
16437         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16438         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16439         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16440         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16441         redirections for log.
16442         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16443         * sysdeps/x86_64/fpu/Versions: New versions added.
16444         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16445         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16446         build of SSE, AVX2 and AVX512 IFUNC versions.
16447         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16448         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16449         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16450         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16451         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16452         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16453         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16454         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16455         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16456         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16457         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16458         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16459         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16460         test.
16461         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16462         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16463         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16464         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16465         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16466         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16467         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16468         * NEWS: Mention addition of x86_64 vector log.
16469
16470 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16471
16472         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16473         cfi_adjust_cfa_offset argument.
16474         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16475         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16476
16477         [BZ #18034]
16478         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16479         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16480         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16481         ordering using ldar.
16482         (_dl_tlsdesc_dynamic): Likewise.
16483         (_dl_tlsdesc_return_lazy): Likewise.
16484         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16485         relaxed atomics instead of volatile and synchronize with release store.
16486         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16487         volatile.
16488         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16489
16490 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16491
16492         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16493         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16494         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16495         * sysdeps/x86_64/fpu/Versions: New versions added.
16496         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16497         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16498         build of SSE, AVX2 and AVX512 IFUNC versions.
16499         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16500         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16501         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16502         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16503         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16504         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16505         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16506         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16507         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16508         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16509         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16510         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16511         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16512         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16513         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16514         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16515         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16516         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16517         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16518         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16519         * NEWS: Mention addition of x86_64 vector sinf.
16520
16521 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16522
16523         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16524         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16525         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16526         Remove variable.
16527         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16528         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16529
16530 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16531
16532         [BZ #18530]
16533         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16534         strong alias of _IO_fputs.  Use libc_hidden_def.
16535         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16536         and define as weak alias of __fputs_unlocked.  Use
16537         libc_hidden_weak.
16538         * include/stdio.h (__fputs_unlocked): Declare.  Use
16539         libc_hidden_proto.
16540         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16541         fputs_unlocked.
16542
16543         [BZ #18529]
16544         * resolv/netdb.h [__USE_POSIX]: Change condition to
16545         [__USE_XOPEN2K].
16546         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16547         not expect.
16548         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16549         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16550         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16551         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16552         [XPG4 || UNIX98] (AI_ALL): Likewise.
16553         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16554         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16555         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16556         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16557         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16558         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16559         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16560         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16561         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16562         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16563         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16564         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16565         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16566         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16567         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16568         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16569         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16570         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16571         [XPG4 || UNIX98] (gai_strerror): Likewise.
16572         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16573         [XPG4 || UNIX98] (getnameinfo): Likewise.
16574
16575         [BZ #18528]
16576         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16577         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16578         __USE_XOPEN2K8].
16579         (getgrent): Likewise.
16580         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16581         expect.
16582         [XPG3 || POSIX2008] (endgrent): Likewise.
16583         [XPG3] (setgrent): Likewise.
16584         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16585         variable.
16586         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16587
16588         [BZ #18527]
16589         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16590         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16591         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16592         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16593         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16594         * include/unistd.h (__getlogin_r): Declare.  Use
16595         libc_hidden_proto.
16596         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16597         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16598         variable.
16599         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16600         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16601         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16602
16603 2015-06-12  Martin Sebor  <msebor@redhat.com>
16604
16605         [BZ #18512]
16606         * Makerules (check-install-supported): New target.
16607         (install): Add check-install-supported as a dependency.
16608         * manual/install.texi (Installing the C Library): Document
16609         that overriding prefix and exec_prefix is not supported.
16610         Mention DESTDIR.
16611         * INSTALL: Regenerate from the above.
16612
16613 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16614
16615         [BZ #18519]
16616         * posix/Versions (libc): Export __libc_pread at version
16617         GLIBC_PRIVATE.
16618         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16619         instead of pread.
16620         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16621         variable.
16622
16623         [BZ #18522]
16624         * misc/efgcvt_r.c
16625         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16626         (cvt_symbol): Use weak_alias instead of strong_alias.
16627         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16628         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16629         Remove variable.
16630         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16631         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16632
16633         [BZ #18520]
16634         * inet/herrno.c (h_errno): Rename to __h_errno.
16635         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16636         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16637         to __h_errno instead of h_errno.
16638         * nptl/herrno.c (h_errno): Rename to __h_errno.
16639         (__h_errno_location): Refer to __h_errno not h_errno.
16640         * resolv/Versions (h_errno): Rename to __h_errno.
16641         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16642         Remove variable.
16643         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16644
16645 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16646
16647         * configure.ac: More strict check for AVX512 assembler support.
16648         * configure: Regenerated.
16649
16650         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16651         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16652         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16653         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16654         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16655         * sysdeps/x86_64/fpu/Versions: New versions added.
16656         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16657         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16658         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16659         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16660         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16661         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16662         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16663         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16664         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16665         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16666         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16667         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16668         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16669         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16670         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16671         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16672         test.
16673         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16674         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16675         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16676         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16677         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16678         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16679         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16680         * NEWS: Mention addition of x86_64 vector sin.
16681
16682 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16683
16684         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16685         comment.
16686
16687 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16688
16689         [BZ #18479]
16690         * nptl/pt-interp.c: New file.
16691         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16692         Add pt-interp.
16693         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16694         $(common-objpfx)runtime-linker.h.
16695
16696 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16697
16698         * Makeconfig (+interp): Remove unused variable.
16699         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16700         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16701         $(elf-objpfx)runtime-linker.h.
16702         ($(elf-objpfx)runtime-linker.h): Rename to
16703         $(common-objpfx)runtime-linker.h and move ...
16704         * Makerules [$(build-shared) = yes]: ... here.
16705         * elf/interp.c: Include <runtime-linker.h> instead of
16706         <elf/runtime-linker.h>.
16707
16708 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16709
16710         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16711         (__gettimeofday_syscall): Remove vsyscall fallback.
16712         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16713         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16714         Add syscall fallback function.
16715         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16716         if vDSO is not present.
16717         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16718         fallback function.
16719         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16720         present.
16721         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16722         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16723
16724 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16725
16726         [BZ #18497]
16727         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16728         of wcscmp.
16729         (wcscmp): Define as weak alias of WCSCMP.
16730         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16731         wcscoll.
16732         (USE_HIDDEN_DEF): Define.
16733         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16734         __wcscoll.  Don't use libc_hidden_weak.
16735         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16736         wcscmp.
16737         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16738         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16739         __GI_wcscmp.
16740         (weak_alias): Undefine and redefine.
16741         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16742         __wcscmp and define as weak alias of __wcscmp.
16743         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16744         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16745         (__wcscoll): Likewise.
16746         (wcscmp): Don't use libc_hidden_proto.
16747         (wcscoll): Likewise.
16748         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16749         wcscoll.
16750         * posix/regexec.c (check_node_accept_bytes): Likewise.
16751         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16752         variable.
16753         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16754         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16755
16756         [BZ #18507]
16757         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16758         __fstatvfs and define as weak alias of __fstatvfs.  Use
16759         libc_hidden_weak.
16760         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16761         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16762         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16763         Define as alias of __fstatvfs, not fstatvfs.
16764         (fstatvfs64): Likewise.
16765         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16766         Define as alias of __statvfs, not statvfs.
16767         (statvfs64): Likewise.
16768         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16769         Remove variable.
16770
16771 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16772
16773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16774         (HAVE_GETCPU_VSYSCALL): Define.
16775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16776         (HAVE_GETCPU_VSYSCALL): Likewise.
16777         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16778         * sysdeps/unix/sysv/linux/sched_getcpu.c
16779         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16780         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16781         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16782         prototype.
16783         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16784         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16785         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16786         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16787         Define.
16788         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16789         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16790         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16791         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16792
16793 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16794
16795         * sysdeps/x86_64/fpu/Makefile: New file.
16796         * sysdeps/x86_64/fpu/Versions: New file.
16797         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16798         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16799         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16800         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16801         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16802         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16803         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16804         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16805         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16806         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16807         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16808         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16809         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16810         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16811         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16812         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16813         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16814         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16815         * sysdeps/x86_64/configure: Regenerated.
16816         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16817         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16818         * manual/install.texi (Configuring and compiling): Document
16819         --disable-mathvec.
16820         * INSTALL: Regenerated.
16821         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16822
16823         * math/Makefile: Added rules for vector tests.
16824         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16825         declaration under condition.
16826         * math/test-double-vlen2.h: New file.
16827         * math/test-double-vlen4.h: New file.
16828         * math/test-double-vlen8.h: New file.
16829         * math/test-vec-loop.h: Added initialization macro.
16830         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16831         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16832         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16833         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16834         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16835         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16836         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16837         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16838         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16839         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16840         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16841
16842         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16843         * sysdeps/x86_64/fpu/Versions: New versions added.
16844         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16845         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16846         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16847         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16848         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16849         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16850         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16851         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16852         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16853         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16854         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16855         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16856         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16857         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16858         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16859         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16860         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16861         * NEWS: Mention addition of x86_64 vector cosf.
16862
16863         * math/Makefile: Added CFLAGS for new tests.
16864         * math/test-float-vlen16.h: New file.
16865         * math/test-float-vlen4.h: New file.
16866         * math/test-float-vlen8.h: New file.
16867         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16868         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16869         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16870         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16871         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16872         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16873         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16874         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16875         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16876         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16877         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16878
16879 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16880
16881         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16882         * locale/programs/ld-ctype.c: Likewise.
16883
16884 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16885
16886         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16887         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16888         bit_ZMM16_31_state): New macro.
16889         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16890         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16891
16892 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16893
16894         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16895
16896 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16897
16898         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16899
16900 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16901
16902         [BZ #18498]
16903         * libio/memstream.c (open_memstream): Rename to __open_memstream
16904         and define as weak alias of __open_memstream.
16905         * include/stdio.h (__open_memstream): Declare.  Use
16906         libc_hidden_proto.
16907         (open_memstream): Don't use libc_hidden_proto.
16908         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16909         open_memstream.
16910         * posix/getopt.c (_getopt_internal_r): Likewise.
16911         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16912         variable.
16913         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16914         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16915         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16916
16917         [BZ #18496]
16918         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16919         instead of wcrtomb.
16920
16921         [BZ #18483]
16922         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16923         [__USE_XOPEN2K8].  Remove redundant #endif.
16924         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16925         Remove redundant #if.
16926         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16927         Remove variable.
16928         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16929         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16930
16931         [BZ #18495]
16932         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16933         (__iswlower): Likewise.
16934         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16935         (__iswlower): Likewise.
16936         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16937         instead of towlower.
16938         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16939         instead of iswlower.  Call __towupper instead of towupper.
16940         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16941         instead of iswalnum.
16942
16943 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16944
16945         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16946         errors to stderr.
16947
16948 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16949
16950         [BZ #15661]
16951         [BZ #17322]
16952         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16953         Check for overflow properly.  Check for O_APPEND.  Ignore large
16954         file system block sizes.  Add comments about problems.
16955         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16956         * manual/filesys.texi (Storage Allocation): New node.
16957
16958 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16959
16960         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16961         cancellable syscalls.
16962         (SYS_ify): Add guard to no redefine it.
16963         (INLINE_SYSCALL): Likewise.
16964         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16965         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16966         SYSCALL_CANCEL instead.
16967         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16968         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16969         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16970         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16971         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16972         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16973         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16974         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16975         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16976         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16977         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16978         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16979         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16980         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16981         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16982         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16983         Likewise.
16984         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16985         (__libc_pread64): Likewise.
16986         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16987         (__libc_preadv): Likewise.
16988         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16989         (__libc_readv64): Likewise.
16990         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16991         (__libc_pwrite): Likewise.
16992         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16993         (__libc_pwrite64): Likewise.
16994         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16995         (__libc_pwritev): Likewise.
16996         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16997         (__libc_pwritev64): Likewise.
16998         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16999         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17000         (sync_file_range): Likewise.
17001         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17002         Likewise.
17003         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17004         Likewise.
17005         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17006         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17007         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17008         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17009         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17010         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17011         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17012         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17014         Likewise.
17015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17016         (__libc_read64): Likewise.
17017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17018         Likewise.
17019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17020         Likewise.
17021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17022         Likewise.
17023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17024         Likewise.
17025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17026         (__libc_pread64): Likewise.
17027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17028         Likewise.
17029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17030         (__libc_pwrite64): Likewise.
17031         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17032         (sync_file_range): Likewise.
17033         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17034         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17035         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17036         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17037         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17038         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17039         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17040         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17041         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17042         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17043         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17044         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17045         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17046         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17047         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17048         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17049         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17050         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17051         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17052         Likewise.
17053         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17054         Likewise.
17055         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17056         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17057         Likewise.
17058         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17059         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17060         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17061         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17062         Likewise.
17063         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17064         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17065         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17066         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17067         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17068
17069 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17070
17071         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17072         Include dl-vdso.
17073         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17074         Use VDSO routines for gettimeofday, clock_gettime if
17075         available.
17076         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17077         Declare VDSO symbols.
17078         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17079         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17080         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17081         * sysdeps/unix/sysv/linux/arm/Versions: Add
17082         __vdso_clock_gettime.
17083
17084 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17085
17086         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17087         be an inline implementation regardless of library is built within.
17088         (open_not_cancel_2): Likewise.
17089         (__read_nocancel): Likewise.
17090         (__write_nocancel): Likewise.
17091         (openat_not_cancel): Likewise.
17092         (openat_not_cancel_3): Likewise.
17093         (openat64_not_cancel): Likewise.
17094         (openat64_not_cancel_3): Likewise.
17095         (__close_nocancel): Likewise.
17096         (pause_not_cancel): Likewise.
17097         (nanosleep_not_cancel): Likewise.
17098         (sigsuspend_not_cancel): Likewise.
17099
17100 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17101
17102         [BZ #14958]
17103         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17104         wake-up.
17105         (__pthread_rwlock_rdlock_slow): Likewise.
17106         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17107         Likewise.
17108         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17109         Likewise.
17110         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17111         * nptl/tst-rwlock16.c: New file.
17112         * nptl/Makefile (tests): Add new test.
17113
17114 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17115
17116         [BZ #18324]
17117         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17118         missing wake-up of readers.
17119         * nptl/tst-rwlock15.c: New file.
17120         * nptl/Makefile (tests): Add new test.
17121
17122 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17123
17124         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17125         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17126         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17127         and __nacl_supply_interface_rtld.
17128         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17129         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17130         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17131         Add __nacl_supply_interface_rtld.
17132         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17133
17134 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17135
17136         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17137         isfinite.
17138         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17139         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17140
17141 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17142
17143         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17144         __signbit* with standard C99 macros.
17145         * math/e_exp10l.c: Likewise.
17146         * math/e_exp2l.c: Likewise.
17147         * math/e_scalb.c: Likewise.
17148         * math/e_scalbf.c: Likewise.
17149         * math/e_scalbl.c: Likewise.
17150         * math/s_ldexp.c: Likewise.
17151         * math/s_ldexpf.c: Likewise.
17152         * math/s_ldexpl.c: Likewise.
17153         * math/w_atan2.c: Likewise.
17154         * math/w_atan2f.c: Likewise.
17155         * math/w_atan2l.c: Likewise.
17156         * math/w_cosh.c: Likewise.
17157         * math/w_coshf.c: Likewise.
17158         * math/w_coshl.c: Likewise.
17159         * math/w_exp10.c: Likewise.
17160         * math/w_exp10f.c: Likewise.
17161         * math/w_exp10l.c: Likewise.
17162         * math/w_exp2.c: Likewise.
17163         * math/w_exp2f.c: Likewise.
17164         * math/w_exp2l.c: Likewise.
17165         * math/w_fmod.c: Likewise.
17166         * math/w_fmodf.c: Likewise.
17167         * math/w_fmodl.c: Likewise.
17168         * math/w_hypot.c: Likewise.
17169         * math/w_hypotf.c: Likewise.
17170         * math/w_hypotl.c: Likewise.
17171         * math/w_jnl.c: Likewise.
17172         * math/w_lgamma.c: Likewise.
17173         * math/w_lgamma_r.c: Likewise.
17174         * math/w_lgammaf.c: Likewise.
17175         * math/w_lgammaf_r.c: Likewise.
17176         * math/w_lgammal.c: Likewise.
17177         * math/w_lgammal_r.c: Likewise.
17178         * math/w_pow.c: Likewise.
17179         * math/w_powf.c: Likewise.
17180         * math/w_powl.c: Likewise.
17181         * math/w_remainder.c: Likewise.
17182         * math/w_remainderf.c: Likewise.
17183         * math/w_remainderl.c: Likewise.
17184         * math/w_scalb.c: Likewise.
17185         * math/w_scalbf.c: Likewise.
17186         * math/w_scalbl.c: Likewise.
17187         * math/w_scalbln.c: Likewise.
17188         * math/w_scalblnf.c: Likewise.
17189         * math/w_scalblnl.c: Likewise.
17190         * math/w_sinh.c: Likewise.
17191         * math/w_sinhf.c: Likewise.
17192         * math/w_sinhl.c: Likewise.
17193         * math/w_tgamma.c: Likewise.
17194         * math/w_tgammaf.c: Likewise.
17195         * math/w_tgammal.c: Likewise.
17196         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17197         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17198         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17199         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17200         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17201         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17202         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17203         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17204         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17205         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17206         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17207         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17208         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17209         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17210         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17211         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17212         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17213         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17214         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17215         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17216         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17217         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17218         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17219         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17220         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17221         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17222         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17223         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17224         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17225         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17226         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17227         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17228         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17229         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17230         * stdio-common/printf_fp.c: Likewise.
17231         * stdio-common/printf_fphex.c: Likewise.
17232         * stdio-common/printf_size.c: Likewise.
17233
17234 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17235
17236         [BZ #18470]
17237         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17238         strnlen.
17239         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17240         Remove variable.
17241         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17242         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17243         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17244         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17245         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17246         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17247         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17248         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17249         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17250         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17251
17252         [BZ #18468]
17253         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17254         weak alias of __wmemchr.  Use libc_hidden_weak.
17255         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17256         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17257         instead of wmemchr.
17258
17259 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17260
17261         [BZ #18383]
17262         * elf/tst-tlsalign-extern.c: New file.
17263         * elf/tst-tlsalign-extern-static.c: New file.
17264         * elf/tst-tlsalign-vars.c: New file.
17265         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17266         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17267         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17268         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17269         (test-xfail-tst-tlsalign-extern-static): New variable.
17270
17271 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17272
17273         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17274         Use variable name _sc_err instead of err.
17275         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17276         instead of ret.
17277         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17278         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17279         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17280         (INLINE_SYSCALL): Likewise.
17281
17282         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17283         * include/string.h (__strnlen): Use libc_hidden_proto.
17284         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17285         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17286         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17287         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17288         (libc_hidden_def): Undefine and redefine.
17289         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17290         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17291         __GI_strnlen.
17292         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17293         libc_hidden_def.
17294         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17295
17296         [BZ #18469]
17297         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17298         weak alias of __towlower.  Use libc_hidden_weak.
17299         (towupper): Rename to __towupper and define as weak alias of
17300         __towupper.  Use libc_hidden_weak.
17301         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17302         (__towupper): Likewise.
17303         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17304         __towlower instead of towlower.
17305
17306 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17307
17308         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17309         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17310
17311 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17312
17313         * sysdeps/aarch64/libm-test-ulps: Update.
17314
17315 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17316
17317         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17318         Define.
17319         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17320         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17321         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17322         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17323         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17324         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17325         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17326
17327 2015-06-01  Martin Sebor  <msebor@redhat.com>
17328
17329         [BZ #18116]
17330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17331         (__setcontext): Use extended four-operand version of mtsf whenever
17332         possible.
17333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17334         (__novec_swapcontext): Likewise.
17335
17336 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17337
17338         * benchtests/scripts/compare_bench.py: New file.
17339         * benchtests/scripts/import_bench.py (mean): New function.
17340         (split_list): Likewise.
17341         (do_for_all_timings): Likewise.
17342         (compress_timings): Likewise.
17343
17344         * benchtests/scripts/import_bench.py: New file.
17345         * benchtests/scripts/validate_benchout.py: Import import_bench
17346         instead of jsonschema.
17347         (validate_bench): Remove function.
17348         (main): Use import_bench.
17349
17350 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17351
17352         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17353         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17354
17355 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17356
17357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17358
17359 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17360
17361         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17362         set THREAD_SELF->tid to a magic value and futex-wake it.
17363         Pass its address to the thread_exit system call.
17364         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17365         bit is clear.
17366         * sysdeps/nacl/lowlevellock.h: New file.
17367         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17368
17369         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17370         Add TIMEOUT to current time, don't subtract it.
17371
17372 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17373
17374         [BZ #2981]
17375         [BZ #18422]
17376         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17377         ($(objpfx)tst-audit2.out): Also depend on
17378         $(objpfx)tst-auditmod9b.so.
17379         * elf/tst-audit2.c: Include <dlfcn.h>.
17380         (calloc_called): New.
17381         (calloc): Allow to be called more than once.
17382         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17383
17384 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17385
17386         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17387         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17388
17389 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17390
17391         * stdlib/monetary.h: Fix comment.
17392
17393 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17394
17395         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17396         Avoid using variables in #defines that might cause shadowing.
17397         (INTERNAL_VSYSCALL_CALL): Likewise.
17398
17399 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17400
17401         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17402
17403         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17404         * nptl/lll_timedlock_wait.c: ... to this new file.
17405         * nptl/Makefile (libpthread-routines): Add it.
17406         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17407         * nptl/lll_timedwait_tid.c: ... to this new file.
17408         * nptl/Makefile (libpthread-routines): Add it.
17409         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17410         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17411         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17412         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17413         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17414         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17415         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17416         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17417         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17418         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17419
17420 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17421
17422         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17423         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17424         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17425         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17426         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17427         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17428         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17429         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17430         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17431         * sysdeps/unix/sysv/linux/tile/sysdep.h
17432         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17433         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17434         using vDSO syscall macro.
17435
17436 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17437
17438         [BZ #17293]
17439         * uk_UA: Fix sorting order for Ukrainian locale
17440
17441 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17442
17443         * stdlib/monetary.h: Fix comment.
17444
17445 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17446
17447         [BZ #18234]
17448         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17449         st_mtim and st_ctim members.
17450         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17451         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17452         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17453         (struct stat64): Likewise.
17454         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17455         (struct stat64): Likewise.
17456         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17457         (struct stat64): Likewise.
17458
17459 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17460
17461         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17462         Define and include sysdep-vdso.h.
17463         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17464         Likewise.
17465         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17466         Likewise.
17467         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17468         Define with VDSO_SYMBOL and use PTR_MANGLE.
17469         (__vdso_clock_gettime): Likewise.
17470         (__vdso_clock_getres): Likewise.
17471         (_libc_vdso_platform_setup): Likewise.
17472         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17473         Likewise.
17474         (_libc_vdso_platform_setup): Likewise.
17475         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17476         Likewise.
17477         (__vdso_clock_gettime): Likewise.
17478         (__vdso_clock_getres): Likewise.
17479         (__vdso_get_tbfreq): Likewise.
17480         (__vdso_getcpu): Likewise.
17481         (__vdso_time): Likewise.
17482         (__vdso_sigtramp_rt64): Likewise.
17483         (__vdso_signtramp32): Likewise.
17484         (__vdso_sigtramp_rt32): Likewise.
17485         (_libc_vdso_platform_setup): Likewise.
17486         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17487         Likewise.
17488         (__vdso_clock_gettime): Likewise.
17489         (__vdso_clock_getres): Likewise.
17490         (_libc_vdso_platform_setup): Likewise.
17491         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17492         Likewise.
17493         (__vdso_clock_gettime): Likewise.
17494         (_libc_vdso_platform_setup): Likewise.
17495         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17496         Likewise.
17497         (__vdso_getcpu): Likewise.
17498         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17499         Use VDSO_SYMBOL macro to define.
17500         (__vdso_clock_gettime): Likewise.
17501         (__vdso_clock_getres): Likewise.
17502         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17503         Likewise.
17504         (__vdso_clock_gettime): Likewise.
17505         (__vdso_clock_getres): Likewise.
17506         (__vdso_get_tbfreq): Likewise.
17507         (__vdso_getcpu): Likewise.
17508         (__vdso_time): Likewise.
17509         (__vdso_sigtramp_rt64): Likewise.
17510         (__vdso_signtramp32): Likewise.
17511         (__vdso_sigtramp_rt32): Likewise.
17512         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17513         Likewise.
17514         (__vdso_clock_gettime): Likewise.
17515         (__vdso_clock_getres): Likewise.
17516         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17517         Likewise.
17518         (__vdso_clock_gettime): Likewise.
17519         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17520         Likewise.
17521         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17522         macro.
17523         (INTERNAL_VSYSCALL): Likewise.
17524         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17525         Remove macro.
17526         (INTERNAL_VSYSCALL): Likewise.
17527         (INTERNAL_VSYSCALL_NCS): Likewise.
17528         (INTERNAL_VSYSCALL_CALL): New macro.
17529         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17530         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17531         Likewise.
17532         (INTERNAL_VSYSCALL): Likewise.
17533         (INTERNAL_VSYSCALL_NCS): Likewise.
17534         (INTERNAL_VSYSCALL_CALL): New macro.
17535         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17537         (INLINE_VSYSCALL): Remove macro.
17538         (INTERNAL_VSYSCALL): Remove macro.
17539         (INTERNAL_VSYSCALL_NCS): Remove macro.
17540         (INTERNAL_VSYSCALL_CALL): New macro.
17541         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17542         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17543         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17544         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17545         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17547         (INLINE_VSYSCALL): Remove macro.
17548         (INTERNAL_VSYSCALL): Likewise.
17549         (INTERNAL_VSYSCALL_NCS): Likewise.
17550         (INTERNAL_VSYSCALL_CALL): New macro.
17551         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17552         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17553         PTR_DEMANGLE on vDSO pointer.
17554         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17555         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17556         macro.
17557         (INTERNAL_SYSCALL): Likewise.
17558         (INTERNAL_VSYSCALL_NCS): Remove macro.
17559         (INTERNAL_VSYSCALL_CALL): New macro.
17560         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17561         Remove macro.
17562         (INTERNAL_VSYSCALL): Likewise.
17563         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17564         sysdep-vdso.h instead of libc-vdso.h.
17565         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17566         definition.
17567         (INLINE_VSYSCALL): Likewise.
17568         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17569         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17570         definition.
17571         (INLINE_VSYSCALL): Likewise.
17572         (INTERNAL_VSYSCALL): Likewise.
17573         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17574         * sysdeps/unix/sysv/linux/timespec_get.c
17575         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17576         (timespec_get): Use ANSI prototype.
17577         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17578         and definition for Linux.
17579
17580 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17581
17582         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17583         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17584
17585 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17586
17587         [BZ #2981]
17588         [BZ #18410]
17589         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17590         for missing DT_PLTRELSZ.
17591
17592 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17593
17594         Remove obsolete aliases that broke 'locale -a'
17595         [BZ #18412]
17596         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17597         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17598         breaking some applications that use 'locale -a' output.
17599         Change the encoding of this file from Latin-1 to ASCII to avoid
17600         other potential problems with people grepping this file.
17601
17602 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17603
17604         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17605         -fasynchronous-unwind-tables.
17606         (CFLAGS-sendto.c): Likewise.
17607         (CFLAGS-sendmsg.c): Likewise.
17608         (CFLAGS-connect.c): Likewise.
17609         (CFLAGS-recvmsg.c): Likewise.
17610         (CFLAGS-recvfrom.c): Likewise.
17611         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17612         (SOCKETCALL): New macro: non-cancellable socketcall.
17613         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17614         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17615         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17616         * sysdeps/unix/sysv/linux/accept.c: New file.
17617         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17618         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17619         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17620         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17621         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17622         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17623         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17624         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17625         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17626         * sysdeps/unix/sysv/linux/send.c: Likewise.
17627         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17628         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17629         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17630         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17631         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17632         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17633         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17634         prototype.
17635         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17636         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17637         instead of __internal_xxx function.
17638         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17639         prototype.
17640         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17641         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17642         instead of __internal_xxx function.
17643         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17644         prototype.
17645         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17646         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17647         instead of __internal_xxx function.
17648         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17649         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17650         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17651         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17652         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17653         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17654         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17655         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17656         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17657         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17658         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17659         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17660         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17661         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17662         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17663         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17664         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17665         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17666         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17667         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17670         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17671         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17672         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17673         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17674         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17675         * sysdeps/unix/sysv/linux/send.S: Likewise.
17676         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17677         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17678         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17679         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17680         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17681         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17682         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17683         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17684         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17685         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17686         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17687         socketcall is implemented in GLIBC.
17688
17689 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17690
17691         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17692         (__fma): Ignore uninitialized warnings around packing.
17693         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17694         (__fmaf): Ignore uninitialized warnings around packing.
17695         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17696         (__fmal): Ignore uninitialized warnings around packing.
17697
17698         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17699         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17700         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17701         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17702
17703         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17704         switch statement into default case.
17705         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17706
17707         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17708         a conditional in forcing "inexact".
17709         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17710         Likewise.
17711
17712 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17713
17714         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17715         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17716         for each INTERNAL_SYSCALL use.
17717
17718 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17719
17720         [BZ #438]
17721         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17722         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17723         variable.
17724
17725         [BZ #18444]
17726         * string/basename.c (basename): Rename to __basename and define as
17727         weak alias of __basename.  Use libc_hidden_weak.
17728         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17729         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17730         __basename instead of basename.
17731         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17732         Remove variable.
17733         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17734
17735 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17736
17737         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17738         (_IO_JUMPS_FILE_plus): New.
17739         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17740         _IO_CAST_FIELD_ACCESS.
17741         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17742         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17743         * libio/freopen.c (freopen): Likewise.
17744         * libio/freopen64.c (freopen64): Likewise.
17745         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17746         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17747         * libio/iofwide.c (_IO_fwide): Likewise.
17748         * libio/memstream.c (open_memstream): Likewise.
17749         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17750         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17751         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17752
17753 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17754
17755         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17756         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17757         NADJ.
17758         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17759         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17760         NADJ.
17761         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17762         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17763         NADJ.
17764
17765         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17766         (p == 4) case.
17767
17768         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17769         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17770         Remove variable.
17771         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17772         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17773         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17774
17775 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17776
17777         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17778         Adjust jump table label generation macros.
17779
17780 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17781
17782         * stdio-common/vfprintf.c (vfprintf): Move local variables
17783         args_malloced, specs, specs_malloced, and the code after
17784         do_positional to the printf_positional function.
17785         (printf_positional): New function.
17786
17787 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17788
17789         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17790         function.
17791         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17792         STEP4_TABLE, process_arg): Move macro definitions
17793         out of the vfprintf function.  (Cosmetic change only.)
17794
17795 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17796
17797         * benchtests/Makefile (stdio-common-bench): Define.
17798         (benchset): Add stdio-common-bench.
17799         * sprintf-inputs: New file.
17800         * sprintf-source.c: New file.
17801
17802 2015-05-21  Andreas Schwab  <schwab@suse.de>
17803
17804         [BZ #13028]
17805         [BZ #17053]
17806         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17807         of struct __res_state.
17808         * resolv/res_send.c (__libc_res_nsend): Likewise.
17809         (get_nsaddr): New function.
17810         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17811         statp directly.
17812
17813 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17814
17815         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17816         -D_POSIX_C_SOURCE=199506L.
17817
17818         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17819
17820         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17821         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17822         Do not mention otherwise.
17823         [POSIX] (_XOPEN_VERSION): Do not expect.
17824         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17825         [POSIX] (_POSIX2_C_BIND): Likewise.
17826         [POSIX] (_POSIX2_VERSION): Likewise.
17827         [POSIX] (_XOPEN_XPG2): Likewise.
17828         [POSIX] (_XOPEN_XPG3): Likewise.
17829         [POSIX] (_XOPEN_XPG4): Likewise.
17830         [POSIX] (_XOPEN_UNIX): Likewise.
17831         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17832         [POSIX] (_POSIX_BARRIERS): Likewise.
17833         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17834         [POSIX] (_POSIX_CPUTIME): Likewise.
17835         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17836         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17837         [POSIX] (_POSIX_SHELL): Likewise.
17838         [POSIX] (_POSIX_SPAWN): Likewise.
17839         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17840         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17841         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17842         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17843         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17844         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17845         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17846         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17847         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17848         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17849         [POSIX] (_POSIX2_PBS): Likewise.
17850         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17851         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17852         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17853         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17854         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17855         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17856         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17857         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17858         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17859         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17860         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17861         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17862         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17863         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17864         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17865         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17866         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17867         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17868         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17869         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17870         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17871         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17872         [POSIX] (_SC_2_C_BIND): Likewise.
17873         [POSIX] (_SC_2_C_VERSION): Likewise.
17874         [POSIX] (_SC_2_PBS): Likewise.
17875         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17876         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17877         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17878         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17879         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17880         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17881         [POSIX] (_SC_BARRIERS): Likewise.
17882         [POSIX] (_SC_BASE): Likewise.
17883         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17884         [POSIX] (_SC_DEVICE_IO): Likewise.
17885         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17886         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17887         [POSIX] (_SC_FD_MGMT): Likewise.
17888         [POSIX] (_SC_FIFO): Likewise.
17889         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17890         [POSIX] (_SC_FILE_LOCKING): Likewise.
17891         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17892         [POSIX] (_SC_IOV_MAX): Likewise.
17893         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17894         [POSIX] (_SC_NETWORKING): Likewise.
17895         [POSIX] (_SC_PAGE_SIZE): Likewise.
17896         [POSIX] (_SC_PASS_MAX): Likewise.
17897         [POSIX] (_SC_PIPE): Likewise.
17898         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17899         [POSIX] (_SC_REGEXP): Likewise.
17900         [POSIX] (_SC_SHELL): Likewise.
17901         [POSIX] (_SC_SIGNALS): Likewise.
17902         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17903         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17904         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17905         [POSIX] (_SC_USER_GROUPS): Likewise.
17906         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17907         [POSIX] (_SC_STREAMS): Likewise.
17908         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17909         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17910         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17911         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17912         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17913         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17914         [POSIX] (_PC_FILESIZEBITS): Likewise.
17915         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17916         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17917         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17918         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17919         [POSIX] (uid_t): Likewise.
17920         [POSIX] (gid_t): Likewise.
17921         [POSIX] (off_t): Likewise.
17922         [POSIX] (pid_t): Likewise.
17923         [POSIX] (cuserid): Allow.
17924         (_SC_2_CHAR_TERM): Require constant.
17925         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17926         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17927         variable.
17928
17929 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17930
17931         * sysdeps/nacl/pthread-pids.h: New file.
17932         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17933         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17934
17935         * nptl/pthread-pids.h: New file.
17936         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17937         * nptl/nptl-init.c: Include <pthread-pids.h>.
17938         (__pthread_initialize_minimal_internal):
17939         Call __pthread_initialize_pids instead of set_tid_address syscall.
17940
17941         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17942         * sysdeps/posix/usleep.c: ... here.
17943
17944 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17945
17946         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17947         call_pselect6 object.
17948         [$(subdir) = io]: Remove call_sync_file_range object.
17949         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17950         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17951         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17952         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17953
17954 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17955
17956         * math/s_cproj.c: Add include "math_private.h".
17957         * math/s_cprojf.c: Likewise.
17958         * math/s_cprojl.c: Likewise.
17959
17960 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17961
17962         [BZ #18244]
17963         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17964         high mantissa bit when testing whether P is a NaN.
17965         * math/libm-test.inc (remainder_test_data): Add more tests.
17966         (remquo_test_data): Likewise.
17967
17968         [BZ #18049]
17969         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17970         below -32, return the argument, with underflow if subnormal.
17971         * math/auto-libm-test-in: Add more tests of atanh.
17972         * math/auto-libm-test-out: Regenerated.
17973
17974 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17975
17976         [BZ #18434]
17977         * nptl/tst-sem15.c: New file.
17978         * nptl/Makefile (tests): Add it.
17979         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17980         s/<</>>/ to fix typo in EOVERFLOW check.
17981         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17982
17983 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17984
17985         * manual/strings.texi (envz_remove): Fix typo in safety
17986         annotations.
17987
17988 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17989             Steve Ellcey  <sellcey@imgtec.com>
17990
17991         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17992         in order to avoid strict alias warnings.
17993         (iruserok_af): Ditto for ra.
17994
17995 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17996
17997         [BZ #17581]
17998         * malloc/hooks.c
17999         (magicbyte): Convert to a function and avoid returning 0x01.
18000         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18001         (mem2chunk_check): Fix unsigned comparisons to zero.
18002         Hoist defs of sz and magic.
18003
18004 2015-05-19  Richard Henderson  <rth@redhat.com>
18005
18006         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18007
18008         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18009
18010 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18011
18012         [BZ #16159]
18013         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18014         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18015         (reused_arena): Find a non-corrupt arena.
18016         (heap_trim): Pass arena to unlink.
18017         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18018         malloc_printerr.
18019         (top_check): Likewise.
18020         (free_check): Likewise.
18021         (realloc_check): Likewise.
18022         * malloc/malloc.c (malloc_printerr): Add arena argument.
18023         (unlink): Likewise.
18024         (munmap_chunk): Adjust.
18025         (ARENA_CORRUPTION_BIT): New macro.
18026         (arena_is_corrupt): Likewise.
18027         (set_arena_corrupt): Likewise.
18028         (sysmalloc): Use mmap if there are no usable arenas.
18029         (_int_malloc): Likewise.
18030         (__libc_malloc): Don't fail if arena_get returns NULL.
18031         (_mid_memalign): Likewise.
18032         (__libc_calloc): Likewise.
18033         (__libc_realloc): Adjust for additional argument to
18034         malloc_printerr.
18035         (_int_free): Likewise.
18036         (malloc_consolidate): Likewise.
18037         (_int_realloc): Likewise.
18038         (_int_memalign): Don't touch corrupt arenas.
18039         * malloc/tst-malloc-backtrace.c: New test case.
18040
18041         * Makefile (summarize-tests): Fix return value on success.
18042
18043         * manual/string.texi (Envz Functions): Add envz_remove.
18044
18045 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18046
18047         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18048         (invalid_name): New function, broken out of ...
18049         (__opendirat): ... here.  Call it.
18050         (need_isdir_precheck): New function, broken out of ...
18051         (__opendirat): ... here.  Call it.
18052         Use __fxstatat64, not __xstatat64.
18053         (opendir_oflags): New function, broken out of ...
18054         (__opendirat): ... here.  Call it.
18055         (opendir_tail): New function, broken out of ...
18056         (__opendirat): ... here.  Call it.
18057         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18058         opendir_tail, rather than punting to __opendirat.
18059         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18060
18061 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18062
18063         * .gitignore: Ignore generated *.pyc.
18064
18065 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18066
18067         * include/stdio.h: Define __need_wint_t.
18068         * test-skeleton.c: Avoid `for' loop initial declaration.
18069         * nptl/tst-initializers1.c: Use test-skeleton.c.
18070
18071 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18072
18073         [BZ #18418]
18074         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18075
18076 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18077
18078         [BZ #16352]
18079         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18080         (__ieee754_atanh): Force underflow exception for results with
18081         small absolute value.
18082         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18083         (__ieee754_atanhf): Force underflow exception for results with
18084         small absolute value.
18085         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18086         (__ieee754_atanh): Force underflow exception for results with
18087         small absolute value.
18088         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18089         (__ieee754_atanhf): Force underflow exception for results with
18090         small absolute value.
18091         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18092         (__ieee754_atanhl): Force underflow exception for results with
18093         small absolute value.
18094         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18095         (__ieee754_atanhl): Force underflow exception for results with
18096         small absolute value.
18097         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18098         (__ieee754_atanhl): Force underflow exception for results with
18099         small absolute value.
18100         * math/auto-libm-test-in: Do not allow missing underflow
18101         exceptions from atanh.
18102         * math/auto-libm-test-out: Regenerated.
18103
18104         [BZ #18221]
18105         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18106         2**-28 as threshold for returning x or +/- 1/x.
18107         * math/auto-libm-test-in: Add more tests of tan.
18108         * math/auto-libm-test-out: Regenerated.
18109
18110         [BZ #18220]
18111         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18112         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18113         * math/auto-libm-test-in: Add another test of lgamma.
18114         * math/auto-libm-test-out: Regenerated.
18115
18116 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18117
18118         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18119         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18120         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18121         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18122         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18123         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18124         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18125         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18126         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18127         (log1): Use fabs.  (my_log2): Use fabs.
18128         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18129         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18130         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18131         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18132         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18133         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18134         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18135         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18136         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18137         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18138         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18139
18140 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18141
18142         [BZ #18217]
18143         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18144         as threshold for returning 1 - x.
18145         * math/auto-libm-test-in: Add more tests of erfc.
18146         * math/auto-libm-test-out: Regenerated.
18147
18148 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18149
18150         [BZ #18196]
18151         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18152         threshold for large arguments.
18153         * math/auto-libm-test-in: Add another test of atan.
18154         * math/auto-libm-test-out: Regenerated.
18155
18156         [BZ #16339]
18157         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18158         (__log1p): Force underflow exception for results with small
18159         absolute value.
18160         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18161         (__log1pf): Force underflow exception for results with small
18162         absolute value.
18163         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18164         (__log1p): Force underflow exception for results with small
18165         absolute value.
18166         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18167         (__log1pf): Force underflow exception for results with small
18168         absolute value.
18169         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18170         (__log1pl): Force underflow exception for results with small
18171         absolute value.
18172         * math/auto-libm-test-in: Do not allow missing underflow
18173         exceptions from log1p.
18174         * math/auto-libm-test-out: Regenerated.
18175
18176 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18177             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18178
18179         [BZ #16704]
18180         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18181
18182 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18183
18184         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18185         (libmvec): New variable.
18186         * configure.ac: Added option for mathvec build.
18187         * configure: Regenerated.
18188         * mathvec/Depend: New file.
18189         * mathvec/Makefile: New file.
18190         * shlib-versions: Added libmvec.
18191         * math/Makefile: Added rule for libm.so installation.
18192
18193         * bits/math-vector.h: New file.
18194         * bits/libm-simd-decl-stubs.h: New header.
18195         * math/Makefile (headers): Added new header
18196         libm-simd-decl-stubs.h.
18197         * math/math.h (__MATHCALL_VEC): New macro.
18198
18199         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18200         for conditions in testing functions.
18201         * math/Makefile: Added call of libm-have-vector-test.sh.
18202         * math/libm-test.inc (HAVE_VECTOR): New macros.
18203
18204         * math/libm-test.inc: START refactored.
18205         * math/test-double.c (TEST_MATHVEC): Add define.
18206         * math/test-float.c: Likewise.
18207         * math/test-idouble.c: Likewise.
18208         * math/test-ifloat.c: Likewise.
18209         * math/test-ildoubl.c: Likewise.
18210         * math/test-ldouble.c: Likewise.
18211         * sysdeps/generic/math-tests-arch.h
18212         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18213         architecture check.
18214
18215         * math/test-double.c (FUNC_TEST): New macro.
18216         * math/test-float.c: Likewise.
18217         * math/test-idouble.c: Likewise.
18218         * math/test-ifloat.c: Likewise.
18219         * math/test-ildoubl.c: Likewise.
18220         * math/test-ldouble.c: Likewise.
18221         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18222
18223 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18224
18225         * sysdeps/nacl/fdopendir.c: New file.
18226
18227         * dirent/scandir-tail.c: New file.
18228         * dirent/scandir64-tail.c: New file.
18229         * dirent/Makefile (routines): Add them.
18230         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18231         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18232         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18233         [!SCANDIR] (SCANDIR_TAIL): New macro.
18234         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18235         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18236         (SCANDIRAT): Macro removed.
18237         (SCANDIR_TAIL): New macro.
18238         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18239         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18240         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18241         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18242         (READDIR): Macro removed.
18243         (SCANDIR_TAIL): New macro.
18244         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18245         (SCANDIR_TAIL): New macro.
18246
18247         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18248         * dirent/scandir-cancel.c: ... to this new file.
18249         * dirent/Makefile (routines): Add it.
18250         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18251         * sysdeps/unix/sysv/linux/i386/scandir64.c
18252         (SKIP_SCANDIR_CANCEL): Macro removed.
18253         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18254
18255         * dirent/tst-scandir.c: New file.
18256         * dirent/tst-scandir64.c: New file.
18257         * dirent/Makefile (tests): Add them.
18258
18259 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18260
18261         [BZ #18409]
18262         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18263
18264 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18265
18266         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18267         list.
18268
18269 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18270
18271         * benchtests/bench-strcoll.c: New benchmark.
18272         * benchtests/Makefile: Generate locales and run benchmark.
18273         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18274         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18275         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18276         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18277         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18278         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18279         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18280         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18281         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18282         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18283         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18284         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18285         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18286         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18287         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18288         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18289         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18290         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18291         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18292         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18293         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18294         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18295         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18296         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18297
18298 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18299
18300         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18301         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18302
18303 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18304
18305         * posix/uname-values.h: New file.
18306         * posix/uname.c: Include that instead of <config-name.h>.
18307         * sysdeps/nacl/uname-values.h: New file.
18308         * sysdeps/arm/nacl/uname-values.h: New file.
18309
18310 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18311
18312         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18313         splitting into fields.
18314
18315 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18316
18317         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18318         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18319         * locale/localeinfo.h: Add enum collation_encoding_type.
18320         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18321         * programs/ld-collate.c (collate_output): Add encoding type info.
18322         * string/strcoll_l.c (STRDIFF): New function.
18323         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18324         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18325
18326 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18327
18328         [BZ #18397]
18329         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18330         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18331         <fpu_control.h> instead of <math/fpu_control.c>.
18332         * sysdeps/mips/mips32/fpu/Makefile: New file.
18333
18334 2015-05-11  Andreas Schwab  <schwab@suse.de>
18335
18336         [BZ #18007]
18337         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18338         nss_endgrent.
18339         (_nss_compat_endgrent): Call nss_endgrent.
18340         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18341         nss_endpwent.
18342         (_nss_compat_endpwent): Call nss_endpwent.
18343         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18344         needent, call nss_setspent only if non-zero.
18345         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18346         (internal_endspent): Don't call nss_endspent.
18347         (_nss_compat_endspent): Call nss_endspent.
18348         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18349         Remove.  All uses removed.
18350         (internal_setent): Remove parameter stayopen, add parameter
18351         stream.  Use it instead of global variable.
18352         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18353         (internal_endent, internal_getent): Add parameter stream.  Use it
18354         instead of global variable.
18355         (CONCAT(_nss_files_end,ENTNAME))
18356         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18357         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18358         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18359         uses removed.
18360         (internal_setent, internal_endent): Add parameter stream.  Use it
18361         instead of global variable.
18362         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18363         stream.
18364         (get_next_alias): Add parameter stream.
18365         (_nss_files_getaliasent_r): Pass global stream.
18366         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18367         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18368         (_nss_files_gethostbyname4_r): Pass local stream to
18369         internal_setent, internal_getent and internal_endent.  Remove
18370         locking.
18371
18372 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18373
18374         * tst-strfmon1.c (tests): Update expected currency symbol.
18375
18376 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18377
18378         * sysdeps/nacl/gethostname.c: New file.
18379
18380 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18381
18382         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18383         and sinh.
18384         * math/auto-libm-test-out: Regenerated.
18385         * sysdeps/i386/fpu/libm-test-ulps: Update.
18386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18387
18388 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18389
18390         [BZ #18125]
18391         * stdlib/tst-setcontext3.c: New file.
18392         * stdlib/tst-setcontext3.sh: New file.
18393         * stdlib/Makefile (tests): Add tst-setcontext3.
18394         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18395         to verify test program created output file.
18396         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18397         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18398         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18399         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18400
18401 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18402
18403         [BZ #18383]
18404         * elf/tst-tlsalign.c: New file.
18405         * elf/tst-tlsalign-static.c: New file.
18406         * elf/tst-tlsalign-lib.c: New file.
18407         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18408         (tests-static): Add tst-tlsalign-static.
18409         (modules-names): Add tst-tlsalign-lib.
18410         (test-xfail-tst-tlsalign): New variable.
18411         (test-xfail-tst-tlsalign-static): New variable.
18412
18413         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18414         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18415
18416 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18417
18418         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18419         csqrt, erfc, sin and sincos.
18420         * math/auto-libm-test-out: Regenerated.
18421         * sysdeps/i386/fpu/libm-test-ulps: Update.
18422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18423
18424 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18425
18426         * sysdeps/aarch64/libm-test-ulps: Update.
18427
18428 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18429
18430         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18431         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18432         * math/auto-libm-test-out: Regenerated.
18433         * sysdeps/i386/fpu/libm-test-ulps: Update.
18434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18435
18436 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18437
18438         [BZ #18265]
18439         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18440         (wcsncpy): Likewise.
18441
18442 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18443
18444         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18445         Assume __ASSUME_FALLOCATE is always true.
18446         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18447         (__posix_fallocate64_l64): Likweise.
18448         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18449         (posix_fallocate): Likewise.
18450         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18451         (__posix_fallocate64_l64): Likewise.
18452         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18453         [!__ASSUME_FALLOCATE]: Add comment.
18454
18455 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18456
18457         * sysdeps/unix/sysv/linux/i386/Makefile
18458         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18459         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18460         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18461         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18462         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18463         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18464         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18465
18466 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18467
18468         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18469         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18470         tgamma.
18471         * math/auto-libm-test-out: Regenerated.
18472         * sysdeps/i386/fpu/libm-test-ulps: Update.
18473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18474
18475 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18476
18477         * math/auto-libm-test-in: Add more tests of tgamma.
18478         * math/auto-libm-test-out: Regenerated.
18479         * sysdeps/i386/fpu/libm-test-ulps: Update.
18480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18481
18482         * math/auto-libm-test-in: Add more tests of tanh.
18483         * math/auto-libm-test-out: Regenerated.
18484         * sysdeps/i386/fpu/libm-test-ulps: Update.
18485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18486
18487         * math/auto-libm-test-in: Add more tests of tan.
18488         * math/auto-libm-test-out: Regenerated.
18489         * sysdeps/i386/fpu/libm-test-ulps: Update.
18490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18491
18492         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18493         * math/auto-libm-test-out: Regenerated.
18494         * sysdeps/i386/fpu/libm-test-ulps: Update.
18495         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18496
18497         * math/auto-libm-test-in: Add another test of pow.
18498         * math/auto-libm-test-out: Regenerated.
18499         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18500
18501         * math/auto-libm-test-in: Add more tests of lgamma.
18502         * math/auto-libm-test-out: Regenerated.
18503         * sysdeps/i386/fpu/libm-test-ulps: Update.
18504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18505
18506         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18507         log1p.
18508         * math/auto-libm-test-out: Regenerated.
18509         * sysdeps/i386/fpu/libm-test-ulps: Update.
18510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18511
18512 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18513
18514         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18515         Elf64_Chdr structs and ELFCOMPRESS constants.
18516
18517 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18518
18519         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18520         expm1.
18521         * math/auto-libm-test-out: Regenerated.
18522         * sysdeps/i386/fpu/libm-test-ulps: Update.
18523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18524
18525         * math/auto-libm-test-in: Add more tests of erf and erfc.
18526         * math/auto-libm-test-out: Regenerated.
18527         * sysdeps/i386/fpu/libm-test-ulps: Update.
18528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18529
18530 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18531
18532         * config.h.in (HAVE_AARCH64_BE): Add.
18533
18534 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18535
18536         * math/auto-libm-test-in: Add more tests of csqrt.
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 cosh and sinh.
18542         * math/auto-libm-test-out: Regenerated.
18543         * sysdeps/i386/fpu/libm-test-ulps: Update.
18544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18545
18546         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18547
18548 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18549
18550         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18551         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18552
18553         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18554         (euidaccess, eaccess): Define as weak aliases.
18555
18556         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18557         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18558         but __suseconds_t is often 'long int' so some sources assume that
18559         type is being used (e.g. they use %ld to print tv_usec).
18560
18561 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18562
18563         [BZ #18007]
18564         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18565         (CVE-2014-8121)
18566         * nss/tst-nss-getpwent.c: New file.
18567         * nss/Makefile (tests): Add new test.
18568
18569 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18570
18571         [BZ #18346]
18572         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18573         exponents less than 48 as cases where high part of mantissa needs
18574         examining to determine whether argument is integral.
18575         * math/libm-test.inc (round_test_data): Add more tests.
18576
18577 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18578
18579         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18580
18581 2015-04-27  David S. Miller  <davem@davemloft.net>
18582
18583         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18584         __tls_get_addr.
18585         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18586
18587 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18588
18589         [BZ#18333]
18590         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18591
18592 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18593
18594         [BZ#18333]
18595         * time/tzset.c (parse_tzname): Return error on memory allocation
18596         failure.
18597         * test-skeleton.c (struct temp_name_list): Change type of name
18598         member to non-const.
18599         (add_temp_file): Create a copy of the file name.
18600         (delete_temp_files): Deallocate memory.
18601         (create_temp_file): Add comment.
18602
18603 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18604
18605         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18606         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18607
18608 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18609
18610         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18611         * sysdeps/arm/configure: Regenerated.
18612
18613 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18614
18615         [BZ #17715]
18616         * time/tzfile.c (__tzfile_read): Check for large values of
18617         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18618         * time/tzset.c (__tzstring_len): New function, based on the old
18619         __tzstring function.
18620         (__tzstring): Call __tzstring_len.
18621         (parse_tzname): New helper function extracted from
18622         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18623         the input string.
18624         (parse_offset): New helper function extracted from
18625         __tzset_parse_tz.  Replace switch with fallthrough with
18626         initialization before sscanf.
18627         (parse_rule): Likewise.
18628         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18629         new-style function definition.
18630         * timezone/Makefile (tests): Add tst-tzset.
18631         (tst-tzset.out): Dependencies on time zone files.
18632         (tst-tzset-ENV): Set TZDIR.
18633         (testdata/XT%): Copy crafted time zone files.
18634         * timezone/README: Mention crafted time zone files.
18635         * timezone/testdata/XT1, timezone/testdata/XT2,
18636         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18637         files.
18638         * timezone/tst-tzset.c: New test.
18639
18640 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18641
18642         * Makeconfig (+gccwarn): Remove -Winline.
18643
18644 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18645
18646         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18647
18648 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18649
18650         * NEWS: Mention sysconf() cache information support for s390.
18651         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18652
18653 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18654
18655         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18656         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18657         (__nearbyint): Likewise.
18658         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18659         (copysignl): Likewise.
18660
18661 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18662
18663         [BZ #18287]
18664         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18665         based on padding.  (CVE-2015-1781)
18666
18667 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18668
18669         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18670         libc-vdso.h.
18671         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18672         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18673         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18674         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18675         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18676         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18677         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18678         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18679         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18680         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18681         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18682         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18683         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18684         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18685         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18686         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18687         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18688         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18689         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18690         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18691         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18692         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18693         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18694
18695 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18696
18697         * stdlib/setenv.c (__add_to_environ):
18698         Dump core quickly if setenv (..., NULL, ...) is called.
18699         This time, do it the right way, and pacify GCC with a pragma.
18700
18701 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18702
18703         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18704         IMAP->l_prev cannot be null, and #if out the code for the contrary
18705         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18706         believe that NS (&_dl_ns[NSID]) could point outside the array.
18707
18708         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18709         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18710         before using NSID as an index.
18711
18712 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18713
18714         [BZ #17825]
18715         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18716         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18717         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18718
18719 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18720
18721         Add preliminary port to Google Native Client on ARM.
18722         * abi-tags (.*-.*-nacl.*): New entry.
18723         * sysdeps/arm/nacl: New directory.
18724         * sysdeps/nacl: New directory.
18725
18726 2015-04-16  David S. Miller  <davem@davemloft.net>
18727
18728         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18729         lowlevellock-futex.h
18730
18731 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18732
18733         * sysdeps/tile/configure.ac: New file.
18734         * sysdeps/tile/configure: Regenerated.
18735
18736 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18737
18738         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18739         conditionals for weak_alias and libc_hidden_weak.
18740         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18741         libc_hidden_weak and weak_alias.
18742         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18743         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18744         and weak_alias for static one.
18745
18746 2015-04-15  David S. Miller  <davem@davemloft.net>
18747
18748         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18749
18750 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18751
18752         [BZ #18206]
18753         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18754           Use signed comparision instead of substraction to avoid
18755           overflow bug.
18756         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18757           Take the sign of ret.
18758         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18759           Do not expect precise return values. Only the sign matters.
18760         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18761         * wcsmbs/test-wcsncmp.c: New File.
18762         * string/test-strncmp.c: Add wcsncmp support.
18763
18764 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18765
18766         [BZ #6792]
18767         * math/w_log1p.c: New file.
18768         * math/w_log1pf.c: Likewise.
18769         * math/w_log1pl.c: Likewise.
18770         * math/Makefile (libm-calls): Add w_log1p.
18771         * math/s_log1pl.c (log1pl): Remove weak_alias.
18772         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18773         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18774         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18775         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18776         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18777         [NO_LONG_DOUBLE] (log1pl): Likewise.
18778         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18779         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18780         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18781         (log1p): Remove long_double_symbol.
18782         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18783         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18784         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18785         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18786         remove weak_alias for corresponding log1p function.
18787         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18788         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18789         * sysdeps/ia64/fpu/w_log1p.c: New file.
18790         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18791         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18792         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18793
18794 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18795
18796         [BZ #18247]
18797         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18798         decimal exponent by 1.
18799         * stdlib/tst-strtod-round-data: Add more tests.
18800         * stdlib/tst-strtod-round.c (tests): Regenerated.
18801
18802 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18803
18804         * math/auto-libm-test-in: Add more tests of clog and clog10.
18805         * math/auto-libm-test-out: Regenerated.
18806         * sysdeps/i386/fpu/libm-test-ulps: Update.
18807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18808
18809 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18810
18811         * Makeconfig (module-cppflags): Exclude all .v.i files.
18812         (skip-module-cppflags): Variable removed.
18813
18814         * configure.ac (libc_config_ok): Initialize before reading
18815         preconfigure scripts, not after.
18816         * configure: Regenerated.
18817
18818         * test-skeleton.c (TIMEOUT): Move #define to top level.
18819         (main): Grok environment variable TEST_DIRECT.  If set, print
18820         test expectation details into that file and then behave as if
18821         given --direct.
18822
18823 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18824
18825         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18826         warning on 32-bit.
18827
18828 2015-04-08  David S. Miller  <davem@davemloft.net>
18829
18830         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18831
18832 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18833
18834         * math/auto-libm-test-in: Add more tests of atanh.
18835         * math/auto-libm-test-out: Regenerated.
18836         * sysdeps/i386/fpu/libm-test-ulps: Update.
18837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18838
18839         * math/auto-libm-test-in: Add more tests of atan.
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-08  Florian Weimer  <fweimer@redhat.com>
18845
18846         * elf/pldd.c (main): Rewrite to use struct
18847         scratch_buffer instead of extend_alloca.
18848         * elf/pldd-xx.c (find_maps): Likewise.
18849         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18850         <alloca.h>.
18851         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18852         scratch_buffer instead of extend_alloca.
18853         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18854         grp/compat-initgroups.c.
18855         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18856         Rewrite to use struct scratch_buffer instead of extend_alloca.
18857         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18858         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18859
18860 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18861
18862         * math/auto-libm-test-in: Add more tests of cbrt.
18863         * math/auto-libm-test-out: Regenerated.
18864         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18865
18866         * math/auto-libm-test-in: Add more tests of cabs.
18867         * math/auto-libm-test-out: Regenerated.
18868         * sysdeps/i386/fpu/libm-test-ulps: Update.
18869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18870
18871         [BZ #18210]
18872         [BZ #18211]
18873         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18874         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18875         computations.
18876         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18877         clog10.
18878         * math/auto-libm-test-out: Regenerated.
18879         * sysdeps/i386/fpu/libm-test-ulps: Update.
18880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18881
18882         [BZ #18197]
18883         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18884         (atan): Set FE_TONEAREST mode for internal computations.
18885         * math/auto-libm-test-in: Add more tests of atan.
18886         * math/auto-libm-test-out: Regenerated.
18887
18888 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18889
18890         [BZ #17930]
18891         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18892
18893 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18894
18895         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18896
18897 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18898
18899         * include/scratch_buffer.h: New file.
18900         * malloc/scratch_buffer_grow.c: Likewise.
18901         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18902         * malloc/scratch_buffer_set_array_size.c: Likewise.
18903         * malloc/tst-scratch_buffer.c: Likewise.
18904         * malloc/Makefile (routines): Add scratch_buffer_grow.
18905         (tests): Add test case.
18906         * malloc/Versions (GLIBC_PRIVATE): Export
18907         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18908         __libc_scratch_buffer_set_array_size.
18909
18910 2015-04-06  Richard Henderson  <rth@redhat.com>
18911
18912         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18913         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18914
18915         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18916         unsigned int before printing.
18917
18918 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18919
18920         [BZ #17596]
18921         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18922         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18923
18924 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18925
18926         * include/libc-internal.h (libc_max_align_t): Define.
18927
18928 2015-04-02  Andreas Schwab  <schwab@suse.de>
18929
18930         [BZ #16850]
18931         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18932
18933 2015-04-02  Mel Gorman  <mgorman@suse.de>
18934
18935         [BZ #17195]
18936         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18937         as well as the main arena.
18938
18939 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18940
18941         [BZ #18185]
18942         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18943         sharing L2 cache to 2 for Silvermont/Knights Landing.
18944
18945 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18946
18947         [BZ #17711]
18948         * config.make.in (have-protected-data): New.
18949         * configure.ac: Check linker support for protected data symbol.
18950         * configure: Regenerated.
18951         * elf/Makefile (modules-names): Add tst-protected1moda and
18952         tst-protected1modb if $(have-protected-data) is yes.
18953         (tests): Add tst-protected1a and tst-protected1b if
18954         $(have-protected-data) is yes.
18955         ($(objpfx)tst-protected1a): New.
18956         ($(objpfx)tst-protected1b): Likewise.
18957         (tst-protected1modb.so-no-z-defs): Likewise.
18958         * elf/tst-protected1a.c: New file.
18959         * elf/tst-protected1b.c: Likewise.
18960         * elf/tst-protected1mod.h: Likewise.
18961         * elf/tst-protected1moda.c: Likewise.
18962         * elf/tst-protected1modb.c: Likewise.
18963
18964 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18965
18966         [BZ #17711]
18967         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18968         indicates it is called from do_lookup_x on relocation against
18969         protected data, skip the data definion in the executable from
18970         copy reloc.
18971         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18972         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18973         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18974         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18975         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18976         otherwise to 0.
18977         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18978         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18979         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18980         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18981         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18982         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18983
18984 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18985
18986         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18987         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18988
18989 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18990
18991         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18992         THREAD_SETMEM_NC.
18993         * sysdeps/x86_64/nptl/tls.h: Ditto.
18994
18995 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18996
18997         * dlfcn/tststatic.c (main): Converted to ...
18998         (do_test): ... this.
18999         (TEST_FUNCTION): New macro.
19000         Include test-skeleton.c.
19001
19002 2015-03-26  Alan Modra  <amodra@gmail.com>
19003
19004         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19005         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19006         zero for undefined weak.
19007         (elf_machine_plt_conflict): Similarly.
19008
19009 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19010
19011         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19012         atanh.
19013         * math/auto-libm-test-out: Regenerated.
19014         * sysdeps/i386/fpu/libm-test-ulps: Update.
19015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19016
19017         * math/auto-libm-test-in: Add another test of asin.
19018         * math/auto-libm-test-out: Regenerated.
19019         * sysdeps/i386/fpu/libm-test-ulps: Update.
19020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19021
19022         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19023         Remove macro.
19024         (LLL_EBX_REG): Likewise.
19025         (LLL_ENTER_KERNEL): Likewise.
19026
19027         * math/auto-libm-test-in: Add more tests of asin.
19028         * math/auto-libm-test-out: Regenerated.
19029         * sysdeps/i386/fpu/libm-test-ulps: Update.
19030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19031
19032         [BZ #18138]
19033         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19034         libc_do_syscall_args): New structure.
19035         (INTERNAL_SYSCALL_MAIN_0): New macro.
19036         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19037         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19038         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19039         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19040         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19041         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19042         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19043         Replace conditional definitions by conditional definitions of ....
19044         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19045         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19046         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19047         (libpthread-sysdep_routines): Add libc-do-syscall.
19048         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19049         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19050         to __NR_futex not 240.
19051
19052 2015-03-25  Alan Modra  <amodra@gmail.com>
19053
19054         * NEWS: Advertise TLS optimization.
19055         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19056         (DT_PPC_NUM): Increment.
19057         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19058         (CHECK_STATIC_TLS): Use here.
19059         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19060         TLS descriptors.
19061         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19062         * sysdeps/powerpc/dl-tls.c: New file.
19063         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19064         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19065         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19066         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19070
19071 2015-03-25  Alan Modra  <amodra@gmail.com>
19072
19073         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19074         for overlapping .opd entries" to "support...".
19075         * sysdeps/powerpc/powerpc64/configure: Regenerate
19076
19077 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19078
19079         * math/auto-libm-test-in: Add more tests of acos.
19080         * math/auto-libm-test-out: Regenerated.
19081         * sysdeps/i386/fpu/libm-test-ulps: Update.
19082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19083
19084         * math/auto-libm-test-in: Add more tests of expm1.
19085         * math/auto-libm-test-out: Regenerated.
19086         * sysdeps/i386/fpu/libm-test-ulps: Update.
19087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19088
19089 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19090
19091         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19092         * math/auto-libm-test-out: Regenerated.
19093         * sysdeps/i386/fpu/libm-test-ulps: Update.
19094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19095
19096         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19098
19099         * math/auto-libm-test-in: Add more tests of log2.
19100         * math/auto-libm-test-out: Regenerated.
19101         * sysdeps/i386/fpu/libm-test-ulps: Update.
19102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19103
19104 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19105
19106         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19107         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19108         _IO_IS_APPENDING bit in READ_WRITE instead.
19109
19110 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19111
19112         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19113         (__determine_cpumask_size): Replace extend_alloca with a
19114         variable-length array.  Do not treat res == 0 as an error.
19115
19116 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19117
19118         [BZ #18100]
19119         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19120         and integer overflow.
19121         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19122         (main): Add integer overflow tests.
19123         * manual/pattern.texi (Calling Wordexp): Document additional use
19124         for WRDE_SYNTAX.
19125
19126 2015-03-23  Alan Modra  <amodra@gmail.com>
19127
19128         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19129         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19130         and false branch of conditional.
19131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19132         Likewise.
19133
19134 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19135
19136         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19137         libc-modules.h
19138         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19139         unused declaration of _hurd_intr_rpc_msg_in_trap.
19140         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19141         defined instead of whether it is non-zero.
19142         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19143         input constraint instead of both input and output constraint.  Use ecx
19144         clobber instead of %ecx.
19145         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19146         mutex_unlock): Use a statement expression instead of an expression list.
19147         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19148         type to vm_size_t instead of vm_address_t.
19149         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19150         defined instead of whether it is non-zero.
19151         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19152         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19153         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19154         comparisons with mapaddr.
19155         * nscd/nscd-client.h: Include <time.h>.
19156         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19157         9th parameter to __vm_region instead of int.
19158         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19159         * scripts/check-local-headers.sh (exclude): Add device/,
19160         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19161         cthreads.h.
19162
19163 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19164
19165         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19166         to account for alignment padding.
19167         * sysdeps/arm/memmove.S: Likewise.
19168
19169 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19170
19171         * sysdeps/unix/sysv/linux/generic/README: New file.
19172
19173 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19174
19175         [BZ #18138]
19176         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19177         (futex_abstimed_wait)
19178         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19179         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19180         of lll_futex_timed_wait.
19181
19182 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19183
19184         [BZ #17542]
19185         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19186
19187 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19188
19189         [BZ #17090]
19190         [BZ #17620]
19191         [BZ #17621]
19192         [BZ #17628]
19193         * NEWS: Update.
19194         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19195         entries with Static TLS too.  Skip entries past the end of the
19196         allocated DTV, from Alan Modra.
19197         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19198         Static TLS DTV entry set up from...
19199         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19200         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19201         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19202         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19203         for Static TLS.
19204         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19205         that the slot we find is associated with the given map before
19206         using its generation count.
19207         * nptl_db/db_info.c: Include ldsodefs.h.
19208         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19209         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19210         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19211         (link_map::l_tls_offset): New struct field.
19212         (dtv_t::counter): Likewise.
19213         (rtld_global): New struct.
19214         (_rtld_global): New rtld variable.
19215         (dl_tls_dtv_slotinfo_list): New rtld global field.
19216         (dtv_slotinfo_list): New struct.
19217         (dtv_slotinfo): Likewise.
19218         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19219         (td_lookup): Rename to...
19220         (td_mod_lookup): ... this.  Use new mod parameter instead of
19221         LIBPTHREAD_SO.
19222         * nptl_db/td_thr_tlsbase.c: Include link.h.
19223         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19224         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19225         addresses even if the DTV is out of date or missing them.
19226         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19227         index zero-length arrays.
19228         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19229         (td_lookup): Make it a macro implemented in terms of...
19230         (td_mod_lookup): ... this declaration.
19231         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19232         (DB_MAIN_VARIABLE): Likewise.
19233
19234 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19235
19236         [BZ #18134]
19237         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19238
19239 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19240
19241         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19242
19243 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19244
19245         [BZ #18128]
19246         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19247         (atomic_add, atomic_increment_and_test)
19248         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19249
19250 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19251
19252         * stdlib/setenv.c (__add_to_environ):
19253         Dump core quickly if setenv (..., NULL, ...) is called.
19254
19255 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19256
19257         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19258         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19259         all the necessary asm magic in one place.
19260         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19261         using those.
19262
19263 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19264
19265         [BZ #14906]
19266         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19267         traced file mtime. Use consistent log message.
19268         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19269         (register_traced_file): Call install_watches. Always set mtime.
19270         (invalidate_cache): Iterate over all trace files. Call install_watches.
19271         (inotify_check_files): Don't inline. Handle watching parent
19272         directories and configuration file movement in and out.
19273         (handle_inotify_events): New function.
19274         (main_loop_poll): Call handle_inotify_events.
19275         (main_loop_epoll): Likewise.
19276         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19277         (struct traced_file): Use array of inotify fds. Add parent directory,
19278         and basename.
19279         (struct database_dyn): Remove unused file_mtime.
19280         (init_traced_file): New inline function.
19281         (define_traced_file): New macro.
19282         * nss/nss_db/db-init.c: Use define_traced_file.
19283         (_nss_db_init): Use init_traced_file.
19284         * nss/nss_files/files-init.c: Use define_traced_file.
19285         (_nss_files_init): Use init_traced_file.
19286
19287 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19288
19289         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19290         [_LIBC]: Do not include <stdlib.h>.
19291         [!_LIBC] (abort): Remove declaration.
19292         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19293         _FP_STATIC_ASSERT instead of conditionally calling abort.
19294         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19295         (_FP_EXTEND_CNAN): Likewise.
19296         (FP_TRUNC): Likewise.
19297         (__FP_CLZ): Likewise.
19298         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19299
19300 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19301
19302         * manual/string.texi (XPG basename): Fix prototype.
19303
19304 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19305
19306         [BZ #18080]
19307         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19308         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19309         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19310         (__setcontext): Likewise.
19311         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19312         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19313         Call rt_sigprocmask syscall one time to set new signal mask
19314         and retrieve the current signal mask instead of two calls.
19315         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19316         (__swapcontext): Likewise.
19317         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19318         * stdlib/tst-setcontext2.c: New file.
19319
19320 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19321
19322         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19323
19324 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19325
19326         [BZ #18093]
19327         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19328         the wrong size.
19329
19330 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19331
19332         [BZ #18043]
19333         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19334
19335 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19336
19337         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19338         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19339         Remove define.
19340         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19341         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19342         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19343         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19344         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19345         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19346         define.
19347         * nptl_db/td_symbol_list.c (td_lookup): Remove
19348         HAVE_ASM_GLOBAL_DOT_NAME code.
19349         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19350         HAVE_ASM_GLOBAL_DOT_NAME check.
19351         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19352         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19353         (DOT_LABEL): Remove define.
19354         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19355         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19356         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19357         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19358         (__TLS_GET_ADDR): Likewise.
19359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19360         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19361
19362 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19363
19364         [BZ #18111]
19365         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19366         (_FPU_SETCW): Initialize cw from fpsr before storing.
19367         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19368         (fesetexceptflag): Rewrite using fpu_control.h.
19369         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19370
19371 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19372
19373         [BZ #18110]
19374         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19375         asms.
19376         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19377
19378 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19379
19380         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19381         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19382         abort.
19383         (_FP_FMA): Likewise.
19384         (_FP_DIV): Likewise.
19385
19386 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19387
19388         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19389         with 0 in that case.
19390         * Makefile (summarize-tests): New canned sequence, factored out of
19391         commands for targets tests and xtests.  Display summary lines that
19392         don't start with PASS: or XFAIL: rather than ones that do start with
19393         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19394         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19395         do start with ERROR: or FAIL:.
19396         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19397         (except for [$(build-shared) = yes]).
19398         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19399         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19400         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19401         * nptl/Makefile: Revert 2015-03-04 changes.
19402         [$(CXX) empty] (tests-unsupported): New variable.
19403         * debug/Makefile: Likewise.
19404
19405         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19406         gnulib file.  Replace __attribute with __attribute__ throughout.
19407
19408 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19409
19410         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19411
19412 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19413
19414         [BZ #18104]
19415         * math/auto-libm-test-in: Add another test of pow.
19416         * math/auto-libm-test-out: Regenerated.
19417
19418 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19419
19420         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19421         $(config-cflags-nofma).
19422
19423 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19424
19425         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19426         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19427         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19428         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19429         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19430         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19431         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19432         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19433         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19434         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19435         Add comment on closing #endif.
19436
19437 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19438
19439         * posix/wordexp.c (CHAR_IN_SET): New macro.
19440         (parse_param): Use it.
19441
19442 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19443
19444         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19445
19446 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19447
19448         [BZ #18043]
19449         * posix/wordexp.c (parse_param): Fix buffer overflow.
19450         * posix/wordexp-test.c (test_case): Add test case.
19451
19452 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19453
19454         [BZ #18042]
19455         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19456         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19457
19458 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19459
19460         [BZ #18043]
19461         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19462         (do_bz18043): Delete.
19463         (at_page_end): New.
19464         (testit): Refactor to have words at the edge of unreadable page.
19465
19466 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19467
19468         [BZ #16734]
19469         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19470         Cleanup read-only streams as well.
19471         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19472
19473 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19474
19475         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19476         <bits/libc-lockP.h>
19477
19478 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19479
19480         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19481         on [__KERNEL__].
19482         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19483         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19484         * soft-fp/op-common.h (_FP_DECL): Likewise.
19485
19486 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19487
19488         * elf/ifuncdep2.c (global): Replace
19489         __attribute__((visibility("protected"))) with
19490         asm (".protected global").
19491         * elf/ifuncmod1.c (global): Likewise.
19492         * elf/ifuncmod5.c (global): Likewise.
19493
19494 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19495
19496         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19497         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19498
19499 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19500
19501         * manual/install.texi (Configuring and compiling):
19502         Document test-wrapper-env-only.
19503         * INSTALL: Regenerated.
19504
19505 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19506
19507         [BZ #18043]
19508         * posix/wordexp.c (parse_param): Fix buffer overflow.
19509         * posix/wordexp-test.c (do_bz18043): Add test case.
19510
19511 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19512
19513         * time/tst-strptime2.c (do_test): Ensure failing tests are
19514         reported correctly.
19515         * time/tst-strptime3.c (do_test): Likewise.
19516
19517 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19518
19519         Fix aio_error thread-safety.
19520         * sysdeps/pthread/aio_error.c: New file
19521         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19522         synchronization.
19523
19524 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19525
19526         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19527         (group_number, vfprintf): Use it.
19528         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19529         (JUMP, REF): Use it.
19530         (WORK_BUFFER_SIZE): New enum constant.
19531         (process_arg, vfprintf): Use it.
19532
19533 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19534
19535         * manual/errno.texi (Error Messages): Complete example function
19536         by adding missing #define.
19537         (program_invocation_name): Add statement indicating GNU
19538         extension and reference which header file declares the variable.
19539         (program_invocation_short_name): Likewise.
19540
19541 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19542
19543         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19544         compatibility note.
19545
19546 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19547
19548         * Makeconfig (test-wrapper-env-only): New variable.
19549         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19550         then use that with $(test-wrapper-env-only) rather than using
19551         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19552
19553 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19554
19555         [BZ #18082]
19556         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19557         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19558         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19559         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19560         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19561         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19562         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19563         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19564         Likewise.
19565         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19566         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19567         Likewise.
19568         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19569         Likewise.
19570         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19571         Likewise.
19572         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19573         Likewise.
19574         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19575         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19576         Likewise.
19577         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19578         Likewise.
19579         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19580         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19581
19582 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19583
19584         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19585         (ETH_ALEN): New macro.
19586         (struct ether_addr): Use it for length of ether_addr_octet.
19587
19588         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19589         (setdb): Don't call __nss_configure_lookup for "rpc".
19590         (do_test): Don't call test_rpc.
19591         (output_rpcent, test_rpc): Functions moved ...
19592         * sunrpc/test-rpcent.c: ... to this new file.
19593         * sunrpc/Makefile (tests): Add it.
19594
19595         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19596         __xpg_sigpause.
19597         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19598         * nptl/tst-signal6.c: Likewise.
19599         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19600         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19601
19602         * configure.ac (libc_cv_cxx_link_ok): New check.
19603         Reset CXX to empty if it fails to link.
19604         * configure: Regenerated.
19605         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19606         bug-atexit3-lib only if $(CXX) is nonempty.
19607         * nptl/Makefile (tests): Likewise for tst-cancel24.
19608         (tests, tests-static): Likewise for tst-cancel24-static.
19609         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19610         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19611         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19612         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19613
19614 2015-03-04  Andreas Schwab  <schwab@suse.de>
19615
19616         [BZ #17631]
19617         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19618         for non-GCC compilers.
19619         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19620         Likewise.
19621
19622 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19623
19624         [BZ #17776]
19625         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19626         integer before bitwise and assembly operations.
19627         (feclearexcept): Likewise.
19628         * math/test-fenvinline.c: New file.
19629         * math/Makefile: Add test-fenvinline test.
19630
19631 2015-03-03  Alan Modra  <amodra@gmail.com>
19632
19633         [BZ #16512]
19634         * scripts/localplt.awk: Strip off symbol version.
19635         * NEWS: Mention bug fix.
19636
19637 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19638
19639         * sysdeps/pthread/timer_routines.c
19640         (timer_free_list, thread_free_list, thread_active_list): Make static.
19641
19642 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19643
19644         [BZ #17779]
19645         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19646         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19647         Undefine.
19648         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19649         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19650         Likewise.
19651         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19652         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19653         Likewise.
19654
19655 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19656
19657         [BZ #18036]
19658         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19659         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19660
19661 2015-03-02  Andreas Schwab  <schwab@suse.de>
19662
19663         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19664         variable name.
19665
19666 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19667
19668         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19669         Return error status.
19670
19671 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19672
19673         [BZ #15969]
19674         * locale/findlocale.c (_nl_find_locale): Introduce const
19675         version of loc_name and drop unsafe type casts.
19676
19677 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19678
19679         * dlfcn/tststatic2.c (main): Converted to ...
19680         (do_test): ... this.
19681         (TEST_FUNCTION): New macro.
19682         Include test-skeleton.c.
19683
19684 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19685
19686         [BZ #17711]
19687         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19688         (tests-pie): Add vismain.
19689         (CFLAGS-vismain.c): New.
19690         * elf/vismain.c: Add comments for PIE requirement.
19691
19692 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19693
19694         [BZ #18046]
19695         [BZ #18047]
19696         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19697         0x1p-56L as threshold for just returning the argument.
19698         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19699         0x1p-32L as threshold for just returning the argument.
19700         * math/auto-libm-test-in: Add more tests of atanh.
19701         * math/auto-libm-test-out: Regenerated.
19702         * sysdeps/i386/fpu/libm-test-ulps: Update.
19703         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19704
19705 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19706
19707         * string/bcopy.c (bcopy): Call memmove for performance.
19708
19709 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19710
19711         * string/bzero.c (__bzero): Call memset for performance.
19712
19713 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19714
19715         [BZ #18068]
19716         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19717         to 00100000.
19718
19719 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19720
19721         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19722
19723 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19724
19725         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19726         (__kernel_standard): Use CSTR macro when setting exc.name.
19727         * sysdeps/ieee754/Makefile [$(subdir) = math]
19728         (CFLAGS-k_standard.c): Remove variable.
19729
19730         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19731         setting p and q from "else if" to "else".
19732         (qzero): Likewise.
19733         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19734         (qone): Likewise.
19735         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19736         (qzerof): Likewise.
19737         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19738         (qonef): Likewise.
19739         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19740         (qzero): Likewise.
19741         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19742         (qone): Likewise.
19743
19744         [BZ #18038]
19745         [BZ #18039]
19746         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19747         return pi/2 for arguments below 0x1p-113L.
19748         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19749         return pi/2 for arguments below 0x1p-106L.
19750         * math/auto-libm-test-in: Add more tests of acos.
19751         * math/auto-libm-test-out: Regenerated.
19752
19753         [BZ #16351]
19754         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19755         (MO): New macro.
19756         (__ieee754_asin): Force underflow exception for results with small
19757         absolute value.
19758         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19759         (MO): New macro.
19760         (__ieee754_asinf): Force underflow exception for results with
19761         small absolute value.
19762         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19763         (__ieee754_asin): Force underflow exception for results with small
19764         absolute value.
19765         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19766         (__ieee754_asinf): Force underflow exception for results with
19767         small absolute value.
19768         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19769         (__ieee754_asinl): Force underflow exception for results with
19770         small absolute value.
19771         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19772         (__ieee754_asinl): Force underflow exception for results with
19773         small absolute value.
19774         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19775         (__ieee754_asinl): Force underflow exception for results with
19776         small absolute value.
19777         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19778         Include <math.h>.
19779         * math/auto-libm-test-in: Do not mark underflow exceptions as
19780         possibly missing for bug 16351.
19781         * math/auto-libm-test-out: Regenerated.
19782
19783         [BZ #18030]
19784         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19785         of power of 2 down when low part has opposite sign.
19786         * math/libm-test.inc (logb_test_data): Add more tests.
19787
19788 2015-02-26  Andreas Schwab  <schwab@suse.de>
19789
19790         [BZ #18032]
19791         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19792         over collating symbol inside a bracket expression.  Minor cleanup.
19793         * posix/tst-fnmatch3.c (do_test): Add test case.
19794
19795 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19796
19797         [BZ #18029]
19798         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19799         Adjust exponent of power of 2 down when low part has opposite
19800         sign.
19801         * math/libm-test.inc (ilogb_test_data): Add more tests.
19802
19803 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19804
19805         [BZ #15969]
19806         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19807         the previous change.
19808
19809         [BZ #15969]
19810         * locale/findlocale.c (_nl_find_locale): Retry archive search
19811         after alias expansion.
19812
19813 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19814
19815         * iconv/tst-iconv3.c (main): Converted to ...
19816         (do_test): ... this.
19817         (TEST_FUNCTION): New macro.
19818         Include test-skeleton.c.
19819
19820         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19821         (convert): Make function static.
19822         (test_unalign): Likewise.  Add const to argument pointee types.
19823         (main): Replace with static function do_test.
19824         Print "Succeeded." only if RET is zero.
19825         (TEST_FUNCTION): New macro.
19826         Include test-skeleton.c.
19827
19828         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19829         returns a null pointer.
19830
19831 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19832
19833         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19834         to __memcpy_ppc only for static builds.
19835
19836 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19837
19838         [BZ #18020]
19839         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19840         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19841         * math/auto-libm-test-in: Add more tests of asinh.
19842         * math/auto-libm-test-out: Regenerated.
19843         * sysdeps/i386/fpu/libm-test-ulps: Update.
19844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19845
19846 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19847
19848         [BZ #15850]
19849         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19850         and ip6_mtuinfo definitions here.
19851         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19852         in this define too.  Update comment.
19853
19854 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19855
19856         * elf/sprof.c (load_shobj): Tweak error message to match others.
19857
19858 2015-02-24  Kevin Easton  <kevin@guarana.org>
19859
19860         [BZ #16145] (partial fix)
19861         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19862         to reduce lock contention.
19863
19864 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19865
19866         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19867         (struct timex): Update time comment.
19868         (ADJ_SETOFFSET): Define.
19869
19870 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19871
19872         [BZ #18019]
19873         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19874         2**56 not 2**28 as threshold for log (2x) formula.
19875         * math/auto-libm-test-in: Add more tests of acosh.
19876         * math/auto-libm-test-out: Regenerated.
19877         * sysdeps/i386/fpu/libm-test-ulps: Update.
19878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19879
19880 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19881
19882         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19883         parenthesis around the buf assignment.
19884         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19885
19886 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19887
19888         [BZ #16783]
19889         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19890         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19891         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19892         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19893         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19894         * math/libm-test.inc (scalb_test_data): Add more tests.
19895
19896 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19897
19898         [BZ #17916]
19899         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19900         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19901
19902 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19903
19904         [BZ #17523]
19905         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19906         * io/bits/fcntl2.h (open): Use it.
19907         (openat): Likewise.
19908         * io/open.c (__libc_open): Likewise.
19909         * io/open64.c (__libc_open64): Likewise.
19910         * io/open64_2.c (__open64_2): Likewise.
19911         * io/open_2.c (__open_2): Likewise.
19912         * io/openat.c (__openat): Likewise.
19913         * io/openat64.c (__openat64): Likewise.
19914         * io/openat64_2.c (__openat64_2): Likewise.
19915         * io/openat_2.c (__openat_2): Likewise.
19916         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19917         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19918         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19919         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19920         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19921         (__open_nocancel): Likewise.
19922         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19923         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19924         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19925
19926 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19927
19928         [BZ #14841]
19929         * resolv/gethnamaddr.c (getanswer): Skip logging if
19930         RES_USE_DNSSEC is set.
19931         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19932
19933 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19934
19935         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19936
19937 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19938
19939         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19940         201304L, for Unicode 7.
19941
19942 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19943
19944         [BZ #17836]
19945         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19946         shared library.  Add gmon-start.os otherwise.
19947         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19948         $(objpfx)gmon-start.os if builing shared library.
19949         ($(objpfx)g$(static-start-installed-name)): Likewise.
19950
19951 2015-02-23  Andreas Schwab  <schwab@suse.de>
19952
19953         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19954
19955 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19956
19957         [BZ #17269]
19958         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19959         (enlarge_userbuf): Likewise.
19960
19961 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19962
19963         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19964         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19965         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19966         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19967
19968 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19969
19970         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19971         expression inside statement expression.
19972
19973 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19974
19975         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19976         <sysdeps/nptl/lowlevellock.h> and remove macros and
19977         functions that are now defined there.
19978         (SYS_futex): Remove.
19979         (lll_compare_and_swap): Remove.
19980         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19981
19982 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19983
19984         [BZ #17999]
19985         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19986         instead of scandirat.
19987         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19988         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19989         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19990         __scandirat.
19991         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19992         (__scandirat): Declare.  Use libc_hidden_proto.
19993         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19994         Remove variable.
19995         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19996
19997 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19998
19999         [BZ #15319]
20000         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20001         (MO): New macro.
20002         (__ieee754_atan2): For results with small absolute value, force
20003         underflow exception and remove excess range and precision from
20004         return value.
20005         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20006         (MO): New macro.
20007         (__ieee754_atan2f): For results with small absolute value, force
20008         underflow exception and remove excess range and precision from
20009         return value.
20010         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20011         (MO): New macro.
20012         (__atan): For results with small absolute value, force underflow
20013         exception and remove excess range and precision from return value.
20014         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20015         (MO): New macro.
20016         (__atanf): For results with small absolute value, force underflow
20017         exception and remove excess range and precision from return value.
20018         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20019         <math.h>.
20020         (__ieee754_atan2): Force underflow exception for results with
20021         small absolute value.
20022         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20023         <math_private.h>.
20024         (atan): Force underflow exception for results with small absolute
20025         value.
20026         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20027         (__atanf): Force underflow exception for results with small
20028         absolute value.
20029         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20030         <math.h>.
20031         (__atanl): Force underflow exception for results with small
20032         absolute value.
20033         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20034         (__atanl): Force underflow exception for results with small
20035         absolute value.
20036         * sysdeps/x86/fpu/bits/mathinline.h
20037         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20038         (__ieee754_atan2): Only define inline for long double.
20039         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20040         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20041         * math/auto-libm-test-in: Do not mark underflow exceptions as
20042         possibly missing for bug 15319.  Add more tests of atan2.
20043         * math/auto-libm-test-out: Regenerated.
20044         * math/libm-test.inc (casin_test_data): Do not mark underflow
20045         exceptions as possibly missing for bug 15319.
20046         (casinh_test_data): Likewise.
20047         * sysdeps/i386/fpu/libm-test-ulps: Update.
20048
20049 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20050
20051         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20052         * sysdeps/mips/bits/endian.h: Fix comments.
20053
20054 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20055
20056         [BZ #17996]
20057         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20058         (hdestroy_r): Likewise.
20059         (hsearch_r): Likewise.
20060         (__hcreate_r): Declare and use libc_hidden_proto.
20061         (__hdestroy_r): Likewise.
20062         (__hsearch_r): Likewise.
20063         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20064         (hcreate): Call __hcreate_r instead of hcreate_r.
20065         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20066         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20067         as weak alias of __hcreate_r.
20068         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20069         __hdestroy_r.
20070         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20071         __hsearch_r.
20072         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20073         Remove variable.
20074         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20075         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20076         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20077         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20078
20079 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20080
20081         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20082         arena_lock into a single arena_get.
20083
20084 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20085
20086         * dl-reloc.c: Inlucde libc-internal.h.
20087         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20088         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20089         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20090         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20091         (grow_heap): Likewise.
20092         * malloc/malloc.c: Include libc-internal.h.
20093         (do_check_malloc): Call powerof2.
20094         (sysmalloc): Use pagesize. Call ALIGN_UP.
20095         (systrim): Use pagesize.
20096         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20097         (__libc_valloc): Use pagesize.
20098         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20099
20100 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20101
20102         [BZ #17991]
20103         * include/sys/resource.h (__getrlimit64): Declare.  Use
20104         libc_hidden_proto.
20105         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20106         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20107         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20108         getrlimit64.
20109         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20110         __getrlimit64.
20111         [!getrlimit64] (getrlimit64): Define as weak alias of
20112         __getrlimit64.  Use libc_hidden_weak.
20113         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20114         using __getrlimit64 not __new_getrlimit64.
20115         (__GI_getrlimit64): Likewise.
20116         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20117         Likewise.
20118         (__GI_getrlimit64): Likewise.
20119         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20121         (getrlimit): Add __getrlimit64 alias.
20122         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20123         Likewise.
20124         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20125         Remove variable.
20126         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20127         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20128
20129 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20130
20131         * libio/fileops.c: Add missing sys/mman.h
20132         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20133
20134 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20135
20136         * manual/math.texi (Errors in Math Functions): Clarify goals
20137         regarding inexact and underflow exceptions.
20138
20139 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20140
20141         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20142         * sysdeps/mips/memset.S: Ditto.
20143
20144 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20145
20146         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20147
20148 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20149
20150         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20151         (__v1longjmp): Remove versioned symbol.
20152         (__v1siglongjmp): Remove alias and versioned symbol.
20153         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20154         (__v2siglongjmp): Likewise.
20155
20156 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20157
20158         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20159
20160 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20161
20162         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20163
20164 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20165
20166         [BZ #17987]
20167         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20168         zero result does not depend on the sign resulting from
20169         subtraction.
20170         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20171         Likewise.
20172         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20173         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20174         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20175         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20176         * math/libm-test.inc (remquo_test_data): Add more tests.
20177
20178 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20179
20180         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20181         Problem reported by J William Piggott.
20182
20183 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20184
20185         [BZ #17978]
20186         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20187         products 4 * y and 2 * y where those would overflow.
20188         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20189         Likewise.
20190         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20191         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20192         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20193         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20194         * math/libm-test.inc (remquo_test_data): Add more tests.
20195
20196         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20197
20198         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20199         [defined _COMPILING_NEWLIB].
20200         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20201         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20202
20203         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20204         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20205
20206 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20207
20208         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20209         acquired.
20210
20211 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20212
20213         [BZ #17792]
20214         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20215         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20216         HOST_STACK_END_ADDR): Likewise.
20217
20218 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20219
20220         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20221         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20222         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20223
20224 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20225
20226         * sysdeps/generic/c++-types.data: New file.
20227         * sysdeps/generic/ld.abilist: New file.
20228         * sysdeps/generic/libBrokenLocale.abilist: New file.
20229         * sysdeps/generic/libanl.abilist: New file.
20230         * sysdeps/generic/libc.abilist: New file.
20231         * sysdeps/generic/libcrypt.abilist: New file.
20232         * sysdeps/generic/libdl.abilist: New file.
20233         * sysdeps/generic/libm.abilist: New file.
20234         * sysdeps/generic/libpthread.abilist: New file.
20235         * sysdeps/generic/libresolv.abilist: New file.
20236         * sysdeps/generic/librt.abilist: New file.
20237
20238 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20239
20240         [BZ #17569]
20241         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20242         Compute absolute value of x as modified by fmod, not original
20243         value of x.
20244         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20245         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20246         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20247         RUN_TEST_ffI_f1_mod8.
20248         (remquo_test_data): Add more tests.
20249
20250 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20251
20252         * sysdeps/init_array/pt-crti.S: New file.
20253
20254 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20255
20256         [BZ #17967]
20257         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20258         __builtin_fmaf instead of relying on contraction of a * b + c.
20259
20260 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20261
20262         [BZ #17969]
20263         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20264         node.
20265
20266 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20267
20268         [BZ #17964]
20269         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20270         __builtin_fma instead of relying on contraction of a * b + c.
20271
20272 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20273
20274         * Makeconfig (ASFLAGS): Add -Werror=undef.
20275         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20276         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20277         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20278
20279         * Makeconfig (after-link): New variable.
20280         (+link-pie, +link-pie-tests): Use it.
20281         (+link-static, +link-static-tests): Likewise.
20282         (+link, +link-tests): Likewise.
20283         * Makerules (build-module, build-module-asneeded): Likewise.
20284         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20285         Likewise.
20286         * elf/Makefile ($(objpfx)ld.so): Likewise.
20287
20288 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20289
20290         [BZ #17965]
20291         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20292         both struct timeval and struct timespec.
20293
20294 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20295
20296         [BZ #16560]
20297         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20298         and redefine.
20299         (__ieee754_exp2l): Do not multiply small fractional parts by
20300         M_LN2l.
20301         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20302         small argument.
20303         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20304         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20305         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20306         * math/auto-libm-test-in: Add more tests of exp2.
20307         * math/auto-libm-test-out: Regenerated.
20308
20309 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20310
20311         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20312         unaligned path.
20313
20314 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20315
20316         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20317         little endian.
20318
20319 2015-02-12  Andreas Schwab  <schwab@suse.de>
20320
20321         [BZ #15790]
20322         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20323         Filter out elision flags from value returned in kind.
20324         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20325         * nptl/tst-pthread-mutexattr.c: New file.
20326
20327 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20328
20329         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20330         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20331         into gnu-gnu, and update comment to refer to abi-tags.
20332
20333 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20334
20335         [BZ #15467]
20336         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20337         (__sincos): Set errno to EDOM for infinite argument.
20338         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20339         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20340         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20341         (__sincosl): Set errno to EDOM for infinite argument.
20342         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20343         (__sincosl): Set errno to EDOM for infinite argument.
20344         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20345         (__sincosl): Set errno to EDOM for infinite argument.
20346         * math/libm-test.inc (sincos_test_data): Test errno setting.
20347
20348 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20349
20350         * string/strxfrm_l.c: Remove #define STRCMP.
20351         * string/strcoll_l.c: Remove #define STRLEN.
20352         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20353         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20354
20355 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20356
20357         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20358         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20359         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20360         * sysdeps/mips/mips64/Makefile: ... here.
20361         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20362         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20363         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20364         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20365         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20366         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20367         * sysdeps/mips/mips64/n64/Implies: Likewise.
20368
20369 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20370
20371         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20372         <sys/time.h>, <string.h>, and <errno.h>.
20373         (dest_offset, dest_address, value, zero): Remove unused variables.
20374         (ldouble): Remove typedef.
20375         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20376         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20377         1).  Fix code style.
20378         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20379         (check): Function removed.
20380         (CHECK): New macro.
20381         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20382         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20383         Don't call set_sigaction_FP and remove_sigaction_FP here.
20384         (ldouble_test): Just use 'long double' as macro argument, no need for
20385         the 'ldouble' typedef.
20386         (do_test): Set up SIGFPE handler at start, using plain signal rather
20387         than sigaction.  Fix code style.
20388
20389 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20390
20391         [BZ #17949]
20392         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20393         jump label.
20394
20395 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20396
20397         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20398         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20399
20400         * sysdeps/powerpc/configure.ac: Remove file.
20401         * sysdeps/powerpc/configure: Likewise.
20402
20403         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20404         [sysdep_routines]: Remove wordcopy-power6 object.
20405         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20406         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20407         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20408         (__memmove_ppc32): Likewise.
20409         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20410         file.
20411         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20412         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20413         Remove preprocessor.
20414
20415         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20416         [sysdep_routines]: Remove wide chars objects.
20417         [wcsmbs]: New rule for wide char objects.
20418
20419         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20420         Remove wordcopy-power6 obejct.
20421         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20422         Use local call for wordcopy and memcpy symbols.
20423         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20424         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20425         implementation for loader.
20426         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20427
20428         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20429         Remove wordcopy-power7 object.
20430         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20431         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20432         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20433         (_wordcopy_fwd_dest_aligned): Likewise.
20434         (_wordcopy_bwd_aligned): Likewise.
20435         (_wordcopy_bwd_dest_aligned): Likewise.
20436
20437         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20438         Rewrite to call __memmove_ppc instead of include default
20439         implementation.
20440
20441         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20442         Remove wide chars objects.
20443         [wcsmbs]: New rule for wide char objects.
20444
20445 2015-02-09  Andreas Schwab  <schwab@suse.de>
20446
20447         [BZ #17912]
20448         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20449         in terms of __O_DIRECTORY.
20450
20451 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20452
20453         * time/getdate.c: Include <stdbool.h>.
20454         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20455         call PTR_MANGLE.
20456         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20457         PTR_DEMANGLE.
20458
20459 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20460
20461         Add ersatz _Static_assert on older C hosts
20462         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20463         pre-C11 C platform that is not known to support _Static_assert.
20464
20465 2015-02-07  Richard Braun  <rbraun@sceen.net>
20466
20467         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20468         sigstate.
20469         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20470
20471 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20472
20473         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20474         priority against unexistent AIO_PRIO_DELTA_MAX.
20475         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20476         instead of int.
20477         * misc/fchflags.c (fchflags): Likewise.
20478         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20479         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20480         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20481         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20482         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20483         Declare macros.
20484         [__USE_MISC] (chflags, fchflags): Declare functions.
20485         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20486         EINVAL when nfds is greater than FD_SETSIZE.
20487         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20488         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20489         45.
20490         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20491         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20492         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20493         MACH_RCV_TIMED_OUT.
20494         * hurd/hurd/signal.h (_hurd_self_sigstate,
20495         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20496         Explicit casts from void *.
20497         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20498         * abi-tags: Rename gnu-gnu os into gnu.
20499
20500         [BZ #4719]
20501         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20502         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20503         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20504         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20505         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20506         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20507
20508         [BZ #17944]
20509         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20510         duplicates ADDR->sun_path with sockaddr LEN limitation.
20511         * sysdeps/mach/hurd/connect.c: Include <string.h>
20512         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20513         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20514         * sysdeps/mach/hurd/sendto.c: Likewise.
20515         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20516         implementing it by hand.
20517
20518 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20519
20520         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20521         Use sfi_breg on ldr.
20522         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20523         Likewise.
20524
20525         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20526         it's defined.
20527         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20528         Test SIGSETXID only if it's defined.
20529
20530         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20531
20532         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20533         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20534
20535         * nptl/tst-align2.c: Moved ...
20536         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20537         * nptl/Makefile (tests): Remove tst-align2.
20538         * sysdeps/unix/sysv/linux/Makefile
20539         [$(subdir) = nptl] (tests): Add tst-align-clone.
20540         * nptl/tst-getpid1.c: Moved ...
20541         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20542         * nptl/tst-getpid2.c: Moved ...
20543         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20544         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20545         * sysdeps/unix/sysv/linux/Makefile
20546         [$(subdir) = nptl] (tests): ... here.
20547         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20548         * sysdeps/unix/sysv/linux/Makefile
20549         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20550
20551         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20552         Drop trailing \n from perror argument.  Use return rather than exit.
20553
20554         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20555         on [SA_SIGINFO].
20556         * nptl/tst-cancel21.c (do_test): Likewise.
20557         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20558         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20559         [!SA_SIGINFO]: Make it a stub test.
20560
20561         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20562         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20563
20564         * posix/tst-getlogin.c: Move to ...
20565         * login/tst-getlogin.c: ... here.
20566         * posix/Makefile (tests): Move tst-getlogin to ...
20567         * login/Makefile (tests): ... here.
20568
20569         * libio/tst-atime.c (do_test): Move local variables SV and E
20570         inside [ST_NOATIME] conditional.
20571
20572         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20573
20574         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20575
20576         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20577         (wait_code): New function replaces macro.
20578         Call nanosleep rather than syscall.
20579
20580         * nptl/pt-system.c: Rewritten.  Put everything under
20581         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20582         Use IFUNC to redirect when possible.
20583
20584         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20585         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20586         Use IFUNC to redirect when possible.
20587
20588         * nptl/pt-fork.c: Rewritten.  Put everything under
20589         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20590         Use IFUNC to redirect when possible.
20591         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20592
20593         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20594         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20595         unconditionally nowadays.  This included the only reference to
20596         __vdso_clock_gettime that appears outside libc proper.
20597         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20598         Remove version set (containing only __vdso_clock_gettime).
20599         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20600         Add attribute_hidden.
20601         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20602         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20603         libc_hidden_data_def.
20604         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20605         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20606
20607         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20608         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20609         setrpcent, and getrpcport to ...
20610         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20611         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20612         getrpcbynumber_r, and getrpcent_r to ...
20613         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20614         * inet/getrpcbyname.c: Moved ...
20615         * sunrpc/getrpcbyname.c: ... here.
20616         * inet/getrpcbyname_r.c: Moved ...
20617         * sunrpc/getrpcbyname_r.c: ... here.
20618         * inet/getrpcbynumber.c: Moved ...
20619         * sunrpc/getrpcbynumber.c: ... here.
20620         * inet/getrpcbynumber_r.c: Moved ...
20621         * sunrpc/getrpcbynumber_r.c: ... here.
20622         * inet/getrpcent.c: Moved ...
20623         * sunrpc/getrpcent.c: ... here.
20624         * inet/getrpcent_r.c: Moved ...
20625         * sunrpc/getrpcent_r.c: ... here.
20626         * inet/Makefile (routines): Move those to ...
20627         * sunrpc/Makefile (routines): ... here.
20628         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20629         the $(subdirs) list.
20630         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20631         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20632         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20633         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20634
20635         * elf/Makefile (routines): Include $(all-dl-routines), not just
20636         $(dl-routines).
20637         (rtld-routines): Likewise.  Use = rather than :=.
20638         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20639         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20640         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20641         * sysdeps/arm/Makefile: Likewise.
20642         * sysdeps/i386/Makefile: Likewise.
20643         * sysdeps/x86_64/Makefile: Likewise.
20644         * sysdeps/hppa/Makefile [$(subdir) = elf]
20645         (sysdep_routines, sysdep-rtld-routines): Don't add
20646         $(sysdep-dl-routines) to these.
20647         * sysdeps/ia64/Makefile: Likewise.
20648         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20649         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20650         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20651         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20652         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20653         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20654         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20655         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20656         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20657         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20658         these; sysdep-dl-routines alone is enough.
20659
20660 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20661
20662         [BZ #17932]
20663         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20664         where multiplication results in zero and third argument is finite
20665         and nonzero.
20666         * math/auto-libm-test-in: Add more tests of fma.
20667         * math/auto-libm-test-out: Regenerated.
20668
20669         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20670         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20671         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20672         (_FP_CMP_EQ): Likewise.
20673         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20674
20675         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20676         extra argument CHECK_NAN.  Redefine as wrapper around
20677         _FP_EXTEND_CNAN.
20678
20679 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20680
20681         * version.h (RELEASE): Set to "stable".
20682         (VERSION): Set to "2.21"
20683         * include/features.h (__GLIBC_MINOR__): Set to 21.
20684
20685         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20686
20687 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20688             Paul Eggert  <eggert@cs.ucla.edu>
20689
20690         [BZ #16618]
20691         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20692         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20693         size in bytes. Store needed elements in wpmax. Use needed size
20694         in bytes for extend_alloca.
20695
20696 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20697
20698         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20699         binutls 2.25, and texinfo 5.2.
20700         * INSTALL: Regenerate.
20701         * sysdeps/nios2/configure: Regenerate.
20702         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20703         * manual/contrib.texi: Update.
20704         * po/be.po: Update.
20705         * po/bg.po: Update.
20706         * po/ca.po: Update.
20707         * po/cs.po: Update.
20708         * po/da.po: Update.
20709         * po/de.po: Update.
20710         * po/el.po: Update.
20711         * po/eo.po: Update.
20712         * po/es.po: Update.
20713         * po/fi.po: Update.
20714         * po/fr.po: Update.
20715         * po/gl.po: Update.
20716         * po/hr.po: Update.
20717         * po/hu.po: Update.
20718         * po/ia.po: Update.
20719         * po/id.po: Update.
20720         * po/it.po: Update.
20721         * po/ja.po: Update.
20722         * po/ko.po: Update.
20723         * po/lt.po: Update.
20724         * po/nb.po: Update.
20725         * po/nl.po: Update.
20726         * po/pl.po: Update.
20727         * po/pt_BR.po: Update.
20728         * po/ru.po: Update.
20729         * po/rw.po: Update.
20730         * po/sk.po: Update.
20731         * po/sl.po: Update.
20732         * po/sv.po: Update.
20733         * po/tr.po: Update.
20734         * po/uk.po: Update.
20735         * po/vi.po: Update.
20736         * po/zh_CN.po: Update.
20737         * po/zh_TW.po: Update.
20738
20739         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20740         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20741         * sysdeps/hppa/dl-irel.h: Remove #warning.
20742         * sysdeps/hppa/entry.h: Provide prototype for
20743         __canonicalize_funcptr_for_compare and cast argument.
20744         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20745         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20746         * sysdeps/hppa/sotruss-lib.c: New file.
20747         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20748         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20749         (atomic_compare_and_exchange_bool_acq): Likewise.
20750         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20751         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20752
20753         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20754         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20755         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20756
20757 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20758
20759         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20760         called function in non-PIC case.
20761
20762 2015-01-31  David S. Miller  <davem@davemloft.net>
20763
20764         * sysdeps/sparc/sparc32/bits/atomic.h
20765         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20766         unlock not after it.
20767         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20768         volatile register usage warnings from the compiler.
20769
20770         * sysdeps/sparc/nptl/sem_init.c: Delete.
20771         * sysdeps/sparc/nptl/sem_post.c: Delete.
20772         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20773         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20774         * sysdeps/sparc/sparc32/sem_init.c: New file.
20775         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20776         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20777         padding explicitly initialized.
20778         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20779         padding for in-semaphore spinlock.
20780         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20781         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20782         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20783         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20784         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20785         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20786         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20787         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20788         version.
20789         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20790         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20791
20792 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20793
20794         [BZ #17801]
20795         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20796         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20797         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20798         New.
20799         (index_AVX_Fast_Unaligned_Load): Likewise.
20800         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20801         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20802         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20803         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20804         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20805         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20806         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20807         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20808         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20809
20810 2015-01-29  Andreas Schwab  <schwab@suse.de>
20811
20812         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20813
20814 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20815
20816         [BZ #17892]
20817         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20818
20819 2015-01-28  Martin Sebor  <msebor@redhat.com>
20820
20821         * math/README.libm-test: Clarify. Add "How to read the test output."
20822
20823 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20824
20825         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20826         Define to 0.
20827
20828 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20829
20830         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20831         (__HAVE_64B_ATOMICS): Define to 0.
20832
20833 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20834
20835         [BZ #17885]
20836         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20837         value to set as new flag.
20838
20839         [BZ #16576]
20840         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20841         and use _ARCH_PPCSQ instead.
20842         (__ieee754_sqrt): Likewise.
20843         (__ieee754_sqrtf): Likewise.
20844         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20845         _ARCH_PPCSQ is defined.
20846         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20847         fsqrt instruction.
20848         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20849         _ARCH_PPCSQ is defined.
20850         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20851         fsqrts instruction.
20852         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20853
20854 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20855
20856         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20857         bug (GCC BZ #64739).
20858
20859 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20860
20861         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20862         Mark _retval as used.
20863         (lll_futex_wake_unlock): Likewise.
20864         (lll_futex_timed_wait_requeue_pi): Likewise.
20865
20866         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20867         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20868         register variables.
20869
20870         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20871         libm_hidden_def.
20872
20873         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20874         (__bswap_64): Mark as __always_inline.
20875
20876 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20877
20878         [BZ #15378]
20879         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20880         when none of the search directories exist.
20881
20882 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20883
20884         [BZ #17869]
20885         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20886         power8 in .machine directive.
20887
20888         [BZ #17868]
20889         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20890         set dependency from opd value.
20891
20892 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20893
20894         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20895         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20896         architecture.
20897
20898 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20899
20900         [BZ #17870]
20901         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20902         with uint64_t.
20903         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20904         (uint64_t) 1.
20905         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20906         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20907         Replace 1UL with (uint64_t) 1.
20908         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20909         int with uint64_t.
20910
20911 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20912
20913         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20914         (if_freenameindex): Likewise.
20915
20916         * resource/getrlimit64.c: Add missing libc_hidden_def.
20917
20918 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20919
20920         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20921         __label__.
20922         (_FP_FMA): Likewise.
20923         (_FP_TO_INT_ROUND): Likewise.
20924         (_FP_FROM_INT): Likewise.
20925
20926 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20927
20928         [BZ #16418]
20929         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20930         Make code racy and cancel safe.
20931
20932 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20933
20934         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20935         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20936         attribution.
20937
20938         * pwd/tst-getpw.c: Rewrite.
20939
20940         [BZ #17702]
20941         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20942         (modules-names): Add moddummy1 and moddummy2.
20943         ($(objpfx)tst-rec-dlopen): Define.
20944         * dlfcn/moddummy1.c: New file.
20945         * dlfcn/moddummy2.c: New file.
20946         * dlfcn/tst-rec-dlopen.c: New file.
20947         * elf/dl-cache.c (_dl_load_cache_lookup):
20948         Return char*. Copy result with alloca/strcpy/strdup.
20949         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20950         returns char*. Free cached. If not saving realname
20951         free cached.
20952         * elf/dl-open.c (dl_open_worker): Do not assert that
20953         _r_debug->r_state is RT_CONSISTENT.
20954         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20955         returns char*.
20956
20957 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20958             Carlos O'Donell  <carlos@redhat.com>
20959
20960         [BZ #12674]
20961         * nptl/sem_waitcommon.c: New file.
20962         * nptl/sem_wait.c: Include sem_waitcommon.c.
20963         (__sem_wait_cleanup, do_futex_wait): Remove.
20964         (__new_sem_wait): Adapt.
20965         (__new_sem_trywait): New function.
20966         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20967         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20968         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20969         (sem_timedwait): Adapt.
20970         * nptl/sem_post.c (__new_sem_post): Adapt.
20971         (futex_wake): New function.
20972         (__old_sem_post): Add release MO fence.
20973         * nptl/sem_open.c (sem_open): Adapt.
20974         * nptl/sem_init.c (__new_sem_init): Adapt.
20975         (futex_private_if_supported): New function.
20976         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20977         (__old_sem_getvalue): Add using previous code.
20978         * sysdeps/nptl/internaltypes.h: Adapt.
20979         * nptl/tst-sem13.c (do_test): Adapt.
20980         * nptl/tst-sem11.c (main): Adapt.
20981         * nptl/sem_trywait.c: Remove.
20982         * nptl/DESIGN-sem.txt: Remove.
20983         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20984         (gen-as-const-headers): Remove structsem.sym.
20985         * nptl/structsem.sym: Remove.
20986         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20987         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20988         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20989         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20990         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20991         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20992         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20993         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20994         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20995         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20996         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20997         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20998         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20999         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21000         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21001         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21002         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21003         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21004         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21005         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21006         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21007         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21008
21009 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21010
21011         * INSTALL: Regenerated.
21012
21013         * po/libc.pot: Regenerated.
21014
21015 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21016             Sandra Loosemore  <sandra@codesourcery.com>
21017             Andrew Jenner  <andrew@codesourcery.com>
21018             Joseph Myers  <joseph@codesourcery.com>
21019             Nathan Sidwell  <nathan@codesourcery.com>
21020
21021         * NEWS: Mention new Nios II port.
21022         * sysdeps/nios2/Implies: New file.
21023         * sysdeps/nios2/Makefile: New file.
21024         * sysdeps/nios2/Subdirs: New file.
21025         * sysdeps/nios2/Versions: New file.
21026         * sysdeps/nios2/__longjmp.S: New file.
21027         * sysdeps/nios2/abort-instr.h: New file.
21028         * sysdeps/nios2/backtrace.c: New file.
21029         * sysdeps/nios2/bits/endian.h: New file.
21030         * sysdeps/nios2/bits/fenv.h: New file.
21031         * sysdeps/nios2/bits/link.h: New file.
21032         * sysdeps/nios2/bits/setjmp.h: New file.
21033         * sysdeps/nios2/bsd-_setjmp.S: New file.
21034         * sysdeps/nios2/bsd-setjmp.S: New file.
21035         * sysdeps/nios2/configure: New generated file.
21036         * sysdeps/nios2/configure.ac: New file.
21037         * sysdeps/nios2/crti.S: New file.
21038         * sysdeps/nios2/crtn.S: New file.
21039         * sysdeps/nios2/dl-init.c: New file.
21040         * sysdeps/nios2/dl-machine.h: New file.
21041         * sysdeps/nios2/dl-sysdep.h: New file.
21042         * sysdeps/nios2/dl-tls.h: New file.
21043         * sysdeps/nios2/dl-trampoline.S: New file.
21044         * sysdeps/nios2/gccframe.h: New file.
21045         * sysdeps/nios2/gmp-mparam.h: New file.
21046         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21047         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21048         * sysdeps/nios2/ldsodefs.h: New file.
21049         * sysdeps/nios2/libc-tls.c: New file.
21050         * sysdeps/nios2/libm-test-ulps: New file.
21051         * sysdeps/nios2/machine-gmon.h: New file.
21052         * sysdeps/nios2/math-tests.h: New file.
21053         * sysdeps/nios2/math_private.h: New file.
21054         * sysdeps/nios2/memusage.h: New file.
21055         * sysdeps/nios2/nptl/Makefile: New file.
21056         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21057         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21058         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21059         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21060         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21061         * sysdeps/nios2/nptl/tls.h: New file.
21062         * sysdeps/nios2/preconfigure: New file.
21063         * sysdeps/nios2/s_fma.c: New file.
21064         * sysdeps/nios2/s_fmaf.c: New file.
21065         * sysdeps/nios2/setjmp.S: New file.
21066         * sysdeps/nios2/sfp-machine.h: New file.
21067         * sysdeps/nios2/sotruss-lib.c: New file.
21068         * sysdeps/nios2/stackguard-macros.h: New file.
21069         * sysdeps/nios2/stackinfo.h: New file.
21070         * sysdeps/nios2/start.S: New file.
21071         * sysdeps/nios2/sysdep.h: New file.
21072         * sysdeps/nios2/tls-macros.h: New file.
21073         * sysdeps/nios2/tst-audit.h: New file.
21074         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21075         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21076         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21077         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21078         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21079         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21080         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21081         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21082         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21083         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21084         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21085         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21086         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21087         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21088         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21089         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21090         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21091         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21092         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21093         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21094         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21095         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21096         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21097         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21098         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21099         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21100         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21101         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21102         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21103         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21104         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21105         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21106         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21107         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21108         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21109         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21110         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21111         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21112         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21113         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21114         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21115         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21116         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21117         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21118
21119 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21120
21121         [BZ #17844]
21122         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21123         (getutent): Use weak_alias in non SHARED case
21124         and default_symbol_version in SHARED case.
21125         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21126         (getutent_r, pututline): Likewise.
21127         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21128         (getutid): Likewise.
21129         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21130         (getutid_r): Likewise.
21131         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21132         (getutline): Likewise.
21133         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21134         (getutline_r): Likewise.
21135         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21136         (updwtmp): Likewise.
21137
21138 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21139
21140         [BZ #17848]
21141         * sysdeps/s390/s390-32/memcmp.S
21142         (memcmp_g5): Rename to __memcmp_g5.
21143         * sysdeps/s390/s390-32/memcpy.S
21144         (memcpy_g5): Rename to __memcpy_g5.
21145         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21146         (memcpy_mvcle) Rename to __memcpy_mvcle.
21147         * sysdeps/s390/s390-32/memset.S
21148         (memset_g5): Rename to __memset_g5.
21149         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21150         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21151         and use prefixed functions.
21152         * sysdeps/s390/s390-32/multiarch/memcmp.S
21153         (memcmp_z196): Rename to __memcmp_z196.
21154         (memcmp_z10): Rename to __memcmp_z10.
21155         (memcmp): Set alias to __memcmp_g5.
21156         (bcmp): Set alias to __memcmp_g5.
21157         * sysdeps/s390/s390-32/multiarch/memcpy.S
21158         (memcpy_z196): Rename to __memcpy_z196.
21159         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21160         (memcpy_z10): Rename to __memcpy_z10.
21161         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21162         (memcpy): Set alias to __memcpy_g5.
21163         * sysdeps/s390/s390-32/multiarch/memset.S
21164         (memset_z196): Rename to __memset_z196.
21165         Jump to __memset_mvcle instead of memset_mvcle.
21166         (memset_z10): Rename to __memset_z10.
21167         Jump to __memset_mvcle instead of memset_mvcle.
21168         (memset_mvcle) Rename to __memset_mvcle.
21169         (memset): Set alias to __memset_g5.
21170         * sysdeps/s390/s390-64/memcmp.S
21171         (memcmp_z900): Rename to __memcmp_z900.
21172         * sysdeps/s390/s390-64/memcpy.S
21173         (memcpy_z900): Rename to __memcpy_z900.
21174         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21175         (memcpy_mvcle) Rename to __memcpy_mvcle.
21176         * sysdeps/s390/s390-64/memset.S
21177         (memset_z900): Rename to __memset_z900.
21178         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21179         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21180         and use prefixed functions.
21181         * sysdeps/s390/s390-64/multiarch/memcmp.S
21182         (memcmp_z196): Rename to __memcmp_z196.
21183         (memcmp_z10): Rename to __memcmp_z10.
21184         (memcmp): Set alias to __memcmp_z900.
21185         (bcmp): Set alias to __memcmp_z900.
21186         * sysdeps/s390/s390-64/multiarch/memcpy.S
21187         (memcpy_z196): Rename to __memcpy_z196.
21188         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21189         (memcpy_z10): Rename to __memcpy_z10.
21190         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21191         (memcpy): Set alias to __memcpy_z900.
21192         * sysdeps/s390/s390-64/multiarch/memset.S
21193         (memset_z196): Rename to __memset_z196.
21194         Jump to __memset_mvcle instead of memset_mvcle.
21195         (memset_z10): Rename to __memset_z10.
21196         Jump to __memset_mvcle instead of memset_mvcle.
21197         (memset_mvcle) Rename to __memset_mvcle.
21198         (memset): Set alias to __memset_z900.
21199
21200 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21201
21202         [BZ #17748]
21203         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21204         __fesetenv instead of fesetenv.
21205
21206 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21207
21208         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21209         macro.
21210
21211 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21212
21213         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21214         regression on LE.
21215
21216         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21217         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21218         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21219         strncmp-power8 object.
21220         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21221         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21222         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21223         * NEWS: Update.
21224
21225 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21226             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21227
21228         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21229         trailing byte check.
21230
21231 2015-01-13  David S. Miller  <davem@davemloft.net>
21232
21233         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21234
21235 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21236
21237         * login/logout.c (logout): Use memset rather than bzero.
21238         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21239         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21240         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21241         (_gethtbyaddr): Likewise.
21242         * locale/programs/simple-hash.c (bcopy): Macro removed.
21243
21244 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21245
21246         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21247         Add strcmp-power8 object.
21248         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21249         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21250         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21251         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21252         __strcmp_power8 implementation.
21253         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21254         * NEWS: Update.
21255
21256         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21257         Add strncpy-power8 and stpncpy-power8 objects.
21258         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21259         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21260         implementations.
21261         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21262         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21263         __stpncpy_power8 implementation.
21264         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21265         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21266         __strncpy_power8 implementation.
21267         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21268         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21269         * NEWS: Update.
21270
21271         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21272         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21273         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21274
21275         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21276         strncat-power8 object.
21277         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21278         __strcat_power8 implementation.
21279         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21280         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21281         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21282         optimized strcat for power8.
21283
21284         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21285         strcpy-power8 and stpcpy-power8 objects.
21286         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21287         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21288         implementations.
21289         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21290         multiarch stpcpy implementation for POWER8.
21291         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21292         multiarch strcpy implementation for POWER8.
21293         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21294         __strcpy_power8 function.
21295         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21296         stpcpy for POWER8.
21297         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21298         strcpy for POWER8.
21299         * NEWS: Update.
21300
21301 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21302
21303         [BZ #16009]
21304         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21305         weights and rules. Use do_xfrm_cached if data fits in cache,
21306         do_xfrm otherwise.  Moved former main loop to...
21307         * (do_xfrm_cached): New function.
21308         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21309         find_idx, find_position and stack_push.
21310         * (find_idx): New function.
21311         * (find_position): Likewise.
21312         * localedata/sort-test.sh: Added test run for do_xfrm.
21313         * localedata/xfrm-test.c (main): Added command line option
21314         -nocache to run the test with strings that are too large for
21315         the STRXFRM cache.
21316
21317 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21318
21319         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21320         variable to lll_futex_wake call, not the value itself.
21321
21322 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21323
21324         [BZ #17803]
21325         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21326         twom64.  Adjust value to 0x1p-64L.
21327         (__scalblnl): Only return standard underflowing result for K <=
21328         -64 not K <= -63; adjust exponent for underflowing result by 64
21329         not 63.
21330         * math/libm-test.inc (scalbn_test_data): Add more tests.
21331         (scalbln_test_data): Likewise.
21332
21333         [BZ #17834]
21334         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21335         0x1p63L.
21336         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21337         not HX.
21338         * math/libm-test.inc (scalbn_test_data): Add more tests.
21339         (scalbln_test_data): Likewise.
21340
21341 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21342             Stefani Seibold  <stefani@seibold.net>
21343
21344         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21345         (sysdep_routines): Add dl-vdso here, ...
21346         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21347         (sysdep_routines): ... not here.
21348         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21349         fallback when vDSO is not presented.
21350         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21351         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21352         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21353         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21354         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21355         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21356         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21357         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21358         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21359         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21360         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21361         fallback configurable symbol when vDSO is not available.
21362         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21363         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21364         be able to redefine fallback symbol when vDSO is not available.
21365         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21366         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21367
21368 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21369
21370         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21371         (TLS_INIT_TP): Add tm_capable initialization.
21372         (TLS_DEFINE_INIT_TP): Likewise.
21373         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21374         TCB.
21375         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21376         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21377         calculation.
21378         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21379         transactoion is lock elision is built and TCB tm_capable is set.
21380         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21382         (INTERNAL_SYSCALL_NCS): Likewise.
21383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21384         (INTERNAL_SYSCALL_NCS): Likewise.
21385         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21386
21387         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21388         for powerpc.
21389         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21390         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21391         and remove it for 32 bits case.
21392         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21393         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21394         initialization.
21395         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21396         Disable lock elision with rdlocks if elision is not available.
21397
21398         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21399         (sysdep_routines): Add lock elision objects.
21400         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21401         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21402         [pthread_mutex_t] (__elision): Add field.
21403         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21404         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21405         elision definitions for powerpc.
21406         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21407         implementation of lock elision for powerpc.
21408         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21409         implementation of timed lock elision for powerpc.
21410         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21411         implementation of trylock with lock elision for powerpc.
21412         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21413         implementaion of unlock for lock elision for powerpc.
21414         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21415         automatic enable lock elision for mutexes.
21416         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21417         transaction execution definitions for powerpc.
21418         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21419         definitions.
21420         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21421         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21422         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21423         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21424         * NEWS: Update.
21425
21426 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21427
21428         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21429         for #include of <shm-directory.h>.
21430
21431 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21432
21433         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21434         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21435
21436 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21437
21438         [BZ #17791]
21439         * NEWS: Mention bug fix.
21440         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21441         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21442         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21443
21444 2015-01-09  Torvald Riegel <triegel@redhat.com>
21445
21446         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21447
21448 2015-01-09  Torvald Riegel <triegel@redhat.com>
21449
21450         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21451
21452 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21453
21454         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21455         pointer and cast to uintptr_t.
21456
21457 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21458
21459         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21460         removed.
21461         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21462
21463 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21464
21465         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21466         of 0.
21467
21468 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21469
21470         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21471         <nptl/pthreadP.h> instead.
21472         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21473
21474         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21475         already defined.
21476         [__SIGRTMIN] (init): Function removed.
21477         [__SIGRTMIN] (initialized): Variable removed.
21478         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21479         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21480         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21481         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21482         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21483         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21484         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21485         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21486         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21487         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21488         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21489         * sysdeps/nptl/allocrtsig.c: New file.
21490         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21491         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21492         * sysdeps/generic/testrtsig.h: File removed.
21493
21494         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21495         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21496
21497         * nptl/nptl-init.c (pthread_functions): Conditionalize
21498         .ptr__nptl_setxid initialization on [SIGSETXID].
21499
21500         * sysdeps/nptl/sys/procfs.h: New file.
21501         * nptl_db/Makefile (headers): Add it.
21502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21503
21504         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21505         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21506         * nptl/pthread_attr_setaffinity.c: Include it.
21507         * nptl/pthread_setattr_default_np.c: Likewise.
21508         * nptl/check-cpuset.h: New file.
21509
21510 2015-01-08  Richard Henderson  <rth@redhat.com>
21511
21512         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21513         (CFLAGS-tst-execstack-prog.c): Likewise.
21514         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21515
21516 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21517             Sandra Loosemore  <sandra@codesourcery.com>
21518             Andrew Jenner  <andrew@codesourcery.com>
21519             Joseph Myers  <joseph@codesourcery.com>
21520             Nathan Sidwell  <nathan@codesourcery.com>
21521
21522         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21523         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21524         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21525         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21526         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21527         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21528         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21529         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21530         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21531         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21532         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21533         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21534         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21535         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21536         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21537         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21538         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21539
21540 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21541
21542         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21543         timespec struct member in syscall macro.
21544         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21545         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21546         first timeval struct member in syscall macro.
21547         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21548
21549 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21550
21551         [BZ #17748]
21552         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21553         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21554         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21555         __feupdateenv and define as weak alias of __feupdateenv.  Use
21556         libm_hidden_weak.
21557         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21558         libm_hidden_def.
21559         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21560         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21561         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21562         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21563         libm_hidden_def.
21564         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21565         __feupdateenv and define as weak alias of __feupdateenv.  Use
21566         libm_hidden_weak.
21567         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21568         libm_hidden_def.
21569         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21570         __feupdateenv and define as weak alias of __feupdateenv.  Use
21571         libm_hidden_weak.
21572         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21573         libm_hidden_def.
21574         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21575         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21576         (__feupdateenv): Likewise.
21577         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21578         __feupdateenv and define as weak alias of __feupdateenv.  Use
21579         libm_hidden_weak.
21580         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21581         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21582         libm_hidden_def.
21583         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21584         function.
21585         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21586         libm_hidden_def.
21587         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21588         __feupdateenv instead of feupdateenv.
21589         (default_libc_feupdateenv_test): Likewise.
21590         (libc_feresetround_ctx): Likewise.
21591
21592 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21593
21594         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21595         prototype.
21596
21597 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21598
21599         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21600         COLL_SYM in a couple of places to avoid uninitialized variable
21601         wanings on tilegx gcc 4.8.2.
21602
21603 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21604
21605         * sysdeps/aarch64/strcpy.S: New file.
21606         * sysdeps/aarch64/stpcpy.S: New file.
21607         * NEWS: Updated.
21608
21609 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21610
21611         * sysdeps/aarch64/strrchr.S: New file.
21612         * NEWS: Updated.
21613
21614 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21615
21616         [BZ #17658]
21617         * stdlib/setenv.c: Fix memory leak when setting large,
21618         duplicate string.
21619
21620 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21621
21622         [BZ #17273]
21623         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21624         and tabs from buffer before parsing fstab entry.
21625         * misc/tst-mntent.c (main): Add test for mount entry with
21626         trailing spaces and tabs.
21627
21628 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21629
21630         [BZ #17748]
21631         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21632         * math/fesetround.c (fesetround): Rename to __fesetround and
21633         define as weak alias of __fesetround.  Use libm_hidden_weak.
21634         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21635         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21636         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21637         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21638         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21639         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21640         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21641         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21642         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21643         __fesetround_inline.
21644         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21645         __fesetround_inline instead of __fesetround.
21646         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21647         __fesetround and define as weak alias of __fesetround.  Use
21648         libm_hidden_weak.  Call __fesetround_inline instead of
21649         __fesetround.
21650         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21651         __fesetround and define as weak alias of __fesetround.  Use
21652         libm_hidden_weak.
21653         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21654         Likewise.
21655         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21656         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21657         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21658         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21659         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21660         __fesetround and define as weak alias of __fesetround.  Use
21661         libm_hidden_weak.
21662         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21663         __fesetround instead of fesetround.
21664         (default_libc_feholdexcept_setround): Likewise.
21665         (libc_feholdsetround_ctx): Likewise.
21666         (libc_feholdsetround_noex_ctx): Likewise.
21667
21668         [BZ #17748]
21669         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21670         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21671         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21672         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21673         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21674         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21675         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21676         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21677         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21678         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21679         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21680         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21681         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21682         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21683         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21684         libm_hidden_def.
21685         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21686         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21687         Likewise.
21688         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21689         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21690         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21691         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21692         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21693         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21694         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21695         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21696         __fesetenv instead of fesetenv.
21697         (libc_feresetround_noex_ctx): Likewise.
21698         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21699         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21700         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21701         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21702         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21703         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21704         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21705         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21706         (__feupdateenv): Likewise.
21707         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21708         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21709         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21710         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21711
21712 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21713
21714         [BZ #17806]
21715         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21716         addresses have been freed.
21717
21718 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21719
21720         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21721         and nservall.
21722
21723 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21724
21725         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21726         Clean up check_pf allocation pattern. addresses
21727
21728 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21729
21730         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21731         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21732         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21733         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21734         * nptl/pthread_join.c (pthread_join): Likewise.
21735         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21736         * sysdeps/posix/waitid.c (__waitid): Likewise.
21737         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21738         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21739         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21740         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21741         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21742         Likewise.
21743         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21744         (__libc_pread64): Likewise.
21745         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21746         (__libc_pwrite): Likewise.
21747         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21748         (__libc_pwrite64): Likewsie.
21749         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21750         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21751         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21752         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21753         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21754         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21755         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21757         Likewise.
21758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21759         (__libc_pread64): Likewise.
21760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21761         Likewise.
21762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21763         (__libc_pwrite64): Likewise.
21764         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21765         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21766         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21767         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21768         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21769         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21770         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21771         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21772         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21773         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21774         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21775         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21776         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21777         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21778         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21779         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21780         Likewise.
21781
21782 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21783
21784         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21785         (CFLAGS-test-double.c): Likewise.
21786         (CFLAGS-test-ldouble.c): Likewise.
21787         (CPPFLAGS-test-ifloat.c): Likewise.
21788         (CPPFLAGS-test-idouble.c): Likewise.
21789         (CPPFLAGS-test-ildoubl.c): Likewise.
21790         (CFLAGS-test-test-fenv.c): Remove variable.
21791         (CFLAGS-test-misc.c): Likewise.
21792
21793 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21794
21795         [BZ #17797]
21796         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21797         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21798         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21799         CLOCKS_PER_SEC == 1000000.
21800         * time/clocktest.c (main): Replace %ld with %jd and cast to
21801         intmax_t.
21802
21803 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21804
21805         * sysdeps/generic/unwind-resume.h: New file.
21806         * sysdeps/gnu/unwind-resume.c: Include it.
21807         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21808         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21809         argument list.
21810         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21811         global rather than static.
21812         (_Unwind_Resume): Update user.
21813         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21814         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21815         rather than static.  Add __attribute__ ((cold)).
21816         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21817         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21818         * sysdeps/arm/arm-unwind-resume.S: New file.
21819         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21820         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21821         * sysdeps/arm/Makefile [$(subdir) = csu]
21822         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21823         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21824         Add rt-arm-unwind-resume.
21825         [$(subdir) = nptl]
21826         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21827         Add pt-arm-unwind-resume.
21828         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21829         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21830
21831 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21832
21833         [BZ #17748]
21834         * include/fenv.h (__feholdexcept): Declare.  Use
21835         libm_hidden_proto.
21836         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21837         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21838         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21839         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21840         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21841         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21842         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21843         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21844         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21845         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21846         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21847         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21848         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21849         (feholdexcept): Likewise.
21850         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21851         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21852         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21853         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21854         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21855         __feholdexcept instead of feholdexcept.
21856         (default_libc_feholdexcept_setround): Likewise.
21857
21858 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21859
21860         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21861         to avoid using stl/str to align destination.
21862
21863 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21864
21865         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21866
21867 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21868
21869         [BZ #17796]
21870         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21871         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21872         Define as weak alias not strong alias.
21873
21874 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21875
21876         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21877         bltzal with addiupc.
21878         (RTLD_START): Ditto.
21879
21880 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21881
21882         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21883         for __vdso_* functions in declarations.
21884         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21885         definitions.
21886         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21887         INTERNAL_VSYSCALL): Use struct return types to check for error.
21888
21889         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21890         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21891         function with cast from llround().
21892         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21893         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21894         Define.
21895
21896 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21897
21898         [BZ #17793]
21899         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21900         Define as weak alias not strong alias.
21901
21902         [BZ #17635]
21903         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21904         ...
21905         * ctype/ctype-extn.c: ... here.
21906         (__isblank_l): Move to ...
21907         * ctype/ctype-c99_l.c: ... here.  New file.
21908         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21909         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21910         Remove variable.
21911         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21912         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21913         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21914         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21915         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21916
21917         [BZ #17777]
21918         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21919         (posix_fadvise64): Define as weak alias not strong alias.
21920         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21921         (posix_fallocate64): Likewise.
21922         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21923         Remove variable.
21924         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21925         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21926         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21927         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21928         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21929
21930 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21931
21932         [BZ #16191]
21933         * NEWS: Mention bug fix.
21934         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21935         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21936         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21937         (HOST_STACK_END_ADDR): Likewise.
21938
21939 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21940
21941         [BZ #17748]
21942         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21943         * math/fegetround.c (fegetround): Rename to __fegetround and
21944         define as weak alias of __fegetround.  Use libm_hidden_weak.
21945         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21946         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21947         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21948         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21949         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21950         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21951         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21952         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21953         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21954         Undefine after rather than before function definition; use
21955         parentheses around function name in definition.
21956         (__fegetround): Also undefine macro after function definition.
21957         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21958         __fegetround and define as weak alias of __fegetround.  Use
21959         libm_hidden_weak.  Do not undefine as macro.
21960         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21961         Likewise.
21962         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21963         __fegetround and define as weak alias of __fegetround.  Use
21964         libm_hidden_weak.
21965         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21966         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21967         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21968         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21969         __fegetround and define as weak alias of __fegetround.  Use
21970         libm_hidden_weak.
21971         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21972         __fegetround instead of fegetround.
21973
21974         [BZ #17782]
21975         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21976         Condition macro definition on [__USE_MISC].
21977
21978         [BZ #17781]
21979         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21980         (struct sigaction): Change type of sa_flags field to int.
21981
21982         [BZ #17780]
21983         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21984         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21985         __glibc_reserved0.
21986
21987         * nptl/version.c (banner): Use single year in copyright notice.
21988
21989         * NEWS: Update copyright dates.
21990         * catgets/gencat.c (print_version): Likewise.
21991         * csu/version.c (banner): Likewise.
21992         * debug/catchsegv.sh: Likewise.
21993         * debug/pcprofiledump.c (print_version): Likewise.
21994         * debug/xtrace.sh (do_version): Likewise.
21995         * elf/ldconfig.c (print_version): Likewise.
21996         * elf/ldd.bash.in: Likewise.
21997         * elf/pldd.c (print_version): Likewise.
21998         * elf/sotruss.sh: Likewise.
21999         * elf/sprof.c (print_version): Likewise.
22000         * iconv/iconv_prog.c (print_version): Likewise.
22001         * iconv/iconvconfig.c (print_version): Likewise.
22002         * locale/programs/locale.c (print_version): Likewise.
22003         * locale/programs/localedef.c (print_version): Likewise.
22004         * login/programs/pt_chown.c (print_version): Likewise.
22005         * malloc/memusage.sh (do_version): Likewise.
22006         * malloc/memusagestat.c (print_version): Likewise.
22007         * malloc/mtrace.pl: Likewise.
22008         * manual/libc.texinfo: Likewise.
22009         * nptl/version.c (banner): Likewise.
22010         * nscd/nscd.c (print_version): Likewise.
22011         * nss/getent.c (print_version): Likewise.
22012         * nss/makedb.c (print_version): Likewise.
22013         * posix/getconf.c (main): Likewise.
22014         * scripts/test-installation.pl: Likewise.
22015         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22016
22017 2015-01-02  Will Newton  <will.newton@linaro.org>
22018
22019         * sysdeps/arm/armv7/configure: Removed.
22020         * sysdeps/arm/armv7/configure.ac: Likewise.
22021
22022 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22023
22024         * All files with FSF copyright notices: Update copyright dates
22025         using scripts/update-copyrights.
22026         * intl/plural.c: Regenerated.
22027         * locale/programs/charmap-kw.h: Likewise.
22028         * locale/programs/locfile-kw.h: Likewise.
22029
22030 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22031
22032         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22033
22034 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22035
22036         [BZ #17748]
22037         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22038         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22039         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22040         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22041         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22042         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22043         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22044         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22045         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22046         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22047         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22048         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22049         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22050         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22051         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22052         libm_hidden_def.
22053         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22054         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22055         Likewise.
22056         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22057         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22058         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22059         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22060         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22061         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22062         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22063         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22064         __fegetenv instead of fegetenv.
22065         (libc_feholdsetround_noex_ctx): Likewise.
22066
22067 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22068
22069         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22070         (Elf_MIPS_ABIFlags_v0): New structure.
22071         (EF_MIPS_FP64): Define.
22072         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22073         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22074         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22075         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22076         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22077         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22078         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22079         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22080         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22081         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22082         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22083         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22084         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22085         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22086         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22087         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22088         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22089         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22090         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22091         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22092         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22093         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22094         field.
22095         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22096         EF_MIPS_FP64.
22097         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22098         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22099         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22100         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22101         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22102         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22103         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22104         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22105         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22106         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22107         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22108         record the current FP ABI extension.
22109         (mips-mode-switch): Define to show if kernel headers support mode
22110         switching.
22111         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22112         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22113         supported SYSV ABI version to 3.
22114         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22115         feature.
22116
22117 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22118             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22119
22120         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22121         path.
22122         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22123
22124 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22125
22126         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22127         __fegetround and redefine to call __fegetround.  Remove condition
22128         on [!__NO_MATH_INLINES].
22129         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22130         function.
22131         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22132         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22133         Remove macro.
22134         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22135         instead of <fenv_libc.h>.
22136         (__llrintl): Call fegetround instead of __fegetround.
22137         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22138         instead of <fenv_libc.h>.
22139         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22140         (__lrintl): Call fegetround instead of __fegetround.
22141         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22142         instead of <fenv_libc.h>.
22143         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22144         (__rintl): Call fegetround instead of __fegetround.
22145
22146 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22147
22148         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22149         arrays.
22150
22151 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22152
22153         [BZ #17775]
22154         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22155         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22156         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22157
22158 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22159
22160         * sysdeps/i386/tls-macros.h: Include <features.h>.
22161         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22162         (TLS_IE): Likewise.
22163         (TLS_LD): Likewise.
22164         (TLS_GD): Likewise.
22165         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22166         define for GCC >= 5.0.
22167
22168 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22169
22170         * math/test-fenv.c (test_single_exception, set_single_exc,
22171         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22172         feexcp_mask_test, feenable_test, fe_single_test): Add
22173         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22174         case where they are not used.
22175         * math/libm-test.inc: Likewise.
22176         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22177         unused in the absence of FP rounding/exception support.
22178         * stdio-common/tst-printf-round.c: Likewise.
22179         * stdlib/tst-strtod-round.c: Likewise.
22180         * stdlib/tst-strtod-underflow.c: Likewise.
22181
22182 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22183
22184         [BZ #17723]
22185         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22186         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22187         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22188         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22189         libm_hidden_weak.
22190         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22191         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22192         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22193         libm_hidden_def.
22194         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22195         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22196         libm_hidden_weak.
22197         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22198         Likewise.
22199         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22200         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22201         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22202         libm_hidden_weak.
22203         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22204         libm_hidden_def.
22205         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22206         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22207         (__feraiseexcept): Likewise.
22208         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22209         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22210         libm_hidden_weak.
22211         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22212         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22213         libm_hidden_def.
22214         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22215         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22216         Use libm_hidden_def.
22217         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22218         libm_hidden_def.
22219         (feraiseexcept): Define as weak not strong alias.  Use
22220         libm_hidden_weak.
22221         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22222         New inline function.  Factored out of ...
22223         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22224         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22225         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22226         feraiseexcept.
22227         * math/w_acos.c (__acos): Likewise.
22228         * math/w_asin.c (__asin): Likewise.
22229         * math/w_ilogb.c (__ilogb): Likewise.
22230         * math/w_j0.c (y0): Likewise.
22231         * math/w_j1.c (y1): Likewise.
22232         * math/w_jn.c (yn): Likewise.
22233         * math/w_log.c (__log): Likewise.
22234         * math/w_log10.c (__log10): Likewise.
22235         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22236         * sysdeps/aarch64/fpu/math_private.h
22237         (libc_feupdateenv_test_aarch64): Likewise.
22238         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22239         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22240         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22241         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22242         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22243         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22244         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22245         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22246         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22247         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22248
22249 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22250
22251         [BZ #17732]
22252         * io/test-utime.c (main): Replace %ld with %jd and cast to
22253         intmax_t.
22254         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22255         * nptl/tst-mutex5.c: Include <stdint.h>.
22256         (do_test): Replace %ld with %jd and cast to intmax_t.
22257         * posix/tst-regex.c (run_test): Likewise.
22258         (run_test_backwards): Likewise.
22259         * rt/tst-clock.c: Include <stdint.h>.
22260         (clock_test): Replace %ld with %jd and cast to intmax_t.
22261         * rt/tst-cpuclock1.c: Include <stdint.h>.
22262         (do_test): Replace %lu with %ju and cast to uintmax_t.
22263         * rt/tst-cpuclock2.c: Include <stdint.h>.
22264         (do_test): Replace %lu with %ju and cast to uintmax_t.
22265         * rt/tst-mqueue1.c: Include <stdint.h>.
22266         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22267         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22268         intmax_t.
22269         * rt/tst-mqueue4.c (do_test): Likewise.
22270         * rt/tst-timer4.c: Include <stdint.h>.
22271         (check_ts): Replace %ld with %jd and cast to intmax_t.
22272         (do_test): Likewise.
22273         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22274         and cast to intmax_t.
22275         * sysdeps/pthread/tst-timer.c (main): Likewise.
22276         * time/clocktest.c (main): Likewise.
22277         * time/tst-posixtz.c (do_test): Likewise.
22278         * timezone/tst-timezone.c (main): Likewise.
22279
22280 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22281             H.J. Lu  <hongjiu.lu@intel.com>
22282
22283         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22284         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22285         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22286         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22287         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22288         version if bit_Fast_Unaligned_Load is set.
22289         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22290         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22291         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22292         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22293         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22294         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22295         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22296         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22297         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22298         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22299         to 4.
22300         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22301         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22302         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22303         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22304
22305 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22306
22307         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22308         instead of #if to avoid a Wundef warning.
22309         * stdlib/tst-limits.c (do_test): Likewise.
22310
22311         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22312         parallel other exception macros.
22313         (fegetenv): Convert from macro to extern inline so that it applies
22314         retroactively to inline functions already seen by the compiler.
22315         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22316
22317         * posix/Makefile (before-compile): Use $(objpfx) for
22318         posix-conf-vars-def.h.
22319
22320 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22321
22322         * posix/getconf.c (main): Use size_t for type of I.
22323         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22324         NSPEC.
22325
22326         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22327         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22328         * posix/posix-envs.def: Likewise.
22329         * sysdeps/posix/sysconf.c: Likewise.
22330         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22331         (specs): Remove array.
22332         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22333         array.
22334
22335         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22336         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22337         (__sysconf): Use CONF_IS_* macros.
22338
22339         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22340         ($(objpfx)posix-conf-vars-def.h): New target.
22341         * posix/posix-conf-vars.list: New file.
22342         * posix/posix-conf-vars.h: New file.
22343         * posix/confstr.c: Include posix-conf-vars.h.
22344         (confstr): Use CONF_IS_* macros.
22345         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22346         CONF_IS_* macros.
22347         * scripts/gen-posix-conf-vars.awk: New file.
22348
22349 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22350
22351         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22352         fegetround): Add no-op macros to avoid linknamespace issues.
22353
22354         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22355         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22356
22357         * sysdeps/unix/sysv/linux/tile/sysdep.h
22358         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22359         assembly-specific section to avoid a redefinition warning.
22360
22361         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22362         long before casting to pointer to avoid a cast warning.
22363
22364 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22365
22366         * sysdeps/tile/tilegx/Implies: New file.
22367
22368 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22369
22370         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22371
22372 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22373
22374         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22375
22376 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22377
22378         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22379         not define.
22380         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22381         <kernel-features.h>.
22382         (__utimes) [__NR_utimes]: Make code unconditional.
22383         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22384         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22385         (__ASSUME_UTIMES): Do not undefine.
22386         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22387         (__ASSUME_UTIMES): Likewise.
22388         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22389         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22390         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22391         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22392
22393 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22394
22395         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22396
22397 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22398
22399         [BZ #17747]
22400         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22401         alias to weak alias for j0l, y0l.
22402         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22403         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22404
22405         [BZ #17746]
22406         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22407         conversion.
22408
22409 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22410
22411         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22412         to zero if not already defined.
22413
22414 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22415
22416         [BZ #17724]
22417         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22418         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22419         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22420         (char *) casts added.
22421         * sysdeps/ieee754/k_standardf.c: New file.
22422         * sysdeps/ieee754/k_standardl.c: Likewise.
22423         * math/Makefile (libm-support): Remove k_standard.
22424         (libm-calls): Add k_standard.
22425
22426 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22427
22428         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22429         Optimize to avoid an unnecessary FPCR read.
22430
22431 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22432
22433         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22434         Optimize to reduce FPCR/FPSR accesses.
22435
22436 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22437
22438         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22439         Call libc_fetestexcept_aarch64.
22440
22441 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22442
22443         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22444         Call libc_fesetround_aarch64.
22445
22446 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22447
22448         [BZ #17733]
22449         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22450         (__bind): Do not define as weak alias.
22451         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22452         define.
22453         (__getsockname): Do not define as weak alias.
22454
22455 2014-12-22  Will Newton  <will.newton@linaro.org>
22456
22457         * manual/install.texi: Document that we require bison 2.7
22458         or above.
22459         * INSTALL: Regenerate.
22460         * configure.ac: Use AC_CHECK_PROG_VER instead of
22461         AC_PATH_PROG when checking for bison and check for
22462         version 2.7 or above.
22463         * configure: Regenerate.
22464
22465 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22466
22467         [BZ #17745]
22468         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22469         * sysdeps/tile/ffsll.c (ffsll): To here.
22470
22471         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22472
22473 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22474
22475         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22476         if not defined.
22477         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22478         definition.
22479         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22480         hidden ___tls_get_addr.
22481         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22482         hidden __tls_get_addr.
22483         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22484         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22485         Likewise.
22486
22487 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22488
22489         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22490         _dl_init call.
22491
22492 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22493
22494         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22495         from "call _dl_init@PLT".
22496         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22497
22498 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22499
22500         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22501         guarantees.
22502
22503 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22504
22505         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22506
22507 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22508
22509         [BZ #17744]
22510         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22511         strnlen.
22512
22513 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22514
22515         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22516         of multu on MIPSr6.
22517         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22518         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22519         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22520         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22521         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22522
22523 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22524
22525         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22526         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22527         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22528         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22529         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22530         mips32r6/mips64r6.
22531         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22532
22533 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22534
22535         * string/strncat.c (STRNCAT): Simplify implementation.
22536
22537 2014-12-19  David S. Miller  <davem@davemloft.net>
22538
22539         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22540         access the quad as both a long double and as a series of 4 words.
22541
22542         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22543         link_map->l_info array access.
22544
22545 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22546
22547         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22548
22549         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22550         * math/atest-exp2.c (TIMEOUT): Likewise.
22551         * math/atest-sincos.c (TIMEOUT): Likewise.
22552
22553 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22554
22555         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22556         -Wno-error with -fno-builtin-lround.
22557
22558 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22559
22560         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22561         Contains futex constants and functions moved over from ...
22562         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22563         <lowlevellock-futex.h>.
22564         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22565         (lll_timedwait_tid): Add comments and parentheses around macro
22566         arguments.
22567
22568 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22569
22570         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22571         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22572         (__lll_private_flag): Remove.
22573         (lll_futex_wait): Likewise.
22574         (lll_futex_timed_wait): Likewise.
22575         (lll_futex_wake): Likewise.
22576         (lll_futex_requeue): Likewise.
22577         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22578         (__lll_timedwait_tid): Spell out argument names.
22579         (lll_timedwait_tid): Add comments and parentheses around macro
22580         arguments.
22581         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22582         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22583
22584 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22585
22586         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22587         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22588         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22589         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22590         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22591         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22592         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22593         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22594         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22595         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22596         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22597         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22598         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22599         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22600         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22601         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22602         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22603         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22604         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22605
22606 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22607
22608         * sysdeps/x86_64/x32/Makefile: New file.
22609
22610 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22611
22612         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22613         1L with (mp_limb_t) 1.
22614
22615 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22616
22617         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22618         * nptl/libc_pthread_init.c: ... here.
22619         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22620         * nptl/register-atfork.c: ... here.
22621
22622         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22623         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22624         Use assert_perror to check its return value.
22625         (__gai_create_helper_thread): Likewise.
22626
22627         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22628
22629         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22630
22631 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22632
22633         [BZ #17725]
22634         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22635         __profil_counter.
22636         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22637         Likewise.
22638         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22639         Likewise.
22640         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22641         Likewise.
22642         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22643         (profil_counter): Likewise.
22644         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22645         (profil_counter): Likewise.
22646         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22647         Likewise.
22648         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22649         Likewise.
22650         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22651         (profil_counter): Likewise.
22652         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22653         Likewise.
22654         [!__profil_counter] (profil_counter): Define as weak alias of
22655         __profil_counter.
22656         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22657         (profil_counter): Rename to __profil_counter.
22658         [!__profil_counter] (profil_counter): Define as weak alias of
22659         __profil_counter.
22660         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22661         (profil_counter): Rename to __profil_counter.
22662         [!__profil_counter] (profil_counter): Define as weak alias of
22663         __profil_counter.
22664         * sysdeps/posix/profil.c: Update comment referring to
22665         profil_counter.
22666         (__profil): Use __profil_counter instead of profil_counter.
22667         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22668         __profil_counter.  Use __profil_counter_ushort and
22669         __profil_counter_uint in definitions.
22670         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22671         instead of profil_counter_uint and profil_counter_ushort.
22672
22673         [BZ #17722]
22674         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22675         define as weak alias of __inet_makeaddr.
22676         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22677         as weak alias of __inet_addr.
22678         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22679         as weak alias of __inet_pton.  Use libc_hidden_weak.
22680         * include/arpa/inet.h (__inet_pton): Declare.  Use
22681         libc_hidden_proto.
22682         (inet_makeaddr): Don't use libc_hidden_proto.
22683         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22684         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22685         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22686         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22687         Remove variable.
22688         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22689         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22690
22691 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22692
22693         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22694
22695 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22696
22697         * stdio-common/bug-vfprintf-nargs.c (do_test):
22698         Cast value to intptr_t to avoid format warning
22699         for usage with PRIdPTR printing macro.
22700
22701 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22702
22703         * libio/tst-widetext.c (do_test):
22704         Use format type %td instead of %Zd for ptrdiff_t
22705         in order to avoid format warning.
22706
22707 2014-12-17  Andreas Schwab  <schwab@suse.de>
22708
22709         * nscd/mem.c (gc): Add size_t cast to match printf format.
22710
22711 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22712
22713         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22714         (init): Apply PTR_MANGLE to pointers before storing them.
22715         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22716         before using them.
22717
22718 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22719
22720         [BZ #17719]
22721         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22722         define as weak alias of __memrchr.
22723         (__memrchr): Do not define as strong alias of memrchr.
22724         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22725         Remove variable.
22726         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22727         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22728         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22729
22730         [BZ #17717]
22731         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22732         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22733         (if_indextoname): Rename to __if_indextoname and define as weak
22734         alias of __if_indextoname.  Use libc_hidden_weak.
22735         (if_freenameindex): Rename to __if_freenameindex and define as
22736         weak alias of __if_freenameindex.
22737         (if_nameindex): Rename to __if_nameindex and define as weak alias
22738         of __if_nameindex.
22739         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22740         __if_nametoindex and define as weak alias of __if_nametoindex.
22741         Use libc_hidden_weak.
22742         (if_freenameindex): Rename to __if_freenameindex and define as
22743         weak alias of __if_freenameindex.
22744         (if_nameindex): Rename to __if_nameindex and define as weak alias
22745         of __if_nameindex.
22746         (if_indextoname): Rename to __if_indextoname and define as weak
22747         alias of __if_indextoname.  Use libc_hidden_weak.
22748         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22749         __if_nametoindex and define as weak alias of __if_nametoindex.
22750         Use libc_hidden_weak.
22751         (if_freenameindex): Rename to __if_freenameindex and define as
22752         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22753         (if_nameindex_netlink): Use __if_freenameindex instead of
22754         if_freenameindex.
22755         (if_nameindex): Rename to __if_nameindex and define as weak alias
22756         of __if_nameindex.  Use libc_hidden_weak.
22757         (if_indextoname): Rename to __if_indextoname and define as weak
22758         alias of __if_indextoname.  Use libc_hidden_weak.
22759         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22760         libc_hidden_proto.
22761         [!_ISOMAC] (__if_freenameindex): Likewise.
22762         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22763         if_nametoindex.
22764         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22765         variable.
22766         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22767         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22768         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22769         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22770         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22771         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22772         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22773
22774         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22775         Remove variable.
22776         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22777         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22778
22779 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22780
22781         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22782         subscript above bounds'
22783
22784         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22785         bounds.
22786
22787 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22788
22789         * libio/tst-fopenloc.c: Use test-skeleton.c.
22790
22791         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22792         (entry): Rename to ITEM.
22793         (do_test, comp): Adjust.
22794
22795         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22796
22797 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22798
22799         * string/tester.c: Include <libc-internal.h>.
22800         (test_memset): Ignore -Wmemset-transposed-args.
22801
22802 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22803
22804         * misc/tst-mntent2.c (do_test): Fix warning.
22805
22806 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22807
22808         * elf/tst-unique4lib.cc(a): Mark as used.
22809
22810 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22811
22812         [BZ #17630]
22813         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22814         names.
22815
22816 2014-12-16  Allan McRae  <allan@archlinux.org>
22817
22818         * stdio-common/Makefile (tests): Re-add bug26.
22819
22820 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22821
22822         [BZ #17657]
22823         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22824         static array.
22825
22826 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22827
22828         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22829         (__lll_lock_wait): Likewise.
22830         (__lll_timedlock_wait): Likewise.
22831         (__lll_timedwait_tid): Likewise.
22832         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22833         (__lll_robust_timedlock_wait): Likewise.
22834         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22835         (lll_cond_trylock): Likewise.
22836         (__lll_lock): Likewise.
22837         (__lll_robust_lock): Likewise.
22838         (__lll_cond_lock): Likewise.
22839         (lll_robust_cond_lock): Likewise.
22840         (__lll_timedlock): Likewise.
22841         (__lll_robust_timedlock): Likewise.
22842         (__lll_unlock): Likewise.
22843         (__lll_robust_unlock): Likewise.
22844         (lll_wait_tid): Likewise.
22845         (lll_timedwait_tid): Likewise.
22846
22847 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22848
22849         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22850
22851 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22852
22853         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22854
22855 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22856
22857         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22858         * stdio-common/tst-sprintf.c: Likewise.
22859
22860 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22861
22862         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22863
22864 2014-12-15  Jeff Law  <law@redhat.com>
22865
22866         [BZ #16617]
22867         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22868         on the heap.  (CVE-2012-3406)
22869         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22870         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22871         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22872
22873 2014-12-15  Will Newton  <will.newton@linaro.org>
22874
22875         * manual/install.texi: Bump required version of texinfo
22876         to 4.7 from 4.5.
22877         * INSTALL: Regenerated.
22878         * configure.ac: Check for makeinfo version 4.7 and above.
22879         * configure: Regenerated.
22880
22881 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22882
22883         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22884         PREFIX, string constant to insert between directory and name.
22885         * sysdeps/posix/shm_open.c: Update caller.
22886         * sysdeps/posix/shm_unlink.c: Likewise.
22887         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22888         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22889         (SEM_SHM_PREFIX): New macro.
22890         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22891         [$(have-thread-library) = no].
22892         * nptl/Makefile (libpthread-routines): Add shm-directory.
22893         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22894         * sysdeps/nptl/shm-directory.h: New file.
22895         * sysdeps/posix/shm-directory.c
22896         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22897         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22898         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22899         INTERNAL_SYSCALL.
22900         (__where_is_shmfs): Function removed.
22901         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22902         Variables removed.
22903         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22904         Use SHM_GET_NAME.
22905         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22906
22907         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22908         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22909         unconditional for use inside libpthread.
22910         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22911
22912 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22913
22914         * nptl/pthread_getaffinity.c: New file.
22915         * nptl/pthread_setaffinity.c: New file.
22916         * nptl/pthread_getname.c: New file.
22917         * nptl/pthread_setname.c: New file.
22918
22919         * nptl/pthread_create.c (START_THREAD_DEFN)
22920         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22921
22922 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22923             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22924
22925         * resolv/res_send.c (send_vc): Disable warning resplen may
22926         be used uninitialized.
22927
22928 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22929
22930         * nptl/tst-mutex6.c
22931         (ATTR_NULL): New define checks ATTR against NULL.
22932         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22933         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22934
22935 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22936
22937         [BZ #17581]
22938         * malloc/hooks.c
22939         (mem2mem_check): Revert my previous change.
22940         (malloc_check_get_size): Revert my previous change.
22941         (mem2chunk_check): Revert my previous change.
22942
22943 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22944
22945         * sysdeps/posix/shm-directory.c: New file.
22946         * sysdeps/posix/shm-directory.h: New file.
22947         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22948         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22949         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22950         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22951         Transmute EPERM to EACCES.
22952         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22953         from ...
22954         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22955         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22956
22957 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22958
22959         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22960         pointer and cast to uintptr_t.
22961         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22962         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22963         Add cast to avoid warning.
22964         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22965
22966 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22967
22968         * nptl/semaphore.h: Move to ...
22969         * sysdeps/pthread/semaphore.h: ... here.
22970         * Makefile (installed-headers): Change nptl/semaphore.h to
22971         sysdeps/pthread/semaphore.h.
22972
22973 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22974
22975         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22976         generated error format strings.
22977
22978         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22979         -Wformat-extra-args warnings for scanf formats.
22980         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22981         test of zero-length format (duh).
22982         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22983         corner-case scanf format test.
22984         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22985         generated fprintf format string.
22986         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22987         corner-case sprintf format tests.
22988         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22989         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22990         -Wformat-extra-args warnings throughout.
22991         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22992         (CFLAGS-scanf4.c): Likewise.
22993         (CFLAGS-scanf7.c): Likewise.
22994         (CFLAGS-tst-sprintf.c): Likewise.
22995         (CFLAGS-tst-printf.c): Likewise.
22996         (CFLAGS-tst-printfsz.c): Likewise.
22997
22998 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22999
23000         * include/cpio.h: New file.
23001         * include/fmtmsg.h: Likewise.
23002
23003         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23004         corresponding format argument to size_t.
23005         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23006         arguments.
23007         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23008         corresponding format argument to size_t.
23009         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23010         arguments.
23011         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23012         corresponding format argument to size_t.
23013         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23014         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23015         (CFLAGS-tst-mbswcs2.c): Likewise.
23016         (CFLAGS-tst-mbswcs3.c): Likewise.
23017         (CFLAGS-tst-mbswcs4.c): Likewise.
23018         (CFLAGS-tst-mbswcs5.c): Likewise.
23019         (CFLAGS-tst-trans.c): Likewise.
23020
23021 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23022
23023         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23024         rather than assuming they won't contain any '%'s.
23025
23026 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23027
23028         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23029         inhibit_loop_to_libcall to avoid recursive calls.
23030         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23031         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23032
23033 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23034
23035         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23036         prototype.
23037
23038 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23039
23040         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23041         integer value instead of boolean.
23042
23043 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23044
23045         * malloc/malloc.c: Fix powerof2 check.
23046
23047 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23048
23049         * locale/programs/locfile.h (maybe_swap_uint32):
23050         Remove inline and add unused attribute.
23051
23052 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23053
23054         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23055         Truncating assembler expression to a .long expression.
23056
23057 2014-12-11  Andreas Schwab  <schwab@suse.de>
23058
23059         * elf/rtld.c (struct map_args): Constify str member.
23060         (do_preload): Constify fname argument.
23061
23062 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23063
23064         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23065         constants definition.
23066
23067 2014-12-11  Andreas Schwab  <schwab@suse.de>
23068
23069         [BZ #16657]
23070         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23071         FORCE_ELISION instead of DO_ELISION.
23072         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23073         Remove.
23074         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23075         Likewise.
23076
23077         * iconvdata/gconv-modules: Remove duplicate entry.
23078
23079 2014-12-11  Will Newton  <will.newton@linaro.org>
23080
23081         Merge gettext 0.19.3 into intl/.
23082
23083         This involves a number of cosmetic changes to comments
23084         and ANSI function definitions and prototypes throughout
23085         all the files. The gettext copyright header is used but
23086         with the date ranges taken from the glibc copy.
23087
23088         * NEWS: Add gettext merge to 2.21.
23089         * intl/bindtextdom.c: Switch to gettext copyright.
23090         Use ANSI definitions and prototypes.
23091         Use gl_* locking primitives rather than __libc_* ones.
23092         Use __builtin_expect rather than __glibc_likely/unlikely.
23093         * intl/dcgettext.c: Switch to gettext copyright.
23094         Use ANSI definitions and prototypes.
23095         * intl/dcigettext.c: Switch to gettext copyright.
23096         Use ANSI definitions and prototypes.
23097         (INTDIV0_RAISES_SIGFPE): New define.
23098         Use gl_* locking primitives rather than __libc_* ones.
23099         Include eval-plural.h instead of plural-eval.c.
23100         Use __builtin_expect rather than __glibc_likely/unlikely.
23101         * intl/dcngettext.c: Switch to gettext copyright.
23102         Use ANSI definitions and prototypes.
23103         * intl/dgettext.c: Likewise.
23104         * intl/dngettext.c: Likewise.
23105         * intl/plural-eval.c: Renamed to...
23106         * intl/eval-plural.h: ...this.
23107         * intl/explodename.c: Switch to gettext copyright.
23108         Use ANSI definitions and prototypes.
23109         (_nl_explode_name): Use strchr instead of __rawmemchr.
23110         * intl/finddomain.c: Switch to gettext copyright.
23111         Use ANSI definitions and prototypes.
23112         Use gl_* locking primitives rather than __libc_* ones.
23113         (_nl_find_domain): Use malloc rather than alloca for
23114         allocation of temporary locale name.
23115         * intl/gettext.c: Switch to gettext copyright.
23116         Use ANSI definitions and prototypes.
23117         * intl/gettextP.h: Switch to gettext copyright.
23118         Use ANSI definitions and prototypes.
23119         Use gl_* locking primitives rather than __libc_* ones.
23120         * intl/gmo.h: Switch to gettext copyright.
23121         (struct sysdep_string): Move struct segment_pair outside of
23122         struct definition.
23123         * intl/hash-string.c: Use ANSI definitions and prototypes.
23124         * intl/hash-string.h: Switch to gettext copyright.
23125         Use ANSI definitions and prototypes.
23126         * intl/l10nflist.c: Switch to gettext copyright.
23127         Use ANSI definitions and prototypes.
23128         (_nl_normalize_codeset): Avoid integer overflow.
23129         * intl/loadinfo.h: Switch to gettext copyright.
23130         Use ANSI definitions and prototypes.
23131         (LIBINTL_DLL_EXPORTED): New define.
23132         (PATH_SEPARATOR): New define.
23133         * intl/loadmsgcat.c: Switch to gettext copyright.
23134         * intl/localealias.c: Switch to gettext copyright.
23135         Use ANSI definitions and prototypes.
23136         (_nl_expand_alias): Use PATH_SEPARATOR.
23137         * intl/ngettext.c: Switch to gettext copyright.
23138         Use ANSI definitions and prototypes.
23139         * intl/plural-exp.c: Likewise.
23140         * intl/plural-exp.h: Switch to gettext copyright.
23141         Use ANSI definitions and prototypes.
23142         (struct expression): Move definition of enum operator outside
23143         of struct definition.
23144         * intl/plural.c: Regenerate.
23145         * intl/plural.y: Switch to gettext copyright.
23146         Use ANSI definitions and prototypes.
23147         Port to bison 3.0.
23148         * intl/textdomain.c: Switch to gettext copyright.
23149         Use ANSI definitions and prototypes.
23150         Use gl_* locking primitives rather than __libc_* ones.
23151
23152 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23153
23154         * debug/warning-nop.c: Add used atrribute.
23155
23156 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23157
23158         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23159
23160         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23161         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23162         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23163
23164 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23165             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23166
23167         [BZ #17634]
23168         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23169         Undefine after defining function.  Define as weak alias of
23170         __wcschr.  Use libc_hidden_weak.
23171         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23172         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23173         (libc_hidden_def): Also define __GI___wcschr alias.
23174         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23175         __wcschr and define as weak alias of __wcschr.
23176         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23177         __wcschr.
23178         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23179         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23180         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23181         libc_hidden_weak.  Do not use libc_hidden_def.
23182         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23183         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23184         __GI___wcschr alias.
23185         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23186         [IS_IN (libc)] (wcschr): Define as macro expanding to
23187         __redirect_wcschr.
23188         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23189         [IS_IN (libc)] (__wcschr_power6): Likewise.
23190         [IS_IN (libc)] (__wcschr_power7): Likewise.
23191         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23192         instead of wcschr.
23193         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23194         __libc_wcschr.
23195         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23196         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23197         __wcschr and define as weak alias of __wcschr.  Use
23198         libc_hidden_builtin_def.
23199         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23200         as weak alias of __wcschr.  Use libc_hidden_weak.
23201         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23202         wcschr.
23203         * time/era.c (_nl_init_era_entries): Likewise.
23204         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23205         variable.
23206         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23207         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23208
23209 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23210
23211         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23212         format for long int variable.
23213
23214 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23215
23216         [BZ #10672]
23217         * manual/search.texi: (Array Sort Function): Remove claim how to make
23218         qsort stable.
23219
23220 2014-12-10  Andreas Schwab  <schwab@suse.de>
23221
23222         [BZ #12847]
23223         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23224         user-controlled locks.
23225
23226 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23227
23228         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23229         register.
23230
23231 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23232
23233         * configure.ac (--disable-werror): New configure option.
23234         (enable_werror): New AC_SUBST.
23235         * configure: Regenerated.
23236         * config.make.in (enable-werror): New variable.
23237         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23238         -Wno-error=undef.
23239         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23240         * manual/install.texi (Configuring and compiling): Document
23241         --disable-werror.
23242         * INSTALL: Regenerated.
23243         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23244         (CFLAGS-tst-chk2.c): Likewise.
23245         (CFLAGS-tst-chk3.c): Likewise.
23246         (CFLAGS-tst-chk4.cc): Likewise.
23247         (CFLAGS-tst-chk5.cc): Likewise.
23248         (CFLAGS-tst-chk6.cc): Likewise.
23249         (CFLAGS-tst-lfschk1.c): Likewise.
23250         (CFLAGS-tst-lfschk2.c): Likewise.
23251         (CFLAGS-tst-lfschk3.c): Likewise.
23252         (CFLAGS-tst-lfschk4.cc): Likewise.
23253         (CFLAGS-tst-lfschk5.cc): Likewise.
23254         (CFLAGS-tst-lfschk6.cc): Likewise.
23255
23256         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23257         (main): Disable -Wdeprecated-declarations around calls to
23258         register_printf_function.
23259
23260         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23261         (do_test): Disable -Wdiv-by-zero around some calls to
23262         fwrite_unlocked and fread_unlocked.
23263
23264         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23265         (DIAG_POP_NEEDS_COMMENT): Likewise.
23266         (_DIAG_STR1): Likewise.
23267         (_DIAG_STR): Likewise.
23268         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23269         * stdio-common/bug21.c: Include <libc-internal.h>.
23270         (do_test): Disable -Wformat around call to sscanf.
23271         * stdio-common/scanf14.c: Include <libc-internal.h>.
23272         (main): Disable -Wformat around some calls to scanf functions.
23273
23274 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23275
23276         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23277
23278 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23279
23280         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23281         stack variable alignment.
23282
23283 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23284
23285         [BZ #17682]
23286         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23287         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23288         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23289         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23290         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23291         __getrlimit instead of getrlimit.
23292         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23293         __gettimeofday instead of gettimeofday.
23294         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23295         Likewise.
23296         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23297         Likewise.
23298         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23299         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23300         Remove variable.
23301         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23302         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23303
23304 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23305
23306         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23307         for wide-character tests.
23308
23309 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23310
23311         * io/openat64.c: #include <libc-internal.h>
23312         (__openat64): Prototypify.  Use ignore_value on MODE.
23313         * io/openat.c: Likewise.
23314         * misc/reboot.c: #include <libc-internal.h>
23315         (reboot): Prototypify.  Use ignore_value on HOWTO.
23316         * misc/ptrace.c: #include <libc-internal.h>
23317         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23318
23319 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23320
23321         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23322         XPG4, UNIX98 and XOPEN2K.
23323         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23324         Remove variable.
23325         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23326
23327 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23328
23329         * libio/fileops.c: Use ISO C style for function definitions.
23330         * libio/iofopen.c: Likewise.
23331         * libio/wfileops.c: Likewise.
23332
23333         [BZ #17653]
23334         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23335         offset on EOF.
23336         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23337         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23338         (fgets_func): Function pointer to fgets and fgetws.
23339         (do_ftell_test): Add test to verify ftell value after read
23340         EOF.
23341         (do_test): Set fgets_func.
23342
23343         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23344         O_TRUNC flag for w and w+ modes.
23345         (do_rewind_test): Likewise.
23346         (do_ftell_test): Likewise.
23347         (do_write_test): Likewise.
23348
23349         [BZ #17647]
23350         * libio/fileops.c (do_ftell): Seek only when there are
23351         unflushed writes.
23352         * libio/wfileops.c (do_ftell_wide): Likewise.
23353         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23354         test case.
23355         (do_one_test): Call it.
23356
23357 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23358
23359         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23360         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23361         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23362         Remove variable.
23363         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23364         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23365         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23366
23367 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23368
23369         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23370         Remove variable.
23371         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23372
23373         [BZ #17668]
23374         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23375         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23376         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23377         __freeifaddrs.  Use libc_hidden_weak.
23378         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23379         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23380         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23381         __freeifaddrs.  Use libc_hidden_weak.
23382         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23383         __getifaddrs and define as weak alias of __getifaddrs.  Use
23384         libc_hidden_weak.
23385         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23386         __freeifaddrs.  Use libc_hidden_weak.
23387         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23388         Remove variable.
23389         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23390         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23391
23392 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23393
23394         [BZ #17601]
23395         * sysdeps/mips/start.S (__start): Use indirect jump to call
23396         __libc_start_main.
23397
23398 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23399
23400         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23401
23402         * nptl/tst-mutex1.c: Include <stdbool.h>.
23403         [!ATTR] (ATTR_NULL): New macro.
23404         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23405         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23406         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23407
23408         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23409         to char *.
23410
23411         [BZ #17665]
23412         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23413         Change conditional to [__USE_MISC].
23414
23415         [BZ #17664]
23416         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23417         fgets_unlocked.
23418         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23419         __fgets_unlocked.
23420         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23421         fgets_unlocked.
23422         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23423         Remove variable.
23424         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23425         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23426         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23427         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23428         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23429         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23430         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23431         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23432         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23433
23434         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23435
23436 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23437
23438         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23439         Remove strpbrk objects.
23440         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23441         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23442         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23443         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23444         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23445         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23446
23447         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23448         Remove strcspn objects.
23449         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23450         (__libc_ifunc_impl_list): Remove strcspn implementation.
23451         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23452         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23453         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23454         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23455
23456         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23457         Remove strspn objetcs.
23458         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23459         (__libc_ifunc_impl_list): Remove strspn implementation.
23460         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23461         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23462         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23463         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23464
23465 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23466
23467         [BZ #17581]
23468         * malloc/hooks.c
23469         (mem2mem_check): Add a terminator to the chain of checking blocks.
23470         (malloc_check_get_size): Use it here.
23471         (mem2chunk_check): Ditto.
23472
23473 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23474
23475         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23476         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23477
23478 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23479
23480         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23481
23482         * nptl/nptl-init.c: Include libc-internal.h.
23483         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23484
23485         * elf/ldconfig.c (search_dir): Expand comment.
23486
23487 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23488
23489         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23490         variable.
23491         (linknamespace-symlist-stdlibs-tests): Likewise.
23492         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23493         instead of $(objpfx)symlist-stdlibs.
23494         (linknamespace-libs-isoc): New variable.
23495         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23496         (linknamespace-libs-ISO): New variable.
23497         (linknamespace-libs-ISO99): Likewise.
23498         (linknamespace-libs-ISO11): Likewise.
23499         (linknamespace-libs-XPG3): Likewise.
23500         (linknamespace-libs-XPG4): Likewise.
23501         (linknamespace-libs-POSIX): Likewise.
23502         (linknamespace-libs-UNIX98): Likewise.
23503         (linknamespace-libs-XOPEN2K): Likewise.
23504         (linknamespace-libs-POSIX2008): Likewise.
23505         (linknamespace-libs-XOPEN2K8): Likewise.
23506         ($(objpfx)symlist-stdlibs): Replace by
23507         $(linknamespace-symlist-stdlibs-tests).  Use
23508         $(linknamespace-libs-$*) as set of libraries.
23509         ($(linknamespace-header-tests)): Update dependencies.  Use
23510         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23511         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23512         * conform/linknamespace.pl: Remove comment about considering
23513         definitions of symbols from irrelevant libraries.
23514
23515 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23516
23517         [BZ #13862]
23518         * elf/dl-tls.c: Include <atomic.h>.
23519         (oom): Remove #ifdef SHARED/#endif.
23520         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23521         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23522         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23523         big enough.
23524         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23525         * nptl/Makefile (tests): Add tst-stack4.
23526         (modules-names): Add tst-stack4mod.
23527         ($(objpfx)tst-stack4): New.
23528         (tst-stack4mod.sos): Likewise.
23529         ($(objpfx)tst-stack4.out): Likewise.
23530         ($(tst-stack4mod.sos)): Likewise.
23531         (clean): Likewise.
23532         * nptl/tst-stack4.c: New file.
23533         * nptl/tst-stack4mod.c: Likewise.
23534
23535 2014-11-27  J. Brown  <jb999@gmx.de>
23536
23537         * sysdeps/x86/bits/string.h: Add recent CPUs.
23538
23539 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23540
23541         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23542         sigblock.
23543
23544         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23545         feof.
23546
23547         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23548         variable.
23549
23550 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23551
23552         * nscd/connections.c: Include libc-internal.h because of macro
23553         usage ignore_value.
23554
23555 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23556
23557         * string/bits/string3.h (__warn_memset_zero_len): Don't
23558         declare for gcc newer than 5.0.
23559         (memset): Don't test for zero-length __LEN for gcc newer than
23560         5.0.
23561
23562 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23563
23564         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23565         size_t for %zu format.
23566
23567         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23568         difference, not %ju.
23569
23570 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23571
23572         * include/libc-internal.h (ignore_value): New macro.
23573         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23574         with ignore_value.
23575
23576         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23577         definition.
23578
23579         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23580         pthread_cleanup_push to void *.
23581
23582         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23583         Undefine.
23584
23585         [BZ #16619]
23586         [BZ #16740]
23587         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23588         instead of 1L << 52.
23589
23590         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23591         * libio/bug-rewind2.c (do_test): Likewise.
23592
23593         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23594         * debug/test-strcpy_chk-ifunc.c: Likewise.
23595         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23596         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23597         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23598         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23599         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23600         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23601         * Rules [$(multi-arch) = no] (tests): Do not filter out
23602         $(tests-ifunc).
23603         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23604         * debug/Makefile (tests-ifunc): Remove variable.
23605         (tests): Do not add $(tests-ifunc).
23606         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23607         (tests): Do not add $(tests-ifunc).
23608         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23609         [TEST_IFUNC]: Remove conditionals.
23610         * string/test-string.h (TEST_IFUNC): Remove macro.
23611         [TEST_IFUNC]: Remove conditionals.
23612
23613         * string/test-strchr.c [!WIDE] (L): New macro.
23614         [WIDE] (L): Likewise.
23615         (check1): Use CHAR instead of char.  Use L on string and character
23616         constants.
23617
23618 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23619
23620         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23621         tests.
23622         * sysdeps/powerpc/bits/atomic.h
23623         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23624         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23625         (atomic_exchange_and_add_acq): Likewise.
23626         (atomic_exchange_and_add_rel): Likewise.
23627         * sysdeps/powerpc/powerpc32/bits/atomic.h
23628         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23629         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23630         * sysdeps/powerpc/powerpc64/bits/atomic.h
23631         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23632         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23633
23634 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23635
23636         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23637         Change synchronization of __sched_fifo_min_prio and
23638         __sched_fifo_max_prio.
23639         * nptl/pthread_mutexattr_getprioceiling.c
23640         (pthread_mutexattr_getprioceiling): Likewise.
23641         * nptl/pthread_mutexattr_setprioceiling.c
23642         (pthread_mutexattr_setprioceiling): Likewise.
23643         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23644         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23645         Likewise.
23646
23647 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23648
23649         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23650         void.
23651
23652 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23653
23654         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23655         third argument const.
23656
23657 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23658
23659         fnmatch: work around GCC compiler warning bug with uninit var
23660         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23661         This works around a bug with x86-64 GCC 4.9.2 and earlier
23662         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23663         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23664         used uninitialized in this function [-Wmaybe-uninitialized]".
23665
23666 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23667
23668         * posix/bug-regex31.c (main): Return RES not 0.
23669
23670 2014-11-25  Anton Blanchard <anton@samba.org>
23671
23672         * sysdeps/powerpc/bits/atomic.h
23673         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23674
23675 2014-11-24  Sterling Augustine  <saugustine@google.com>
23676
23677         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23678
23679 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23680
23681         [BZ #17608]
23682         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23683
23684 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23685
23686         [BZ #17633]
23687         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23688         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23689         variable.
23690         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23691         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23692
23693 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23694
23695         * string/strncpy.c (strncpy): Improve performance by using memset.
23696
23697 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23698
23699         * string/strcpy.c (strcpy):
23700         Improve performance by using strlen and memcpy.
23701
23702 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23703
23704         * string/strcoll_l.c (get_next_seq): __always_inline.
23705         * string/strcoll_l.c (do_compare): __always_inline.
23706
23707 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23708
23709         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23710         defined.
23711         * include/mqueue.h: Likewise.
23712         * include/stdlib.h: Likewise.
23713
23714         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23715         (get_null_defines): Adjust.
23716         * sunrpc/Makefile: Adjust comment.
23717         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23718         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23719         (CFLAGS-interp.c): Likewise.
23720         (CFLAGS-ldconfig.c): Likewise.
23721         (CPPFLAGS-.os): Likewise.
23722         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23723         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23724         * extra-modules.mk (extra-modules.mk): Likewise.
23725         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23726         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23727         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23728         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23729         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23730         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23731         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23732         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23733         * iconvdata/Makefile (CPPFLAGS): Likewise.
23734         (cpp-srcs-left): Add libof for all iconvdata routines.
23735         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23736         * include/assert.h: Likewise.
23737         * include/ctype.h: Likewise.
23738         * include/errno.h: Likewise.
23739         * include/libc-symbols.h: Likewise.
23740         * include/math.h: Likewise.
23741         * include/netdb.h: Likewise.
23742         * include/resolv.h: Likewise.
23743         * include/stdio.h: Likewise.
23744         * include/stdlib.h: Likewise.
23745         * include/string.h: Likewise.
23746         * include/sys/stat.h: Likewise.
23747         * include/wctype.h: Likewise.
23748         * intl/l10nflist.c: Likewise.
23749         * libidn/idn-stub.c: Likewise.
23750         * libio/libioP.h: Likewise.
23751         * nptl/libc_multiple_threads.c: Likewise.
23752         * nptl/pthreadP.h: Likewise.
23753         * posix/regex_internal.h: Likewise.
23754         * resolv/res_hconf.c: Likewise.
23755         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23756         * sysdeps/arm/memmove.S: Likewise.
23757         * sysdeps/arm/sysdep.h: Likewise.
23758         * sysdeps/generic/_itoa.h: Likewise.
23759         * sysdeps/generic/symbol-hacks.h: Likewise.
23760         * sysdeps/gnu/errlist.awk: Likewise.
23761         * sysdeps/gnu/errlist.c: Likewise.
23762         * sysdeps/i386/i586/memcpy.S: Likewise.
23763         * sysdeps/i386/i586/memset.S: Likewise.
23764         * sysdeps/i386/i686/memcpy.S: Likewise.
23765         * sysdeps/i386/i686/memmove.S: Likewise.
23766         * sysdeps/i386/i686/mempcpy.S: Likewise.
23767         * sysdeps/i386/i686/memset.S: Likewise.
23768         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23769         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23770         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23771         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23772         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23773         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23774         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23775         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23776         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23777         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23778         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23779         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23780         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23781         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23782         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23783         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23784         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23785         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23786         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23787         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23788         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23789         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23790         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23791         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23792         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23793         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23794         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23795         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23796         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23797         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23798         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23799         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23800         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23801         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23802         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23803         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23804         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23805         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23806         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23807         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23808         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23809         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23810         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23811         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23812         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23813         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23814         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23815         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23816         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23817         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23818         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23819         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23820         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23821         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23822         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23823         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23824         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23825         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23826         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23827         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23828         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23829         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23830         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23831         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23832         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23833         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23834         * sysdeps/posix/closedir.c: Likewise.
23835         * sysdeps/posix/opendir.c: Likewise.
23836         * sysdeps/posix/readdir.c: Likewise.
23837         * sysdeps/posix/rewinddir.c: Likewise.
23838         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23839         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23840         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23841         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23842         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23843         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23844         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23845         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23846         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23847         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23848         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23849         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23850         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23851         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23852         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23853         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23854         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23855         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23856         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23857         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23858         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23859         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23860         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23861         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23862         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23863         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23864         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23865         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23866         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23867         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23868         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23869         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23870         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23871         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23872         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23873         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23874         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23875         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23876         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23877         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23878         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23879         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23880         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23881         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23882         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23883         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23884         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23885         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23886         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23887         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23888         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23889         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23890         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23891         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23892         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23893         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23894         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23895         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23896         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23897         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23898         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23899         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23900         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23901         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23902         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23903         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23904         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23905         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23906         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23907         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23908         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23909         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23910         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23911         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23912         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23913         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23914         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23915         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23916         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23917         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23918         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23919         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23920         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23921         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23922         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23923         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23924         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23925         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23926         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23927         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23928         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23929         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23930         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23931         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23932         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23933         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23934         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23935         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23936         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23937         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23938         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23939         * sysdeps/unix/alpha/sysdep.S: Likewise.
23940         * sysdeps/unix/alpha/sysdep.h: Likewise.
23941         * sysdeps/unix/make-syscalls.sh: Likewise.
23942         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23943         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23944         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23945         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23946         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23947         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23948         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23949         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23950         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23951         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23952         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23953         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23954         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23955         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23956         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23957         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23958         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23959         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23960         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23961         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23962         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23963         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23964         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23965         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23966         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23967         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23968         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23971         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23972         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23973         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23974         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23975         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23976         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23977         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23978         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23979         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23980         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23981         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23982         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23983         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23984         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23985         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23986         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23987         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23988         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23989         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23990         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23991         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23992         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23993         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23994         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23995         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23996         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23997         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23998         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23999         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24000         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24001         * sysdeps/x86_64/memcpy.S: Likewise.
24002         * sysdeps/x86_64/memmove.c: Likewise.
24003         * sysdeps/x86_64/memset.S: Likewise.
24004         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24005         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24006         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24007         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24008         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24009         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24010         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24011         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24012         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24013         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24014         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24015         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24016         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24017         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24018         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24019         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24020         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24021         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24022         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24023         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24024         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24025         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24026         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24027         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24028         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24029         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24030         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24031         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24032         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24033         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24034         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24035         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24036         * sysdeps/x86_64/strcmp.S: Likewise.
24037
24038         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24039
24040         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24041         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24042         * elf/rtld-Rules: Likewise.
24043         * elf/setup-vdso.h: Likewise.
24044         * include/assert.h: Likewise.
24045         * include/bits/stdlib-float.h: Likewise.
24046         * include/errno.h: Likewise.
24047         * include/sys/stat.h: Likewise.
24048         * include/unistd.h: Likewise.
24049         * sysdeps/aarch64/setjmp.S: Likewise.
24050         * sysdeps/alpha/setjmp.S: Likewise.
24051         * sysdeps/arm/__longjmp.S: Likewise.
24052         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24053         * sysdeps/arm/setjmp.S: Likewise.
24054         * sysdeps/arm/sysdep.h: Likewise.
24055         * sysdeps/generic/_itoa.h: Likewise.
24056         * sysdeps/generic/dl-sysdep.h: Likewise.
24057         * sysdeps/generic/ldsodefs.h: Likewise.
24058         * sysdeps/i386/dl-tls.h: Likewise.
24059         * sysdeps/i386/setjmp.S: Likewise.
24060         * sysdeps/m68k/setjmp.c: Likewise.
24061         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24062         * sysdeps/mach/hurd/opendir.c: Likewise.
24063         * sysdeps/posix/getcwd.c: Likewise.
24064         * sysdeps/posix/opendir.c: Likewise.
24065         * sysdeps/posix/profil.c: Likewise.
24066         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24067         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24068         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24069         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24070         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24071         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24072         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24073         * sysdeps/s390/dl-tls.h: Likewise.
24074         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24075         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24076         * sysdeps/sh/sh3/setjmp.S: Likewise.
24077         * sysdeps/sh/sh4/setjmp.S: Likewise.
24078         * sysdeps/unix/alpha/sysdep.h: Likewise.
24079         * sysdeps/unix/arm/sysdep.S: Likewise.
24080         * sysdeps/unix/i386/sysdep.S: Likewise.
24081         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24082         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24083         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24084         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24085         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24086         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24087         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24088         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24089         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24090         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24091         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24092         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24093         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24096         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24097         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24098         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24099         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24100         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24101         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24102         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24103         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24104         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24105         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24106         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24107         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24108         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24109         * sysdeps/x86_64/setjmp.S: Likewise.
24110
24111         * include/math.h: Use IS_IN instead of IS_IN_libm.
24112         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24113         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24114         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24115         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24116         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24117         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24118         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24119         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24120         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24121         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24122         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24123         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24124         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24125         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24126         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24127         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24128         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24129         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24130         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24131         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24132         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24133         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24134         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24135         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24136         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24137         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24138         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24139         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24140         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24141         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24142         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24143         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24144         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24146         Likewise.
24147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24148         Likewise.
24149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24150         Likewise.
24151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24152         Likewise.
24153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24154         Likewise.
24155         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24156         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24157         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24158         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24159         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24160         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24166         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24167         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24168         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24169         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24170         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24171         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24172         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24173         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24174         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24175         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24176         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24177         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24178         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24179         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24181         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24182
24183         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24184         * nptl/pthreadP.h: Likewise.
24185         * nptl_db/structs.def: Likewise.
24186         * sysdeps/arm/sysdep.h: Likewise.
24187         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24188         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24189         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24190         * sysdeps/unix/alpha/sysdep.h: Likewise.
24191         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24192         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24193         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24194         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24195         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24196         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24197         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24198         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24199         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24200         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24201         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24202         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24203         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24204         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24207         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24208         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24209         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24210         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24211         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24212         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24213         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24214         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24215         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24216         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24217
24218         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24219         * nptl/pthreadP.h: Likewise.
24220         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24221         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24222         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24223         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24224         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24225         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24226         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24227         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24228         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24229         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24230         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24231         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24233         Likewise.
24234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24235         Likewise.
24236         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24237         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24238         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24239         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24240         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24241         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24242         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24243         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24244
24245         * dlfcn/dladdr.c: Use IS_IN.
24246         * dlfcn/dladdr1.c: Likewise.
24247         * dlfcn/dlclose.c: Likewise.
24248         * dlfcn/dlerror.c: Likewise.
24249         * dlfcn/dlinfo.c: Likewise.
24250         * dlfcn/dlmopen.c: Likewise.
24251         * dlfcn/dlopen.c: Likewise.
24252         * dlfcn/dlsym.c: Likewise.
24253         * dlfcn/dlvsym.c: Likewise.
24254
24255         * include/ifaddrs.h: Use IS_IN.
24256         * inet/check_pf.c: Likewise.
24257         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24258         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24259
24260         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24261         IS_IN_ldconfig.
24262         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24263         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24264
24265         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24266         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24267         IS_IN (libc).
24268
24269         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24270
24271         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24272         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24273         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24274         * include/libc-symbols.h (IS_IN_LIB): New macro.
24275         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24276         * include/netdb.h: Likewise.
24277         * include/stap-probe.h: Remove all uses of IN_LIB.
24278
24279         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24280         instead of IN_MODULE.
24281         * include/libc-symbols.h (IN_MODULE): Define using
24282         MODULE_NAME.
24283         (PASTE_NAME, PASTE_NAME1): New macros.
24284         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24285         of IN_LIB.
24286         (STAP_PROBE_ASM): Likewise.
24287
24288 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24289
24290         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24291         __mach_init in dlopened libc.
24292
24293 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24294
24295         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24296         * sysdeps/arm/preconfigure: Regenerate.
24297
24298 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24299
24300         * nptl/pthread_create.c (__pthread_create_2_1): Set
24301         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24302         when copying values from IATTR into PD.
24303
24304 2014-11-21  Will Newton  <will.newton@linaro.org>
24305             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24306
24307         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24308         Refactor inline-asm.  Also add comment.
24309
24310         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24311         ElfW macro instead of hardcoded Elf64 types.
24312         (la_aarch64_gnu_pltenter): Likewise.
24313         * sysdeps/aarch64/dl-machine.h
24314         (elf_machine_runtime_setup): Use ElfW(Addr).
24315
24316         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24317         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24318         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24319         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24320         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24321         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24322         (R_AARCH64_TLS_DTPMOD): This.
24323         (R_AARCH64_TLS_DTPREL64): Rename to ...
24324         (R_AARCH64_TLS_DTPREL): This.
24325         (R_AARCH64_TLS_TPREL64): Rename to ...
24326         (R_AARCH64_TLS_TPREL): This.
24327         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24328         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24329         R_AARCH64_TLS_TPREL64.
24330         (elf_machine_rela): Likewise.
24331
24332 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24333
24334         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24335         by setting it to 0.  64b atomics are not supported currently.
24336
24337 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24338
24339         [BZ #16469]
24340         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24341         search domain names.
24342
24343 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24344
24345         [BZ #16469]
24346         * NEWS: Update.
24347         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24348         trailing dot.
24349         * posix/tst-getaddrinfo5.c: New.
24350         * posix/Makefile (tests): Add it.
24351
24352 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24353
24354         [BZ #14498]
24355         * NEWS: Fixed.
24356         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24357         after parsing line but before break_if_match.
24358         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24359         if there is a protocol mismatch.
24360
24361 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24362
24363         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24364         because the potential race is on the user-supplied stream.
24365
24366 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24367
24368         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24369         string literal if not passed a buffer.
24370         * manual/job.texi (ctermid): Update reasoning, note deviation
24371         from posix, suggest mtasurace when not passed a buffer, for
24372         future non-preliminary safety notes.
24373
24374 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24375
24376         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24377         of not passing it a buffer.
24378         Reported by Peng Haitao.
24379
24380 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24381
24382         * manual/Makefile ($(objpfx)stamp-summary): Require
24383         check-safety.sh to pass.
24384         * manual/check-safety.sh: Wish for verification that every
24385         @deftypefn and @deftypefun is followed by a @safety remark.
24386
24387 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24388
24389         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24390
24391         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24392         PTHREAD_CANCEL_ASYNCHRONOUS.
24393         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24394         send SIGCANCEL.
24395
24396         * nptl/default-sched.h: New file.
24397         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24398         * nptl/pthread_create.c: Include it.
24399         (__pthread_create_2_1): Use collect_default_sched instead of making
24400         Linux syscalls here directly.
24401
24402 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24403
24404         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24405         __pthread_once): Use C11 atomics.
24406
24407 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24408
24409         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24410
24411 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24412
24413         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24414         atomic_thread_fence_acquire, atomic_thread_fence_release,
24415         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24416         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24417         atomic_compare_exchange_weak_relaxed,
24418         atomic_compare_exchange_weak_acquire,
24419         atomic_compare_exchange_weak_release,
24420         atomic_exchange_acquire, atomic_exchange_release,
24421         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24422         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24423         atomic_fetch_and_acquire,
24424         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24425
24426 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24427
24428         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24429         USE_ATOMIC_COMPILER_BUILTINS): Define.
24430         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24431         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24432         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24433         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24434         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24435         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24436         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24437         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24438         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24439         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24440         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24441         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24442         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24443         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24444         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24445         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24446         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24447         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24448         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24449         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24450         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24451         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24452         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24453         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24454         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24455         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24456         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24457         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24458         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24459         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24460         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24461         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24462         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24463         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24464         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24465         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24466         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24467         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24468         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24469         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24470
24471 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24472
24473         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24474         the sched_priority value here.  It was already checked when the user
24475         called pthread_attr_setschedparam.
24476
24477         * nptl/tst-bad-schedattr.c: New file.
24478         * nptl/Makefile (tests): Add it.
24479
24480 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24481             Florian Weimer  <fweimer@redhat.com>
24482             Joseph Myers  <joseph@codesourcery.com>
24483             Adam Conrad  <adconrad@0c3.net>
24484             Andreas Schwab  <schwab@suse.de>
24485             Brooks  <bmoses@google.com>
24486
24487         [BZ #17625]
24488         * wordexp-test.c (__dso_handle): Add prototype.
24489         (__register_atfork): Likewise.
24490         (__app_register_atfork): New function.
24491         (registered_forks): New global.
24492         (register_fork): New function.
24493         (test_case): Add 3 new tests for WRDE_CMDSUB.
24494         (main): Call __app_register_atfork.
24495         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24496         fork count is non-zero fail the test.
24497         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24498         is set.
24499         (parse_dollars): Remove check for WRDE_NOCMD.
24500         (parse_dquote): Likewise.
24501
24502 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24503
24504         * Makeconfig (built-modules): List non-library modules to be
24505         built.
24506         (module-cppflags): Include libc-modules.h for
24507         everything except shlib-versions.v.i.
24508         (CPPFLAGS): Use it.
24509         (before-compile): Add libc-modules.h.
24510         ($(common-objpfx)libc-modules.h,
24511         $(common-objpfx)libc-modules.stmp): New targets.
24512         (common-generated): Add libc-modules.h and libc-modules.stmp.
24513         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24514         * include/libc-symbols.h: Don't include libc-modules.h.
24515         * include/libc-modules.h: Remove file.
24516         * scripts/gen-libc-modules.awk: New script to generate
24517         libc-modules.h.
24518         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24519         Depend on libc-modules.stmp.
24520
24521         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24522
24523         * Makeconfig (in-module): Get value of libof set for the
24524         translation unit.
24525         (CPPFLAGS): Use $(in-module).
24526         * Makerules: Don't suffix routine names for nonlib.
24527         * include/libc-modules.h: New file.
24528         * include/libc-symbols.h: Include libc-modules.h
24529         (IS_IN): New macro to replace IS_IN_* macros.
24530         * elf/Makefile: Set libof-* for each routine.
24531         * elf/rtld-Rules: Likewise.
24532         * extra-modules.mk: Likewise.
24533         * iconv/Makefile: Likewise.
24534         * iconvdata/Makefile: Likewise.
24535         * locale/Makefile: Likewise.
24536         * malloc/Makefile: Likewise.
24537         * nss/Makefile: Likewise.
24538         * sysdeps/gnu/Makefile: Likewise.
24539         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24540         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24541         * sysdeps/s390/s390-64/Makefile: Likewise.
24542         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24543         CPPFLAGS for nscd instead of nonlib.
24544
24545 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24546
24547         * nptl/createthread.c: New file.
24548
24549         * nptl/createthread.c: Moved ...
24550         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24551
24552         * nptl/createthread.c: Add proper top-line comment.
24553         (do_clone): Folded into ...
24554         (create_thread): ... here.  Take new arguments STOPPED_START and
24555         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24556         increment __nptl_threads, do event-reporting logic, do
24557         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24558         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24559         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24560         just send SIGCANCEL.
24561         * nptl/pthread_create.c: Forward-declare create_thread before
24562         including createthread.c.
24563         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24564         declaration, and new macro START_THREAD_SELF to replace argument.
24565         Remove return statement.
24566         (report_thread_creation): New function.
24567         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24568         synchronization logic, and __nptl_nthreads increment here, around
24569         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24570         PD->parent_cancelhandling here, before create_thread.  When
24571         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24572         __deallocate_stack, and ENOMEM translation here.
24573
24574 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24575
24576         [BZ #17616]
24577         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24578         (mptwo): Rename to __mptwo.
24579         (__inv): Use __mptwo instead of mptwo.
24580         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24581         (mptwo): Rename to __mptwo.
24582         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24583         of mpone and __mptwo instead of mptwo.
24584         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24585         instead of mpone.
24586         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24587         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24588         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24589         of mpone and __mptwo instead of mptwo.
24590         (__mpranred): Use __mpone instead of mpone.
24591         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24592         variable.
24593         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24594         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24595         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24596         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24597         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24598         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24599         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24600         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24601         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24602         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24603         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24604         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24605         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24606         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24607         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24608         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24609         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24610         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24611         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24612
24613 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24614
24615         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24616         replace BSD Handler xref with BSD Signal Handling.
24617
24618 2014-11-17  Richard Henderson  <rth@redhat.com>
24619
24620         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24621         (_FP_PACK_RAW_2): Remove.
24622         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24623         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24624         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24625         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24626         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24627         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24628         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24629         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24630         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24631         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24632         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24633         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24634         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24635         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24636         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24637         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24638
24639 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24640
24641         * signal/signal.h [__USE_MISC]
24642         (struct sigvec): Remove type.
24643         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24644         (sigvec): Remove declaration.
24645         * sysdeps/posix/sigvec.c: Moved ...
24646         * signal/sigvec.c: ... here, replacing old file.
24647         (struct sigvec): New type, copied from old signal.h definition.
24648         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24649         (__sigvec): Convert definition to prototype.
24650         (sigvec): Replace weak_alias with compat_symbol.
24651         * signal/Versions (libc: GLIBC_2.21): New version set.
24652         * include/signal.h: Remove __sigvec declaration.
24653         * sysdeps/unix/bsd/sigvec.c: Remove file.
24654         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24655         * manual/signal.texi (BSD Handler): Remove subsection.
24656         Move siginterrupt up to ...
24657         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24658         (Blocking in BSD): Fold subsection into its parent.
24659         * NEWS: Mention sigvec removal.
24660
24661 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24662
24663         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24664         (DLA_FMS): Make definition conditional only on [__FMA4__].
24665         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24666         definition.
24667
24668         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24669         Make definition conditional only on [PROF].
24670         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24671         definition.
24672         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24673         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24674
24675         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24676         !__GNUC__].
24677         * include/signal.h (__sigpause): Move declaration above call to
24678         libc_hidden_proto.
24679         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24680         variable.
24681         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24682         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24683
24684 2014-11-14  David S. Miller  <davem@davemloft.net>
24685
24686         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24687         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24688
24689 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24690
24691         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24692         * configure: Regenerated.
24693         * manual/install.texi (Tools for Compilation): Document a
24694         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24695         compiler verified to work.
24696         * INSTALL: Regenerated.
24697
24698         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24699         redeclare with asm name.
24700         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24701         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24702         including <string.h>.
24703         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24704         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24705         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24706         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24707         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24708         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24709         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24710
24711 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24712
24713         * stdlib/strtol.c (__strtol): Use prototype definition.
24714
24715         [BZ #17594]
24716         * stdlib/strtol.c (SYM__): New macro.
24717         (SYM__1): Likewise.
24718         (__strtol): Likewise.
24719         (strtol): Rename to __strtol and define as weak alias of
24720         __strtol.  Use libc_hidden_weak.
24721
24722 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24723
24724         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24725         Use numbered labels in inline assembly.
24726
24727 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24728
24729         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24730         Add setjmp LIBC_PROBE.
24731         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24732         Likewise.
24733         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24734         Add longjmp, longjmp_target LIBC_PROBE.
24735         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24736         Likewise.
24737
24738 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24739
24740         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24741         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24742         to get rid of unused variable warning.
24743
24744 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24745
24746         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24747         Check for unwind_backtrace ==  NULL only in SHARED case.
24748         (__backchain_backtrace): Compile only in SHARED case.
24749         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24750         Likewise.
24751         (__backchain_backtrace): Declare as static.
24752
24753 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24754
24755         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24756         (__libc_multiple_threads_ptr): Variable moved ...
24757         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24758
24759 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24760
24761         * conform/GlibcConform.pm: New file.
24762         * conform/conformtest.pl: Use GlibcConform module.
24763         * conform/linknamespace.pl: New file.
24764         * conform/list-header-symbols.pl: Likewise.
24765         * conform/Makefile (linknamespace-symlists-base): New variable.
24766         (linknamespace-symlists-tests): Likewise.
24767         (linknamespace-header-base): Likewise.
24768         (linknamespace-header-tests): Likewise.
24769         (tests-special): Add new tests.
24770         ($(linknamespace-symlists-tests)): New rule.
24771         (linknamespace-libs): New variable.
24772         ($(objpfx)symlist-stdlibs): New rule.
24773         ($(linknamespace-header-tests)): Likewise.
24774         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24775         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24776         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24777         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24778         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24779         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24780         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24781         (test-xfail-ISO/math.h/linknamespace): Likewise.
24782         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24783         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24784         (test-xfail-ISO/time.h/linknamespace): Likewise.
24785         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24786         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24787         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24788         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24789         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24790         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24791         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24792         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24793         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24794         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24795         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24796         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24797         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24798         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24799         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24800         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24801         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24802         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24803         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24804         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24805         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24806         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24807         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24808         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24809         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24810         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24811         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24812         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24813         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24814         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24815         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24816         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24817         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24818         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24819         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24820         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24821         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24822         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24823         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24824         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24825         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24826         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24827         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24828         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24829         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24830         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24831         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24832         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24833         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24834         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24835         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24836         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24837         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24838         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24839         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24840         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24841         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24842         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24843         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24844         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24845         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24846         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24847         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24848         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24849         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24850         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24851         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24852         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24853         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24854         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24855         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24856         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24857         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24858         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24859         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24860         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24861         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24862         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24863         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24864         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24865         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24866         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24867         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24868         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24869         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24870         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24871         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24872         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24873         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24874         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24875         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24876         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24877         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24878         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24879         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24880         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24881         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24882         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24883         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24884         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24885         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24886         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24887         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24888         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24889         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24890         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24891         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24892         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24893         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24894         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24895         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24896         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24897         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24898         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24899         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24900         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24901         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24902         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24903         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24904         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24905         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24906         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24907         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24908         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24909         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24910         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24911         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24912         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24913         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24914         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24915         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24916         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24917         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24918         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24919         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24920         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24921         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24922         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24923         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24924         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24925         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24926         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24927         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24928         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24929         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24930         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24931         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24932         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24933         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24934         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24935
24936         [BZ #17589]
24937         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24938         of fgets_unlocked.
24939
24940         [BZ #17585]
24941         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24942         (memmem): Rename to __memmem and define as weak alias of
24943         __memmem.  Use libc_hidden_weak.
24944         (__memmem): Use libc_hidden_def.
24945         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24946         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24947         memmem.
24948
24949         [BZ #17582]
24950         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24951         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24952         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24953         and define as weak alias of __fgets_unlocked.  Use
24954         libc_hidden_weak.
24955         (__fgets_unlocked): Use libc_hidden_def.
24956         * include/stdio.h (__fgets_unlocked): Declare.  Use
24957         libc_hidden_proto.
24958         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24959         __fgets_unlocked instead of fgets_unlocked.
24960         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24961         (GET_NPROCS_CONF_PARSER): Likewise.
24962         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24963         (GET_NPROCS_CONF_PARSER): Likewise.
24964
24965         [BZ #17574]
24966         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24967         weak alias of __wmemset.  Use libc_hidden_weak.
24968         (__wmemset): Use libc_hidden_def.
24969         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24970         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24971         of wmemset.
24972
24973         [BZ #17573]
24974         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24975         with asm name __mempcpy.
24976         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24977
24978         [BZ #17572]
24979         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24980         and define as weak alias of __rawmemchr.
24981         (__rawmemchr): Do not define as strong alias of rawmemchr.
24982
24983         [BZ #17571]
24984         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24985         alias of __qsort_r.
24986         (qsort): Call __qsort_r instead of qsort_r.
24987         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24988         (__qsort_r): Declare.  Call libc_hidden_proto.
24989         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24990         instead of qsort_r.
24991         * nscd/gai.c (__qsort_r): Define to qsort_r.
24992         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24993         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24994         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24995
24996         [BZ #17570]
24997         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24998         define as weak alias of __malloc_info.
24999
25000         [BZ #17584]
25001         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25002         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25003         (__rewinddir): Use libc_hidden_def.
25004         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25005         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25006         (__rewinddir): Use libc_hidden_def.
25007         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25008         weak alias of __rewinddir.  Don't use libc_hidden_def.
25009         (__rewinddir): Use libc_hidden_def.
25010         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25011         (__rewinddir): Use libc_hidden_proto.
25012         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25013         rewinddir.
25014         (__getcwd): Use __rewinddir instead of rewinddir.
25015
25016         [BZ #17583]
25017         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25018         alias of __fileno.  Use libc_hidden_weak.
25019         (__fileno): Use libc_hidden_def.
25020         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25021         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25022         alias of __ftello.
25023         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25024         __ftello.
25025         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25026         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25027         libc_hidden_def.
25028         (fread_unlocked): Don't use libc_hidden_ver.
25029         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25030         and define as weak alias of __fread_unlocked.  Don't use
25031         libc_hidden_def.
25032         (__fread_unlocked): Use libc_hidden_def.
25033         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25034         (ftello): Don't use libc_hidden_proto.
25035         (__ftello): Declare.  Use libc_hidden_proto.
25036         (fread_unlocked): Don't use libc_hidden_proto.
25037         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25038         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25039         and __ftello instead of fileno, fread_unlocked and ftello.
25040
25041 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25042
25043         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25044         GOT12.
25045         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25046         Likewise.
25047         (_dl_start_user): Likewise.
25048         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25049
25050 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25051             Siddhesh Poyarekar  <siddhesh@redhat.com>
25052
25053         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25054         Move argv and envp down instead of moving argc up.
25055         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25056
25057 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25058
25059         [BZ #17506]
25060         * test-skeleton.c (main): Return successful if one of
25061         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25062         * string/tst-strcoll-overflow.c: Define expected status.
25063
25064 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25065
25066         [BZ #17475]
25067         * locale/iso-639.def: Define Bhili and Tulu language codes.
25068
25069 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25070
25071         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25072
25073 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25074
25075         [BZ #17555]
25076         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25077
25078 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25079
25080         * configure.ac: Updated check of minimal required version to
25081         2.22.
25082         * manual/install.texi (Tools for Compilation): Updated version
25083         number.
25084         * configure: Regenerated.
25085         * INSTALL: Likewise.
25086
25087 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25088
25089         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25090         __tls_get_addr.
25091
25092 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25093
25094         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25095         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25096         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25097         libc_hidden_weak.
25098         (waitpid): Define as alias of __waitpid.
25099         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25100         __waitpid.
25101         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25102         libc_hidden_weak.
25103         (waitpid): Define as alias of __waitpid.
25104         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25105         __libc_waitpid alias.
25106         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25107         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25108         Likewise.
25109         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25110         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25111         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25112         alias.
25113         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25114         __waitpid.
25115         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25116         libc_hidden_weak.
25117         (waitpid): Define as alias of __waitpid.
25118
25119 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25120
25121         * manual/llio.texi: Add comment that write safety has been
25122         fixed in Linux.
25123
25124         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25125         (localplt-build-dso): Add elf/ld.so.
25126         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25127         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25128         and free for ld.so.
25129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25130         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25132         Likewise.
25133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25134         Likewise.
25135         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25136         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25137         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25138         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25139         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25140         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25141         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25142         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25143         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25144         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25145         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25146
25147 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25148
25149         [BZ #14132]
25150         * include/libc-symbols.h (INTUSE): Remove macro.
25151         (INTDEF): Likewise.
25152         (INTVARDEF): Likewise.
25153         (_INTVARDEF): Likewise.
25154         (INTDEF2): Likewise.
25155         (INTVARDEF2): Likewise.
25156         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25157         rtld_hidden_def instead of INTVARDEF.
25158         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25159         (_dl_starting_up_internal): Remove declaration.
25160         (_dl_starting_up): Use rtld_hidden_proto.
25161         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25162         declaration.
25163         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25164         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25165         _dl_starting_up.
25166         * elf/dl-writev.h (_dl_writev): Likewise.
25167         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25168         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25169         _dl_starting_up_internal.
25170
25171 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25172
25173         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25174         test-skeleton.c.
25175
25176 2014-11-05  Will Newton  <will.newton@linaro.org>
25177
25178         * benchtests/Makefile: (bench-malloc): Add malloc thread
25179         scalability benchmark.
25180         * benchtests/bench-malloc-threads.c: New file.
25181
25182 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25183
25184         * sysdeps/aarch64/strchrnul.S: New file.
25185
25186 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25187
25188         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25189         definition.
25190         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25191         Likwise.
25192         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25193         Likewise.
25194         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25195         Likewise.
25196         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25197         Likewise.
25198         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25199         Likewise.
25200
25201 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25202
25203         * catgets/test-gencat.c: Use test-skeleton.c.
25204         * catgets/tst-catgets.c: Likewise.
25205         * csu/tst-empty.c: Likewise.
25206         * elf/tst-audit2.c: Likewise.
25207         * elf/tst-global1.c: Likewise.
25208         * elf/tst-pathopt.c: Likewise.
25209         * elf/tst-piemod1.c: Likewise.
25210         * elf/tst-tls10.c: Likewise.
25211         * elf/tst-tls11.c: Likewise.
25212         * elf/tst-tls12.c: Likewise.
25213         * gnulib/tst-gcc.c: Likewise.
25214         * iconvdata/tst-e2big.c: Likewise.
25215         * iconvdata/tst-loading.c: Likewise.
25216         * iconv/tst-iconv1.c: Likewise.
25217         * iconv/tst-iconv2.c: Likewise.
25218         * inet/test-inet6_opt.c: Likewise.
25219         * inet/tst-gethnm.c: Likewise.
25220         * inet/tst-network.c: Likewise.
25221         * inet/tst-ntoa.c: Likewise.
25222         * intl/tst-codeset.c: Likewise.
25223         * intl/tst-gettext2.c: Likewise.
25224         * intl/tst-gettext3.c: Likewise.
25225         * intl/tst-ngettext.c: Likewise.
25226         * intl/tst-translit.c: Likewise.
25227         * io/test-stat.c: Likewise.
25228         * libio/test-fmemopen.c: Likewise.
25229         * libio/tst-freopen.c: Likewise.
25230         * libio/tst-sscanf.c: Likewise.
25231         * libio/tst-ungetwc1.c: Likewise.
25232         * libio/tst-ungetwc2.c: Likewise.
25233         * libio/tst-widetext.c: Likewise.
25234         * localedata/tst-ctype.c: Likewise.
25235         * localedata/tst-digits.c: Likewise.
25236         * localedata/tst-leaks.c: Likewise.
25237         * localedata/tst-mbswcs1.c: Likewise.
25238         * localedata/tst-mbswcs2.c: Likewise.
25239         * localedata/tst-mbswcs3.c: Likewise.
25240         * localedata/tst-mbswcs4.c: Likewise.
25241         * localedata/tst-mbswcs5.c: Likewise.
25242         * localedata/tst-setlocale.c: Likewise.
25243         * localedata/tst-trans.c: Likewise.
25244         * localedata/tst-wctype.c: Likewise.
25245         * localedata/tst-xlocale1.c: Likewise.
25246         * login/tst-grantpt.c: Likewise.
25247         * malloc/tst-calloc.c: Likewise.
25248         * malloc/tst-malloc.c: Likewise.
25249         * malloc/tst-mallocstate.c: Likewise.
25250         * malloc/tst-mcheck.c: Likewise.
25251         * malloc/tst-mtrace.c: Likewise.
25252         * malloc/tst-obstack.c: Likewise.
25253         * math/atest-exp2.c: Likewise.
25254         * math/atest-exp.c: Likewise.
25255         * math/atest-sincos.c: Likewise.
25256         * math/test-matherr.c: Likewise.
25257         * math/test-misc.c: Likewise.
25258         * math/test-powl.c: Likewise.
25259         * math/tst-definitions.c: Likewise.
25260         * misc/tst-dirname.c: Likewise.
25261         * misc/tst-efgcvt.c: Likewise.
25262         * misc/tst-fdset.c: Likewise.
25263         * misc/tst-hsearch.c: Likewise.
25264         * misc/tst-mntent2.c: Likewise.
25265         * nptl/tst-sem7.c: Likewise.
25266         * nptl/tst-sem8.c: Likewise.
25267         * nptl/tst-sem9.c: Likewise.
25268         * nss/test-netdb.c: Likewise.
25269         * posix/tst-fnmatch.c: Likewise.
25270         * posix/tst-getlogin.c: Likewise.
25271         * posix/tst-gnuglob.c: Likewise.
25272         * posix/tst-mmap.c: Likewise.
25273         * pwd/tst-getpw.c: Likewise.
25274         * resolv/tst-inet_ntop.c: Likewise.
25275         * rt/tst-timer.c: Likewise.
25276         * stdio-common/test-fseek.c: Likewise.
25277         * stdio-common/test-popen.c: Likewise.
25278         * stdio-common/test-vfprintf.c: Likewise.
25279         * stdio-common/tst-cookie.c: Likewise.
25280         * stdio-common/tst-fileno.c: Likewise.
25281         * stdio-common/tst-gets.c: Likewise.
25282         * stdio-common/tst-obprintf.c: Likewise.
25283         * stdio-common/tst-perror.c: Likewise.
25284         * stdio-common/tst-sprintf2.c: Likewise.
25285         * stdio-common/tst-sprintf3.c: Likewise.
25286         * stdio-common/tst-sprintf.c: Likewise.
25287         * stdio-common/tst-swprintf.c: Likewise.
25288         * stdio-common/tst-tmpnam.c: Likewise.
25289         * stdio-common/tst-unbputc.c: Likewise.
25290         * stdio-common/tst-wc-printf.c: Likewise.
25291         * stdlib/tst-environ.c: Likewise.
25292         * stdlib/tst-fmtmsg.c: Likewise.
25293         * stdlib/tst-limits.c: Likewise.
25294         * stdlib/tst-rand48-2.c: Likewise.
25295         * stdlib/tst-rand48.c: Likewise.
25296         * stdlib/tst-random2.c: Likewise.
25297         * stdlib/tst-random.c: Likewise.
25298         * stdlib/tst-strtol.c: Likewise.
25299         * stdlib/tst-strtoll.c: Likewise.
25300         * stdlib/tst-tls-atexit.c: Likewise.
25301         * stdlib/tst-xpg-basename.c: Likewise.
25302         * string/test-ffs.c: Likewise.
25303         * string/tst-bswap.c: Likewise.
25304         * string/tst-inlcall.c: Likewise.
25305         * string/tst-strtok.c: Likewise.
25306         * string/tst-strxfrm.c: Likewise.
25307         * sysdeps/x86_64/tst-audit10.c: Likewise.
25308         * sysdeps/x86_64/tst-audit3.c: Likewise.
25309         * sysdeps/x86_64/tst-audit4.c: Likewise.
25310         * sysdeps/x86_64/tst-audit5.c: Likewise.
25311         * time/tst-ftime_l.c: Likewise.
25312         * time/tst-getdate.c: Likewise.
25313         * time/tst-mktime3.c: Likewise.
25314         * time/tst-mktime.c: Likewise.
25315         * time/tst-posixtz.c: Likewise.
25316         * time/tst-strptime2.c: Likewise.
25317         * time/tst-strptime3.c: Likewise.
25318         * wcsmbs/tst-btowc.c: Likewise.
25319         * wcsmbs/tst-mbrtowc.c: Likewise.
25320         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25321         * wcsmbs/tst-wchar-h.c: Likewise.
25322         * wcsmbs/tst-wcpncpy.c: Likewise.
25323         * wcsmbs/tst-wcrtomb.c: Likewise.
25324         * wcsmbs/tst-wcsnlen.c: Likewise.
25325         * wcsmbs/tst-wcstof.c: Likewise.
25326
25327 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25328
25329         [BZ #14132]
25330         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25331         INTDEF.
25332         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25333         declaration.
25334         (_dl_mcount): Use rtld_hidden_proto.
25335         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25336         _dl_mcount.
25337         * elf/rtld.c (_rtld_global_ro): Likewise.
25338
25339         [BZ #14132]
25340         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25341         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25342         of _dl_init_internal.
25343         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25344         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25345         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25346         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25347         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25348         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25349         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25350         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25351         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25352         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25353         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25354         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25355         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25356         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25357         * sysdeps/tile/dl-start.S (_start): Likewise.
25358         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25359         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25360
25361         [BZ #14132]
25362         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25363         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25364         (rtld_progname): Make macro definition unconditional.
25365         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25366         INTDEF.
25367         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25368         (dl_main): Likewise.
25369         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25370         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25371         instead of _dl_argv_internal.
25372         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25373         __GI__dl_argv instead of INTUSE(_dl_argv).
25374         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25375         __GI__dl_argv instead of _dl_argv_internal.
25376
25377         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25378         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25379         macro.
25380         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25381         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25382         New macro.
25383         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25384         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25385         macro.
25386         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25387         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25388
25389 2014-11-04  Andreas Schwab  <schwab@suse.de>
25390
25391         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25392
25393 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25394
25395         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25396         mtvsrd instruction in binary form.
25397
25398 2014-11-03  Andreas Schwab  <schwab@suse.de>
25399
25400         [BZ #17522]
25401         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25402         for less than MB_LEN_MAX use a local buffer of that size.
25403         * libio/tst-fputws.c: New file.
25404         * libio/Makefile (tests): Add tst-fputws.
25405
25406 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25407
25408         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25409         the size of the fpu_fr.fpu_dregs[] array.
25410
25411 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25412
25413         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25414         (__nanosleep): Do not define as alias.
25415         (nanosleep): Define as alias of __nanosleep.
25416         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25417         __libc_nanosleep name.
25418
25419 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25420
25421         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25422         install.texi in comment.
25423
25424 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25425
25426         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25427         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25428         ... add here and use lwsync or sync ...
25429         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25430         ... and add here using lwsync.
25431
25432 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25433
25434         * elf/dl-machine-reject-phdr.h: New file.
25435         * elf/dl-load.c: #include that.
25436         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25437         if that returned true.
25438
25439 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25440
25441         [BZ #17496]
25442         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25443         gen-as-const-headers chunk.  Add a big scare comment after the last
25444         safe place to touch before-compile.
25445
25446 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25447
25448         * manual/install.texi (Tools for Compilation): Update autoconf
25449         version requirements.
25450         * INSTALL: Regenerated.
25451
25452         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25453         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25454         (__libc_pselect): Likewise.
25455
25456         [BZ #14138]
25457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25461
25462 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25463
25464         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25465         correct barrier instruction.
25466         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25467         Likewise.
25468         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25469         Likewise.
25470
25471 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25472
25473         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25474         after defining inlines.  Instead, just use parens to defeat macro
25475         expansion of __isctype in its declaration.
25476
25477 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25478
25479         * include/sys/uio.h (__libc_readv): Remove declaration.
25480         (__libc_writev): Likewise.
25481         * misc/readv.c (__libc_readv): Rename to __readv.
25482         (__readv): Do not define as alias.
25483         (readv): Define as alias of __readv.
25484         * misc/writev.c (__libc_writev): Rename to __writev.
25485         (__writev): Do not define as alias.
25486         (writev): Define as alias of __writev.
25487         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25488         (__readv): Do not define as alias.
25489         (readv): Define unconditionally as alias of __readv.
25490         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25491         (__writev): Do not define as alias.
25492         (writev): Define unconditionally as alias of __writev.
25493         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25494         name.
25495         (writev): Do not define __libc_writev name.
25496
25497 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25498
25499         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25500         (convert_charseq): New function, broken out of ...
25501         (use_from_charmap): ... here.  Call it.
25502         (use_to_charmap): Use convert_charseq and free instead of duplicating
25503         its code with a variable-length stack struct.
25504
25505 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25506
25507         * include/fcntl.h (__libc_creat): Remove declaration.
25508         * io/creat.c (__libc_creat): Rename to creat.
25509         (creat): Do not define as alias.
25510         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25511         of creat instead of __libc_creat.
25512         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25513         to creat.
25514         (creat): Do not define as alias.
25515         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25516         __libc_creat.
25517         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25518         __libc_creat name.
25519         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25520         Likewise.
25521
25522 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25523
25524         * manual/llio.texi: Add comments discussing why write() may be
25525         considered MT-unsafe on Linux.
25526
25527 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25528
25529         * dl-load.c (local_strdup): Remove.
25530         (expand_dynamic_string_token): Use __strdup.
25531         (decompose_rpath): Likewise.
25532         (_dl_map_object): Likewise.
25533
25534 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25535
25536         [BZ #14132]
25537         * sysdeps/generic/unwind-dw2-fde.c
25538         (__register_frame_info_bases_internal): Do not declare.
25539         (__register_frame_info_table_bases_internal): Likewise.
25540         (__deregister_frame_info_bases_internal): Likewise.
25541         (__register_frame_info_bases): Declare and use hidden_proto before
25542         definition.  Use hidden_def instead of INTDEF.
25543         (__register_frame_info_table_bases): Likewise.
25544         (__deregister_frame_info_bases): Likewise.
25545         (__register_frame_info): Do not use INTUSE.
25546         (__register_frame): Likewise.
25547         (__register_frame_info_table): Likewise.
25548         (__register_frame_table): Likewise.
25549         (__deregister_frame_info): Likewise.
25550         (__deregister_frame): Likewise.
25551
25552 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25553
25554         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25555         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25556         not undefine.
25557         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25558         Likewise.
25559         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25560         Likewise.
25561
25562 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25563
25564         [BZ #14138]
25565         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25566         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25567         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25568         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25569         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25570         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25571         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25572         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25573         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25574         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25575         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25576         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25577         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25578         syscall.
25579         (setfsuid): Likewise.
25580         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25581         (setfsuid): Likewise.
25582         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25583         (setfsuid): Likewise.
25584         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25585         Likewise.
25586         (setfsuid): Likewise.
25587         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25588         (setfsuid): Likewise.
25589         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25590         Likewise.
25591         (setfsuid): Likewise.
25592
25593 2014-10-27  Andreas Schwab  <schwab@suse.de>
25594
25595         [BZ #17501]
25596         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25597         check for Slow_SSE4_2 feature bit.
25598         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25599         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25600         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25601         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25602
25603 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25604
25605         * configure.ac: Validate compiler version with a empirical test of
25606         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25607         $CC -v output.
25608         * configure: Regenerated.
25609
25610         * inet/htons.c (htons): Prototypify.
25611         * inet/htonl.c (htonl): Likewise.
25612
25613 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25614
25615         * string/strncat.c (strncat): Improve performance by using strlen.
25616
25617 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25618
25619         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25620
25621 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25622
25623         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25624         Call libc_fetestexcept_aarch64.
25625
25626 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25627
25628         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25629         Call libc_feholdexcept_aarch64.
25630
25631 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25632
25633         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25634         Call get_rounding_mode.
25635
25636 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25637
25638         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25639         Simplify logic.
25640
25641 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25642
25643         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25644         Simplify logic.
25645
25646 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25647
25648         [BZ #14138]
25649         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25650         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25651         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25652         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25653         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25654         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25655         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25656         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25657         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25658         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25659         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25660         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25661         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25662         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25663         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25664         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25665         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25666         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25667         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25668         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25669         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25670         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25671         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25672         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25673         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25674         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25675         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25676         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25677         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25678         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25679         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25680         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25681         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25682         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25683         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25684         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25685         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25686         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25687         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25688         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25689         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25690         syscall.
25691         (geteuid): Likewise.
25692         (getgid): Likewise.
25693         (getuid): Likewise.
25694         (getresgid): Likewise.
25695         (getresuid): Likewise.
25696         (getgroups): Likewise.
25697         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25698         (geteuid): Likewise.
25699         (getgid): Likewise.
25700         (getuid): Likewise.
25701         (getresgid): Likewise.
25702         (getresuid): Likewise.
25703         (getgroups): Likewise.
25704         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25705         (geteuid): Likewise.
25706         (getgid): Likewise.
25707         (getuid): Likewise.
25708         (getresgid): Likewise.
25709         (getresuid): Likewise.
25710         (getgroups): Likewise.
25711         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25712         Likewise.
25713         (geteuid): Likewise.
25714         (getgid): Likewise.
25715         (getuid): Likewise.
25716         (getresgid): Likewise.
25717         (getresuid): Likewise.
25718         (getgroups): Likewise.
25719         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25720         (geteuid): Likewise.
25721         (getgid): Likewise.
25722         (getuid): Likewise.
25723         (getresgid): Likewise.
25724         (getresuid): Likewise.
25725         (getgroups): Likewise.
25726         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25727         Likewise.
25728         (geteuid): Likewise.
25729         (getgid): Likewise.
25730         (getuid): Likewise.
25731         (getgroups): Likewise.
25732
25733         [BZ #14138]
25734         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25735         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25736         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25737         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25738         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25739         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25740         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25741         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25742         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25743         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25744         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25745         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25746         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25747         __chown.
25748         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25749         (lchown): Likewise.
25750         (fchown): Likewise.
25751         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25752         Likewise.
25753         (lchown): Likewise.
25754         (fchown): Likewise.
25755         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25756         (lchown): Likewise.
25757         (fchown): Likewise.
25758         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25759         Likewise.
25760         (lchown): Likewise.
25761         (fchown): Likewise.
25762
25763 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25764
25765         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25766         Simplify logic.
25767
25768 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25769
25770         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25771         Cleanup logic.
25772
25773 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25774
25775         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25776         Remove unused include.
25777
25778 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25779
25780         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25781         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25782         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25783         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25784
25785 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25786             Helge Deller <deller@gmx.de>
25787
25788         [BZ #17508]
25789         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25790         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25791         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25792
25793 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25794
25795         [BZ #14132]
25796         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25797         Remove macro definition.
25798         (__ashrdi3_v_glibc20): Likewise.
25799         (__lshrdi3_v_glibc20): Likewise.
25800         (__cmpdi2_v_glibc20): Likewise.
25801         (__ucmpdi2_v_glibc20): Likewise.
25802         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25803         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25804         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25805         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25806         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25807         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25808
25809 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25810
25811         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25812         old GNU extension [0] syntax.
25813         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25814         alloca rather than an array member with variable length.
25815         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25816         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25817         (parse_opt): ... here.  Likewise use alloca there.
25818         Validate the -i argument before checking for rootness.
25819         (send_shutdown): New function, broken out of ...
25820         (parse_opt): ... here.
25821
25822 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25823
25824         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25825         macro to get at the _rt_local_ro field.
25826         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25827         ([PIC] case) or _dl_hwcap ([!PIC] case).
25828         * sysdeps/arm/setjmp.S: Likewise.
25829
25830         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25831         * sysdeps/arm/configure.ac: New check to define it.
25832         * sysdeps/arm/configure: Regenerated.
25833         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25834         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25835         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25836         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25837         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25838         Use move/movt pair instead of a load.
25839         (LDST_GLOBAL): Macro removed.
25840         (LDR_GLOBAL): New macro replaces it.
25841         (LDR_HIDDEN): New macro.
25842         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25843         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25844
25845         * setjmp/tst-setjmp-static.c: New file.
25846         * setjmp/Makefile (tests): Add it.
25847         (tests-static): New variable.
25848
25849 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25850
25851         [BZ #17485]
25852         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25853
25854 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25855
25856         [BZ #14132]
25857         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25858
25859 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25860
25861         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25862
25863 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25864
25865         * io/fts.c (dirent_not_directory): New function.
25866         (fts_build): Call it.
25867
25868 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25869
25870         * nptl/version.c (__nptl_main): Use normal __write rather than
25871         INTERNAL_SYSCALL.
25872         (banner): Update copyright years.
25873
25874         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25875         gettimeofday.
25876         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25877         * nptl/pthread_cond_timedwait.c: Likewise.
25878         * nptl/pthread_mutex_timedlock.c: Likewise.
25879         * nptl/sem_timedwait.c: Likewise.
25880
25881         * sysdeps/nptl/bits/libc-lock.h
25882         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25883         (__libc_lock_init_recursive): Return void, not 0.
25884         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25885         (__libc_rwlock_init): Likewise.
25886         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25887
25888 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25889
25890         [BZ #15215]
25891         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25892         (__pthread_once_slow): ... here.
25893         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25894         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25895
25896 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25897
25898         [BZ #15215]
25899         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25900         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25901         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25902         * nptl/pthread_once.c (__pthread_once): Likewise.
25903         Update comments.
25904
25905 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25906
25907         [BZ #14138]
25908         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25909         name.
25910         (writev): Use __libc_writev as strong name.
25911         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25912         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25913
25914 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25915
25916         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25917
25918         * sysdeps/i386/nptl/tls.h
25919         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25920         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25921         New macros.
25922         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25923         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25924         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25925         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25926         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25927         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25928
25929         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25930         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25931         on [__NR_futex].
25932         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25933         broken out of ...
25934         (__pthread_mutex_init): ... here.  Call it.
25935         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25936         Conditionalize PI cases on [__NR_futex].
25937         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25938         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25939         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25940
25941         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25942         conditional on [SIGSETXID].
25943         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25944         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25945         is defined.  Likewise for SIGSETXID.
25946         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25947         Conditionalize definitions on [SIGSETXID].
25948         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25949         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25950         unblocking on [SIGCANCEL].
25951
25952         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25953         [__NR_set_robust_list].
25954
25955 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25956
25957         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25958         (do_compare): Likewise.
25959
25960 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25961
25962         [BZ #15884]
25963         * string/strcoll_l.c: Don't include stdio.h.
25964         (coll_seq): Remove members idxarr and rulearr.
25965         (get_next_seq_cached): Remove function.
25966         (get_next_seq): Likewise.
25967         (get_next_seq_nocache): Rename to get_next_seq.
25968         (do_compare): Remove function.
25969         (do_compare_nocache): Rename to do_compare.
25970         (STRCOLL): Remove weight and rules cache.
25971
25972 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25973
25974         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25975         * sysdeps/arm/sfp-machine.h: ... to here.
25976         * sysdeps/arm/Implies: Remove arm/soft-fp.
25977
25978 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25979
25980         * conform/data/sys/utsname.h-data (*_t): Allow.
25981         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25982         [POSIX] (WEXITED): Do not expect constant.
25983         [POSIX] (WSTOPPED): Likewise.
25984         [POSIX] (WNOHANG): Likewise.
25985         [POSIX] (WNOWAIT): Likewise.
25986         [POSIX] (siginfo_t): Do not expect type or elements.
25987         [POSIX] (pid_t): Do not expect type.
25988         [POSIX] (signal.h): Do not allow header.
25989         [POSIX] (sys/resource.h): Likewise.
25990         [POSIX] (si_*): Do not allow pattern.
25991         [POSIX] (W*): Likewise.
25992         [POSIX] (P_*): Likewise.
25993         [POSIX] (BUS_*): Likewise.
25994         [POSIX] (CLD_*): Likewise.
25995         [POSIX] (FPE_*): Likewise.
25996         [POSIX] (ILL_*): Likewise.
25997         [POSIX] (POLL_*): Likewise.
25998         [POSIX] (SEGV_*): Likewise.
25999         [POSIX] (SI_*): Likewise.
26000         [POSIX] (TRAP_*): Likewise.
26001         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26002         variable.
26003
26004 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26005
26006         [BZ #12926]
26007         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26008         infinite loop when __recvmsg returns 0.
26009
26010 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26011
26012         * CANCEL-FCT-WAIVE: Remove file.
26013         * CANCEL-FILE-WAIVE: Likewise.
26014
26015         [BZ #14132]
26016         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26017         instead of INTVARDEF.
26018         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26019         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26020         rtld_hidden_data_def instead of INTVARDEF.
26021         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26022         * elf/dl-deps.c (expand_dst): Likewise.
26023         * elf/dl-load.c (_dl_dst_count): Likewise.
26024         (_dl_dst_substitute): Likewise.
26025         (decompose_rpath): Likewise.
26026         (_dl_init_paths): Likewise.
26027         (open_path): Likewise.
26028         (_dl_map_object): Likewise.
26029         * elf/rtld.c (dl_main): Likewise.
26030         (process_dl_audit): Likewise.
26031         (process_envvars): Likewise.
26032         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26033         Remove declaration.
26034         (__libc_enable_secure): Use rtld_hidden_proto.
26035
26036 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26037
26038         * elf/dl-load.c
26039         (add_path): New function broken out of _dl_rtld_di_serinfo.
26040         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26041
26042 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26043
26044         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26045         parentheses around macro arguments.
26046         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26047         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26048         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26049         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26050         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26051         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26052         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26053         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26054         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26055         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26056         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26057         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26058         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26059         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26060         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26061         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26062         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26063         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26064         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26065         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26066         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26067         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26068         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26069         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26070         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26071         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26072         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26073         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26074         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26075         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26076         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26077         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26078         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26079         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26080         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26081         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26082         Likewise.
26083         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26084         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26085         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26086         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26087         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26088         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26089         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26090         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26091         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26092         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26093         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26094         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26095         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26096         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26097         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26098         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26099         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26100         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26101         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26102         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26103         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26104         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26105         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26106         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26107         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26108         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26109         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26110         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26111         (_FP_FRAC_SRS_1): Likewise.
26112         (_FP_FRAC_CLZ_1): Likewise.
26113         (_FP_MUL_MEAT_1_imm): Likewise.
26114         (_FP_MUL_MEAT_1_wide): Likewise.
26115         (_FP_MUL_MEAT_1_hard): Likewise.
26116         (_FP_SQRT_MEAT_1): Likewise.
26117         (_FP_FRAC_ASSEMBLE_1): Likewise.
26118         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26119         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26120         (__FP_CLZ_2): Likewise.
26121         (_FP_MUL_MEAT_2_wide): Likewise.
26122         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26123         (_FP_MUL_MEAT_2_gmp): Likewise.
26124         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26125         (_FP_SQRT_MEAT_2): Likewise.
26126         (_FP_FRAC_ASSEMBLE_2): Likewise.
26127         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26128         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26129         (_FP_FRAC_CLZ_4): Likewise.
26130         (_FP_MUL_MEAT_4_wide): Likewise.
26131         (_FP_MUL_MEAT_4_gmp): Likewise.
26132         (_FP_SQRT_MEAT_4): Likewise.
26133         (_FP_FRAC_ASSEMBLE_4): Likewise.
26134         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26135         * soft-fp/op-common.h (_FP_CMP): Likewise.
26136         (_FP_CMP_EQ): Likewise.
26137         (_FP_CMP_UNORD): Likewise.
26138         (_FP_TO_INT): Likewise.
26139         (_FP_FROM_INT): Likewise.
26140         [!__FP_CLZ] (__FP_CLZ): Likewise.
26141         (_FP_DIV_HELP_imm): Likewise.
26142         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26143         Likewise.
26144         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26145         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26146         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26147         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26148         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26149         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26150         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26151         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26152         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26153         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26154         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26155         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26156         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26157         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26158         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26159         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26160         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26161         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26162         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26163         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26164         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26165         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26166         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26167         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26168         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26169         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26170         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26171         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26172         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26173         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26174         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26175         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26176         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26177         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26178         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26179         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26180         (FP_UNPACK_RAW_SP): Likewise.
26181         (FP_PACK_RAW_S): Likewise.
26182         (FP_PACK_RAW_SP): Likewise.
26183         (FP_UNPACK_S): Likewise.
26184         (FP_UNPACK_SP): Likewise.
26185         (FP_UNPACK_SEMIRAW_S): Likewise.
26186         (FP_UNPACK_SEMIRAW_SP): Likewise.
26187         (FP_PACK_S): Likewise.
26188         (FP_PACK_SP): Likewise.
26189         (FP_PACK_SEMIRAW_S): Likewise.
26190         (FP_PACK_SEMIRAW_SP): Likewise.
26191         (_FP_SQRT_MEAT_S): Likewise.
26192         (FP_CMP_S): Likewise.
26193         (FP_CMP_EQ_S): Likewise.
26194         (FP_CMP_UNORD_S): Likewise.
26195         (FP_TO_INT_S): Likewise.
26196         (FP_FROM_INT_S): Likewise.
26197
26198         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26199
26200         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26201         (FP_EX_INVALID_IMZ): Likewise.
26202         (FP_EX_INVALID_IMZ_FMA): Likewise.
26203         (FP_EX_INVALID_ISI): Likewise.
26204         (FP_EX_INVALID_ZDZ): Likewise.
26205         (FP_EX_INVALID_IDI): Likewise.
26206         (FP_EX_INVALID_SQRT): Likewise.
26207         (FP_EX_INVALID_CVI): Likewise.
26208         (FP_EX_INVALID_VC): Likewise.
26209         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26210         "invalid" exceptions.
26211         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26212         (_FP_ADD_INTERNAL): Likewise.
26213         (_FP_MUL): Likewise.
26214         (_FP_FMA): Likewise.
26215         (_FP_DIV): Likewise.
26216         (_FP_CMP_CHECK_NAN): Likewise.
26217         (_FP_SQRT): Likewise.
26218         (_FP_TO_INT): Likewise.
26219         (FP_EXTEND): Likewise.
26220
26221 2014-10-09  Allan McRae  <allan@archlinux.org>
26222
26223         * po/fr.po: Update French translation from translation project.
26224
26225 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26226
26227         [BZ #14132]
26228         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26229         of INTDEF.
26230         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26231         (__cxa_atexit): Use libc_hidden_proto.
26232         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26233
26234         [BZ #14132]
26235         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26236         declaration.
26237         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26238         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26239         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26240         [!_ISOMAC] (__iswctype_internal): Likewise.
26241         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26242         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26243         alias.
26244         (fcntl): Remove __fcntl_internal alias.
26245         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26246         __connect_internal alias.
26247         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26248         Likewise.
26249
26250         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26251         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26252         FP_DENORM_ZERO.
26253         (_FP_CHECK_FLUSH_ZERO): New macro.
26254         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26255         (_FP_CMP): Likewise.
26256         (_FP_CMP_EQ): Likewise.
26257         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26258         FP_DENORM_ZERO.
26259         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26260         (FP_TRUNC): Likewise.
26261
26262         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26263         treated as invalid conversion, not as normal exponent.
26264
26265         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26266         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26267         (_FP_CMP_EQ): Likewise.
26268         (_FP_CMP_UNORD): Likewise.
26269         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26270         (FP_CMP_EQ_D): Likewise.
26271         (FP_CMP_UNORD_D): Likewise.
26272         * soft-fp/extended.h (FP_CMP_E): Likewise.
26273         (FP_CMP_EQ_E): Likewise.
26274         (FP_CMP_UNORD_E): Likewise.
26275         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26276         (FP_CMP_EQ_Q): Likewise.
26277         (FP_CMP_UNORD_Q): Likewise.
26278         * soft-fp/single.h (FP_CMP_S): Likewise.
26279         (FP_CMP_EQ_S): Likewise.
26280         (FP_CMP_UNORD_S): Likewise.
26281         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26282         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26283         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26284         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26285         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26286         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26287         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26288         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26289         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26290         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26291         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26292         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26293         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26294         to FP_CMP_Q.
26295         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26296         FP_CMP_Q.
26297         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26298         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26299         FP_CMP_EQ_Q.
26300         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26301         FP_CMP_Q.
26302         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26303         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26304         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26305         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26306         FP_CMP_EQ_Q.
26307         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26308         FP_CMP_Q.
26309         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26310         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26311         FP_CMP_EQ_Q.
26312         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26313         FP_CMP_Q.
26314         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26315         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26316         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26317         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26318         FP_CMP_EQ_Q.
26319
26320         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26321         a subnormal result, set the underflow exception if trapping on
26322         underflow is enabled.
26323         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26324         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26325         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26326         redefine to 0.
26327         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26328         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26329         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26330         * soft-fp/extendxftf2.c (__extendxftf2): Use
26331         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26332
26333         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26334         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26335         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26336         FP_HANDLE_EXCEPTIONS.
26337         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26338         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26339         FP_HANDLE_EXCEPTIONS.
26340         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26341         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26342         FP_HANDLE_EXCEPTIONS.
26343         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26344         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26345         FP_HANDLE_EXCEPTIONS.
26346
26347 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26348
26349         [BZ #14132]
26350         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26351         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26352         use INTUSE.
26353         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26354         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26355         Remove alias.
26356         (__adjtimex): Define using libc_hidden_ver.
26357         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26358         Remove declaration.
26359         (ntp_gettime): Call __adjtimex directly.
26360         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26361         Remove declaration.
26362         (ntp_gettimex): Call __adjtimex directly.
26363         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26364         __adjtimex_internal alias.
26365
26366 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26367
26368         [BZ #17460]
26369         * nscd/nscd.c (more_help): Rewrite list of tables collection
26370         using xstrdup and asprintf.
26371
26372         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26373
26374 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26375             Roland McGrath  <roland@hack.frob.com>
26376
26377         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26378         (do_lookup_unique): ... local function 'enter' here; update callers.
26379
26380 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26381
26382         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26383         compat_symbol calls on [SHARED].
26384         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26385         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26386         Remove.
26387         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26388         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26389         (oldsetrlimit): Remove.
26390         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26392         (lchown): New syscall entry.
26393         (oldsetrlimit): Remove.
26394         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26395         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26396         (oldsetrlimit): Remove.
26397         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26398
26399         [BZ #14138]
26400         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26401         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26402         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26403         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26404         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26405         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26406         (fchown): Likewise.
26407         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26408         (fchown): Likewise.
26409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26410         Likewise.
26411
26412 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26413
26414         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26415         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26416         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26417         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26418         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26419         Likewise.
26420         (__old_sem_post): Likewise.
26421
26422 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26423
26424         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26425         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26426         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26427         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26428         Use INLINE_VSYSCALL macro.
26429         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26430         __vdso_clock_gettime.
26431         * sysdeps/unix/sysv/linux/tile/init-first.c
26432         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26433         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26434         __vdso_clock_gettime.
26435
26436         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26437         to set up frame more cleanly.
26438
26439         * sysdeps/tile/memcmp.c: New file.
26440
26441         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26442
26443         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26444         * sysdeps/tile/tilegx/strcasestr.c: New file.
26445         * sysdeps/tile/tilegx/strnlen.c: New file.
26446         * sysdeps/tile/tilegx/strstr.c: New file.
26447
26448         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26449
26450 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26451
26452         * nptl/tst-setuid3.c: Write errors to stdout.
26453
26454 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26455
26456         * elf/dl-deps.c
26457         (preload): New functions broken out of _dl_map_object_deps.
26458         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26459
26460 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26461
26462         [BZ #14138]
26463         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26464         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26465
26466 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26467
26468         * sysdeps/mips/strcmp.S: New.
26469
26470 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26471
26472         [BZ #14138]
26473         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26474         (linkat): Likewise.
26475         (mkdirat): Likewise.
26476         (readlinkat): Likewise.
26477         (renameat): Likewise.
26478         (symlinkat): Likewise.
26479         (unlinkat): Likewise.
26480         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26481         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26482         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26483         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26484         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26485         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26486         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26487
26488 2014-09-30  Will Newton  <will.newton@linaro.org>
26489
26490         * math/math.h: Define long double math functions if
26491         _LIBC_TEST is defined.
26492         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26493
26494         * localedata/Makefile: Move assignment to tests-special
26495         into an ifdef testing run-built-tests.
26496         * timezone/Makefile: Likewise.
26497
26498 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26499
26500         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26501         with $(BASH) not $(SHELL).
26502
26503 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26504             Matthew LeGendre  <legendre1@llnl.gov>
26505
26506         [BZ #17411]
26507         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26508         l_reloc_result.
26509
26510 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26511
26512         * stdio-common/printf_fp.c
26513         (hack_digit): New function, broken out of ...
26514         (__printf_fp): ... local function here.  Update call sites.
26515         hack_digit now takes an additional parameter that is a pointer
26516         to a struct of the referenced locals.  Those locals moved inside
26517         the struct and references updated.
26518
26519 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26520
26521         * aclocal.m4: Require autoconf 2.69.
26522         * configure: Regenerated.
26523         * sysdeps/aarch64/configure: Likewise.
26524         * sysdeps/alpha/configure: Likewise.
26525         * sysdeps/arm/armv7/configure: Likewise.
26526         * sysdeps/arm/configure: Likewise.
26527         * sysdeps/ia64/configure: Likewise.
26528         * sysdeps/mach/configure: Likewise.
26529         * sysdeps/mips/configure: Likewise.
26530         * sysdeps/s390/configure: Likewise.
26531         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26533
26534         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26535         file.
26536         * sysdeps/ia64/configure.ac: Likewise.
26537
26538 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26539
26540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26541         specify symbol version for ld.so.  Do not include entry for
26542         libpthread.
26543         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26544         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26545         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26546
26547         [BZ #14171]
26548         * Makeconfig [$(build-shared) = yes]
26549         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26550         makefiles.
26551         [$(build-shared) = yes && $(soversions.mk-done) = t]
26552         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26553         [$(build-shared) = yes && $(soversions.mk-done) = t]
26554         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26555         to Makerules.
26556         [$(build-shared) = yes && $(soversions.mk-done) = t]
26557         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26558         here.
26559         [$(build-shared) = yes && $(soversions.mk-done) = t]
26560         (common-generated): Don't append gnu/lib-names.h and
26561         gnu/lib-names.stmp here.
26562         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26563         (lib-names-h-abi): New variable.
26564         [$(build-shared) = yes && $(soversions.mk-done) = t]
26565         (lib-names-stmp-abi): Likewise.
26566         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26567         abi-variants] (before-compile): Append
26568         $(common-objpfx)$(lib-names-h-abi).
26569         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26570         abi-variants] (common-generated): Append gnu/lib-names.h.
26571         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26572         abi-variants] (install-others-nosubdir): Depend on
26573         $(inst_includedir)/$(lib-names-h-abi).
26574         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26575         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26576         [$(build-shared) = yes && $(soversions.mk-done) = t]
26577         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26578         [$(build-shared) = yes && $(soversions.mk-done) = t]
26579         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26580         [$(build-shared) = yes && $(soversions.mk-done) = t]
26581         (common-generated): Append $(lib-names-h-abi) and
26582         $(lib-names-stmp-abi).
26583         * scripts/lib-names.awk: Do not handle multi being set.
26584         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26585         Remove variable.
26586         (abi-lp64_be-ld-soname): Likewise.
26587         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26588         Likewise.
26589         (abi-hard-ld-soname): Likewise.
26590         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26591         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26592         Remove variable.
26593         (abi-o32_hard-ld-soname): Likewise.
26594         (abi-o32_soft_2008-ld-soname): Likewise.
26595         (abi-o32_hard_2008-ld-soname): Likewise.
26596         (abi-n32_soft-ld-soname): Likewise.
26597         (abi-n32_hard-ld-soname): Likewise.
26598         (abi-n32_soft_2008-ld-soname): Likewise.
26599         (abi-n32_hard_2008-ld-soname): Likewise.
26600         (abi-n64_soft-ld-soname): Likewise.
26601         (abi-n64_hard-ld-soname): Likewise.
26602         (abi-n64_soft_2008-ld-soname): Likewise.
26603         (abi-n64_hard_2008-ld-soname): Likewise.
26604         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26605         Likewise.
26606         (abi-64-v2-ld-soname): Likewise.
26607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26608         ld.so entries.
26609         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26610         variable.
26611         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26612         entry.
26613         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26614         variable.
26615         (abi-64-ld-soname): Likewise.
26616         (abi-x32-ld-soname): Likewise.
26617         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26618         entry.
26619         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26620
26621 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26622
26623         [BZ #14138]
26624         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26625         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26626         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26627         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26628         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26629         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26630         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26631         syscall entry for GLIBC_2.2 symbol version.
26632         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26633         Likewise.
26634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26635         (setrlimit): Likewise.
26636         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26637         Likewise.
26638
26639 2014-09-23  Will Newton  <will.newton@linaro.org>
26640
26641         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26642         _LINUX_ARM_SYSDEP_H include guard too.
26643         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26644         define.
26645
26646 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26647
26648         * sysdeps/unix/sysv/linux/eventfd.c:
26649         Make first argument unsigned.
26650         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26651         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26652
26653 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26654
26655         [BZ #16852]
26656         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26657         * socket/sys/socket.h: Likewise.
26658         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26659
26660 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26661
26662         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26663
26664 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26665
26666         * time/tst-ftime.c: New test.
26667         * time/Makefile (tests): Add tst-ftime.
26668
26669 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26670
26671         * soft-fp/extended.h: Fix comment formatting.
26672         * soft-fp/op-1.h: Likewise.
26673         * soft-fp/op-2.h: Likewise.
26674         * soft-fp/op-4.h: Likewise.
26675         * soft-fp/op-8.h: Likewise.
26676         * soft-fp/op-common.h: Likewise.
26677         * soft-fp/soft-fp.h: Likewise.
26678
26679         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26680
26681 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26682
26683         [BZ #6652]
26684         * Makeconfig (soversions-default-setname): Remove variable.
26685         ($(common-objpfx)soversions.i): Don't pass default_setname to
26686         soversions.awk.
26687         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26688         oldest_abi to abi-versions.awk.
26689         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26690         * config.make.in (oldest-abi): Remove variable.
26691         * configure.ac (--enable-oldest-abi): Remove configure option.
26692         * configure: Regenerated.
26693         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26694         text.
26695         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26696         * scripts/soversions.awk: Do not handle default_setname variable.
26697         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26698         variable.
26699         * sysdeps/mach/hurd/configure: Regenerated.
26700         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26701         variable.
26702         * sysdeps/unix/sysv/linux/configure: Regenerated.
26703
26704 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26705
26706         * elf/Makefile (CFLAGS-interp.c): Remove.
26707         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26708         path string.
26709         * elf/interp.c: Include generated runtime-linker.h
26710
26711         * Makerules (lib%.so): Don't include $(+interp) in
26712         prerequisites.
26713         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26714         * dlfcn/eval.c: Remove file.
26715
26716         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26717         macros.
26718
26719         [BZ #17266]
26720         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26721         4.2 and newer.
26722
26723         [BZ #17370]
26724         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26725
26726 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26727             Jakub Jelinek  <jakub@redhat.com>
26728
26729         [BZ #17266]
26730         * libio/stdio.h: Check definition of __fortify_function
26731         instead of __extern_always_inline to include bits/stdio2.h.
26732         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26733         check if __extern_always_inline is defined.
26734         [__USE_MISC || __USE_XOPEN]: Likewise.
26735         [__USE_ISOC99] Likewise.
26736         * misc/sys/cdefs.h (__fortify_function): Define only if
26737         __extern_always_inline is defined.
26738         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26739         __extern_always_inline and __extern_inline only for g++-4.3
26740         and newer or a compatible gcc.
26741
26742 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26743
26744         [BZ #17371]
26745         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26746         last change to handle zero prefix length.
26747
26748 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26749
26750         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26751         _SC_REGEX_VERSION.
26752
26753         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26754         _POSIX_RAW_SOCKETS.
26755
26756 2014-09-13  Allan McRae  <allan@archlinux.org>
26757
26758         * po/ru.po: Update Russian translation from translation project.
26759
26760 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26761
26762         * locale/programs/locale.c (show_locale_vars): Inline local function
26763         into its sole call site.  Clean up some style nits.
26764         (print_item): New function, broken out of ...
26765         (show_info): ... local function here.  Clean up style nits.
26766
26767         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26768         out of ...
26769         (set_class_defaults): ... local function set_default here.
26770         Define set_default as a macro locally to pass constant parameters.
26771         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26772         rather than a shared local.
26773
26774         * stdlib/rpmatch.c (try): New function, broken out of ...
26775         (rpmatch): ... local function here.  Also, prototypify definition.
26776
26777 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26778
26779         * scripts/soversions.awk: Do not handle configuration names.
26780         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26781         vendor and os variables to soversions.awk.
26782         * configure.ac: Do not modify gnu-* host_os.
26783         * configure: Regenerated
26784         * shlib-versions: Remove first column with configuration names.
26785         * nptl/shlib-versions: Likewise.
26786         * nptl_db/shlib-versions: Likewise.
26787         * sysdeps/hppa/shlib-versions: Likewise.
26788         * sysdeps/m68k/shlib-versions: Likewise.
26789         * sysdeps/mach/hurd/shlib-versions: Likewise.
26790         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26791         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26792         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26793         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26794         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26795         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26796         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26797         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26799         Likewise.
26800         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26801         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26802         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26803         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26804         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26805         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26806         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26807         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26808
26809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26810         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26812         Regenerated.
26813         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26815         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26816
26817         * shlib-versions: Remove OS-specific entries.  Moved to files in
26818         sysdeps.
26819         * sysdeps/mach/hurd/shlib-versions: New file.
26820         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26821
26822         * nptl/shlib-versions: Remove architecture-specific entries.
26823         Moved to files in sysdeps.
26824         * shlib-versions: Likewise.
26825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26826         file.
26827         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26828         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26829         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26830         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26831
26832         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26833         (UDP_NO_CHECK6_RX): Likewise.
26834
26835 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26836
26837         * sysdeps/posix/sysconf.c (__sysconf): Spell
26838         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26839
26840 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26841
26842         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26843         loading.
26844         * iconv/Versions (__gconv_transliterate): Export for use from
26845         gconv modules.
26846         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26847         (struct __gconv_trans_data, __gconv_trans_fct,
26848         __gconv_trans_context_fct, __gconv_trans_query_fct,
26849         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26850         definitions.
26851         (struct __gconv_step_data): Remove __trans member.
26852         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26853         longer hidden.  Remove unused trans_data argument.
26854         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26855         (__gconv_translit_find): Remove declaration.
26856         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26857         prototype.
26858         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26859         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26860         trans_data argument.  Add hidden definition.
26861         (__gconv_translit_find): Remove.
26862         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26863         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26864         * iconv/skeleton.c: Remove transliteration initialization.
26865         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26866         __gconv_step_data initialization.
26867         * libio/iofwide.c (__libio_translit_): Remove.
26868         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26869         * wcsmbs/btowc.c (__btowc): Likewise.
26870         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26871         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26872         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26873         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26874         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26875         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26876         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26877         * wcsmbs/wctob.c (wctob): Likewise.
26878
26879 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26880
26881         [BZ #16194]
26882         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26883         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26884         register usage.
26885         * sysdeps/x86/Makefile: Adjust.
26886
26887 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26888             Roland McGrath  <roland@hack.frob.com>
26889
26890         * locale/weight.h: Add include guard.
26891         (findidx): Make static rather than auto; take new parameters
26892         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26893         * locale/weightwc.h: Likewise.
26894         * posix/fnmatch_loop.c
26895         (FCT): Change type of EXTRA from int32_t to wint_t.
26896         Don't include either header inside the function.
26897         Call FINDIDX rather than findidx, and pass new arguments.
26898         #undef FINDIDX at the end of the file.
26899         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26900         FINDIDX before including fnmatch_loop.c for the non-wide version.
26901         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26902         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26903         for the wide version.
26904         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26905         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26906         Pass new arguments to findidx.
26907         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26908         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26909         Don't #include it inside the function.  Pass new arguments to findidx.
26910         * posix/regex_internal.h
26911         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26912         (re_string_elem_size_at): Don't #include it inside the function.
26913         Pass new arguments to findidx.
26914         * string/strcoll_l.c: #include WEIGHT_H at top level.
26915         (get_next_seq): Don't #include it inside the function.
26916         Pass new arguments to findidx.
26917         (get_next_seq_nocache): Likewise.
26918         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26919         (STRXFRM): Don't #include it inside the function.
26920         Pass new arguments to findidx.
26921
26922 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26923
26924         [BZ #17344]
26925         * malloc/malloc.c (unlink): Turn asserts into a call to
26926         malloc_printerr.
26927
26928 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26929
26930         [BZ #17370]
26931         * libio/wfileops (do_ftell_wide): Free OUT.
26932
26933 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26934
26935         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26936
26937 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26938
26939         [BZ #17363]
26940         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26941         group if the current group is empty.
26942
26943 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26944
26945         * benchtests/bench-memset.c (test_main): Add more test from size
26946         from 32 to 512 bytes.
26947         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26948         Add POWER8 memset object.
26949         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26950         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26951         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26952         implementation.
26953         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26954         Likewise.
26955         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26956         multiarch POWER8 memset optimization.
26957         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26958         POWER8 memset optimization.
26959
26960         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26961         Remove bzero multiarch objects.
26962         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26963         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26964         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26965         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26966         Remove define.
26967         [__bzero]: Redefine to specific name.
26968         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26969         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26970         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26971         define.
26972         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26973         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26974
26975 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26976
26977         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26978         warnings into errors.
26979
26980         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26981         __cxa_thread_atexit_impl prototype.
26982
26983 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26984
26985         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26986         Fix capitalization of error message.
26987
26988 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26989
26990         * sysdeps/mips/preconfigure: Modify ABI tests.
26991
26992 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26993
26994         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26995
26996 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26997             Carlos O'Donell  <carlos@systemhalted.org>
26998
26999         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27000         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27001         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27002         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27003         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27004         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27005         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27006         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27007         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27008         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27009         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27010         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27011         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27012         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27013         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27014         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27015         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27016         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27017         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27018         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27019         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27020         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27021         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27022         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27023         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27024         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27025         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27026         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27027         Deconditionalize the code that was previously under [RESET_PID].
27028         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27029         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27030         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27031         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27032         include sysdep.h.
27033
27034 2014-09-08  Allan McRae  <allan@archlinux.org>
27035
27036         * version.h (RELEASE): Set to "development".
27037         (VERSION): Set to "2.20.90"
27038
27039 2014-09-07  Allan McRae  <allan@archlinux.org
27040
27041         * version.h (RELEASE): Set to "stable".
27042         (VERSION): Set to "2.20"
27043         * include/features.h (__GLIBC_MINOR__): Set to 20.
27044
27045         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27046         Liebler.
27047
27048         * po/ko.po: Update Korean translation from translation project.
27049
27050 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27051
27052         [BZ #17354]
27053         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27054         macro for handling signed relocations.
27055
27056 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27057
27058         [BZ #17325]
27059         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27060         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27061         assert.
27062         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27063         * iconvdata/ibm935.c (BODY): Likewise.
27064         * iconvdata/ibm937.c (BODY): Likewise.
27065         * iconvdata/ibm939.c (BODY): Likewise.
27066         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27067         assert.
27068         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27069         script.
27070         * iconvdata/run-iconv-test.sh: New test loop for checking for
27071         decoder crashers.
27072
27073 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27074
27075         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27076         libm_hidden_ver.
27077
27078 2014-09-01  Allan McRae  <allan@archlinux.org>
27079
27080         * po/eo.po: Update Esperanto translation from translation project.
27081
27082         * po/ca.po: Update Catalan translation from translation project.
27083
27084 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27085
27086         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27087         __proc_dostop call.
27088
27089 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27090
27091         [BZ #17319]
27092         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27093         to call set_thread_area instead of hand written asm.
27094         (__NR_set_thread_area): Removed define.
27095         (TLS_FLAG_WRITABLE): Likewise.
27096         (__ASSUME_SET_THREAD_AREA): Remove check.
27097         (TLS_EBX_ARG): Remove define.
27098         (TLS_LOAD_EBX): Likewise.
27099
27100 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27101
27102         Simplify atomicity of socket creation in bind.
27103
27104         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27105         looking up the name after linking the file.
27106
27107 2014-08-27  Allan McRae  <allan@archlinux.org>
27108
27109         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27110
27111 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27112
27113         [BZ #17187]
27114         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27115         trans_compare, open_translit, __gconv_translit_find):
27116         Remove module loading code.
27117
27118 2014-08-26  Allan McRae  <allan@archlinux.org>
27119
27120         * po/vi.po: Update Vietnamese translation from translation project.
27121
27122         * po/uk.po: Update Ukrainian translation from translation project.
27123
27124         * po/fr.po: Update French translation from translation project.
27125
27126         * po/ru.po: Update Russian translation from translation project.
27127
27128         * po/pl.po: Update Polish translation from translation project.
27129
27130         * po/cs.po: Update Czech translation from translation project.
27131
27132         * po/de.po: Update German translation from translation project.
27133
27134         * po/bg.po: Update Bulgarian translation from translation project.
27135
27136         * po/sv.po: Update Sweedish translation from translation project.
27137
27138         * po/nl.po: Update Dutch translation from translation project.
27139
27140         * po/es.po: Update Spanish translation from translation project.
27141
27142 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27143
27144         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27145
27146         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27147         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27148         (CPPFLAGS-iconvconfig): Likewise.
27149         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27150
27151         * include/libc-symbols.h: Remove unnecessary check for
27152         NOT_IN_libc.
27153         * nptl/pthreadP.h: Likewise.
27154         * sysdeps/aarch64/setjmp.S: Likewise.
27155         * sysdeps/alpha/setjmp.S: Likewise.
27156         * sysdeps/arm/sysdep.h: Likewise.
27157         * sysdeps/i386/setjmp.S: Likewise.
27158         * sysdeps/m68k/setjmp.c: Likewise.
27159         * sysdeps/posix/getcwd.c: Likewise.
27160         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27161         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27162         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27163         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27164         * sysdeps/sh/sh3/setjmp.S: Likewise.
27165         * sysdeps/sh/sh4/setjmp.S: Likewise.
27166         * sysdeps/unix/alpha/sysdep.h: Likewise.
27167         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27168         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27169         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27170         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27173         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27174         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27175         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27176         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27177         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27178         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27179         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27180         * sysdeps/x86_64/setjmp.S: Likewise.
27181
27182 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27183
27184         [BZ #17263]
27185         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27186         <stdint.h>.
27187         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27188         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27189
27190 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27191
27192         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27193
27194         [BZ #17262]
27195         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27196         and __x86_64__ when disabling x87 inline functions.
27197
27198 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27199
27200         [BZ #17259]
27201         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27202         asm statement with __cpuid_count.
27203
27204 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27205
27206         * configure.ac: Change __ehdr_start code to dereference the struct.
27207         Run readelf on the output to look for relocations.
27208         * configure: Regenerated.
27209
27210 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27211
27212         [BZ #17261]
27213         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27214         value to 0.
27215         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27216
27217 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27218
27219         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27220
27221 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27222
27223         [BZ #16892]
27224         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27225         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27226
27227 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27228
27229         * malloc/malloc.c: Fix typo in comment.
27230
27231 2014-08-09  Allan McRae  <allan@archlinux.org>
27232
27233         * Regenerate libc.po.
27234
27235 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27236
27237         * intl/tst-gettext2.sh: Check every lang file for creation.
27238
27239 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27240
27241         * sysdeps/aarch64/fpu/math_private.h
27242         (libc_feholdsetround_noex_aarch64_ctx): New function.
27243
27244 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27245
27246         * sysdeps/arm/armv6/strcpy.S (strcpy):
27247         Fix performance issue in misaligned cases.
27248
27249 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27250
27251         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27252         Move definition from termios.h.
27253         (struct termio): Likewise.
27254         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27255         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27256         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27257         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27258         Likewise.
27259         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27260         Move definition to ioctl-types.h
27261         (struct termio): Likewise.
27262         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27263         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27264         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27265         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27266         Likewise.
27267
27268 2014-08-05  Richard Henderson  <rth@redhat.com>
27269
27270         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27271         exceptions.
27272         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27273         Add fraiseexcpt.
27274         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27275         Use __feraiseexcept.
27276         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27277         Protect libm symbols with IS_IN_libm.
27278
27279         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27280
27281 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27282
27283         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27284
27285 2014-08-04  Will Newton  <will.newton@linaro.org>
27286
27287         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27288         file.
27289
27290 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27291
27292         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27293         variants for each function.
27294
27295 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27296
27297         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27298         appended ...
27299         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27300         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27301         appended ...
27302         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27303         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27304         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27305         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27306         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27307         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27308         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27309         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27310         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27311         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27312         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27313         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27314         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27315         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27316         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27317         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27318         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27319         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27320         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27321         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27322         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27323         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27324         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27325         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27326         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27327         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27328         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27329         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27330         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27331         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27332         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27333         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27334         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27335         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27336         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27337         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27338         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27339         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27340         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27341         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27342         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27343         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27344         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27345         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27346         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27347         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27348         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27349         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27350         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27351         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27352         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27353         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27354         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27355         Update #include.
27356         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27357         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27358
27359 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27360
27361         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27362         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27363         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27364         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27365         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27366         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27367
27368 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27369
27370         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27371         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27372         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27373         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27374
27375 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27376
27377         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27378         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27379         (__libc_vfork): Define function under this name.
27380         (__vfork): Define as an alias.
27381         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27382         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27383
27384 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27385
27386         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27387         that was previously under [RESET_PID].
27388         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27389
27390 2014-08-04  Andreas Schwab  <schwab@suse.de>
27391
27392         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27393
27394 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27395
27396         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27397         (main): Likewise.
27398
27399 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27400
27401         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27402
27403 2014-08-01  Richard Henderon  <rth@redhat.com>
27404
27405         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27406         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27407         typo in exact zero test.
27408         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27409         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27410         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27411
27412 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27413
27414         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27415         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27416         * sysdeps/arm/sysdep.h: ... here.
27417         [!__ASSEMBLER__]: Include <stdint.h>.
27418
27419 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27420
27421         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27422         (HAVE_WCTYPE_H): Likewise.
27423         (HAVE_ISWCTYPE): Likewise.
27424         (ENABLE_NLS): Likewise.
27425         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27426         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27427
27428         * posix/regex_internal.c: Check if DEBUG is defined and is
27429         set.
27430
27431         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27432         (HAVE_MBSRTOWCS): Likewise.
27433         * posix/fnmatch.c: Include string.h unconditionally.
27434
27435 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27436
27437         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27438         reversal.
27439
27440 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27441
27442         * sysdeps/generic/safe-fatal.h: New file.
27443         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27444         * nptl/forward.c: Include it.
27445         (__pthread_unwind): Use __safe_fatal as default action, rather
27446         than a bogus use of INTERNAL_SYSCALL that could never work.
27447
27448         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27449         * configure.ac (libc_cv_builtin_trap): New test.
27450         * configure: Regenerated.
27451         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27452         (ABORT_INSTRUCTION): Define using __builtin_trap.
27453
27454         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27455         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27456         * sysdeps/nptl/nptl-signals.h: New file.
27457         * nptl/pthreadP.h: Include <nptl-signals.h>.
27458
27459 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27460
27461         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27462         (ONE_DIRECTION): Define.
27463         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27464         (ONE_DIRECTION): Define.
27465         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27466         (ONE_DIRECTION): Define.
27467
27468 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27469
27470         * sysdeps/s390/Makefile: Delete file.
27471         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27472         * sysdeps/s390/__longjmp.c: Delete file.
27473         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27474         Remove fields __flags and __reserved.
27475         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27476         and add versioning.
27477         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27478         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27479         * sysdeps/s390/rtld-setjmp.S: Likewise.
27480         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27481         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27482         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27483         * sysdeps/s390/s390-32/setjmp.S: ... here.
27484         Add versioning.
27485         (__sigsetjmp): Remove setting __flags field.
27486         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27487         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27488         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27489         * sysdeps/s390/s390-64/setjmp.S: ... here.
27490         Add versioning.
27491         (__sigsetjmp): Remove setting __flags field.
27492         * sysdeps/s390/setjmp.S: Delete file.
27493         * sysdeps/s390/sigjmp.c: Likewise.
27494         * sysdeps/s390/v1-longjmp.c: Likewise.
27495         * sysdeps/s390/v1-setjmp.h: Likewise.
27496         * sysdeps/s390/v1-sigjmp.c: Likewise.
27497         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27498         Remove v1-longjmp_chk.
27499         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27500         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27501         Include debug/longjmp_chk.c and add versioning.
27502         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27503         Include nptl/pt-longjmp.c and add versioning.
27504         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27505         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27506         Include __longjmp.c.
27507         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27508         Move to ...
27509         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27510         (__getcontext): Remove setting __flags field.
27511         Add versioning.
27512         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27513         Don't restore upper high grps.
27514         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27515         Likewise.
27516         (__swapcontext): Remove setting uc_flags field.
27517         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27518         Delete file.
27519         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27520         Include __longjmp.c.
27521         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27522         Move to ...
27523         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27524         (__getcontext): Remove setting __flags field.
27525         Add versioning.
27526         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27527         (__swapcontext): Remove setting uc_flags field.
27528         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27529         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27530         Remove fields uc_high_gprs and __reserved.
27531         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27532         New file with reverted content.
27533         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27534         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27535         Regenerated.
27536         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27537         Regenerated.
27538
27539 2014-07-31  Andreas Schwab  <schwab@suse.de>
27540
27541         * config.h.in (HAVE_IFUNC): Define to 0.
27542         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27543         definedness.
27544
27545 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27546
27547         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27548         memmove-avx-unaligned, memcpy-avx-unaligned and
27549         mempcpy-avx-unaligned.
27550         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27551         Add tests for AVX memcpy functions.
27552         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27553         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27554         memcpy_chk.
27555         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27556         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27557         memmove_chk.
27558         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27559         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27560         mempcpy_chk.
27561         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27562         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27563         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27564
27565 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27566
27567         [BZ #17213]
27568         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27569         powerpc64le.
27570
27571 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27572
27573         [BZ #16839]
27574         * manual/llio.texi: Add section about open file description locks.
27575         * manual/examples/ofdlocks.c: Example of open file description
27576         lock usage.
27577         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27578         F_OFD_SETLK, and F_OFD_SETLKW.
27579
27580 2014-07-23  Allan McRae  <allan@archlinux.org>
27581
27582         * po/es.po: Update Spanish translation from translation project.
27583
27584 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27585
27586         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27587
27588 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27589
27590         [BZ #17078]
27591         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27592         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27593         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27594
27595 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27596
27597         [BZ #17088]
27598         * math/fesetenv.c (__fesetenv)
27599         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27600         * math/feupdateenv.c (__feupdateenv)
27601         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27602
27603         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27604         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27605         (__ASSUME_SOCKETCALL): Do not define.
27606
27607         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27608         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27609         (__ASSUME_SOCKETCALL): Do not define.
27610         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27611         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27612         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27613         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27614         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27615         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27616         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27617         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27618
27619         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27620         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27621         (__ASSUME_SOCKETCALL): Do not define.
27622         (__ASSUME_IPC64): Define unconditionally.
27623         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27624         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27625         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27626         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27627         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27628         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27629         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27630         Likewise.
27631
27632         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27633         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27634         (__ASSUME_SOCKETCALL): Do not define.
27635         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27636         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27637         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27638         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27639         (__ASSUME_REQUEUE_PI): Define unconditionally.
27640         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27641         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27642         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27643         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27644         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27645         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27646
27647         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27648         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27649         (__ASSUME_SOCKETCALL): Do not define.
27650         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27651         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27652         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27653         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27654         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27655         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27656
27657         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27658         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27659         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27660         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27661         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27662         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27663         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27664         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27665         (__ASSUME_GETCPU_SYSCALL): Likewise.
27666
27667         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27668         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27669         cases for individual architectures.
27670         * sysdeps/gnu/configure: Regenerated.
27671         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27672         LIBC_SLIBDIR_RTLDDIR.
27673         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27674         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27675         LIBC_SLIBDIR_RTLDDIR.
27676         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27678         LIBC_SLIBDIR_RTLDDIR.
27679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27680         Regenerated.
27681         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27682         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27683         file.
27684         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27685         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27686         file.
27687         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27688         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27689         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27690         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27691
27692         * sysdeps/aarch64/shlib-versions: Move to ...
27693         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27694         * sysdeps/alpha/shlib-versions: Move to ...
27695         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27696         * sysdeps/arm/shlib-versions: Move to ...
27697         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27698         * sysdeps/hppa/shlib-versions: Move all contents except for
27699         libgcc_s entry to ...
27700         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27701         entry from ...
27702         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27703         * sysdeps/ia64/shlib-versions: Move to ...
27704         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27705         entry from ...
27706         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27707         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27708         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27709         * sysdeps/microblaze/shlib-versions: Move to ...
27710         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27711         * sysdeps/mips/shlib-versions: Move to ...
27712         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27713         entry from ...
27714         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27715         * sysdeps/tile/shlib-versions: Move to ...
27716         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27717         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27718         from ...
27719         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27720         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27721         entry from ...
27722         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27723
27724 2014-07-17  Will Newton  <will.newton@linaro.org>
27725
27726         * sysdeps/arm/bits/atomic.h
27727         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27728         (__arch_compare_and_exchange_bool_16_int): Likewise.
27729         (__arch_compare_and_exchange_bool_64_int): Likewise.
27730
27731         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27732         into an #else block.
27733
27734 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27735
27736         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27737         just Linux configurations.  Test empirically that the compiler sets
27738         __ARM_EABI__, rather than using the tuple to decide.
27739         * sysdeps/arm/preconfigure: Regenerated.
27740         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27741         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27742         contents appended ...
27743         * sysdeps/arm/configure.ac: ... here.
27744         * sysdeps/arm/configure: Regenerated.
27745
27746 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27747
27748         * nptl/pthread_kill.c: New file.
27749         * nptl/pthread_sigmask.c: New file.
27750         * nptl/pthread_sigqueue.c: New file.
27751
27752         * sysdeps/nptl/lowlevellock.h: New file.
27753         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27754         * sysdeps/nptl/lowlevellock-futex.h: New file.
27755
27756         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27757         Remove dead declarations.
27758
27759 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27760
27761         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27762         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27763         config-cflags-avx2.
27764         * sysdeps/x86_64/configure.ac: Likewise.
27765         * sysdeps/i386/configure: Regenerated.
27766         * sysdeps/x86_64/configure: Likewise.
27767         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27768         memset-avx2 only if config-cflags-avx2 is yes.
27769         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27770         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27771         defined.
27772         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27773         only if HAVE_AVX2_SUPPORT is defined.
27774         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27775
27776 2014-07-14  Alan Modra  <amodra@gmail.com>
27777
27778         [BZ #17153]
27779         * elf/elf.h (DT_PPC64_NUM): Correct value.
27780         * NEWS: Add to fixed bug list.
27781
27782 2014-07-13  Jim Meyering  <meyering@fb.com>
27783
27784         [BZ 17150]
27785         regex: don't deref NULL upon heap allocation failure
27786         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27787         failure in one more place.
27788         To trigger the segfault, configure grep -with-included-regex,
27789         build it, and run these commands:
27790         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27791
27792 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27793
27794         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27795
27796 2014-07-11  Richard Henderson  <rth@redhat.com>
27797
27798         * sysdeps/aarch64/libm-test-ulps: Update.
27799
27800 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27801
27802         [BZ #17135]
27803         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27804         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27805         (__nptl_setxid): Initialize error member.  Call
27806         __nptl_setxid_error.
27807         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27808         * nptl/descr.h (struct xid_command): Add error member.
27809         * nptl/tst-setuid3.c: New file.
27810         * nptl/Makefile (tests): Add it.
27811
27812 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27813
27814         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27815         New define.
27816         (__lll_trylock): Use __lll_base_trylock.
27817         (__lll_cond_trylock): Likewise.
27818
27819 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27820
27821         * nptl/pthread_create.c (start_thread): Use atomic_or and
27822         lll_futex_wake directly rather than lll_robust_dead.
27823         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27824         (lll_robust_dead): Macro removed.
27825         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27826         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27827         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27828         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27829         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27830         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27831         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27832         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27833         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27834         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27835         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27836         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27837         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27838         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27839         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27840
27841         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27842         Use atomic_compare_and_exchange_val_acq directly rather than
27843         lll_robust_trylock.
27844         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27845         (__lll_robust_trylock, lll_robust_trylock): Removed.
27846         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27847         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27848         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27849         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27850         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27851         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27852         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27853         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27854         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27855         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27856         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27857         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27858         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27859         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27860
27861 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27862
27863         * manual/locale.texi (Locale Names): New section documenting
27864         locale name syntax.  Adjust menu and node chaining accordingly.
27865         (Choosing Locale): Reference Locale Names, Locale Categories.
27866         Mention setting LC_ALL=C.  Reflect that name syntax is now
27867         documented.
27868         (Locale Categories): New section title.  Reference Locale Names.
27869         LC_ALL is an environment variable, but not a category.
27870         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27871         description, now in Locale Name.  Reference that section.  Locale
27872         name syntax is now documented.
27873
27874 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27875
27876         [BZ #17137]
27877         * locale/findlocale.c (name_present, valid_locale_name): New
27878         functions.
27879         (_nl_find_locale): Use the loc_name variable to store name
27880         candidates.  Call name_present and valid_locale_name to check and
27881         validate locale names.  Return an error if the locale is invalid.
27882
27883 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27884
27885         * locale/setlocale.c (setlocale): Use strdup for allocating
27886         composite name copy.
27887
27888 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27889
27890         Sync up with gnulib.
27891         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27892         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27893         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27894         and _GL_ARG_NONNULL.
27895         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27896         [!_LIBC]: Include code for Windows and Cygwin.
27897         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27898         Include prototype for int strerror_r.
27899         [!_LIBC] (is_open): New function.
27900         (flush_stdout): New function.
27901         (print_errno_message): Use it.
27902         (error): Likewise.
27903         (error_at_line): Likewise.
27904         (error_tail) Add function attribute macros.  Use
27905         __builtin_expect.
27906
27907         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27908
27909         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27910
27911         * io/ftw.c: Include sys/param.h unconditionally.
27912
27913         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27914
27915         [BZ #17125]
27916         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27917         libc_freeres_ptr.
27918         (freecache): New function to free CACHE on exit.
27919
27920         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27921         initialization.
27922
27923 2014-07-09  David S. Miller  <davem@davemloft.net>
27924
27925         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27926
27927         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27928         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27929         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27930         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27931         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27932         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27933         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27934         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27935         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27936         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27937         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27938         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27939         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27940
27941 2014-07-09  Andreas Schwab  <schwab@suse.de>
27942
27943         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27944         output.
27945         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27946         (do_test): Likewise.
27947
27948         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27949
27950 2014-07-09  Will Newton  <will.newton@linaro.org>
27951
27952         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27953         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27954         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27955         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27956         * sysdeps/hppa/start.S (_start): Likewise.
27957
27958 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27959
27960         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27961
27962         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27963         defined.
27964
27965 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27966
27967         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27968         after checking that it is non-NULL.
27969
27970         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27971
27972 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27973
27974         * sysdeps/powerpc/memmove.c: Remove file.
27975         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27976         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27977         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27978         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27979         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27980         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27981         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27982         string memmove instead of removed powerpc one.
27983
27984         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27985         [weak_alias]: Fix compiler warning due trailing data.
27986         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27987         [weak_alias]: Likewise.
27988         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27989         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27990
27991         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27992         (__libc_ifunc_impl_list): Add memmove functions.
27993
27994 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27995
27996         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27997         Remove code.
27998         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27999         Likewise.
28000         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28001         Likewise.
28002         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28003         Likewise.
28004         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28005         Likewise.
28006         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28007         Likewise.
28008         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28009         Likewise.
28010         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28011         Likewise.
28012         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28013         Likewise.
28014         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28015         Likewise.
28016         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28017         Likewise.
28018         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28019         Likewise.
28020         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28021         Likewise.
28022         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28023         Likewise.
28024         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28025         Likewise.
28026         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28027         Likewise.
28028         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28029         Likewise.
28030
28031 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28032
28033         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28034         to avoid alignment traps in non-cacheable memory.
28035         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28036
28037         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28038         multiarch objects.
28039         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28040         file: multiarch power7 memmove.
28041         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28042         multiarch default memmove.
28043         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28044         multiarch memove for powerpc32/power4.
28045
28046         * string/bcopy.c: Use full path to include memmove.c.
28047         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28048         multiarch objects.
28049         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28050         bcopy for powerpc64.
28051         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28052         bcopy for powerpc64.
28053         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28054         and memmove implementations.
28055         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28056         optimized multiarch memmove for POWER7/powerpc64.
28057         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28058         default multiarch memmove for powerpc64.
28059         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28060         multiarch for powerpc64.
28061         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28062         for POWER7/powerpc64.
28063         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28064         memmove for POWER7/powerpc64.
28065
28066         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28067         glibc default one.
28068
28069         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28070         __ELF_NATIVE_CLASS equal to 64.
28071
28072 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28073
28074         * sysdeps/nptl/lowlevellock.h: File removed.
28075
28076         * NEWS: NPTL is no longer an add-on!
28077         * nptl/internaltypes.h: Moved ...
28078         * sysdeps/nptl/internaltypes.h: ... here.
28079         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28080         * sysdeps/nptl/fork.c: Likewise.
28081         * sysdeps/nptl/gai_misc.h: Likewise.
28082         * sysdeps/nptl/librt-cancellation.c: Likewise.
28083         * sysdeps/nptl/jmp-unwind.c: Likewise.
28084         * sysdeps/nptl/setxid.h: Likewise.
28085         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28086         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28087         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28088         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28089         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28090         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28091         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28092         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28093         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28094         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28095         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28096         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28097         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28098         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28099         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28100         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28101         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28102         * nptl/Makeconfig: Moved ...
28103         * sysdeps/nptl/Makeconfig: ... here.
28104         * nptl/configure: File removed.
28105         * nptl/ANNOUNCE: File removed.
28106         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28107         * sysdeps/unix/sysv/linux/configure: Regenerated.
28108
28109         * nptl/Makefile (routines): Add libc_pthread_init,
28110         libc_multiple_threads, register-atfork and unregister-atfork.
28111         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28112         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28113         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28114         pthread-pi-defines.sym, structsem.sym.
28115         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28116         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28117         [$(subdir) = nptl] (tests): Add tst-setgetname.
28118         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28119         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28120         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28121         [!LIBC_SIGACTION]: Remove aliases.
28122         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28123         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28124         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28125         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28126         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28127         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28128         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28129         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28130         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28131         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28132         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28133         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28134         __libc_allocate_rtsig_private.
28135         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28136         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28137         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28138         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28139         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28140         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28141         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28142         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28143         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28144         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28145         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28146         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28147         * nptl/internaltypes.h: ... here.
28148         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28149         * sysdeps/nptl/jmp-unwind.c: ... here.
28150         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28151         * nptl/libc-lowlevellock.c: ... here.
28152         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28153         * nptl/libc_multiple_threads.c: ... here.
28154         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28155         * nptl/libc_pthread_init.c: ... here.
28156         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28157         * nptl/lowlevelbarrier.sym: ... here.
28158         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28159         * nptl/lowlevelcond.sym: ... here.
28160         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28161         * nptl/lowlevellock.c: ... here.
28162         * nptl/lowlevellock.h: Moved ...
28163         * sysdeps/nptl/lowlevellock.h: ... here.
28164         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28165         * nptl/lowlevelrobustlock.c: ... here.
28166         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28167         * nptl/lowlevelrobustlock.sym: ... here.
28168         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28169         * nptl/lowlevelrwlock.sym: ... here.
28170         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28171         * nptl/pt-fork.c: ... here.
28172         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28173         * nptl/pthread-pi-defines.sym: ... here.
28174         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28175         * nptl/pthread_attr_getaffinity.c: ... here.
28176         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28177         * nptl/pthread_attr_setaffinity.c: ... here.
28178         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28179         * nptl/pthread_mutex_cond_lock.c: ... here.
28180         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28181         Update #include.
28182         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28183         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28184         * nptl/pthread_once.c: ... here, replacing old file.
28185         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28186         * nptl/pthread_yield.c: ... here.
28187         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28188         * nptl/register-atfork.c: ... here.
28189         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28190         * nptl/sem_post.c: ... here.
28191         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28192         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28193         * nptl/sem_timedwait.c: ... here.
28194         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28195         * nptl/sem_trywait.c: ... here.
28196         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28197         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28198         * nptl/sem_wait.c: ... here.
28199         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28200         * nptl/structsem.sym: ... here.
28201         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28202         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28203         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28204         * nptl/unregister-atfork.c: ... here.
28205         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28206         * nptl/unwindbuf.sym: ... here.
28207         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28208         * sysdeps/nptl/fork.c: ... here.
28209         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28210         * sysdeps/nptl/fork.h: ... here.
28211         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28212         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28213         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28214         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28215         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28216         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28217         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28218         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28219         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28220         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28221         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28222         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28223         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28224         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28225         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28226         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28227         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28228         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28229         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28230         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28231         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28232         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28233         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28234         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28235         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28236         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28237         * sysdeps/unix/sysv/linux/raise.c: ... here.
28238         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28239         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28240         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28241         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28242         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28243         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28244         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28245         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28246         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28247         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28248         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28249         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28250         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28251         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28252         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28253
28254 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28255
28256         * sysdeps/generic/memcopy.h: Add comment for
28257         MEMCPY_OK_FOR_FWD_MEMMOVE.
28258
28259 2014-07-04  Will Newton  <will.newton@linaro.org>
28260
28261         * string/memchr.c: Merge from gnulib.
28262         [_LIBC]: Remove conditionals.
28263         (__ptr_t): Remove define.
28264         (LONG_MAX_32_BITS): Likewise.
28265         (LONG_MAX): Likewise.
28266         (MEMCHR): Use ANSI prototype and optimize algorithm.
28267
28268         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28269
28270 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28271
28272         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28273         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28274
28275         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28276         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28277         in a bare environment with no <stdlib.h> installed.
28278         * sysdeps/nptl/configure: Regenerated.
28279
28280         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28281
28282         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28283         AC_EGREP_CPP for kernel header checks, so they only succeed if
28284         including <linux/version.h> actually works right.
28285         * sysdeps/unix/sysv/linux/configure: Regenerated.
28286
28287         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28288         value so it's not diagnosed as unused.
28289
28290         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28291         thing) with "ifeq ($(subdir),rt)".
28292
28293 2014-07-03  Richard Henderson  <rth@redhat.com>
28294
28295         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28296         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28297         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28298
28299         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28300         (math_force_eval): New.
28301
28302         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28303         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28304
28305         * sysdeps/alpha/fpu/s_round.c: Remove file.
28306         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28307
28308         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28309         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28310         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28311         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28312         (_dl_start, print_statistics): Likewise.
28313         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28314         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28315
28316         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28317         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28318         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28319         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28320         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28321         (HP_SMALL_TIMING_AVAIL): Define.
28322         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28323         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28324         (HP_SMALL_TIMING_AVAIL): Define.
28325         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28326         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28327
28328         * sysdeps/aarch64/hp-timing.h: New file.
28329
28330         * sysdeps/generic/hp-timing.h: Remove dead comment.
28331         * sysdeps/generic/hp-timing-common.h: New file.
28332         * sysdeps/alpha/hp-timing.h: Include it.
28333         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28334         * sysdeps/i386/i686/hp-timing.h: Likewise.
28335         * sysdeps/ia64/hp-timing.h: Likewise.
28336         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28337         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28338         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28339         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28340         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28341         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28342         (hp_timing_t): New.
28343
28344         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28345         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28346         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28347         * elf/rtld.c (_dl_start_final): Likewise.
28348         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28349         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28350         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28351         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28352         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28353         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28354         (HP_TIMING_DIFF_INIT): Remove.
28355         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28356         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28357         (HP_TIMING_DIFF_INIT): Remove.
28358         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28359         * sysdeps/i386/i686/hp-timing.c: Remove file.
28360         * sysdeps/x86_64/hp-timing.c: Remove file.
28361         * sysdeps/ia64/hp-timing.c: Remove file.
28362         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28363         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28364         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28365         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28366
28367         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28368         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28369         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28370         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28371         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28372         (HP_TIMING_ACCUM): Remove.
28373         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28374         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28375         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28376
28377         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28378         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28379         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28380         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28381         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28382         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28383         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28384         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28385
28386         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28387
28388 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28389
28390         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28391
28392 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28393
28394         Sync up with gettext.
28395         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28396         [_MSC_VER]: Include malloc.h
28397         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28398         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28399         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28400         TEMP_FAILURE_RETRY.  Cast return of alloca.
28401         [!_LIBC] Call gl_rwlock_init.
28402         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28403
28404 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28405
28406         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28407         before checking its value.
28408
28409 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28410
28411         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28412
28413         * debug/memcpy_chk.c: Don't include pagecopy.h.
28414         * debug/mempcpy_chk.c: Likewise.
28415         * string/memcpy.c: Likewise.
28416         * string/memmove.c: Likewise.
28417         * sysdeps/powerpc/memmove.c: Likewise.
28418         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28419         definition of PAGE_COPY_FWD_MAYBE here...
28420         * sysdeps/generic/pagecopy.h: ... from here.
28421         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28422
28423 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28424             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28425
28426         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28427         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28428         optimizations.
28429         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28430         (__libc_ifunc_impl_list): Likewise.
28431         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28432         multiarch strcat for PPC64.
28433         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28434         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28435
28436 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28437
28438         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28439
28440 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28441
28442         * intl/loadmsgcat.c: Remove declaration of
28443         get_sysdep_segment_value.
28444         (get_sysdep_segment_value): Use ISO C style.
28445         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28446         semicolon.  Fix typo and formatting in comment.
28447         (_nl_unload_domain): Use ISO C style.
28448
28449         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28450
28451 2014-07-02  Will Newton  <will.newton@linaro.org>
28452
28453         * malloc/obstack.c: Merge from gnulib master.
28454         [HAVE_CONFIG_H]: Remove conditional code.
28455         [!_LIBC]: Include config.h.
28456         [!ELIDE_CODE]: Don't include inttypes.h, include
28457         stdint.h unconditionally.
28458         (print_and_abort): Mark as _Noreturn.
28459         (_obstack_allocated_p): Mark as __attribute_pure__.
28460         (obstack_free): Rename to __obstack_free.
28461         [!__attribute__]: Remove conditional code.
28462         * malloc/obstack.h: Merge from gnulib master.
28463         [__cplusplus]: Move conditional down.
28464         [!__attribute_pure__]: Define __attribute_pure__ here
28465         if it is not already defined.
28466         (_obstack_memory_used): Mark as __attribute_pure__.
28467         [!__obstack_free]: Define as obstack_free.
28468         [__GNUC__]: Remove check for ancient NeXT gcc.
28469
28470 2014-07-02  Will Newton  <will.newton@linaro.org>
28471             Paul Eggert  <eggert@cs.ucla.edu>
28472
28473         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28474
28475 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28476
28477         * resolv/gethnamaddr.c: Add comment warning that the file is
28478         not maintained.
28479
28480 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28481
28482         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28483         entries.
28484
28485         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28486         entry for aio_cancel and aio_cancel64.
28487         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28488         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28489         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28490         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28491         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28492         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28493         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28494         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28495         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28496         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28497         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28498         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28499         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28500
28501 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28502
28503         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28504         * nptl/pthread_mutex_lock.c: Likewise.
28505         * nptl/pthread_mutex_timedlock.c: Likewise.
28506         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28507
28508 2014-07-01  Richard henderson  <rth@redhat.com>
28509
28510         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28511         (__isnan, __isnanl): Remove.
28512         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28513
28514         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28515
28516 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28517
28518         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28519
28520 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28521
28522         * resolv/nss_dns/dns-host.c (getanswer_r)
28523         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28524
28525 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28526
28527         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28528         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28529         undefine.
28530         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28531         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28532
28533 2014-07-01  Roland McGrath <roland@hack.frob.com>
28534
28535         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28536         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28537
28538         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28539         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28540
28541         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28542         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28543         ... here.
28544         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28545         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28546
28547         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28548         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28549         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28550         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28551
28552         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28553         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28554         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28555         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28556         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28557         Moved ...
28558         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28559         ... here.
28560         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28561         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28562         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28563         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28564         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28565         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28566         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28567         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28568         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28569         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28570         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28571         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28572         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28573         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28574         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28575         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28576         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28577         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28578         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28579         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28580         ... here.
28581         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28582         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28583         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28584         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28585         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28586         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28587         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28588         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28589
28590 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28591
28592         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28593         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28594         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28595         Add sysdep.
28596
28597 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28598
28599         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28600
28601 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28602
28603         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28604         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28605
28606         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28607
28608         * sysdeps/arm/libm-test-ulps: Regenerated.
28609
28610 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28611             Roland McGrath <roland@hack.frob.com>
28612
28613         * test-skeleton.c (signal_handler): Kill the whole process group
28614         before killing the child individually.
28615         (main): Report any failure on `setpgid'.
28616
28617 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28618
28619         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28620         from _TLS_H to _ARM_NPTL_TLS_H.
28621         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28622         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28623
28624 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28625
28626         [BZ #16539]
28627         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28628         (__expm1l): Return argument unchanged when small but not
28629         subnormal.
28630
28631         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28632         include macro name.
28633         (_FP_UNPACK_RAW_1_P): Likewise.
28634         (_FP_PACK_RAW_1): Likewise.
28635         (_FP_PACK_RAW_1_P): Likewise.
28636         (_FP_MUL_MEAT_1_wide): Likewise.
28637         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28638         (_FP_MUL_MEAT_1_hard): Likewise.
28639         (_FP_DIV_MEAT_1_imm): Likewise.
28640         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28641         (_FP_DIV_MEAT_1_udiv): Likewise.
28642         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28643         (_FP_UNPACK_RAW_2): Likewise.
28644         (_FP_UNPACK_RAW_2_P): Likewise.
28645         (_FP_PACK_RAW_2): Likewise.
28646         (_FP_PACK_RAW_2_P): Likewise.
28647         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28648         (_FP_MUL_MEAT_2_wide): Likewise.
28649         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28650         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28651         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28652         (_FP_MUL_MEAT_2_gmp): Likewise.
28653         (_FP_DIV_MEAT_2_udiv): Likewise.
28654         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28655         (_FP_FRAC_SRL_4): Likewise.
28656         (_FP_FRAC_SRST_4): Likewise.
28657         (_FP_FRAC_SRS_4): Likewise.
28658         (_FP_UNPACK_RAW_4): Likewise.
28659         (_FP_UNPACK_RAW_4_P): Likewise.
28660         (_FP_PACK_RAW_4): Likewise.
28661         (_FP_PACK_RAW_4_P): Likewise.
28662         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28663         (_FP_MUL_MEAT_4_wide): Likewise.
28664         (_FP_MUL_MEAT_4_gmp): Likewise.
28665         (umul_ppppmnnn): Likewise.
28666         (_FP_DIV_MEAT_4_udiv): Likewise.
28667         (__FP_FRAC_ADD_4): Likewise.
28668         (__FP_FRAC_SUB_3): Likewise.
28669         (__FP_FRAC_SUB_4): Likewise.
28670         (__FP_FRAC_DEC_3): Likewise.
28671         (__FP_FRAC_DEC_4): Likewise.
28672         (__FP_FRAC_ADDI_4): Likewise.
28673         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28674         (_FP_FRAC_SRL_8): Likewise.
28675         (_FP_FRAC_SRS_8): Likewise.
28676
28677         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28678         include macro name.
28679         (FP_UNPACK_RAW_EP): Likewise.
28680         (FP_PACK_RAW_E): Likewise.
28681         (FP_PACK_RAW_EP): Likewise.
28682         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28683         (_FP_ISSIGNAN): Likewise.
28684         (_FP_ADD_INTERNAL): Likewise.
28685         (_FP_FMA): Likewise.
28686         (_FP_CMP): Likewise.
28687         (_FP_SQRT): Likewise.
28688         (_FP_TO_INT): Likewise.
28689         (_FP_FROM_INT): Likewise.
28690         (FP_EXTEND): Likewise.
28691         (_FP_DIV_MEAT_N_loop): Likewise.
28692
28693 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28694
28695         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28696         throughout.
28697
28698 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28699
28700         [BZ #17097]
28701         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28702         result with correct sign in case of exponents that produce
28703         overflow except for X very close to 1.
28704
28705 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28706
28707         mktime: merge #if/#ifdef usage from glibc
28708         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28709         as that works with both Glibc's and Gnulib's style.
28710         See thread starting at Siddhesh Poyarekar's bug report at:
28711         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28712
28713 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28714
28715         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28716         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28717         * sysdeps/tile/tilegx/memmove.c: Remove file.
28718
28719 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28720
28721         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28722         abi-name definition.
28723         * scripts/soversions.awk: Do not handle or generate ABI lines.
28724         * shlib-versions: Remove ABI entries.
28725         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28726         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28727
28728 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28729
28730         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28731         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28732         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28733         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28734         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28735         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28736         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28737         Moved ...
28738         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28739         ... here.
28740         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28741         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28742         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28743         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28744         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28745         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28746         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28747         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28748         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28749         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28750         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28751         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28752         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28753         Moved ...
28754         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28755         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28756         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28757         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28758         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28759         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28760         Moved ...
28761         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28762         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28763         Moved ...
28764         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28765         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28766         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28767         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28768         Moved ...
28769         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28770         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28771         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28772         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28773         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28774         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28775         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28776         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28777         Moved ...
28778         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28779         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28780         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28781         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28782         Moved ...
28783         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28784         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28785         Moved ...
28786         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28787         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28788         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28789         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28790         Moved ...
28791         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28792         ... here.
28793         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28794         Identical file removed.
28795         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28796         Moved ...
28797         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28798         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28799         Identical file removed.
28800         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28801         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28802         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28803         Moved ...
28804         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28805         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28806         Identical file removed.
28807         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28808         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28809         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28810         Identical file removed.
28811         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28812         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28813         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28814         Identical file removed.
28815         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28816         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28817         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28818         Identical file removed.
28819         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28820         Moved ...
28821         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28822         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28823         Identical file removed.
28824         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28825         Moved ...
28826         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28827         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28828         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28829         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28830         Identical file removed.
28831         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28832         Moved ...
28833         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28834         ... here.
28835         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28836         Identical file removed.
28837         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28838         Moved ...
28839         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28840         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28841         Identical file removed.
28842         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28843         Moved ...
28844         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28845         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28846         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28847         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28848         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28849         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28850         Moved ...
28851         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28852         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28853         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28854
28855         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28856         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28857         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28858         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28859         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28860
28861 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28862
28863         [BZ #17092]
28864         * nscd/nscd.c (monitor_child): Return exit status of child
28865         instead of return value from wait syscall.
28866
28867 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28868
28869         * configure.ac (libc_commonpagesize): Remove variable.
28870         (libc_relro_required): Likewise.
28871         (libc_cv_z_relro): Remove configure test.
28872         * configure: Regenerated.
28873         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28874         variable.
28875         (libc_relro_required): Likewise.
28876         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28877         (libc_relro_required): Likewise.
28878         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28879         (libc_relro_required): Likewise.
28880         * sysdeps/arm/preconfigure: Regenerated.
28881         * sysdeps/ia64/preconfigure: Remove file.
28882         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28883         variable.
28884         (libc_relro_required): Likewise.
28885
28886         [BZ #16561]
28887         [BZ #16562]
28888         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28889         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28890         recompute overflowing results in original rounding mode.
28891         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28892         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28893         recompute overflowing results in original rounding mode.
28894         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28895         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28896         recompute overflowing results in original rounding mode.
28897         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28898         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28899         recompute overflowing results in original rounding mode.
28900         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28901         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28902         recompute overflowing results in original rounding mode.
28903         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28904         (libc_feholdsetround_ctx): New macro.
28905         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28906         * sysdeps/i386/fpu/libm-test-ulps: Update.
28907         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28908
28909 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28910
28911         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28912         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28913         corresponding .cpsetup call.
28914
28915 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28916
28917         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28918         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28919         * sysdeps/arm/Makefile [$(subdir) = csu]
28920         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28921         (static-only-routines): Add aeabi_read_tp here.
28922         (shared-only-routines): Add libc-aeabi_read_tp here.
28923         (CFLAGS-libc-start.c): Add -fexceptions here.
28924         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28925         (sysdep_routines, static-only-routines, shared-only-routines):
28926         Don't add to these here.
28927         (CFLAGS-libc-start.c): Likewise.
28928
28929         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28930         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28931         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28932         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28933         * sysdeps/arm/Makefile [$(subdir) = rt]
28934         (librt-sysdep_routines, librt-shared-only-routines):
28935         Append rt-aeabi_unwind_cpp_pr1 here.
28936         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28937         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28938         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28939         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28940         Append nptl-aeabi_unwind_cpp_pr1 here.
28941         (tests): Filter out tst-cleanupx4 here.
28942         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28943         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28944         Don't do those here.
28945
28946 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28947
28948         * scripts/list-sources.sh: Do not handle ports specially.
28949
28950 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28951
28952         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28953         * sysdeps/arm/feupdateenv.c: Likewise.
28954
28955         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28956
28957 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28958
28959         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28960         trailing whitespace removed.
28961         * scripts/config.guess: Update to version 2014-03-23.
28962         * scripts/config.sub: Update to version 2014-05-01
28963         * scripts/install-sh: Update to version 2013-12-25.23.
28964         * scripts/move-if-change: Update from gnulib.
28965
28966 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28967
28968         * debug/memmove_chk.c: Remove pagecopy.h include.
28969
28970 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28971
28972         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28973         identical to gnulib mktime.
28974
28975 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28976
28977         * configure.ac: Do not test for machine being rs6000.  Do not test
28978         for powerpc*-*soft.
28979         * configure: Regenerated.
28980
28981         [BZ #11505]
28982         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28983         test.
28984         * configure: Regenerated.
28985         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28986         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28987         Remove configure test.
28988         * sysdeps/arm/configure: Regenerated.
28989         * sysdeps/nptl/configure.ac: Do not check
28990         libc_cv_asm_cfi_directives.
28991         * sysdeps/nptl/configure: Regenerated.
28992         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28993         * sysdeps/x86_64/nptl/configure: Remove generated file.
28994         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28995         unconditional.
28996         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28997
28998 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28999
29000         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29001         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29002         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29003         it is defined.
29004
29005         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29006         instead of whether it is defined.
29007         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29008         * sysdeps/hppa/dl-machine.h: Likewise.
29009         * sysdeps/ia64/dl-machine.h: Likewise.
29010         * sysdeps/m68k/dl-machine.h: Likewise.
29011         * sysdeps/microblaze/dl-machine.h: Likewise.
29012         * sysdeps/mips/dl-machine.: Likewise.
29013         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29014         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29015         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29016         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29017         * sysdeps/sh/dl-machine.h: Likewise.
29018         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29019         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29020         * sysdeps/tile/dl-machine.h: Likewise.
29021         * sysdeps/x86_64/dl-machine.h: Likewise.
29022
29023         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29024         code.
29025         (verify_persistent_db): Likewise.
29026
29027 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29028
29029         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29030         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29032         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29034         Moved ...
29035         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29036         ... here.
29037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29038         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29039         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29040         Identical file removed.
29041         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29042         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29043         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29044         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29045         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29046         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29047         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29048         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29049         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29050         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29051         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29052         Moved ...
29053         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29055         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29057         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29059         Moved ...
29060         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29062         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29064         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29065         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29066         Identical file removed.
29067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29068         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29069         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29070         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29071         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29072         Moved ...
29073         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29074         ... here.
29075         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29076         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29077         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29078         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29079         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29080         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29081         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29082         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29083         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29084         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29086         Moved ...
29087         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29089         Moved ...
29090         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29091         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29092         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29094         Moved ...
29095         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29096         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29097         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29098
29099         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29100         folded into ...
29101         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29102         * sysdeps/unix/sysv/linux/s390/Versions
29103         (libpthread: GLIBC_2.19): New version set.
29104         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29105         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29106         (librt: GLIBC_2.3.3): New version set.
29107         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29108         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29109         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29110         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29111         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29112         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29113         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29114         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29115         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29116         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29117         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29118         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29119         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29120         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29121         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29122         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29123         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29124         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29125         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29126         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29127         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29128         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29129         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29130         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29131         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29132         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29133         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29134         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29135         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29136         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29137         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29138         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29139         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29140         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29141         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29142         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29143         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29144         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29145         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29146         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29147         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29148         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29149         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29150         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29151         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29152
29153         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29154         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29155         (__libc_vfork): Define the function under this name.
29156         [!NOT_IN_libc] (__vfork): Make this an alias.
29157         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29158         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29159         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29160         (__libc_vfork): Define the function under this name.
29161         [!NOT_IN_libc] (__vfork): Make this an alias.
29162         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29163         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29164         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29165         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29166         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29167         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29168
29169         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29170         code that was previously under [RESET_PID].
29171         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29172         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29173         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29174
29175         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29176         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29177         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29178         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29179         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29180         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29181         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29182         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29183         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29184         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29185         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29186         Moved ...
29187         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29188         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29189         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29190         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29191         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29192         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29193         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29194         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29195         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29196         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29197         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29198         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29199         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29200         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29201         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29202         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29203         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29204         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29205         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29206         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29207         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29208         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29209         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29210         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29211         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29212         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29213         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29214         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29215         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29216
29217 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29218
29219         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29220         that was previously under [RESET_PID].
29221         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29222
29223 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29224
29225         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29226         not undefine and redefine.
29227         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29228         [O_CLOEXEC]: Make code unconditional.
29229         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29230         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29231         <kernel-features.h>.
29232         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29233         conditional variable definition.
29234         (shm_open) [O_CLOEXEC]: Make code unconditional.
29235         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29236         code.
29237
29238         * configure.ac (USE_REGPARMS): Don't define here.
29239         * configure: Regenerated.
29240         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29241         * sysdeps/i386/configure: Regenerated.
29242
29243         * nptl/createthread.c: Don't include kernel-features.h.
29244         * nptl/pthread_cancel.c: Likewise.
29245         * nptl/pthread_condattr_setclock.c: Likewise.
29246         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29247         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29248         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29249         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29250         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29251         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29252         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29253         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29254         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29255         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29256         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29257         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29258         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29259         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29260         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29261         * nscd/gai.c: Likewise.
29262         * nss/nss_db/db-open.c: Likewise.
29263         * sysdeps/generic/ldsodefs.h: Likewise.
29264         * sysdeps/sh/nptl/tls.h: Likewise.
29265         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29266         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29267         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29268         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29269         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29270         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29271         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29272         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29273         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29274         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29275         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29276         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29277         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29278         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29279         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29280         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29281         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29282         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29283         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29284         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29285         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29286         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29287         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29288         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29289         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29290         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29291         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29292         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29293         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29294         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29295         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29296         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29297         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29298         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29299         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29300         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29301         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29302         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29303         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29304         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29305         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29306         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29307         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29308         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29309         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29310         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29311         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29312         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29313         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29314         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29315         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29316         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29317         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29318         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29319         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29320         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29321         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29322         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29345         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29346         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29347         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29348         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29349         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29350         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29351         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29352         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29353         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29354         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29355         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29356         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29357         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29358         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29359         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29360         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29361         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29362         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29363         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29364         * sysdeps/unix/sysv/linux/system.c: Likewise.
29365         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29366         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29367         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29368         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29369         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29370         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29371         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29372
29373         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29374         * configure: Regenerated.
29375         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29376
29377         * configure.ac (base_machine): Do not set specially for particular
29378         machines here.
29379         * configure: Regenerated.
29380         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29381         settings from configure.ac.
29382         * sysdeps/i386/preconfigure: New file.
29383         * sysdeps/s390/preconfigure: Likewise.
29384         * sysdeps/sh/preconfigure: Likewise.
29385         * sysdeps/sparc/preconfigure: Likewise.
29386
29387 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29388
29389         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29390         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29391         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29392         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29393         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29394         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29395         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29396         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29397         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29398         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29399         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29400         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29401         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29402         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29403         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29404         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29405         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29406         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29407         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29408
29409         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29410         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29411         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29412         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29413         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29414         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29415         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29416         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29417         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29418         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29419         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29420         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29421         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29422         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29423         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29424         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29425         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29426         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29427         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29428         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29429         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29430         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29431         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29432         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29433         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29434         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29435         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29436         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29437         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29438         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29439         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29440         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29441         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29442         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29443         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29444         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29445         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29446         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29447
29448         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29449         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29450         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29451         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29452         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29453         Moved ...
29454         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29455         ... here.
29456         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29457         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29458         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29459         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29460         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29461         Moved ...
29462         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29463         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29464         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29465         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29466         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29467         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29468         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29469         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29470         Moved ...
29471         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29472         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29473         Moved ...
29474         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29475         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29476         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29477         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29478         Moved ...
29479         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29480         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29481         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29483         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29484         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29485         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29486         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29487         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29488         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29489         Moved ...
29490         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29491         ... here.
29492         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29493         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29494         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29495         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29496         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29497         Moved ...
29498         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29499         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29500         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29501         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29502         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29503         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29504         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29505         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29506         Moved ...
29507         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29508         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29509         Moved ...
29510         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29512         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29514         Moved ...
29515         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29516         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29517         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29518         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29519         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29520
29521 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29522
29523         * timezone/checktab.awk: Update from tzcode 2014e.
29524         * timezone/private.h: Likewise.
29525         * timezone/tzfile.h: Likewise.
29526         * timezone/zdump.c: Likewise.
29527         * timezone/zic.c: Likewise.
29528
29529         * sysdeps/unix/sysv/linux/kernel-features.h
29530         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29531         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29532         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29533         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29534         Remove conditional code.
29535
29536 2014-06-25  Will Newton  <will.newton@linaro.org>
29537
29538         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29539         (_dl_arm_cap_flags): Add HWCAP2 values.
29540         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29541         (_DL_HWCAP_COUNT): Increase to 37.
29542         (_DL_HWCAP_LAST): New define.
29543         (_DL_HWCAP2_LAST): New define.
29544         (_dl_procinfo): Add support for printing
29545         AT_HWCAP2 entries.
29546         (_dl_string_hwcap): Use _dl_hwcap_string.
29547
29548 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29549
29550         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29551
29552 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29553
29554         * README: Do not mention ports directory.
29555
29556         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29557         Remove macro.
29558         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29559         <kernel-features.h>.
29560         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29561         conditional variable definition.
29562         (__futimes): Update comment.
29563         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29564         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29565
29566         [BZ #16560]
29567         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29568         arguments close to 0.
29569         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29570         Likewise.
29571         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29572         Likewise.
29573         * math/auto-libm-test-in: Add more tests of exp10.
29574         * math/auto-libm-test-out: Regenerated.
29575         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29576
29577         * sysdeps/unix/sysv/linux/kernel-features.h
29578         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29579         * sysdeps/unix/sysv/linux/readv.c: Do not include
29580         <kernel-features.h>.
29581         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29582         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29583         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29584         unconditional.
29585         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29586         conditional code.
29587         * sysdeps/unix/sysv/linux/writev.c: Do not include
29588         <kernel-features.h>.
29589         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29590         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29591         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29592         unconditional.
29593         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29594         conditional code.
29595
29596 2014-06-25  Will Newton  <will.newton@linaro.org>
29597
29598         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29599         comment changes throughout the file.  Remove checks
29600         for HAVE_*_H definitions that are not required.
29601         (__gen_tempname): Call abort if an unknown kind value is
29602         passed.
29603
29604 2014-06-25  Andreas Schwab  <schwab@suse.de>
29605
29606         [BZ #17086]
29607         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29608         scalbln, scalblnf, scalblnl in libc.
29609
29610 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29611
29612         [BZ #17086]
29613         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29614         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29615         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29616
29617 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29618
29619         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29620         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29621         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29622         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29623         Update #include.
29624         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29625         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29626         Update #include.
29627         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29628         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29629         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29630         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29631         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29632         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29633         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29634         * sysdeps/x86/bits/semaphore.h: ... here.
29635         * sysdeps/x86/nptl/elide.h: Moved ...
29636         * sysdeps/x86/elide.h: ... here.
29637         * sysdeps/x86_64/nptl/Implies: File removed.
29638         * sysdeps/i386/nptl/Implies: File removed.
29639
29640 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29641
29642         [BZ #16539]
29643         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29644         return the argument for normal arguments with exponent below -64.
29645         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29646         Likewise.
29647         * math/auto-libm-test-in: Add another test of expm1.
29648         * math/auto-libm-test-out: Regenerated.
29649
29650         [BZ #16287]
29651         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29652         calling __erfcl for arguments at least 16.
29653         * math/auto-libm-test-in: Add more tests of erf.
29654         * math/auto-libm-test-out: Regenerated.
29655
29656         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29657         individual architectures.
29658         * sysdeps/unix/sysv/linux/configure: Regenerated.
29659         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29660         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29661         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29662         (ldd_rewrite_script): Define variable.
29663         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29665         file.
29666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29667         generated file.
29668         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29669         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29670         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29671         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29672         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29673         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29674         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29675         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29676
29677 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29678
29679         [BZ #17084]
29680         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29681         Rename member __data.d to __data.__elision_data.
29682
29683 2014-06-24  Wilco  <wdijkstr@arm.com>
29684
29685         * NEWS: Add 16918 to fixed bug list.
29686
29687 2014-06-24  Wilco  <wdijkstr@arm.com>
29688
29689         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29690
29691 2014-06-24  Wilco  <wdijkstr@arm.com>
29692
29693         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29694         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29695         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29696         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29697         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29698         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29699         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29700         Use _FPU_MASK_RM.
29701
29702 2014-06-24  Wilco  <wdijkstr@arm.com>
29703
29704         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29705
29706 2014-06-24  Wilco  <wdijkstr@arm.com>
29707
29708         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29709         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29710         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29711         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29712
29713 2014-06-24  Wilco  <wdijkstr@arm.com>
29714
29715         [BZ #16918]
29716         * sysdeps/arm/feupdateenv.c (feupdateenv):
29717         Rewrite to reduce FPSCR accesses and fix return value.
29718
29719 2014-06-24  Wilco  <wdijkstr@arm.com>
29720
29721         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29722         Optimize to avoid unnecessary FPSCR writes.
29723         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29724         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29725         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29726         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29727
29728 2014-06-24  Wilco  <wdijkstr@arm.com>
29729
29730         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29731         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29732         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29733         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29734         Call libc_fetestexcept_vfp.
29735         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29736         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29737         __SOFTFP__ ifdef so that they can be built for softfp.
29738
29739 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29740
29741         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29742         argument type signed char.
29743
29744         * Makerules (check-abi): Dump diff of symlist if the test
29745         fails.
29746
29747 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29748
29749         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29750         using abort.
29751
29752         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29753         Remove unused variable ST.
29754
29755 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29756
29757         [BZ #16354]
29758         [BZ #17061]
29759         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29760         small arguments before calling __expm1.
29761         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29762         small arguments before calling __expm1f.
29763         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29764         small arguments before calling __expm1l.
29765         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29766         Likewise.
29767         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29768         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29769         spurious underflow for some cosh tests.
29770         * math/auto-libm-test-out: Regenerated.
29771         * sysdeps/i386/fpu/libm-test-ulps: Update.
29772
29773         [BZ #17050]
29774         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29775         (__ieee754_y1): Set errno if return value overflows.
29776         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29777         (__ieee754_y1f): Set errno if return value overflows.
29778         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29779         (__ieee754_y1l): Set errno if return value overflows.
29780         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29781         (__ieee754_y1l): Set errno if return value overflows.
29782         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29783         * math/auto-libm-test-out: Regenerated.
29784
29785         * math/gen-auto-libm-tests.c: Document use of
29786         ignore-zero-inf-sign.
29787         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29788         (input_flags): Add ignore-zero-inf-sign.
29789         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29790         * math/gen-libm-test.pl (generate_testfile): Handle
29791         ignore-zero-inf-sign.
29792         * math/auto-libm-test-in: Mark some cpow tests with
29793         ignore-zero-inf-sign and some with xfail-rounding.
29794         * math/auto-libm-test-out: Regenerated.
29795         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29796         * sysdeps/i386/fpu/libm-test-ulps: Update.
29797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29798
29799         [BZ #16315]
29800         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29801         overflowing or underflowing operations take place with sign of
29802         result.
29803         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29804         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29805         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29806         (__ieee754_pow): Recompute overflowing and underflowing results in
29807         original rounding mode.
29808         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29809         (__powl_helper): Allow negative argument X and scale negated value
29810         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29811         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29812         overflowing or underflowing operations take place with sign of
29813         result.
29814         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29815         Include <math.h>.
29816         * math/auto-libm-test-in: Add more tests of pow.
29817         * math/auto-libm-test-out: Regenerated.
29818         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29819         (pow_tonearest_test_data): Remove.
29820         (pow_test_tonearest): Likewise.
29821         (pow_towardzero_test_data): Likewise.
29822         (pow_test_towardzero): Likewise.
29823         (pow_downward_test_data): Likewise.
29824         (pow_test_downward): Likewise.
29825         (pow_upward_test_data): Likewise.
29826         (pow_test_upward): Likewise.
29827         (main): Don't call removed functions.
29828         * sysdeps/i386/fpu/libm-test-ulps: Update.
29829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29830
29831 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29832
29833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29834         Moved ...
29835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29837         Moved ...
29838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29840         Moved ...
29841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29843         Moved ...
29844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29846         File removed.
29847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29848         File removed.
29849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29850         File removed.
29851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29852         File removed.
29853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29854         File removed.
29855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29856         File removed.
29857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29858         File removed.
29859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29860         File removed.
29861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29862         File removed.
29863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29864         File removed.
29865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29866         File removed.
29867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29868         File removed.
29869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29870         Moved ...
29871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29873         Moved ...
29874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29875         ... here.
29876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29877         Moved ...
29878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29880         Moved ...
29881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29883         Moved ...
29884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29886         Moved ...
29887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29889         Moved ...
29890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29892         Moved ...
29893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29895         Moved ...
29896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29899         ... here.
29900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29901         Moved ...
29902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29904         Moved ...
29905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29906         ... here.
29907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29908         Moved ...
29909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29910         ... here.
29911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29912         Moved ...
29913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29914         ... here.
29915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29916         Moved ...
29917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29919         Moved ...
29920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29924         Moved ...
29925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29926         ... here.
29927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29928         Moved ...
29929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29930         ... here.
29931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29932         Moved ...
29933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29935         Moved ...
29936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29938         Moved ...
29939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29941         Moved ...
29942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29944         Moved ...
29945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29946         ... here.
29947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29948         Moved ...
29949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29951         Moved ...
29952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29954         Moved ...
29955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29957         Moved ...
29958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29962         Moved ...
29963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29965         Moved ...
29966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29968         Moved ...
29969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29970         ... here.
29971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29972         Moved ...
29973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29974         ... here.
29975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29976         Moved ...
29977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29978         ... here.
29979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29980         Moved ...
29981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29983         Moved ...
29984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29986         Moved ...
29987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29989         Moved ...
29990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29991         ... here.
29992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29993         Moved ...
29994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29995         ... here.
29996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29997         Moved ...
29998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29999         ... here.
30000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30001         Moved ...
30002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30004         Moved ...
30005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30006
30007 2014-06-23  Will Newton  <will.newton@linaro.org>
30008             Wilco  <wdijkstr@arm.com>
30009
30010         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30011         implementation.  Include get-rounding-mode.h.
30012         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30013         [!libc_feholdsetround_noex_ctx]: Define
30014         libc_feholdsetround_noex_ctx.
30015         [!libc_feholdsetround_noexf_ctx]: Define
30016         libc_feholdsetround_noexf_ctx.
30017         [!libc_feholdsetround_noexl_ctx]: Define
30018         libc_feholdsetround_noexl_ctx.
30019         (libc_feholdsetround_ctx): New function.
30020         (libc_feresetround_ctx): New function.
30021         (libc_feholdsetround_noex_ctx): New function.
30022         (libc_feresetround_noex_ctx): New function.
30023
30024 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30025
30026         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30027         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30028         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30029         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30030         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30031         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30032
30033         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30034         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30035         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30036         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30037         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30038         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30039         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30040         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30041         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30042         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30043         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30044         Moved ...
30045         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30046         ... here.
30047         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30048         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30049         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30050         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30051         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30052         Moved ...
30053         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30054         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30055         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30056         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30057         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30058         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30059         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30060         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30061         Moved ...
30062         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30063         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30064         Moved ...
30065         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30066         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30067         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30068         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30069         Moved ...
30070         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30071         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30072         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30073         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30074         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30075         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30076         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30077         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30078         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30079         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30080         Moved ...
30081         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30082         ... here.
30083         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30084         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30085         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30086         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30087         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30088         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30089         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30090         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30091         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30092         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30093         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30094         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30095         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30096         Moved ...
30097         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30098         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30099         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30100         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30101         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30102         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30103         Moved ...
30104         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30105         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30106         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30107         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30108         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30109
30110         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30111         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30112         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30113         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30114         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30115         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30116         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30117         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30118         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30119         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30120         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30121         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30122         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30123         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30124         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30125         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30126         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30127         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30128         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30129         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30130         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30131         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30132         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30133         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30134         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30135         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30136         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30137         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30138
30139 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30140
30141         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30142         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30143         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30144         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30145         (IPV6_PMTUDISC_INTERFACE): Likewise.
30146         (IPV6_PMTUDISC_OMIT): Likewise.
30147
30148 2014-06-23  Andreas Schwab  <schwab@suse.de>
30149
30150         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30151         Remove unused errout label.
30152
30153 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30154
30155         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30156         macro: hardware supports Vector Crypto instructions.
30157
30158 2014-06-23  Will Newton  <will.newton@linaro.org>
30159
30160         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30161         rather than __builtin_expect.
30162
30163         * elf/dl-lookup.c (undefined_msg): Remove variable.
30164         (_dl_lookup_symbol_x): Replace undefined_msg with string
30165         literal.
30166
30167         * elf/dl-lookup.c (do_lookup_unique): New function.
30168         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30169         to a separate function.
30170
30171 2014-06-23  Andreas Schwab  <schwab@suse.de>
30172
30173         [BZ #17079]
30174         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30175         before reading the next line.
30176
30177 2014-06-23  Will Newton  <will.newton@linaro.org>
30178
30179         * test-skeleton.c (signal_handler): Use printf and %m
30180         rather than perror.  Use printf rather than fprintf to
30181         stderr.  Use puts rather than fputs to stderr.
30182         (main): Likewise.
30183
30184 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30185
30186         * nscd/nscd.c (thread_info_t): Remove typedef.
30187         (thread_info): Remove variable.
30188
30189 2014-06-21  Allan McRae  <allan@archlinux.org>
30190
30191         * NEWS: Mention CVE-2014-4043.
30192
30193 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30194
30195         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30196         * nptl/smp.h: ... here.
30197
30198         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30199
30200         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30201         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30202         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30203         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30204
30205         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30206         * nptl/stack-aliasing.h: New file.
30207         * sysdeps/i386/i686/stack-aliasing.h: New file.
30208         * sysdeps/i386/i686/nptl/Makefile: File removed.
30209         * sysdeps/x86_64/stack-aliasing.h: New file.
30210         * sysdeps/x86_64/nptl/Makefile
30211         (CFLAGS-pthread_create.c): Variable removed.
30212
30213         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30214         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30215         old file.
30216         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30217         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30218         old file.
30219
30220 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30221
30222         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30223         (__ASSUME_SIGFRAME_V2): Remove macro.
30224         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30225         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30226         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30227         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30228         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30229         Declare as function.  Remove conditional macro definitions.
30230         (__default_rt_sa_restorer): Likewise.
30231         (__default_sa_restorer_v1): Remove declaration.
30232         (__default_sa_restorer_v2): Likewise.
30233         (__default_rt_sa_restorer_v1): Likewise.
30234         (__default_rt_sa_restorer_v2): Likewise.
30235         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30236         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30237         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30238
30239 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30240
30241         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30242         (libpthread-routines): Add sysdep.
30243         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30244         * sysdeps/unix/sysv/linux/sparc/Versions
30245         (libpthread: GLIBC_2.3.3): New version set.
30246         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30247         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30248         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30249         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30250         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30251         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30252         Moved ...
30253         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30254         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30255         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30256         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30257         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30258         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30259         * sysdeps/sparc/nptl/sem_init.c: ... here.
30260         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30261         * sysdeps/sparc/nptl/sem_post.c: ... here.
30262         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30263         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30264         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30265         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30266         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30267         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30268         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30269         (libpthread-routines): Add cpu_relax.
30270         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30271         File removed.
30272         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30273         (librt: GLIBC_2.3.3): New version set.
30274         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30275         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30276         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30277         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30278         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30279         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30280         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30281         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30282         Moved ...
30283         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30284         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30285         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30286         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30287         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30288         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30289         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30290         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30291         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30292         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30293         Moved ...
30294         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30295         Update #include.
30296         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30297         Moved ...
30298         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30299         Update #include.
30300         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30301         Moved ...
30302         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30303         Update #include.
30304         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30305         Moved ...
30306         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30307         Update #include.
30308         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30309         Moved ...
30310         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30311         Update #include.
30312         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30313         Moved ...
30314         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30315         Update #include.
30316         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30317         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30318         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30319         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30320         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30321         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30322         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30323         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30324         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30325         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30326         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30327         Moved ...
30328         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30329         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30330         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30331         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30332         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30333
30334 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30335
30336         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30337         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30338         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30339         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30340         * nscd/nscd.c: Likewise.
30341         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30342         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30343         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30344         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30345
30346         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30347         <kernel-features.h>.
30348         (init_mq_netlink): Remove conditional have_sock_cloexec
30349         definitions.  Remove code conditional on have_sock_cloexec < 0.
30350         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30351         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30352         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30353         <kernel-features.h>.
30354         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30355         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30356
30357 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30358
30359         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30360         Add tests for memset_chk and memset.
30361
30362         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30363         with AVX2_Usable.
30364
30365 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30366
30367         [BZ #16046]
30368         * elf/tst-dl-iter-static.c: New file.
30369         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30370
30371         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30372         error.
30373
30374 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30375
30376         * sysdeps/unix/sysv/linux/kernel-features.h
30377         (__ASSUME_F_GETOWN_EX): Remove macro.
30378         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30379         <kernel-features.h>.
30380         (miss_F_GETOWN_EX): Remove variable or macro.
30381         (do_fcntl): Do not check miss_F_GETOWN_EX.
30382         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30383
30384         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30385         Remove macro.
30386         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30387         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30388         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30389
30390         * sysdeps/unix/sysv/linux/kernel-features.h
30391         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30392         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30393         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30394         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30395
30396 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30397
30398         [BZ #17075]
30399         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30400         Fix calculation of the symbol's value.
30401         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30402         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30403         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30404         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30405         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30406         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30407         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30408         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30409         (modules-names): Add `tst-armtlsdescmod',
30410         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30411         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30412         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30413         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30414         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30415         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30416         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30417         ($(objpfx)tst-armtlsdescloc): New dependency.
30418         ($(objpfx)tst-armtlsdescextnow): Likewise.
30419         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30420         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30421         TLS scheme support.
30422         * sysdeps/arm/configure: Regenerate.
30423
30424 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30425
30426         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30427         (__atfct_seterrno_2): Likewise.
30428         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30429         <kernel-features.h>.
30430         (__ASSUME_ATFCTS): Do not undefine and redefine.
30431         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30432         (__have_atfcts): Remove conditional definition.
30433         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30434         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30435         unreachable if [__ASSUME_ATFCTS].
30436         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30437         not undefine and redefine.
30438         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30439         <kernel-features.h>.
30440         (faccessat) [__NR_faccessat]: Make code unconditional.
30441         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30442         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30443         <kernel-features.h>.
30444         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30445         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30446         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30447         <kernel-features.h>.
30448         (fchownat) [__NR_fchownat]: Make code unconditional.
30449         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30450         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30451         <kernel-features.h>.
30452         (futimesat) [__NR_futimesat]: Make code unconditional.
30453         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30454         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30455         <kernel-features.h>.
30456         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30457         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30458         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30459         <kernel-features.h>.
30460         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30461         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30462         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30463         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30464         <kernel-features.h>.
30465         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30466         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30467         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30468         <kernel-features.h>.
30469         (linkat) [__NR_linkat]: Make code unconditional.
30470         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30471         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30472         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30473         <kernel-features.h>.
30474         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30475         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30476         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30477         <kernel-features.h>.
30478         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30479         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30480         * sysdeps/unix/sysv/linux/openat.c: Do not include
30481         <kernel-features.h>.
30482         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30483         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30484         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30485         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30486         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30487         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30488         <kernel-features.h>.
30489         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30490         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30491         result of INLINE_SYSCALL directly, not via int variable.
30492         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30493         <kernel-features.h>.
30494         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30495         (renameat) [__NR_renameat]: Make code unconditional.
30496         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30497         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30498         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30499         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30500         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30501         (__ASSUME_ATFCTS): Do not undefine and redefine.
30502         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30503         <kernel-features.h>.
30504         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30505         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30506         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30507         <kernel-features.h>.
30508         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30509         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30510         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30511         (__ASSUME_ATFCTS): Do not undefine and redefine.
30512         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30513         <kernel-features.h>.
30514         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30515         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30516         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30517         <kernel-features.h>.
30518         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30519         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30520
30521 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30522
30523         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30524
30525 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30526
30527         [BZ #17069]
30528         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30529         constructed tree before returning error.
30530         * posix/bug-regexp36.c: Expand test case.
30531
30532 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30533
30534         [BZ #6803]
30535         * math/libm-test.inc (scalbln_test_date):
30536         Add errno expectations.
30537         * math/w_scalblnf.c: New File.
30538         Add wrapper which checks for setting errno to ERANGE.
30539         Add weak_alias for corresponding scalbln function.
30540         * math/w_scalbln.c: Likewise.
30541         * math/w_scalblnl.c: Likewise.
30542         * math/Makefile (libm-calls): Add w_scalbln.
30543         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30544         Remove weak_alias for corresponding scalbln function.
30545         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30546         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30547         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30548         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30549         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30550         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30551         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30552         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30553         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30554         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30555         Remove long_double_symbol for scalblnl function in libm, libc.
30556         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30557         Add wrapper which checks for setting errno to ERANGE.
30558         Add long_double_symbol for scalblnl function in libm, libc.
30559         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30560         Remove long_double_symbol for scalblnl in libm.
30561         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30562         Add wrapper which checks for setting errno to ERANGE.
30563         Add long_double_symbol for scalblnl function in libm.
30564         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30565         Do not use wrapper because of own implementation.
30566
30567 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30568
30569         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30570         3 bytes for __pad1 for x32.
30571         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30572
30573 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30574             H.J. Lu  <hongjiu.lu@intel.com>
30575
30576         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30577         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30578         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30579         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30580         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30581
30582 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30583
30584         [BZ #17069]
30585         * posix/regcomp.c (parse_expression): Deallocate partially
30586         constructed tree before returning error.
30587         * posix/Makefile.c (tests): Add bug-regex36.
30588         (generated): Add bug-regex36.mtrace.
30589         (tests-special): Add $(objpfx)bug-regex36-mem.out
30590         (bug-regex36-ENV): New variable.
30591         ($(objpfx)bug-regex36-mem.out): New rule.
30592         * posix/bug-regex36.c: New file.
30593
30594 2014-06-19  Will Newton  <will.newton@linaro.org>
30595
30596         * malloc/malloc.c (systrim): If extra is zero then return
30597         early.
30598
30599 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30600
30601         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30602
30603 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30604
30605         * sysdeps/aarch64/strchr.S: New file.
30606
30607 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30608
30609         [BZ #17022]
30610         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30611         from arguments -2 or below.
30612         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30613         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30614
30615 2014-06-18  Andreas Schwab  <schwab@suse.de>
30616
30617         [BZ #17062]
30618         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30619         of a bracket expr not to run off the end of the string.
30620         * posix/Makefile (tests): Add tst-fnmatch3.
30621         * posix/tst-fnmatch3.c: New file.
30622
30623 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30624
30625         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30626         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30627         [$(cross-compiling) = no]: Likewise.
30628         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30629         [$(cross-compiling) = no]: Likewise.
30630
30631 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30632
30633         [BZ #17031]
30634         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30635         double, adjusted for any remainder from the high double.
30636         * math/libm-test.inc (nearbyint): Add tests.
30637         (rint): Likewise.
30638
30639 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30640
30641         * nptl/sysdeps/powerpc/Makefile: Moved ...
30642         * sysdeps/powerpc/nptl/Makefile: ... here.
30643         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30644         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30645         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30646         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30647         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30648         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30649         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30650         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30651         * nptl/sysdeps/powerpc/tls.h: Moved ...
30652         * sysdeps/powerpc/nptl/tls.h: ... here.
30653
30654 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30655
30656         [BZ #16681]
30657         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30658         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30659         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30660         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30661         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30662         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30663         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30664         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30665         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30666
30667 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30668
30669         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30670
30671 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30672
30673         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30674         defined operator.
30675
30676         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30677         $TIMEOUTFACTOR.
30678
30679 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30680
30681         [BZ #17058]
30682         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30683         non-executed part of the test.
30684
30685 2014-06-16  Andreas Schwab  <schwab@suse.de>
30686
30687         * string/bits/string2.h (strdup, strndup): Update feature guard.
30688
30689 2014-06-14  David S. Miller  <davem@davemloft.net>
30690
30691         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30692
30693 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30694
30695         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30696         that was previously under [RESET_PID].
30697         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30698
30699         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30700         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30701         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30702         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30703         (__libc_vfork): New strong alias.
30704         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30705
30706 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30707
30708         * sysdeps/generic/elide.h: New file.
30709
30710 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30711
30712         * Makefile (installed-headers): Adjust path of pthread.h header.
30713
30714 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30715
30716         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30717         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30718         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30719         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30720
30721         * nptl/sysdeps/s390/Makefile: Moved ...
30722         * sysdeps/s390/nptl/Makefile: ... here.
30723         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30724         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30725         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30726         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30727         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30728         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30729         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30730         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30731         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30732         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30733         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30734         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30735         * nptl/sysdeps/s390/tls.h: Moved ...
30736         * sysdeps/s390/nptl/tls.h: ... here.
30737
30738         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30739         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30740
30741 2014-06-13  David S. Miller  <davem@davemloft.net>
30742
30743         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30744         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30745         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30746         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30747         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30748         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30749         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30750         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30751         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30752         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30753         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30754         Remove RESET_PID cpp guards.
30755         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30756         Remove RESET_PID cpp guards.
30757         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30758
30759 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30760
30761         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30762         __sp to uintptr_t.
30763
30764 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30765
30766         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30767         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30768         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30769         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30770         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30771         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30772         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30773         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30774         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30775         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30776         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30777         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30778         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30779         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30780         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30781         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30782         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30783         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30784         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30785         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30786
30787         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30788         (pthread_rwlock_rdlock): Add elision.
30789         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30790         (pthread_rwlock_wrlock): Add elision.
30791         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30792         (pthread_rwlock_trywrlock): Add elision.
30793         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30794         (pthread_rwlock_tryrdlock): Add elision.
30795         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30796         (pthread_rwlock_tryrdlock): Add elision unlock.
30797         * nptl/sysdeps/pthread/pthread.h:
30798         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30799         (PTHREAD_RWLOCK_INITIALIZER,
30800         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30801         Handle new elision field.
30802         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30803         * sysdeps/arm/nptl/bits/pthreadtypes.h
30804         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30805         * sysdeps/sh/nptl/bits/pthreadtypes.h
30806         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30807         * sysdeps/tile/nptl/bits/pthreadtypes.h
30808         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30809         * sysdeps/a/nptl/bits/pthreadtypes.h
30810         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30811         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30812         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30813         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30814         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30815         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30816         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30817         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30818         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30819         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30820         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30821         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30822         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30823         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30824         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30825         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30826         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30827         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30828         (elision_init): Set try_xbegin to zero when no RTM.
30829         * sysdeps/x86/nptl/bits/pthreadtypes.h
30830         (pthread_rwlock_t): Change __pad1 to __rwelision.
30831         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30832
30833 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30834
30835         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30836         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30837         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30838         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30839
30840 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30841
30842         [BZ #16996]
30843         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30844         that the cached result has been set before returning it.
30845
30846 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30847
30848         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30849         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30850         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30851         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30852         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30853         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30854
30855         * nptl/sysdeps/sparc/Makefile: Moved ...
30856         * sysdeps/sparc/nptl/Makefile: ... here.
30857         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30858         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30859         * nptl/sysdeps/sparc/tls.h: Moved ...
30860         * sysdeps/sparc/nptl/tls.h: ... here.
30861         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30862         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30863         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30864         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30865         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30866         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30867         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30868         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30869         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30870         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30871         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30872         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30873         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30874         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30875         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30876         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30877         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30878         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30879         Update #include.
30880         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30881         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30882         Update #include.
30883         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30884         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30885         Update #include.
30886         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30887         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30888         Update #include.
30889
30890         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30891
30892         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30893         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30894
30895         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30896         (struct list_links): Type removed.
30897         (struct thread_node, struct timer_node): Replace struct list_links
30898         with struct list_head.
30899         (list_unlink_ip): Likewise.
30900         * sysdeps/pthread/timer_routines.c
30901         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30902         (list_append, list_insbefore): Likewise.
30903         (list_init): Function removed.
30904         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30905         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30906         * sysdeps/pthread/Makefile: ... here, new file.
30907
30908         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30909         * sysdeps/nptl/Implies: ... here.
30910         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30911         * nptl/sysdeps/pthread/list.h: Moved ...
30912         * include/list.h: ... here.
30913         * nptl/sysdeps/pthread/createthread.c: Moved ...
30914         * nptl/createthread.c: ... here.
30915         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30916         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30917         * nptl/pt-longjmp.c: ... here.
30918         * nptl/sysdeps/pthread/Makefile: Moved ...
30919         * sysdeps/nptl/Makefile: ... here.
30920         * nptl/sysdeps/pthread/Subdirs: Moved ...
30921         * sysdeps/nptl/Subdirs: ... here.
30922         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30923         * sysdeps/nptl/aio_misc.h: ... here.
30924         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30925         * sysdeps/nptl/bits/libc-lock.h: ... here.
30926         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30927         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30928         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30929         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30930         * nptl/sysdeps/pthread/configure: Moved ...
30931         * sysdeps/nptl/configure: ... here.
30932         * nptl/sysdeps/pthread/configure.ac: Moved ...
30933         * sysdeps/nptl/configure.ac: ... here.
30934         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30935         * sysdeps/nptl/gai_misc.h: ... here.
30936         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30937         * sysdeps/nptl/librt-cancellation.c: ... here.
30938         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30939         * sysdeps/nptl/malloc-machine.h: ... here.
30940         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30941         * sysdeps/nptl/pthread-functions.h: ... here.
30942         * nptl/sysdeps/pthread/pthread.h: Moved ...
30943         * sysdeps/nptl/pthread.h: ... here.
30944         * nptl/sysdeps/pthread/setxid.h: Moved ...
30945         * sysdeps/nptl/setxid.h: ... here.
30946         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30947         * sysdeps/nptl/sigfillset.c: ... here.
30948         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30949         * sysdeps/nptl/tcb-offsets.h: ... here.
30950         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30951         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30952         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30953         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30954         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30955         * sysdeps/pthread/allocalim.h: ... here.
30956         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30957         * sysdeps/pthread/bits/sigthread.h: ... here.
30958         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30959         * sysdeps/pthread/flockfile.c: ... here.
30960         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30961         * sysdeps/pthread/ftrylockfile.c: ... here.
30962         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30963         * sysdeps/pthread/funlockfile.c: ... here.
30964         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30965         * sysdeps/pthread/posix-timer.h: ... here.
30966         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30967         * sysdeps/pthread/timer_create.c: ... here.
30968         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30969         * sysdeps/pthread/timer_delete.c: ... here.
30970         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30971         * sysdeps/pthread/timer_getoverr.c: ... here.
30972         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30973         * sysdeps/pthread/timer_gettime.c: ... here.
30974         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30975         * sysdeps/pthread/timer_routines.c: ... here.
30976         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30977         * sysdeps/pthread/timer_settime.c: ... here.
30978         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30979         * sysdeps/pthread/tst-timer.c: ... here.
30980         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30981         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30982
30983         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30984         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30985
30986         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30987         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30988         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30989         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30990         Update #include target.
30991         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30992         * sysdeps/i386/i686/nptl/Makefile: ... here.
30993         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30994         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30995         Update #include target.
30996         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30997         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30998         * nptl/sysdeps/i386/Makefile: Moved ...
30999         * sysdeps/i386/nptl/Makefile: ... here.
31000         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31001         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31002         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31003         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31004         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31005         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31006         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31007         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31008         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31009         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31010         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31011         * nptl/sysdeps/i386/tls.h: Moved ...
31012         * sysdeps/i386/nptl/tls.h: ... here.
31013
31014         * sysdeps/sh/Makefile [$(subdir) = csu]
31015         (gen-as-const-headers): Add tcb-offsets.sym.
31016         * nptl/sysdeps/sh/Makefile: File removed.
31017         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31018         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31019         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31020         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31021         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31022         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31023         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31024         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31025         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31026         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31027         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31028         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31029         * nptl/sysdeps/sh/tls.h: Moved ...
31030         * sysdeps/sh/nptl/tls.h: ... here.
31031         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31032         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31033         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31034         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31035         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31036         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31037         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31038         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31039         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31040         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31041         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31042         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31043         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31044         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31045         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31046         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31047         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31048         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31049         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31050         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31051         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31052         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31053         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31054         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31055         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31056         Moved ...
31057         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31058         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31059         Moved ...
31060         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31061         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31062         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31063         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31064         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31065         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31066         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31067         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31068         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31069         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31070         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31071         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31072         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31073         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31074         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31075         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31076         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31077         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31078         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31079
31080 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31081
31082         * posix/spawn_faction_addopen.c: Include string.h.
31083
31084 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31085
31086         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31087         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31088         * nptl/sysdeps/x86_64/Makefile: Moved ...
31089         * sysdeps/x86_64/nptl/Makefile: ... here.
31090         * nptl/sysdeps/x86_64/configure: Moved ...
31091         * sysdeps/x86_64/nptl/configure: ... here.
31092         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31093         * sysdeps/x86_64/nptl/configure.ac: ... here.
31094         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31095         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31096         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31097         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31098         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31099         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31100         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31101         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31102         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31103         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31104         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31105         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31106         * nptl/sysdeps/x86_64/tls.h: Moved ...
31107         * sysdeps/x86_64/nptl/tls.h: ... here.
31108         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31109         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31110         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31111         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31112
31113         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31114
31115 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31116
31117         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31118
31119 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31120
31121         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31122         type.
31123         [POSIX] (off_t): Likewise.
31124         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31125         [POSIX] (S_ISBLK): Require macro.
31126         [POSIX] (S_ISCHR): Likewise.
31127         [POSIX] (S_ISDIR): Likewise.
31128         [POSIX] (S_ISFIFO): Likewise.
31129         [POSIX] (S_ISREG): Likewise.
31130         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31131         optional-macro.
31132         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31133         type.
31134         [POSIX] (time_t): Likewise.
31135         [POSIX] (timer_t): Likewise.
31136
31137 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31138
31139         [BZ #17048]
31140         * posix/spawn_int.h (struct __spawn_action): Make the path string
31141         non-const to support deallocation.
31142         * posix/spawn_faction_addopen.c
31143         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31144         * posix/spawn_faction_destroy.c
31145         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31146         path in all spawn_do_open actions.
31147         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31148         posix_spawn_file_actions_addopen.
31149
31150 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31151
31152         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31153         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31154         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31155         conditional code always true.
31156         (__libc_vfork): New alias.
31157
31158 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31159
31160         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31161         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31162
31163         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31164
31165         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31166         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31167
31168         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31169         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31170
31171         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31172         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31173
31174 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31175
31176         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31177         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31178         multiarch strcmp for PPC64.
31179         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31180         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31181         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31182         multiarch optimizations.
31183         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31184         (__libc_ifunc_impl_list): Likewise.
31185
31186 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31187
31188         * benchtests/scripts/validate_benchout.py: New script.
31189         * benchtests/Makefile (bench-func): Call it.
31190         * benchtests/scripts/benchout.schema.json: New file.
31191
31192 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31193
31194         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31195         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31196         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31197         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31198         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31199         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31200         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31201         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31202         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31203         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31204         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31205         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31206         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31207         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31208         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31209         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31210         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31211         Moved ...
31212         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31213         ... here.
31214         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31215         Moved ...
31216         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31217         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31218         Moved ...
31219         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31220         ... here.
31221         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31222         Moved ...
31223         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31224         ... here.
31225         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31226         Moved ...
31227         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31228         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31229         Moved ...
31230         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31231         ... here.
31232         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31233         Moved ...
31234         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31235         ... here.
31236         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31237         Moved ...
31238         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31239         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31240         Moved ...
31241         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31242         ... here.
31243         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31244         Moved ...
31245         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31246         ... here.
31247         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31248         Moved ...
31249         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31250         ... here.
31251         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31252         Moved ...
31253         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31254         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31255         Moved ...
31256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31257         ... here.
31258         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31259         Moved ...
31260         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31261         ... here.
31262         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31263         Moved ...
31264         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31265         ... here.
31266         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31267         Moved ...
31268         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31270         Moved ...
31271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31272         ... here.
31273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31274         Moved ...
31275         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31276         ... here.
31277         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31278         Moved ...
31279         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31280         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31281         Moved ...
31282         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31283         ... here.
31284         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31285         Moved ...
31286         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31287         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31288         Moved ...
31289         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31290         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31291         Moved ...
31292         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31293         ... here.
31294         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31295         Moved ...
31296         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31297         ... here.
31298         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31299         Moved ...
31300         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31301         ... here.
31302         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31303         Moved ...
31304         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31306         Moved ...
31307         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31308         ... here.
31309         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31310         Moved ...
31311         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31312         ... here.
31313         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31314         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31315         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31316         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31317         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31318         Moved ...
31319         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31320         ... here.
31321         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31322         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31323         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31324         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31325         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31326         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31327         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31328         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31329         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31330         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31331         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31332         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31333         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31334         Moved ...
31335         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31336         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31337         Moved ...
31338         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31339         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31340         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31341         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31342         Moved ...
31343         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31344         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31345         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31346         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31347         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31348         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31349         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31350
31351 2014-06-10  Wilco  <wdijkstr@arm.com>
31352
31353         * math/test-fenv-return.c: New file.
31354         * math/Makefile: Add new test test-fenv-return.
31355
31356 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31357
31358         [BZ #17042]
31359         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31360         when x - 1 is zero.
31361         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31362         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31363         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31364         0.0L for an argument of 1.0L.
31365         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31366         Likewise.
31367         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31368         value when x - 1 is zero.
31369         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31370         * sysdeps/i386/fpu/libm-test-ulps: Update.
31371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31372
31373 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31374
31375         [BZ #15119]
31376         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31377
31378 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31379
31380         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31381         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31382
31383 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31384
31385         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31386         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31387
31388         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31389         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31390
31391         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31392         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31393
31394         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31395         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31396
31397         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31398         if not already defined.
31399         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31400         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31401         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31402         (TLS_INIT_TP): Use it.
31403         (TLS_DEFINE_INIT_TP): New macro.
31404         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31405
31406 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31407
31408         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31409         constant.
31410         [POSIX] (IXANY): Likewise.
31411         [POSIX] (OLCUC): Likewise.
31412         [POSIX || POSIX2008] (CBAUD): Do not allow.
31413         [POSIX || POSIX2008] (DEFECHO): Likewise.
31414         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31415         [POSIX || POSIX2008] (ECHOKE): Likewise.
31416         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31417         [POSIX || POSIX2008] (EXTA): Likewise.
31418         [POSIX || POSIX2008] (EXTB): Likewise.
31419         [POSIX || POSIX2008] (FLUSHO): Likewise.
31420         [POSIX || POSIX2008] (LOBLK): Likewise.
31421         [POSIX || POSIX2008] (PENDIN): Likewise.
31422         [POSIX || POSIX2008] (SWTCH): Likewise.
31423         [POSIX || POSIX2008] (VDISCARD): Likewise.
31424         [POSIX || POSIX2008] (VDSUSP): Likewise.
31425         [POSIX || POSIX2008] (VLNEXT): Likewise.
31426         [POSIX || POSIX2008] (VREPRINT): Likewise.
31427         [POSIX || POSIX2008] (VSTATUS): Likewise.
31428         [POSIX || POSIX2008] (VWERASE): Likewise.
31429         (B*): Change to B[0123456789]*.
31430         * conform/data/time.h-data [POSIX || UNIX98]
31431         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31432         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31433         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31434         [POSIX] (tm_*): Do not allow.
31435
31436 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31437
31438         * Makefile (install): Don't set LANGUAGE.
31439         * Makefile.in (install): Likewise.
31440         * assert/Makefile (test-assert-ENV): Remove variable.
31441         (test-assert-perr-ENV): Likewise.
31442         * elf/Makefile (neededtest4-ENV): Likewise.
31443         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31444         [$(cross-compiling) = no]: Don't set LANGUAGE.
31445         * io/ftwtest-sh (LANG): Remove variable.
31446         * libio/Makefile (tst-widetext-ENV): Likewise.
31447         * manual/install.texi (Running make install): Don't refer to
31448         environment settings for make install.
31449         * INSTALL: Regenerated.
31450         * nptl/tst-tls6.sh: Don't set LANG.
31451         * posix/globtest.sh (LANG): Remove variable.
31452         * string/Makefile (tester-ENV): Likewise.
31453         (inl-tester-ENV): Likewise.
31454         (noinl-tester-ENV): Likewise.
31455         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31456         [$(cross-compiling) = no]: Don't set LANGUAGE.
31457         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31458         without explicit environment settings.
31459
31460 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31461
31462         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31463         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31464         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31465         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31466
31467 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31468
31469         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31470         other files in the crypt directory.
31471         * crypt/crypt.c: Remove duplicate includes.
31472         * crypt/crypt-entry.c: Likewise.
31473         * crypt/crypt_util.c: Likewise.
31474
31475 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31476
31477         * Makeconfig (run-program-env): New variable.
31478         (run-program-prefix-before-env): Likewise.
31479         (run-program-prefix-after-env): Likewise.
31480         (run-program-prefix): Define in terms of new variables.
31481         (built-program-cmd-before-env): New variable.
31482         (built-program-cmd-after-env): Likewise.
31483         (built-program-cmd): Define in terms of new variables.
31484         (test-program-prefix-before-env): New variable.
31485         (test-program-prefix-after-env): Likewise.
31486         (test-program-prefix): Define in terms of new variables.
31487         (test-program-cmd-before-env): New variable.
31488         (test-program-cmd-after-env): Likewise.
31489         (test-program-cmd): Define in terms of new variables.
31490         * Rules (make-test-out): Use $(run-program-env).
31491         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31492         (help): Do not mention environment variables.  Mention
31493         --timeoutfactor option.
31494         (timeoutfactor): New variable.
31495         (blacklist_exports): Remove function.
31496         (exports): Remove variable.
31497         (command): Do not include ${exports}.
31498         * manual/install.texi (Configuring and compiling): Do not mention
31499         test wrappers preserving environment variables.  Mention that last
31500         assignment to a variable must take precedence.
31501         * INSTALL: Regenerated.
31502         * benchtests/Makefile (run-bench): Use $(run-program-env).
31503         * catgets/Makefile ($(objpfx)test1.cat): Use
31504         $(built-program-cmd-before-env), $(run-program-env) and
31505         $(built-program-cmd-after-env).
31506         ($(objpfx)test2.cat): Do not specify environment variables
31507         explicitly.
31508         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31509         $(run-program-env) and $(built-program-cmd-after-env).
31510         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31511         $(run-program-env) and $(test-program-cmd-after-env).
31512         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31513         explicitly.
31514         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31515         run_program_env and test_program_cmd_after_env arguments.
31516         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31517         * elf/tst-pathopt.sh: Use run_program_env argument.
31518         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31519         $(test-wrapper-env) and $(run-program-env).
31520         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31521         run_program_env arguments.
31522         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31523         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31524         $(test-program-prefix-before-env), $(run-program-env) and
31525         $(test-program-prefix-after-env).
31526         ($(objpfx)tst-gettext2.out): Likewise.
31527         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31528         run_program_env and test_program_prefix_after_env arguments.
31529         * intl/tst-gettext2.sh: Likewise.
31530         * intl/tst-gettext4.sh: Do not set environment variables
31531         explicitly.
31532         * intl/tst-gettext6.sh: Likewise.
31533         * intl/tst-translit.sh: Likewise.
31534         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31535         $(test-program-prefix-before-env), $(run-program-env) and
31536         $(test-program-prefix-after-env).
31537         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31538         run_program_env and test_program_prefix_after_env arguments.
31539         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31540         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31541         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31542         explicitly with each use of ${test_wrapper_env}.
31543         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31544         $(test-program-prefix-before-env), $(run-program-env) and
31545         $(test-program-prefix-after-env).
31546         * posix/tst-getconf.sh: Do not set environment variables
31547         explicitly.
31548         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31549         run_program_env and test_program_prefix_after_env arguments.
31550         * stdio-common/tst-printf.sh: Do not set environment variables
31551         explicitly.
31552         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31553         $(test-program-prefix-before-env), $(run-program-env) and
31554         $(test-program-prefix-after-env).
31555         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31556         run_program_env and test_program_prefix_after_env arguments.
31557         Split $test calls into $test_pre and $test.
31558         * timezone/Makefile (build-testdata): Use
31559         $(built-program-cmd-before-env), $(run-program-env) and
31560         $(built-program-cmd-after-env).
31561
31562 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31563
31564         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31565         strlen for non SHARED builds.
31566
31567 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31568
31569         * nptl/allocatestack.c (check_list): Inlined function...
31570         (__reclaim_stacks): ... here.
31571
31572 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31573
31574         [BZ #15698]
31575         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31576         memory overrun.
31577
31578 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31579
31580         * Rules (make-test-out): Include
31581         LOCPATH=$(common-objpfx)localedata in default environment.
31582         * debug/Makefile (tst-chk1-ENV): Remove variable.
31583         (tst-chk2-ENV): Likewise.
31584         (tst-chk3-ENV): Likewise.
31585         (tst-chk4-ENV): Likewise.
31586         (tst-chk5-ENV): Likewise.
31587         (tst-chk6-ENV): Likewise.
31588         (tst-lfschk1-ENV): Likewise.
31589         (tst-lfschk2-ENV): Likewise.
31590         (tst-lfschk3-ENV): Likewise.
31591         (tst-lfschk4-ENV): Likewise.
31592         (tst-lfschk5-ENV): Likewise.
31593         (tst-lfschk6-ENV): Likewise.
31594         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31595         (tst-iconv7-ENV): Likewise.
31596         * intl/Makefile (LOCPATH-ENV): Likewise.
31597         (tst-codeset-ENV): Likewise.
31598         (tst-gettext3-ENV): Likewise.
31599         (tst-gettext5-ENV): Likewise.
31600         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31601         (tst-fopenloc-ENV): Likewise.
31602         (tst-fgetws-ENV): Remove variable.
31603         (tst-ungetwc1-ENV): Likewise.
31604         (tst-ungetwc2-ENV): Likewise.
31605         (bug-ungetwc2-ENV): Likewise.
31606         (tst-swscanf-ENV): Likewise.
31607         (bug-ftell-ENV): Likewise.
31608         (tst-fgetwc-ENV): Likewise.
31609         (tst-fseek-ENV): Likewise.
31610         (tst-ftell-partial-wide-ENV): Likewise.
31611         (tst-ftell-active-handler-ENV): Likewise.
31612         (tst-ftell-append-ENV): Likewise.
31613         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31614         (tst-regexloc-ENV): Likewise.
31615         (bug-regex1-ENV): Likewise.
31616         (tst-regex-ENV): Likewise.
31617         (tst-regex2-ENV): Likewise.
31618         (bug-regex5-ENV): Likewise.
31619         (bug-regex6-ENV): Likewise.
31620         (bug-regex17-ENV): Likewise.
31621         (bug-regex18-ENV): Likewise.
31622         (bug-regex19-ENV): Likewise.
31623         (bug-regex20-ENV): Likewise.
31624         (bug-regex22-ENV): Likewise.
31625         (bug-regex23-ENV): Likewise.
31626         (bug-regex25-ENV): Likewise.
31627         (bug-regex26-ENV): Likewise.
31628         (bug-regex30-ENV): Likewise.
31629         (bug-regex32-ENV): Likewise.
31630         (bug-regex33-ENV): Likewise.
31631         (bug-regex34-ENV): Likewise.
31632         (bug-regex35-ENV): Likewise.
31633         (tst-rxspencer-ENV): Likewise.
31634         (tst-rxspencer-no-utf8-ENV): Likewise.
31635         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31636         (tst-sscanf-ENV): Likewise.
31637         (tst-swprintf-ENV): Likewise.
31638         (tst-swscanf-ENV): Likewise.
31639         (test-vfprintf-ENV): Likewise.
31640         (scanf13-ENV): Likewise.
31641         (bug14-ENV): Likewise.
31642         (tst-grouping-ENV): Likewise.
31643         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31644         (tst-strtod3-ENV): Likewise.
31645         (tst-strtod4-ENV): Likewise.
31646         (tst-strtod5-ENV): Likewise.
31647         (testmb2-ENV): Likewise./
31648         * string/Makefile (tst-strxfrm-ENV): Likewise.
31649         (tst-strxfrm2-ENV): Likewise.
31650         (bug-strcoll1-ENV): Likewise.
31651         (test-strcasecmp-ENV): Likewise.
31652         (test-strncasecmp-ENV): Likewise.
31653         * time/Makefile (tst-strptime-ENV): Likewise.
31654         (tst-ftime_l-ENV): Likewise.
31655         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31656         (tst-mbrtowc-ENV): Likewise.
31657         (tst-wcrtomb-ENV): Likewise.
31658         (tst-mbrtowc2-ENV): Likewise.
31659         (tst-c16c32-1-ENV): Likewise.
31660         (tst-mbsnrtowcs-ENV): Likewise.
31661
31662 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31663
31664         * manual/resource.texi (How to get information about the memory
31665         subsystem?): Fix typo.
31666         Reported by Peon de la Parra Ivan <peon@keba.com>
31667
31668 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31669
31670         [BZ #16882]
31671         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31672         (pthread_spin_lock): Branch out of spin loop to proper location.
31673         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31674         (pthread_spin_lock): Likewise.
31675
31676         * nptl/tst-spin4.c: New test.
31677         * nptl/Makefile (tests): Add tst-spin4.
31678
31679 2014-06-03  Andreas Schwab  <schwab@suse.de>
31680
31681         [BZ #15946]
31682         * resolv/res_send.c (send_dg): Reload file descriptor after
31683         calling reopen.
31684
31685 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31686
31687         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31688
31689 2014-06-03  Richard Henderson  <rth@redhat.com>
31690
31691         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31692         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31693         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31694         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31695         in the SAVE_PID block.
31696         (__libc_vfork): New alias.
31697         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31698
31699         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31700         child in registers, not on the stack.  Remove RESET_PID conditionals.
31701         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31702
31703 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31704
31705         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31706
31707 2014-06-03  Wilco  <wdijkstr@arm.com>
31708
31709         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31710         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31711         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31712         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31713         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31714         Likewise.
31715
31716 2014-06-03  Wilco  <wdijkstr@arm.com>
31717
31718         * sysdeps/aarch64/fpu/math_private.h
31719         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31720         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31721         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31722         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31723         Fix declarations.
31724
31725 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31726
31727         * crypt/crypt-private.h: Include ufc-crypt.h.
31728         (__b64_from_24bit): Declare extern.
31729         * crypt/crypt_util.c(__b64_from_24bit): New function.
31730         (b64t): New static const variable.
31731         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31732         (b64t): Remove variable.
31733         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31734         * crypt/sha256-crypt.c: Include crypt-private.h.
31735         (b64t): Remove variable.
31736         (__sha256_crypt_r): Remove b64_from_24bit and replace
31737         with __b64_from_24bit.
31738         * crypt/sha512-crypt.c: Likewise.
31739
31740 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31741
31742         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31743         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31744         Label the code __libc_vfork rather than __vfork.
31745         [!NOT_IN_libc] (vfork): Define as weak alias.
31746         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31747         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31748         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31749
31750 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31751
31752         * malloc/malloc.c (malloc_info): Fix format specifier for
31753         n_mmaps.
31754
31755 2014-06-02  Wilco  <wdijkstr@arm.com>
31756
31757         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31758         FPCR write.
31759
31760 2014-06-02  Wilco  <wdijkstr@arm.com>
31761
31762         [BZ #17009]
31763         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31764         Rewrite to reduce FPCR/FPSR accesses.
31765
31766 2014-06-01  David S. Miller  <davem@davemloft.net>
31767
31768         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31769
31770 2014-05-31  David S. Miller  <davem@davemloft.net>
31771
31772         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31773         to occur in round to nearest mode when |x| >= 2.0
31774
31775 2014-05-30  Richard Henderson  <rth@twiddle.net>
31776
31777         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31778         (PSEUDO_RET_NOERRNO): Remove.
31779         (ret): Don't redefine.
31780         (ret_NOERRNO): Define in terms of ret.
31781         (ret_ERRVAL): Likewise.
31782
31783         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31784         use of PSEUDO_RET; perform the error check directly.
31785
31786 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31787
31788         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31789         with __int128_t.
31790
31791 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31792
31793         * malloc/malloc (malloc_info): Fix formatting.
31794
31795 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31796             Roland McGrath  <roland@hack.frob.com>
31797
31798         * malloc/malloc (malloc_info): Also print mmapped statistics.
31799
31800 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31801
31802         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31803         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31804
31805 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31806
31807         * malloc/malloc.c (malloc_info): Inline mi_arena.
31808
31809 2014-05-29  Richard Henderson  <rth@twiddle.net>
31810
31811         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31812         Remove comma before expanding ASM_ARGS_##nr.
31813         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31814         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31815         of ASM_ARGS_##nr.
31816         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31817         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31818         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31819         (ASM_ARGS_1): Add leading comma.
31820
31821         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31822         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31823         to __errno_location.
31824         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31825         Remove the expected plt for __errno_location.
31826
31827         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31828         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31829         call to __read_tp.
31830
31831         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31832         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31833         it and break it down.
31834         (DOCARGS_0, DOCARGS_1): Do nothing.
31835         (DOCARGS_2): Update to store into the new stack frame.
31836         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31837         (UNDOCARGS_1): Update to restore from the new stack frame.
31838         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31839         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31840
31841         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31842         (SINGLE_THREAD_P): New parameter for result regno.
31843         (PSEUDO): Update to match; use cbz instead of beq.
31844
31845         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31846         Use ENTRY to define the _nocancel entry point.  Share the syscall
31847         and syscall error check paths with the cancel path.
31848         (PSEUDO_END): New.
31849
31850         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31851         whitespace; tabs before and after asm mnemonics.
31852
31853 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31854
31855         [BZ #15132]
31856         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31857         Call fstat64 or stat64 internally, depending on arguments passed.
31858         Replace stat buffer argument with file descriptor argument.
31859         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31860         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31861         Pass fd to __internal_statvfs instead of calling fstat64.
31862         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31863         Pass fd to __internal_statvfs64 instead of calling fstat64.
31864         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31865         Pass -1 to __internal_statvfs instead of calling stat64.
31866         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31867         Pass -1 to __internal_statvfs64 instead of calling stat64.
31868
31869 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31870
31871         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31872         that was previously under [RESET_PID].
31873         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31874
31875         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31876         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31877
31878 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31879
31880         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31881
31882         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31883         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31884
31885 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31886
31887         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31888
31889 2014-05-27  Andreas Schwab  <schwab@suse.de>
31890
31891         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31892         TLS_INIT_TP macro.
31893         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31894         * elf/rtld.c (init_tls, dl_main): Likewise.
31895         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31896         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31897         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31898         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31899         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31900         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31901         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31902         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31903         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31904         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31905         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31906         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31907         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31908         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31909         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31910         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31911         * sysdeps/generic/tls.h: Update description.
31912
31913 2014-05-27  Will Newton  <will.newton@linaro.org>
31914
31915         [BZ #16990]
31916         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31917         and restore r2 rather than just restoring.
31918
31919 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31920
31921         [BZ #16724]
31922         * libio/tst-ftell-append.c: New test case.
31923         * libio/Makefile (tests): Add test case.
31924         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31925         append mode.
31926         * libio/wfileops.c (do_ftell_wide): Likewise.
31927
31928 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31929
31930         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31931
31932         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31933         ...
31934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31936         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31937         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31938         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31939         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31940         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31941         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31942         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31943         Moved ...
31944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31945         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31946         Moved ...
31947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31948         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31949         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31950         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31951         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31952         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31953         ...
31954         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31955         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31956         Moved ...
31957         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31958         here.
31959         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31960         ...
31961         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31962         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31963         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31964
31965         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31966         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31967         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31968         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31969
31970         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31971         merge into ...
31972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31973         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31974         ...
31975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31976         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31977         ...
31978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31979         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31980         Moved ...
31981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31982         here.
31983         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31984         Moved ...
31985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31986         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31987         Moved ...
31988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31989
31990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31991         conditional [RESET_PID].
31992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31993         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31994         removed.
31995         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31996         removed.
31997
31998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31999         <tcb-offsets.h>.
32000         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32001         (__libc_vfork): New strong alias.
32002         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32003         removed.
32004         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32005         Removed.
32006
32007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32008         <tcb-offsets.h>.
32009         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32010         (__libc_vfork): New strong alias.
32011         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32012         removed.
32013         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32014         removed.
32015
32016 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32017
32018         * malloc/malloc.c (mi_arena): New function.
32019         (malloc_info): Remove nested function mi_arena. Call non-nosted
32020         function mi_arena.
32021
32022 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32023
32024         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32025         by insrwi.
32026         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32027         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32028         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32029         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32030         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32031         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32032         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32033
32034 2014-05-26  Andreas Schwab  <schwab@suse.de>
32035
32036         [BZ #16984]
32037         * locale/programs/repertoire.c (repertoire_read): Add slash
32038         between I18NPATH element and file name.
32039         * locale/programs/locfile.c (locfile_read): Likewise.
32040
32041 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32042
32043         * nptl/pthread_mutexattr_settype.c
32044         (__pthread_mutexattr_settype):
32045         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32046
32047 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32048
32049         * nptl/tst-mutex5 (do_test):
32050         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32051
32052 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32053
32054         * benchtests/README: Document 'init' directive.
32055         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32056         BENCH_INIT.
32057         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32058         (parse_file): Recognize 'init' directive.
32059
32060 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32061
32062         [BZ #16796]
32063         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32064         alignment of struct pthread.
32065
32066 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32067
32068         [BZ #16878]
32069         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32070         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32071         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32072         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32073
32074 2014-05-25  Richard Henderson  <rth@twiddle.net>
32075
32076         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32077         (SINGLE_THREAD_P_PIC): Remove.
32078         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32079         (SINGLE_THREAD_P_PIC): Remove.
32080
32081         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32082         branch to syscall error ...
32083         (PSEUDO): ... here.
32084         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32085         from __local_syscall_error to .Lsyscall_error.
32086         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32087         (SYSCALL_ERROR): Update label name.
32088
32089         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32090         Do not use DOARGS/UNDOARGS.
32091         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32092         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32093         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32094         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32095         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32096
32097         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32098         block comment.
32099
32100         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32101         define if !NOT_IN_libc.
32102         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32103         define with non-default symbol versions.
32104
32105 2014-05-23  Richard Henderson  <rth@twiddle.net>
32106
32107         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32108         (vfork, __vfork): Define via compat_symbol.
32109
32110         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32111         [!HAVE_IFUNC] (vfork_compat): Remove.
32112         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32113
32114 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32115
32116         [BZ #16978]
32117         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32118         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32119         variable.
32120
32121 2014-05-23  Richard Henderson  <rth@twiddle.net>
32122
32123         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32124         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32125         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32126         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32127
32128         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32129         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32130         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32131         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32132         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32133         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32134         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32135         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32136         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32137         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32138         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32139         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32140         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32141         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32142         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32143         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32144         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32145         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32146         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32147         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32148         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32149         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32150         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32151         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32152         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32153         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32154         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32155         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32156         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32157         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32158         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32159         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32160         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32161         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32162         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32163         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32164         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32165         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32166         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32167         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32168         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32169         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32170         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32171         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32172         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32173         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32174         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32175         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32176         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32177         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32178         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32179         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32180         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32181         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32182         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32183         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32184
32185         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32186         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32187         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32188         before exiting on error.
32189         (__libc_vfork): New strong alias.
32190         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32191         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32192
32193         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32194         that was previously under [RESET_PID].
32195         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32196
32197         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32198
32199 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32200
32201         [BZ #16977]
32202         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32203         value when x - 1 is zero.
32204         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32205         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32206         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32207         0.0L for an argument of 1.0L.
32208         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32209         Likewise.
32210         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32211         value when x - 1 is zero.
32212         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32213         * sysdeps/i386/fpu/libm-test-ulps: Update.
32214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32215
32216 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32217
32218         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32219         alphasort and versionsort.
32220
32221 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32222
32223         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32224         macro.
32225         [copysignf]: Likewise.
32226
32227 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32228
32229         * crypt/md5-crypt.c: Fix formatting.
32230
32231 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32232
32233         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32234         (b64_from_24bit): New function.
32235
32236 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32237
32238         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32239         libc_hidden_builtin_def to ifunc.
32240         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32241         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32242
32243 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32244
32245         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32246         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32247
32248 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32249
32250         * nscd/Depend (linuxthreads): Remove.
32251         (nptl): Add.
32252         * resolv/Depend (linuxthreads): Remove.
32253         * rt/Depend (linuxthreads): Remove.
32254
32255         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32256         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32257         $(common-objpfx)elf/.
32258         (link-libc-before-gnulib): Likewise.
32259         (elfobjdir): Remove variable.
32260         * Makefile (install): Use $(elf-objpfx) instead of
32261         $(common-objpfx)elf/.
32262         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32263         $(elfobjdir)/.
32264         (link-libc-deps): Likewise.
32265         ($(common-objpfx)libc.so): Likewise.
32266         ($(common-objpfx)linkobj/libc.so): Likewise.
32267         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32268         instead of $(common-objpfx)elf/.
32269         (symbolic-link-list): Likewise.
32270         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32271         [$(cross-compiling) = no]: Likewise.
32272         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32273         $(elfobjdir)/.
32274         (static-gnulib-arch): Likewise.
32275         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32276         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32277         $(common-objpfx)elf/.
32278
32279 2014-05-21  Richard Henderson  <rth@redhat.com>
32280
32281         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32282         (SINGLE_THREAD_P): Use the correct width load.  Fold
32283         into the ldr offset.
32284
32285         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32286         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32287
32288 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32289
32290         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32291         (libgcc_s_resume): Use __attribute_used__.
32292         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32293         Likewise.
32294
32295 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32296
32297         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32298         optimization when used with float constants.
32299
32300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32301
32302 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32303
32304         [BZ #16915]
32305         * locale/nl_langinfo_l.c: Make direct reference to every
32306         _nl_current_CATEGORY symbol.
32307         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32308         (tests-static): Add tst-langinfo-static.
32309         (tests-special): Add tst-langinfo-static.out.
32310         ($(objpfx)tst-langinfo.out): Redirect output.
32311         ($(objpfx)tst-langinfo-static.out): New.
32312         * localedata/tst-langinfo.sh: Send output to stdout.
32313         * localedata/tst-langinfo-static.c: New file.
32314
32315         [BZ #16965]
32316         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32317         when the shift amount is modulo the limb size.
32318
32319 2014-05-20  Richard Henderson  <rth@redhat.com>
32320
32321         [BZ #16967]
32322         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32323         Change type of sa_flags from unsigned int to int.
32324
32325         [BZ #16966]
32326         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32327
32328         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32329
32330 2014-05-20  Will Newton  <will.newton@linaro.org>
32331
32332         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32333         Test the return value of the system call in the nocancel case.
32334
32335 2014-05-20  Will Newton  <will.newton@linaro.org>
32336             Yvan Roux  <yvan.roux@linaro.org>
32337
32338         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32339         #include of asm/ptrace.h.
32340         (PTRACE_GET_THREAD_AREA): Remove #undef.
32341         (PTRACE_GETHBPREGS): Likewise.
32342         (PTRACE_SETHBPREGS): Likewise.
32343         (struct user_regs_struct): New structure.
32344         (struct user_fpsimd_struct): New structure.
32345         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32346         #include of asm/ptrace.h and second #include of sys/user.h.
32347         (PTRACE_GET_THREAD_AREA): Remove #undef.
32348         (PTRACE_GETHBPREGS): Likewise.
32349         (PTRACE_SETHBPREGS): Likewise.
32350         (ELF_NGREG): Use new struct user_regs_struct.
32351         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32352
32353 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32354
32355         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32356         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32357
32358 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32359
32360         [BZ #16958]
32361         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32362         membar to avoid block loads/stores to overlap previous stores.
32363
32364 2014-05-17  Richard Henderson  <rth@redhat.com>
32365
32366         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32367         Create the __##syscall_name##_nocancel entry point.
32368         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32369         Remove; let the sysdep-cancel.h code create it.
32370
32371 2014-05-17  David S. Miller  <davem@davemloft.net>
32372
32373         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32374         Protect with __USE_GNU.
32375         (TIOCSET_TEMPT): Likewise.
32376         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32377         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32378         these are already provided in bits/ioctl-types.h
32379
32380 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32381
32382         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32383         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32384
32385         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32386         Use wait4 regardless of [__NR_waitpid].
32387
32388 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32389
32390         PR libgcc/60166
32391         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32392         (_FP_NANSIGN_Q): Set the quiet bit.
32393
32394 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32395
32396         * benchtests/Makefile
32397         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32398         not $(common-objpfx)math/libm.so.
32399         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32400         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32401         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32402         $(common-objpfx)dlfcn/libdl.so.
32403         ($(objpfx)tst-audit8): Depend on $(libm), not
32404         $(common-objpfx)math/libm.so.
32405         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32406         not $(common-objpfx)dlfcn/libdl.so.
32407         * math/Makefile
32408         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32409         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32410         [$(build-shared) = yes].
32411         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32412         $(common-objpfx)nptl/libpthread.so.
32413         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32414         $(common-objpfx)math/libm.so$(libm.so-version) or
32415         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32416         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32417         $(common-objpfx)dlfcn/libdl.so.
32418         * setjmp/Makefile (link-libm): Remove variable.
32419         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32420         * stdio-common/Makefile (link-libm): Remove variable.
32421         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32422         * stdlib/Makefile (link-libm): Remove variable.
32423         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32424         ($(objpfx)tst-strtod-round): Likewise.
32425         ($(objpfx)tst-tininess): Likewise.
32426         ($(objpfx)tst-strtod-underflow): Likewise.
32427         ($(objpfx)tst-strtod6): Likewise.
32428         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32429         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32430         $(common-objpfx)dlfcn/libdl.so.
32431
32432 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32433
32434         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32435         BSD terminal modes definitions.
32436
32437 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32438
32439         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32440         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32441
32442         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32443         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32444         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32445         Don't do #include_next.
32446         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32447         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32448         Don't do #include_next.
32449         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32450         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32451         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32452         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32453
32454 2014-05-16  Allan McRae  <allan@archlinux.org>
32455
32456         * po/sv.po: Update Swedish translation from translation project.
32457
32458         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32459         in sed expression.
32460
32461 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32462
32463         [BZ #16917]
32464         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32465         errno if the TIOCGPTN ioctl fails with an error different than
32466         EINVAL.
32467         * login/tst-ptsname.c: New file.
32468         * login/Makefile (tests): Add tst-ptsname.
32469
32470         [BZ #16943]
32471         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32472         and prlimit64.
32473
32474 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32475
32476         [BZ #16849]
32477         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32478         herrno to return EAI_AGAIN.
32479
32480 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32481
32482         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32483         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32484         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32485         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32486         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32487         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32488         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32489         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32490         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32491         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32492         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32493         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32494         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32495         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32496         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32497         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32498         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32499         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32500         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32501         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32502         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32503         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32504         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32505         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32506         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32507         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32508         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32509         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32510         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32511         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32513         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32514         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32515         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32516         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32517         Moved ...
32518         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32520         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32521         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32522         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32523         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32524         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32525         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32526         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32527         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32528         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32529         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32530         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32532         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32534         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32535         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32536         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32537         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32538         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32539         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32540         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32541         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32542         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32543         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32544         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32545         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32546         Moved ...
32547         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32548         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32549         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32550         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32551         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32552         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32553         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32554         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32555         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32557         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32558         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32559         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32561         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32562         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32563         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32564         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32565         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32566         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32567         Moved ...
32568         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32569         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32570         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32571
32572         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32573         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32574         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32575         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32576         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32577         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32578         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32579         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32580         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32581         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32582         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32583         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32584         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32585         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32586         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32587         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32588         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32589         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32590         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32591         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32592         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32593         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32594         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32595         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32596         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32597         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32598         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32599         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32600         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32601         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32602         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32603
32604         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32605         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32606
32607         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32608         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32609         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32610         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32611         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32612         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32613         Moved ...
32614         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32615         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32616         Moved ...
32617         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32618         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32619         Moved ...
32620         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32621         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32622         Moved ...
32623         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32624         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32625         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32626         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32627         Moved ...
32628         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32629         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32630         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32631         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32632         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32633         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32634         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32635         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32636         Moved ...
32637         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32638         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32639         Moved ...
32640         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32641         ... here.
32642         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32643         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32644         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32645         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32646         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32647         Moved ...
32648         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32649         ... here.
32650         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32651         Moved ...
32652         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32653         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32654         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32655         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32656         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32657         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32658         Moved ...
32659         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32660         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32661         Moved ...
32662         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32663         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32664         Moved ...
32665         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32666         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32667         Moved ...
32668         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32669         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32670         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32671         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32672         Moved ...
32673         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32674         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32675         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32676         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32677         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32678         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32679         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32680         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32681         Moved ...
32682         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32683         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32684         Moved ...
32685         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32686         ... here.
32687         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32688         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32689         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32690         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32691         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32692         Moved ...
32693         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32694         ... here.
32695         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32696         Moved ...
32697         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32698         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32699         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32700         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32701         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32702         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32703         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32704         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32705         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32706         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32707         Moved ...
32708         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32709         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32710         Moved ...
32711         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32712         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32713         Moved ...
32714         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32715         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32716         Moved ...
32717         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32718         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32719         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32720         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32721         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32722         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32723         Moved ...
32724         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32725         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32726         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32727         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32728         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32729         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32730         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32731         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32732         Moved ...
32733         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32734         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32735         Moved ...
32736         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32737         ... here.
32738         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32739         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32740         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32741         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32742         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32743         Moved ...
32744         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32745         ... here.
32746         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32747         Moved ...
32748         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32749         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32750         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32751         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32752         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32753         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32754         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32755         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32756         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32757         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32758         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32759
32760         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32761         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32762
32763         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32764         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32765
32766         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32767         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32768         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32769         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32770         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32771         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32772         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32773         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32774         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32775         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32776         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32777         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32778         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32779         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32780         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32781         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32782         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32783         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32784         Moved ...
32785         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32786         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32787         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32788         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32789         Moved ...
32790         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32791         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32792         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32793         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32794         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32795         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32796         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32797         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32798         Moved ...
32799         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32800         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32801         Moved ...
32802         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32803         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32804         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32805         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32806         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32807         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32808         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32809         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32810         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32811         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32812         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32813         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32814         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32815         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32816         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32817         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32818         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32819
32820         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32821         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32822         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32823         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32824         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32825
32826         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32827         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32828         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32829         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32830         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32831         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32832         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32833         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32834         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32835         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32836
32837         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32838         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32839
32840         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32841         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32842         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32843         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32844         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32845         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32846         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32847         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32848         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32849         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32850         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32851         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32852         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32853         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32854         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32855         Update #include.
32856         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32857         Likewise.
32858         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32859         Likewise.
32860         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32861         Likewise.
32862         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32863         Likewise.
32864         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32865         Likewise.
32866         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32867         Likewise.
32868         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32869         Likewise.
32870         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32871         Likewise.
32872         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32873         Likewise.
32874         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32875         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32876         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32877         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32878         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32879         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32880         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32881         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32882         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32883         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32884         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32885         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32886         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32887         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32888         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32889
32890         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32891         that was previously under [RESET_PID].
32892         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32893         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32894         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32895
32896         * sysdeps/i386/nptl/Implies: New file.
32897         * sysdeps/x86_64/nptl/Implies: New file.
32898         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32899         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32900         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32901         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32902
32903         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32904         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32905         (__libc_vfork): New strong alias.
32906         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32907         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32908
32909         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32910         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32911         (__libc_vfork): New strong alias.
32912         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32913         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32914
32915         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32916         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32917         (__libc_vfork): New strong alias.
32918         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32919         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32920         * nptl/pt-vfork.c: New file.
32921         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32922         (libpthread: GLIBC_2.20): New version set (empty).
32923
32924 2014-05-14  Will Newton  <will.newton@linaro.org>
32925
32926         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32927         rather than #if.
32928
32929 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32930
32931         [BZ #16564]
32932         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32933         arguments with exponent 65 or above.
32934         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32935         arguments 0x1p113L or above.
32936         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32937         to arguments 0x1p107L or above.
32938         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32939         positive arguments with exponent 65 or above.
32940         * math/auto-libm-test-in: Add more tests of log1p.
32941         * math/auto-libm-test-out: Regenerated.
32942
32943         [BZ #16928]
32944         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32945         non-finite arguments is +0.
32946         * math/s_cacosf.c (__cacosf): Likewise.
32947         * math/s_cacosl.c (__cacosl): Likewise.
32948         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32949         * sysdeps/i386/fpu/libm-test-ulps: Update.
32950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32951
32952         [BZ #16927]
32953         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32954         value.
32955         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32956         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32957         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32958         for explicit high bit of mantissa when testing for argument equal
32959         to 1.
32960         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32961         * sysdeps/i386/fpu/libm-test-ulps: Update.
32962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32963
32964         [BZ #16516]
32965         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32966         (__erf): Scale by 16 instead of 8 in potentially underflowing
32967         case.  Ensure exception if result actually underflows.
32968         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32969         (__erff): Scale by 16 instead of 8 in potentially underflowing
32970         case.  Ensure exception if result actually underflows.
32971         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32972         (efx8): Remove variable.
32973         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32974         case.  Ensure exception if result actually underflows.
32975         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32976         (efx8): Remove variable.
32977         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32978         case.  Ensure exception if result actually underflows.
32979         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32980         (efx8): Remove variable.
32981         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32982         case.  Ensure exception if result actually underflows.
32983         * math/auto-libm-test-in: Add more tests of erf.
32984         * math/auto-libm-test-out: Regenerated.
32985
32986 2014-05-14  Andreas Schwab  <schwab@suse.de>
32987
32988         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32989         Remove code conditionalized on USE___THREAD.
32990
32991         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32992         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32993         not definedness.
32994
32995 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32996
32997         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32998         Define unconditionally.
32999         (__ASSUME_O_CLOEXEC): Likewise.
33000         (__ASSUME_SOCK_CLOEXEC): Likewise.
33001         (__ASSUME_IN_NONBLOCK): Likewise.
33002         (__ASSUME_PIPE2): Likewise.
33003         (__ASSUME_EVENTFD2): Likewise.
33004         (__ASSUME_SIGNALFD4): Likewise.
33005         (__ASSUME_DUP3): Likewise.
33006         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33007         (__ASSUME_DUP3): Do not define.
33008         (__ASSUME_EVENTFD2): Likewise.
33009         (__ASSUME_IN_NONBLOCK): Likewise.
33010         (__ASSUME_O_CLOEXEC): Likewise.
33011         (__ASSUME_PIPE2): Likewise.
33012         (__ASSUME_SIGNALFD4): Likewise.
33013         (__ASSUME_SOCK_CLOEXEC): Likewise.
33014         (__ASSUME_UTIMES): Undefine.
33015         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33016         (__ASSUME_UTIMES): Do not define.
33017         (__ASSUME_O_CLOEXEC): Likewise.
33018         (__ASSUME_SOCK_CLOEXEC): Likewise.
33019         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33020         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33021         0x020621].
33022         (__ASSUME_PIPE2): Likewise.
33023         (__ASSUME_EVENTFD2): Likewise.
33024         (__ASSUME_SIGNALFD4): Likewise.
33025         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33026         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33027         Do not define.
33028         (__ASSUME_EVENTFD2): Likewise.
33029         (__ASSUME_SIGNALFD4): Likewise.
33030         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33031         (__ASSUME_32BITUIDS): Likewise.
33032         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33033         (__ASSUME_IPC64): Likewise.
33034         (__ASSUME_ST_INO_64_BIT): Likewise.
33035         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33036         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33037         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33038         (__ASSUME_UTIMES): Do not define.
33039         (__ASSUME_PSELECT): Likewise.
33040         (__ASSUME_PPOLL): Likewise.
33041         (__ASSUME_O_CLOEXEC): Likewise.
33042         (__ASSUME_SOCK_CLOEXEC): Likewise.
33043         (__ASSUME_IN_NONBLOCK): Likewise.
33044         (__ASSUME_PIPE2): Likewise.
33045         (__ASSUME_EVENTFD2): Likewise.
33046         (__ASSUME_SIGNALFD4): Likewise.
33047         (__ASSUME_DUP3): Likewise.
33048         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33049         (__ASSUME_UTIMES): Likewise.
33050         (__ASSUME_O_CLOEXEC): Likewise.
33051         (__ASSUME_SOCK_CLOEXEC): Likewise.
33052         (__ASSUME_IN_NONBLOCK): Likewise.
33053         (__ASSUME_PIPE2): Likewise.
33054         (__ASSUME_EVENTFD2): Likewise.
33055         (__ASSUME_SIGNALFD4): Likewise.
33056         (__ASSUME_DUP3): Likewise.
33057         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33058         (__ASSUME_UTIMES): Likewise.
33059         (__ASSUME_O_CLOEXEC): Likewise.
33060         (__ASSUME_SOCK_CLOEXEC): Likewise.
33061         (__ASSUME_IN_NONBLOCK): Likewise.
33062         (__ASSUME_PIPE2): Likewise.
33063         (__ASSUME_EVENTFD2): Likewise.
33064         (__ASSUME_SIGNALFD4): Likewise.
33065         (__ASSUME_DUP3): Likewise.
33066         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33067         Likewise.
33068         (__ASSUME_UTIMES): Likewise.
33069         (__ASSUME_EVENTFD2): Likewise.
33070         (__ASSUME_SIGNALFD4): Likewise.
33071         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33072         (__ASSUME_O_CLOEXEC): Likewise.
33073         (__ASSUME_SOCK_CLOEXEC): Likewise.
33074         (__ASSUME_IN_NONBLOCK): Likewise.
33075         (__ASSUME_PIPE2): Likewise.
33076         (__ASSUME_EVENTFD2): Likewise.
33077         (__ASSUME_SIGNALFD4): Likewise.
33078         (__ASSUME_DUP3): Likewise.
33079         (__ASSUME_UTIMES): Undefine.
33080
33081         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33082         feclearexcept.  Remove symbol versioning code.
33083         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33084         symbol versioning code.
33085         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33086         symbol versioning code.
33087         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33088         feupdateenv.  Remove symbol versioning code.
33089         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33090         fegetexceptflag.  Remove symbol versioning code.
33091         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33092         fesetexceptflag.  Remove symbol versioning code.
33093         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33094         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33095         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33096         (__posix_fadvise64_l32): Remove prototype.
33097         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33098         code.
33099
33100 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33101
33102         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33103         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33104         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33105         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33106
33107 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33108
33109         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33110         current working directory
33111
33112 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33113
33114         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33115         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33116         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33117         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33118         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33119         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33120         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33121         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33122         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33123         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33124         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33125         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33126         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33127         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33128         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33129         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33130         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33131         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33132         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33133         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33134         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33135         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33136         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33137         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33138         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33139         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33140         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33141         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33142         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33143         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33144         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33145         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33146         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33147         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33148         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33149         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33150         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33151         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33152         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33153         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33154         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33155         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33156
33157         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33158         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33159
33160         * sysdeps/unix/sysv/linux/arm/Makefile
33161         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33162         Add rt-aeabi_unwind_cpp_pr1.
33163         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33164         Add nptl-aeabi_unwind_cpp_pr1.
33165         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33166         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33167         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33168         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33169         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33170         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33171
33172         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33173         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33174         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33175         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33176
33177         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33178         Deconditionalize the code that was previously under [RESET_PID].
33179         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33180
33181         * sysdeps/generic/exit-thread.h: New file.
33182         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33183         * include/unistd.h (__exit_thread): Remove declaration.
33184         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33185         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33186         * csu/libc-start.c: Include <exit-thread.h>.
33187         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33188         * nptl/pthread_create.c: Include <exit-thread.h>.
33189         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33190         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33191         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33192         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33193         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33194         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33195         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33196         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33197         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33198         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33199         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33200         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33201         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33202         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33203         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33204         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33205         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33206
33207 2014-05-13  Andreas Schwab  <schwab@suse.de>
33208
33209         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33210
33211 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33212
33213         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33214         (__ASSUME_UTIMES): Do not condition on kernel version.
33215         (__ASSUME_PSELECT): Define unconditionally.
33216         (__ASSUME_PPOLL): Likewise.
33217         (__ASSUME_ATFCTS): Likewise.
33218         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33219         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33220         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33221         (__ASSUME_UTIMENSAT): Define unconditionally.
33222         (__ASSUME_PRIVATE_FUTEX): Likewise.
33223         (__ASSUME_FALLOCATE): Likewise.
33224         (__ASSUME_O_CLOEXEC): Likewise.
33225         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33226         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33227         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33228         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33229         (__ASSUME_IN_NONBLOCK): Likewise.
33230         (__ASSUME_PIPE2): Likewise.
33231         (__ASSUME_EVENTFD2): Likewise.
33232         (__ASSUME_SIGNALFD4): Likewise.
33233         (__ASSUME_DUP3): Likewise.
33234         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33235         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33236         (__ASSUME_AT_RANDOM): Likewise.
33237         (__ASSUME_PREADV): Likewise.
33238         (__ASSUME_PWRITEV): Likewise.
33239         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33240         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33241         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33242         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33243         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33244         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33245         (__ASSUME_O_CLOEXEC): Define unconditionally.
33246         (__ASSUME_PSELECT): Do not undefine conditionally.
33247         (__ASSUME_PPOLL): Likewise.
33248         (__ASSUME_ATFCTS): Likewise.
33249         (__ASSUME_SET_ROBUST_LIST): Likewise.
33250         (__ASSUME_UTIMENSAT): Likewise.
33251         (__ASSUME_FDATASYNC): Define unconditionally.
33252         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33253         (__ASSUME_SIGFRAME_V2): Likewise.
33254         )__ASSUME_EVENTFD2): Likewise.
33255         (__ASSUME_SIGNALFD4): Likewise.
33256         (__ASSUME_PSELECT): Do not undefine conditionally.
33257         (__ASSUME_PPOLL): Likewise.
33258         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33259         (__ASSUME_PSELECT): Define unconditionally.
33260         (__ASSUME_PPOLL): Likewise.
33261         (__ASSUME_O_CLOEXEC): Likewise.
33262         (__ASSUME_SOCK_CLOEXEC): Likewise.
33263         (__ASSUME_IN_NONBLOCK): Likewise.
33264         (__ASSUME_PIPE2): Likewise.
33265         (__ASSUME_EVENTFD2): Likewise.
33266         (__ASSUME_SIGNALFD4): Likewise.
33267         (__ASSUME_DUP3): Likewise.
33268         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33269         (__ASSUME_O_CLOEXEC): Likewise.
33270         (__ASSUME_SOCK_CLOEXEC): Likewise.
33271         (__ASSUME_IN_NONBLOCK): Likewise.
33272         (__ASSUME_PIPE2): Likewise.
33273         (__ASSUME_EVENTFD2): Likewise.
33274         (__ASSUME_SIGNALFD4): Likewise.
33275         (__ASSUME_DUP3): Likewise.
33276         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33277         (__ASSUME_EVENTFD2): Likewise.
33278         (__ASSUME_SIGNALFD4): Likewise.
33279         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33280
33281 2014-05-12  Andreas Schwab  <schwab@suse.de>
33282
33283         [BZ #16932]
33284         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33285         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33286         than maximum RPC packet size.
33287         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33288         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33289         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33290         (_nss_nis_getservbyport_r): Likewise.
33291
33292 2014-05-12  Will Newton  <will.newton@linaro.org>
33293
33294         * malloc/Makefile (tests): Add tst-mallopt.
33295         * malloc/tst-mallopt.c: New file.
33296
33297 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33298
33299         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33300         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33301
33302 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33303
33304         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33305         (tst-tlsmod6.so): Likewise.
33306
33307 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33308
33309         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33310
33311 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33312
33313         [BZ #16064]
33314         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33315         and <dl-procinfo.h>.
33316         (__fegetenv): Save SSE state in envp->__eip if supported.
33317         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33318         envp->__eip if supported.
33319         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33320         and <dl-procinfo.h>.
33321         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33322         __data_offset and __data_selector in environment to 0.  Set SSE
33323         state if supported.
33324         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33325         test-fenv-sse.
33326         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33327         -mfpmath=sse.
33328         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33329
33330 2014-05-09  Will Newton  <will.newton@linaro.org>
33331
33332         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33333         and libc_relro_required for ARM.
33334         * sysdeps/arm/preconfigure: Regenerate.
33335
33336 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33337             Stefan Liebler  <stli@linux.vnet.ibm.com>
33338
33339         * config.make.in (enable-lock-elision): New Makefile variable.
33340         * configure.ac: Likewise.
33341         * configure: Regenerate.
33342         * sysdeps/s390/configure.ac:
33343         Add check for gcc transactions support.
33344         * sysdeps/s390/configure: Regenerate.
33345         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33346         Build elision files if enabled.
33347         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33348         Add lock elision support for s390.
33349         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33350         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33351         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33352         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33353         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33354         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33355         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33356         Likewise.
33357         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33358         Likewise.
33359         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33360         Likewise.
33361         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33362         Likewise.
33363         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33364         (__lll_timedlock_elision, __lll_lock_elision)
33365         (__lll_unlock_elision, __lll_trylock_elision)
33366         (lll_timedlock_elision, lll_lock_elision)
33367         (lll_unlock_elision, lll_trylock_elision): Add.
33368         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33369         (pthread_mutex_t): Add lock elision support for s390.
33370
33371 2014-05-14  Wilco  <wdijkstr@arm.com>
33372
33373         * sysdeps/arm/fclrexcpt.c: Cleanup.
33374         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33375         * sysdeps/arm/feenablxcpt.c: Cleanup.
33376         * sysdeps/arm/fegetenv.c: Cleanup.
33377         * sysdeps/arm/fegetexcept.c: Cleanup.
33378         * sysdeps/arm/fegetround.c: Cleanup.
33379         * sysdeps/arm/feholdexcpt.c: Cleanup.
33380         * sysdeps/arm/fesetenv.c: Cleanup.
33381         * sysdeps/arm/fesetround.c: Cleanup.
33382         * sysdeps/arm/feupdateenv.c: Cleanup.
33383         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33384         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33385         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33386         * sysdeps/arm/ftestexcept.c: Cleanup.
33387         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33388         * sysdeps/arm/setfpucw.c: Cleanup.
33389
33390 2014-05-09  Will Newton  <will.newton@linaro.org>
33391
33392         * sysdeps/arm/armv7/strcmp.S: New file.
33393         * NEWS: Mention addition of ARMv7 optimized strcmp.
33394
33395 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33396
33397         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33398         look for %.ac rather than %.in.
33399
33400         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33401         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33402         * sysdeps/mach/hurd/configure: Regenerated.
33403         * sysdeps/unix/sysv/linux/configure: Regenerated.
33404
33405         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33406
33407 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33408
33409         [BZ# 16922]
33410         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33411         (LONG_SUB): Ditto.
33412         (PTR_SUB): Ditto.
33413
33414 2014-05-07  Andreas Schwab  <schwab@suse.de>
33415
33416         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33417         when skipping over non-matching result from nscd.
33418
33419 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33420
33421         [BZ #16876]
33422         * nptl/sockperf.c (client): Check socket return value.
33423
33424         [BZ #16877]
33425         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33426         nscd security class.
33427
33428 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33429
33430         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33431         * sysdeps/arm/unwind.h: ... here.
33432
33433 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33434
33435         [BZ# 16916]
33436         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33437         Define.
33438
33439 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33440
33441         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33442         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33443         multiarch strncpy for PPC64.
33444         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33445         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33446         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33447         multiarch optimizations.
33448         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33449         (__libc_ifunc_impl_list): Likewise.
33450         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33451         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33452         multiarch stpncpy for PPC64.
33453         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33454         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33455
33456 2014-05-06  Andreas Schwab  <schwab@suse.de>
33457
33458         [BZ #16912]
33459         * gmon/mcount.c (_MCOUNT_DECL): Use
33460         atomic_compare_and_exchange_bool_acq instead of
33461         catomic_compare_and_exchange_bool_acq.
33462
33463 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33464
33465         * elf/Makefile (others, install-bin): Remove pldd.
33466         (pldd-modules): Variable removed.
33467         ($(objpfx)pldd): Target removed.
33468         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33469         (others, install-bin): Append pldd here.
33470         ($(objpfx)pldd): New target.
33471
33472         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33473         to 0, so the first #if test emitted later doesn't see it undefined.
33474         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33475         * sysdeps/gnu/errlist.c: Regenerated.
33476
33477 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33478
33479         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33480         [libc_hidden_builtin_def]: Define to empty value.
33481         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33482         [libc_hidden_builtin_def]: Likewise.
33483         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33484         [libc_hidden_builtin_def]: Likewise.
33485         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33486         [libc_hidden_builtin_def]: Likewise.
33487         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33488         __redirect_memcpy and define ifunc as default hidden symbol.
33489         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33490         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33491
33492 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33493
33494         * locale/iso-4217.def: Reintroduce XDR currency.
33495
33496 2014-05-04  Allan McRae  <allan@archlinux.org>
33497
33498         * po/eo.po: Update Esperanto translation from translation project.
33499
33500 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33501
33502         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33503         and FEATURE_INDEX_MAX to 1.
33504         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33505
33506 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33507
33508         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33509         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33510         * iconvdata/big5.c (ONE_DIRECTION): Define.
33511         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33512         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33513         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33514         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33515         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33516         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33517         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33518         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33519         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33520         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33521         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33522         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33523         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33524         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33525         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33526         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33527         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33528         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33529         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33530         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33531         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33532         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33533         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33534         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33535         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33536         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33537         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33538         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33539         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33540         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33541         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33542         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33543         * iconvdata/johab.c (ONE_DIRECTION): Define.
33544         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33545         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33546         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33547         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33548         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33549         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33550         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33551         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33552         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33553         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33554
33555 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33556
33557         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33558         (_IO_JUMPS_OFFSET): Define to 0.
33559
33560         * nptl/sysdeps/pthread/bits/libc-lock.h
33561         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33562         (__libc_lock_define_initialized_recursive): Always define using
33563         initializer.  Modern compilers treat uninitialized (implicit zero) and
33564         explicit zero initializers the same (i.e. put the datum in bss).
33565
33566 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33567
33568         * nscd/nscd-client.h: Include <string.h>.
33569
33570 2014-05-01  David S. Miller  <davem@davemloft.net>
33571
33572         [BZ #16885]
33573         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33574         multiple zero bytes exist at the end of a string.
33575         Reported by Aurelien Jarno <aurelien@aurel32.net>
33576
33577         * string/test-strcmp.c (check): Add explicit test for situations where
33578         there are multiple zero bytes after the first.
33579
33580 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33581
33582         [BZ #16890]
33583         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33584         when compiling wprintf.
33585         * stdio-common/tstdiomisc.c (t3): New function.
33586         (main): Call it.
33587
33588 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33589
33590         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33591         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33592         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33593         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33594
33595 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33596
33597         * stdlib/longlong.h: Updated from GCC.
33598
33599 2014-05-01  Will Newton  <will.newton@linaro.org>
33600             Bernard Ogden  <bernie.ogden@linaro.org>
33601
33602         * NEWS: Update fixed bug list.
33603
33604         [BZ #15119]
33605         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33606
33607 2014-04-30  David S. Miller  <davem@davemloft.net>
33608
33609         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33610         (libc_feholdexcept_setround_sparc_ctx): New function.
33611         (libc_fesetenv_sparc_ctx): Likewise.
33612         (libc_feupdateenv_sparc_ctx): Likewise.
33613         (libc_feholdsetround_sparc_ctx): Likewise.
33614         (libc_feholdexcept_setround_ctx): Define.
33615         (libc_feholdexcept_setroundf_ctx): Likewise.
33616         (libc_feholdexcept_setroundl_ctx): Likewise.
33617         (libc_fesetenv_ctx): Likewise.
33618         (libc_fesetenvf_ctx): Likewise.
33619         (libc_fesetenvl_ctx): Likewise.
33620         (libc_feupdateenv_ctx): Likewise.
33621         (libc_feupdateenvf_ctx): Likewise.
33622         (libc_feupdateenvl_ctx): Likewise.
33623         (libc_feresetround_ctx): Likewise.
33624         (libc_feresetroundf_ctx): Likewise.
33625         (libc_feresetroundl_ctx): Likewise.
33626         (libc_feholdsetround_ctx): Likewise.
33627         (libc_feholdsetroundf_ctx): Likewise.
33628         (libc_feholdsetroundl_ctx): Likewise.
33629
33630         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33631         with __USE_GNU instead of XOPEN cpp guards.
33632
33633         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33634         0.
33635
33636         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33637         with XOPEN cpp guards.
33638
33639 2014-04-30  Julian Brown  <julian@codesourcery.com>
33640
33641         [BZ #16888]
33642         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33643         handling.
33644
33645 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33646
33647         [BZ #9894]
33648         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33649         Change to 2.6.32.
33650         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33651         * sysdeps/unix/sysv/linux/configure: Regenerated.
33652         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33653         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33654         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33655         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33656         * README: Update reference to required Linux kernel version.
33657         * manual/install.texi (Linux): Update reference to required Linux
33658         kernel headers version.
33659         * INSTALL: Regenerated.
33660
33661         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33662         header inclusion.
33663         [POSIX] (limits.h): Likewise.
33664         [POSIX] (math.h): Likewise.
33665         [POSIX] (sys/wait.h): Likewise.
33666         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33667         function.
33668         [POSIX] (stddef.h): Do not allow header inclusion.
33669
33670 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33671
33672         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33673
33674 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33675
33676         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33677         Return immediately after lll_futex_wake.
33678
33679 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33680
33681         [BZ #16791]
33682         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33683         structure.
33684         (datahead_init_pos): Call datahead_init_common early.
33685         (datahead_init_neg): Likewise.
33686
33687         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33688         datahead_init_neg): New functions.
33689         * nscd/aicache.c (addhstaiX): Use them.
33690         * nscd/grpcache.c (cache_addgr): Likewise.
33691         * nscd/hstcache.c (cache_addhst): Likewise.
33692         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33693         * nscd/netgroupcache.c (do_notfound): Likewise.
33694         (addgetnetgrentX): Likewise.
33695         (addinnetgrX): Likewise.
33696         * nscd/pwdcache.c (cache_addpw): Likewise.
33697         * nscd/servicescache.c (cache_addserv): Likewise.
33698
33699 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33700             Atsushi Onoe  <atsushi@onoe.org>
33701
33702         [BZ #14308]
33703         [BZ #12994]
33704         [BZ #13651]
33705         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33706         one response is valid.
33707         * resolv/res_send.c (send_dg): Check for validity of other
33708         response if the current response is a referral.
33709
33710 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33711
33712         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33713
33714 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33715
33716         [BZ #16823]
33717         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33718         Always divide by positive zero when computing -Inf result.
33719         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33720         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33721
33722 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33723
33724         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33725         FPSCR if value do not change.
33726         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33727         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33728         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33729         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33730         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33731         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33732         function.
33733
33734 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33735
33736         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33737         * sysdeps/unix/sysv/linux/hppa: Move directory from
33738         ports/systeps/unix/sysv/linux/hppa.
33739         * README: Update listing for hppa-*-linux-gnu.
33740
33741 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33742
33743         [BZ #16754]
33744         * manual/stdio.texi (Hook functions): Fix types of stream hook
33745         functions.
33746         [BZ #16854]
33747         * socket/sys/socket.h: Fix typo in comment.
33748
33749 2014-04-28  Wilco  <wdijkstr@arm.com>
33750
33751         * sysdeps/arm/fenv_private.h: New file.
33752         * sysdeps/arm/math_private.h: New file.
33753         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33754
33755 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33756
33757         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33758         with __int128_t.
33759         (La_x86_64_retval): Likewise.
33760
33761 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33762
33763         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33764         fpsr if value didn't change.
33765         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33766         to fpcr if value didn't change.
33767         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33768         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33769         fpsr or fpcr if value didn't change.
33770         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33771         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33772         fpcr if value didn't change.
33773         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33774         to fpsr if value didn't change.
33775
33776 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33777
33778         * nptl/tst-sem3.c: Use test-skeleton.c
33779         (main): Rename to do_test.  Use return instead of
33780         exit.
33781         * nptl/tst-sem4.c: Use test-skeleton.c
33782         (main): Rename to do_test.
33783
33784 2014-04-22  David S. Miller  <davem@davemloft.net>
33785
33786         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33787         (struct sigaction): New struct member __glibc_reserved0, change
33788         type of sa_flags to int.
33789
33790 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33791
33792         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33793         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33794
33795 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33796
33797         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33798         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33799
33800 2014-04-22  Will Newton  <will.newton@linaro.org>
33801             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33802
33803         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33804         (__longjmp): Add longjmp and longjmp_target SystemTap
33805         probes.
33806         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33807         (__sigsetjmp): Add setjmp SystemTap probe.
33808
33809 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33810
33811         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33812         match manual order.
33813
33814 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33815
33816         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33817
33818         * sysdeps/powerpc/fpu/fenv_private.h
33819         (libc_feholdexcept_setroundl_ctx): Define to
33820         libc_feholdexcept_setround_ppc_ctx.
33821         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33822         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33823         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33824         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33825
33826 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33827
33828         * sysdeps/aarch64/math-tests.h: New file.
33829
33830 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33831
33832         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33833         New.
33834         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33835         Check and set bit_AVX2_Usable.
33836         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33837         macro.
33838         (bit_AVX2): Likewise.
33839         (index_AVX2_Usable): Likewise.
33840         (CPUID_AVX2): Likewise.
33841         (HAS_AVX2): Likewise.
33842
33843 2014-04-17  Will Newton  <will.newton@linaro.org>
33844
33845         * manual/setjmp.texi (System V contexts): Add note that
33846         calling setcontext on a context created by a call to a
33847         signal handler is undefined.  Update text to note that
33848         setcontext from a signal handler is possible but not
33849         recommended.
33850
33851         [BZ #16629]
33852         * stdlib/tst-setcontext.c: Include signal.h.
33853         (main): Check that the signal stack before and
33854         after swapcontext is the same.
33855
33856         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33857         Re-implement to restore registers in user code and avoid
33858         rt_sigreturn system call.
33859
33860 2014-04-17  Wilco  <wdijkstr@arm.com>
33861
33862         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33863         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33864         * math/test-fenv.c: Skip exception trap tests on targets which only
33865         support non-stop mode.
33866
33867 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33868             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33869
33870         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33871         (libc_feholdsetround_aarch64_ctx)
33872         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33873         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33874         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33875         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33876         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33877         (libc_feresetround_noexl_ctx): Define.
33878
33879 2014-04-16  Richard Henderson  <rth@redhat.com>
33880
33881         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33882
33883         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33884         unwind tables.
33885
33886         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33887         const from the non-libc, non-ldso copy.
33888
33889         * sysdeps/alpha/libm-test-ulps: Regenerate.
33890
33891 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33892             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33893
33894         * sysdeps/aarch64/fpu/math_private.h: New file.
33895
33896 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33897
33898         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33899
33900 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33901
33902         [BZ #16275]
33903         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33904         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33905         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33906         Intel MPX bound registers before _dl_profile_fixup.
33907         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33908         registers after _dl_profile_fixup.  Save and restore bound
33909         registers bnd0/bnd1 when calling _dl_call_pltexit.
33910         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33911         (LR_BND_OFFSET): Likewise.
33912         (LRV_BND0_OFFSET): Likewise.
33913         (LRV_BND1_OFFSET): Likewise.
33914
33915 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33916
33917         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33918         to...
33919         * sysdeps/mach/hurd/i386/tls.h: ... here.
33920         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33921         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33922         fields.
33923
33924 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33925
33926         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33927
33928 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33929
33930         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33931
33932 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33933
33934         [BZ #14770]
33935         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33936         * sysdeps/s390/configure: Regenerate.
33937
33938         [BZ #16824]
33939         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33940         Set round-to-nearest internally to reduce error accumulation.
33941
33942 2014-04-16  Alan Modra  <amodra@gmail.com>
33943
33944         [BZ #16740]
33945         [BZ #16619]
33946         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33947         * math/libm-test.inc (frexp_test_data): Add tests.
33948         * NEWS: Update fixed bug list.
33949
33950 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33951
33952         * benchtests/Makefile: Depend on libraries in build directory.
33953         (bench-math): Separate out math tests.
33954         (bench-pthread): Separate out pthread tests.
33955         (bench): Include math and pthread tests.
33956
33957 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33958
33959         [BZ #16831]
33960         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33961         _dl_debug_initialize.
33962
33963         * configure.ac: Remove SELinux header check.
33964         * configure: Regenerate.
33965         * nscd/selinux.c (perms): Array of const char* to permission names.
33966         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33967         default policy. Call string_to_security_class and string_to_av_perm to
33968         translate strings. Enforce default policy and call avs_has_perm with
33969         results of translated strings.
33970
33971 2014-04-13  David S. Miller  <davem@davemloft.net>
33972
33973         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33974
33975 2014-04-12  Allan McRae  <allan@archlinux.org>
33976
33977         [BZ #16838]
33978         * manual/string.texi (Collation Functions): Fix qsort argument
33979         order in example.
33980         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33981
33982 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33983
33984         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33985         Make the test a no-op if there are no exceptions defined.
33986
33987 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33988
33989         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33990         enable-hardcoded-path-in-tests
33991
33992 2014-04-11  Will Newton  <will.newton@linaro.org>
33993
33994         * benchtests/Makefile (extra-objs): Add json-lib.o.
33995         (bench-func): Tidy up JSON output.
33996         * benchtests/bench-skeleton.c: Include json-lib.h.
33997         (main): Use JSON library functions to do output of
33998         benchmark results.
33999         * benchtests/bench-timing-type.c (main): Output the
34000         timing type simply, leaving formatting to the user.
34001         * benchtests/json-lib.c: New file.
34002         * benchtests/json-lib.h: Likewise.
34003
34004 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34005
34006         [BZ #15215]
34007         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34008         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34009         memory barriers.  Add comments.
34010         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34011         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34012         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34013         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34014         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34015         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34016
34017 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34018
34019         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34020         * sysdeps/s390/s390-64/configure.ac: ... this ...
34021         * sysdeps/s390/configure.ac: ... to here.
34022         * sysdeps/s390/s390-32/configure: Delete file.
34023         * sysdeps/s390/s390-64/configure: Delete file.
34024         * sysdeps/s390/configure: Regenerate.
34025
34026 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34027
34028         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34029
34030 2014-04-11  Will Newton  <will.newton@linaro.org>
34031
34032         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34033         to zero if it is not defined elsewhere.  (mtrim): Test
34034         the value of MALLOC_DEBUG with #if rather than #ifdef.
34035
34036 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34037
34038         * benchtests/pthread_once-inputs: New file.
34039         * benchtests/pthread_once-source.c: New file.
34040         * benchtests/README: Update documentation.
34041
34042 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34043             H.J. Lu  <hongjiu.lu@intel.com>
34044
34045         [BZ #16275]
34046         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34047         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34048         * sysdeps/x86_64/configure: Regenerated.
34049         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34050         macro.
34051         (REGISTER_SAVE_RAX): Likewise.
34052         (REGISTER_SAVE_RCX): Likewise.
34053         (REGISTER_SAVE_RDX): Likewise.
34054         (REGISTER_SAVE_RSI): Likewise.
34055         (REGISTER_SAVE_RDI): Likewise.
34056         (REGISTER_SAVE_R8): Likewise.
34057         (REGISTER_SAVE_R9): Likewise.
34058         (REGISTER_SAVE_BND0): Likewise.
34059         (REGISTER_SAVE_BND1): Likewise.
34060         (REGISTER_SAVE_BND2): Likewise.
34061         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34062         bound registers when calling _dl_fixup.
34063
34064 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34065
34066         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34067         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34068         of its definition.
34069         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34070         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34071         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34072         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34073         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34074         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34075         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34076
34077 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34078
34079         [BZ #15514]
34080         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34081         pathconf(_PC_NAME_MAX).
34082
34083 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34084
34085         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34086         Remove macro usage.
34087         (__PTHREAD_SPINS): Move definition to ...
34088         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34089         (__PTHREAD_SPINS): ... here.
34090         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34091         (__PTHREAD_SPIN): Likewise.
34092         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34093         (__PTHREAD_SPIN): Likewise.
34094         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34095         (__PTHREAD_SPIN): Likewise.
34096         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34097         (__PTHREAD_SPIN): Likewise.
34098         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34099         (__PTHREAD_SPIN): Likewise.
34100         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34101         (__PTHREAD_SPIN): Likewise.
34102         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34103         (__PTHREAD_SPIN): Likewise.
34104         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34105         (__PTHREAD_SPIN): Likewise.
34106         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34107         (__PTHREAD_SPIN): Likewise.
34108         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34109         (__PTHREAD_SPIN): Likewise.
34110         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34111         (__PTHREAD_SPIN): Likewise.
34112         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34113         (__PTHREAD_SPIN): Likewise.
34114
34115         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34116         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34117         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34118         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34119         imply folder.
34120         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34121         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34122         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34123         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34124         correct imply path.
34125         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34126         strlen symbol for non multi-arch builds.
34127         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34128         missing hidden_def and weak_alias.
34129
34130 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34131
34132         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34133
34134 2014-04-07  Will Newton  <will.newton@linaro.org>
34135
34136         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34137         and contents.  [!_LIBC] Remove #ifndef and contents.
34138         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34139         * string/memccpy.c (__memccpy): Use ANSI prototype.
34140         * string/memfrob.c (memfrob): Likewise.
34141         * string/strcoll.c (STRCOLL): Likewise.
34142         * string/strlen.c (strlen): Likewise.
34143         * string/strtok.c (STRTOK): Likewise.
34144         * string/strcat.c: Remove unused #include of memcopy.h.
34145         (strcat): Use ANSI prototype.
34146         * string/strchr.c: Remove unused #include of memcopy.h.
34147         (strchr): Use ANSI prototype.
34148         * string/strcmp.c: Remove unused #include of memcopy.h.
34149         (strcmp): Use ANSI prototype.
34150         * string/strcpy.c: Remove unused #include of memcopy.h.
34151         (strcpy): Use ANSI prototype.
34152
34153 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34154
34155         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34156         * config.make.in (config-extra-cppflags): Set it from
34157         libc_extra_cppflags.
34158         * configure.ac (libc_extra_cflags): Make it accumulate over
34159         configure fragments.
34160         (libc_extra_cppflags): New flag.
34161         * configure. Regenerate.
34162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34163         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34164         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34166
34167         [BZ #16815]
34168         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34169         result for FE_DOWNWARD rounding mode.
34170         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34171         Likewise.
34172         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34173
34174 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34175
34176         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34177         in function argument name.
34178
34179 2014-04-03  David Svoboda  <svoboda@cert.org>
34180
34181         [BZ #5666]
34182         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34183         explicitly.
34184
34185 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34186
34187         * elf/dl-unmap-segments.h: New file.
34188         * sysdeps/generic/ldsodefs.h
34189         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34190         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34191         * elf/dl-fptr.c: Likewise.
34192         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34193         * sysdeps/aarch64/tlsdesc.c: Likewise.
34194         * sysdeps/arm/tlsdesc.c: Likewise.
34195         * sysdeps/i386/tlsdesc.c: Likewise.
34196         * sysdeps/tile/dl-runtime.c: Likewise.
34197         * sysdeps/x86_64/tlsdesc.c: Likewise.
34198         * elf/dl-load.h: New file.
34199         * elf/dl-load.c: Include it.
34200         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34201         Macros moved to dl-load.h.
34202         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34203         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34204         Use _dl_unmap_segments in place of __munmap.
34205         Break out segment-mapping loop into ...
34206         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34207
34208 2014-04-03  Will Newton  <will.newton@linaro.org>
34209
34210         * elf/dl-lookup.c (do_lookup_x): Remove comment
34211         referring to nested function and move variable
34212         declarations down to before first use.
34213
34214 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34215
34216         [BZ #16799]
34217         [BZ #16800]
34218         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34219         with 0 numerator.
34220         * math/s_catanf.c (__catanf): Likewise.
34221         * math/s_catanh.c (__catanh): Likewise.
34222         * math/s_catanhf.c (__catanhf): Likewise.
34223         * math/s_catanhl.c (__catanhl): Likewise.
34224         * math/s_catanl.c (__catanl): Likewise.
34225         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34226         by positive zero when computing -Inf result.
34227         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34228         (catanh_test): Likewise.
34229         * sysdeps/i386/fpu/libm-test-ulps: Update.
34230         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34231
34232         [BZ #16789]
34233         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34234         instead of using underflowing value in computing result.
34235         * math/s_clog10.c (__clog10): Likewise.
34236         * math/s_clog10f.c (__clog10f): Likewise.
34237         * math/s_clog10l.c (__clog10l): Likewise.
34238         * math/s_clogf.c (__clogf): Likewise.
34239         * math/s_clogl.c (__clogl): Likewise.
34240         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34241         (clog10_test): Likewise.
34242         * sysdeps/i386/fpu/libm-test-ulps: Update.
34243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34244
34245 2014-04-02  Alan Modra  <amodra@gmail.com>
34246
34247         [BZ #16739]
34248         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34249         output when value is near a power of two.  Use int64_t for lx and
34250         remove casts.  Use decimal rather than hex exponent constants.
34251         Don't use long double multiplication when double will suffice.
34252         * math/libm-test.inc (nextafter_test_data): Add tests.
34253         * NEWS: Add 16739 and 16786 to bug list.
34254
34255         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34256
34257         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34258
34259 2014-04-01  Will Newton  <will.newton@linaro.org>
34260
34261         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34262         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34263
34264 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34265
34266         [BZ #13347]
34267         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34268         * nptl/tst-setuid2.c: New file.
34269         * nptl/Makefile (xtests): Add tst-setuid2.
34270
34271 2014-04-01  Alan Modra  <amodra@gmail.com>
34272
34273         [BZ #16786]
34274         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34275
34276 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34277
34278         [BZ #6803]
34279         [BZ #6804]
34280         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34281         set errno as appropriate.
34282         * math/w_scalbf.c (__scalbf): Likewise.
34283         * math/w_scalbl.c (__scalbl): Likewise.
34284         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34285         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34286         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34287         Add more NaN tests.
34288
34289         [BZ #16349]
34290         * math/w_atan2.c: Include <errno.h>.
34291         (__atan2): Set errno for result underflowing to zero.
34292         * math/w_atan2f.c: Include <errno.h>.
34293         (__atan2f): Set errno for result underflowing to zero.
34294         * math/w_atan2l.c: Include <errno.h>.
34295         (__atan2l): Set errno for result underflowing to zero.
34296         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34297         tests.
34298         * math/auto-libm-test-out: Regenerated.
34299
34300 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34301
34302         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34303         Encode instruction correctly in little endian.
34304         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34305         Likewise.
34306         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34307         Likewise.
34308         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34309         Likewise.
34310         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34311         Likewise.
34312
34313 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34314
34315         [BZ #9894]
34316         * sysdeps/unix/sysv/linux/kernel-features.h
34317         [__sparc__ && !__arch64__ && !__sparc_v9__]
34318         (__ASSUME_SET_ROBUST_LIST): Do not define.
34319         [__sparc__ && !__arch64__ && !__sparc_v9__]
34320         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34321         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34322         Likewise.
34323         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34324         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34325         (__ASSUME_REQUEUE_PI): Likewise.
34326         (__ASSUME_SET_ROBUST_LIST): Likewise.
34327         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34328         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34329         Undefine.
34330         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34331         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34332         Likewise.
34333         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34334         Likewise.
34335         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34336         Likewise.
34337         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34338         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34339         Undefine.
34340         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34341         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34342         Likewise.
34343
34344         [BZ #16648]
34345         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34346         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34347         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34348
34349 2014-03-31  Will Newton  <will.newton@linaro.org>
34350
34351         * benchtests/Makefile (bench): Add ffs and ffsll to list
34352         of tests.
34353         * benchtests/ffs-inputs: New file.
34354         * benchtests/ffsll-inputs: Likewise.
34355
34356 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34357
34358         [BZ #16770]
34359         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34360         too large before casting to int.
34361         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34362         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34363         * math/libm-test.inc (scalb_test_data): Add more tests.
34364
34365 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34366
34367         * benchtests/Makefile (DETAILED_OPT): New make option.
34368         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34369         set.
34370         * benchtests/bench-skeleton.c: Include stdbool.h.
34371         (main): Store and print timings per input.
34372         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34373         member to each argument value.
34374         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34375         (_print_arg_data): Initialize per-input timing to 0.
34376
34377         * benchtests/Makefile (timing-type): New binary.
34378         (bench-clean): Also remove bench-timing-type.
34379         (bench): New target for timing-type.
34380         (bench-func): Print output in JSON format.
34381         * benchtests/bench-skeleton.c (main): Print output in JSON
34382         format.
34383         * benchtests/bench-timing-type.c: New file.
34384         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34385         (TIMING_PRINT_STATS): Remove.
34386         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34387         name separately.
34388
34389         * benchtests/bench-modf.c: Remove.
34390         * benchtests/modf-inputs: New inputs file.
34391
34392 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34393
34394         [BZ #16362]
34395         * math/s_clog10.c (M_PI_LOG10E): New macro.
34396         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34397         imaginary parts are 0.
34398         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34399         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34400         imaginary parts are 0.
34401         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34402         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34403         imaginary parts are 0.
34404         * math/libm-test.inc (clog10_test_data): Update expected results
34405         for when real and imaginary parts are 0.
34406
34407 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34408
34409         * elf/dl-load.c: Finish conversion of __builtin_expect into
34410         __glibc_{un}likely.
34411
34412 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34413
34414         [BZ #16348]
34415         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34416         1+x for argument with exponent below -67.
34417         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34418         Likewise.
34419         * math/auto-libm-test-in: Add more tests of exp.
34420         * math/auto-libm-test-out: Regenerated.
34421
34422 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34423
34424         [BZ #16759]
34425         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34426         (nscd_getnetgrent): Use it.
34427
34428         [BZ #16760]
34429         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34430         of stpcpy.
34431
34432 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34433
34434         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34435         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34436         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34437         (lll_robust_unlock): Remove out of line section. Use cfi
34438         intrinsics.
34439         (LLL_STUB_UNWIND_INFO*): Remove.
34440         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34441         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34442         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34443         (lll_robust_unlock): Remove out of line section. Use cfi
34444         intrinsics.
34445         (LLL_STUB_UNWIND_INFO*): Remove.
34446
34447 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34448
34449         [BZ #16758]
34450         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34451         blank values.
34452
34453 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34454
34455         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34456
34457 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34458
34459         [BZ #16198]
34460         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34461         fnstenv.
34462         * math/test-fenv-preserve.c: New file.
34463         * math/Makefile (tests): Add test-fenv-preserve.
34464
34465 2014-03-26  Will Newton <will.newton@linaro.org>
34466
34467         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34468
34469 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34470
34471         * scripts/versionlist.awk: Partition the version sets and emit all
34472         GLIBC_* (sorted) before all others (sorted).
34473
34474 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34475
34476         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34477         GLIBC_2.2.5 version.
34478
34479 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34480
34481         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34482         calls.
34483
34484         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34485         previous change.
34486
34487         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34488
34489 2014-03-25  Andreas Schwab  <schwab@suse.de>
34490
34491         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34492         label to be used after in6ailist is initialized.
34493
34494 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34495
34496         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34497         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34498
34499 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34500
34501         [BZ #16357]
34502         [BZ #16599]
34503         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34504         min_plus_half.
34505         (fp_formats): Update initializers.
34506         (init_fp_formats): Initialize new field.
34507         (output_for_one_input_case): Allow underflow for results up to
34508         min_plus_half.
34509         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34510         * math/auto-libm-test-in: Don't mark some underflows from asin and
34511         atanh as spurious.
34512         * math/auto-libm-test-out: Regenerated.
34513         * sysdeps/i386/fpu/libm-test-ulps: Update.
34514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34515
34516 2014-03-25  Andreas Schwab  <schwab@suse.de>
34517
34518         * libio/Makefile (tst-ftell-partial-wide-ENV)
34519         (tst-ftell-active-handler-ENV): Define.
34520
34521 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34522
34523         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34524
34525 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34526
34527         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34528
34529 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34530
34531         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34532         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34533         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34534
34535 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34536
34537         [BZ #16634]
34538         * elf/dl-load.c (open_verify): Add mode parameter.
34539         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34540         (open_path): Change from boolean 'secure' to complete flag 'mode'
34541         (_dl_map_object): Adjust.
34542         * elf/Makefile (tests): Add tst-dlopen-aout.
34543         * elf/tst-dlopen-aout.c: New test.
34544
34545 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34546
34547         [BZ #16714]
34548         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34549         (struct stat): Rename member pad0 to __glibc_reserved0.
34550
34551         [BZ #16712]
34552         * sysdeps/s390/s390-32/bits/wordsize.h
34553         (__WORDSIZE32_SIZE_ULONG): New define.
34554         * sysdeps/s390/s390-64/bits/wordsize.h
34555         (__WORDSIZE32_SIZE_ULONG): Likewise.
34556         * sysdeps/generic/stdint.h (SIZE_MAX):
34557         Define as UL if __WORDSIZE32_SIZE_ULONG.
34558
34559         [BZ #16713]
34560         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34561         (__glibc_reserved0): New variable.
34562         (sa_flags): Change type to int.
34563
34564         * posix/Makefile (before-compile): Use += before-compile instead
34565         of a :=.
34566
34567         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34568         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34569
34570 2014-03-20  Andreas Schwab  <schwab@suse.de>
34571
34572         [BZ #16743]
34573         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34574         non-matching result from nscd.
34575
34576 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34577
34578         * scripts/bench.py: Moved to ...
34579         * benchtests/scripts/bench.py: ... here.
34580         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34581
34582 2014-03-24  Andreas Schwab  <schwab@suse.de>
34583
34584         [BZ #16002]
34585         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34586         alloca_account and account alloca use for struct in6ailist.
34587
34588 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34589
34590         [BZ #16284]
34591         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34592         rounding mode to recompute results that overflow to infinity or
34593         underflow to zero.
34594         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34595         bug 16284.
34596         * math/auto-libm-test-out: Regenerated.
34597         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34598         (ccosh_test): Likewise.
34599         (csin_test_data): Use plus_oflow.
34600         (csin_test): Use ALL_RM_TEST.
34601         (csinh_test_data): Use plus_oflow.
34602         (csinh_test): Use ALL_RM_TEST.
34603         * sysdeps/i386/fpu/libm-test-ulps: Update.
34604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34605
34606 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34607
34608         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34609         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34610         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34611
34612         [BZ #16731]
34613         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34614         when x - 1 is zero.
34615         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34616         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34617         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34618         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34619         argument is 1.
34620         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34621         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34622         zero.
34623         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34624         * sysdeps/i386/fpu/libm-test-ulps: Update.
34625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34626
34627 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34628
34629         * scripts/bench.pl: Remove file.
34630         * scripts/bench.py: New benchmark script.
34631         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34632         * benchtests/README: Mention python dependency.
34633         * scripts/pylintrc: New file.
34634         * scripts/pylint: New file.
34635
34636         * bits/mathdef.h: Use #ifdef instead of #if.
34637         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34638         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34639         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34640         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34641         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34642         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34643
34644 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34645             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34646
34647         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34648         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34649         and strpbrk-ppc64 objects.
34650         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34651         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34652         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34653         multiarch strpbrk for POWER7.
34654         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34655         multiarch strpbrk for PPC64.
34656         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34657         ifunc selector.
34658         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34659         strpbrk for POWER7.
34660
34661 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34662
34663         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34664         (atan_test): Likewise.
34665         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34666         (atanh_test): Use ALL_RM_TEST.
34667         (atan2_test_data): Likewise.
34668         (cabs_test): Likewise.
34669         (cacosh_test): Likewise.
34670         (carg_test): Likewise.
34671         (casin_test): Likewise.
34672         (casinh_test): Likewise.
34673         (cbrt_test): Likewise.
34674         (csqrt_test): Likewise.
34675         (erf_test): Likewise.
34676         (erfc_test): Likewise.
34677         (pow10_test): Likewise.
34678         (exp2_test): Likewise.
34679         (hypot_test): Likewise.
34680         (j0_test): Likewise.
34681         (j1_test): Likewise.
34682         (lgamma_test): Likewise.
34683         (gamma_test): Likewise.
34684         (sincos_test): Likewise.
34685         (tanh_test): Likewise.
34686         (y0_test): Likewise.
34687         (y1_test): Likewise.
34688         * sysdeps/i386/fpu/libm-test-ulps: Update.
34689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34690
34691 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34692
34693         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34694         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34695         and strcspn-ppc64 objects.
34696         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34697         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34698         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34699         multiarch strcspn for POWER7.
34700         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34701         multiarch strcspn for PPC64.
34702         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34703         ifunc selector.
34704         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34705         strcspn for POWER7.
34706
34707 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34708
34709         * math/gen-libm-test.pl (generate_testfile): Expect only function
34710         name as argument to AUTO_TESTS_* and pass results for all rounding
34711         modes to parse_args.
34712         (parse_auto_input): Separate inputs of automatic tests from
34713         outputs before storing in %auto_tests.
34714         * math/libm-test.inc (acos_test_data): Update call to
34715         AUTO_TESTS_f_f.
34716         (acos_test): Use ALL_RM_TEST.
34717         (acos_tonearest_test_data): Remove.
34718         (acos_test_tonearest): Likewise.
34719         (acos_towardzero_test_data): Likewise.
34720         (acos_test_towardzero): Likewise.
34721         (acos_downward_test_data): Likewise.
34722         (acos_test_downward): Likewise.
34723         (acos_upward_test_data): Likewise.
34724         (acos_test_upward): Likewise.
34725         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34726         (asin_test_data): Likewise.
34727         (asin_test): Use ALL_RM_TEST.
34728         (asin_tonearest_test_data): Remove.
34729         (asin_test_tonearest): Likewise.
34730         (asin_towardzero_test_data): Likewise.
34731         (asin_test_towardzero): Likewise.
34732         (asin_downward_test_data): Likewise.
34733         (asin_test_downward): Likewise.
34734         (asin_upward_test_data): Likewise.
34735         (asin_test_upward): Likewise.
34736         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34737         (atan_test_data): Likewise.
34738         (atanh_test_data): Likewise.
34739         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34740         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34741         (carg_test_data): Likewise.
34742         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34743         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34744         (ccosh_test_data): Likewise.
34745         (cexp_test_data): Likewise.
34746         (clog_test_data): Likewise.
34747         (clog10_test_data): Likewise.
34748         (cos_test_data): Update call to AUTO_TESTS_f_f.
34749         (cos_test): Use ALL_RM_TEST.
34750         (cos_tonearest_test_data): Remove.
34751         (cos_test_tonearest): Likewise.
34752         (cos_towardzero_test_data): Likewise.
34753         (cos_test_towardzero): Likewise.
34754         (cos_downward_test_data): Likewise.
34755         (cos_test_downward): Likewise.
34756         (cos_upward_test_data): Likewise.
34757         (cos_test_upward): Likewise.
34758         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34759         (cosh_test): Use ALL_RM_TEST.
34760         (cosh_tonearest_test_data): Remove.
34761         (cosh_test_tonearest): Likewise.
34762         (cosh_towardzero_test_data): Likewise.
34763         (cosh_test_towardzero): Likewise.
34764         (cosh_downward_test_data): Likewise.
34765         (cosh_test_downward): Likewise.
34766         (cosh_upward_test_data): Likewise.
34767         (cosh_test_upward): Likewise.
34768         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34769         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34770         (ctan_test_data): Likewise.
34771         (ctan_test): Use ALL_RM_TEST.
34772         (ctan_tonearest_test_data): Remove.
34773         (ctan_test_tonearest): Likewise.
34774         (ctan_towardzero_test_data): Likewise.
34775         (ctan_test_towardzero): Likewise.
34776         (ctan_downward_test_data): Likewise.
34777         (ctan_test_downward): Likewise.
34778         (ctan_upward_test_data): Likewise.
34779         (ctan_test_upward): Likewise.
34780         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34781         (ctanh_test): Use ALL_RM_TEST.
34782         (ctanh_tonearest_test_data): Remove.
34783         (ctanh_test_tonearest): Likewise.
34784         (ctanh_towardzero_test_data): Likewise.
34785         (ctanh_test_towardzero): Likewise.
34786         (ctanh_downward_test_data): Likewise.
34787         (ctanh_test_downward): Likewise.
34788         (ctanh_upward_test_data): Likewise.
34789         (ctanh_test_upward): Likewise.
34790         (erf_test_data): Update call to AUTO_TESTS_f_f.
34791         (erfc_test_data): Likewise.
34792         (exp_test_data): Likewise.
34793         (exp_test): Use ALL_RM_TEST.
34794         (exp_tonearest_test_data): Remove.
34795         (exp_test_tonearest): Likewise.
34796         (exp_towardzero_test_data): Likewise.
34797         (exp_test_towardzero): Likewise.
34798         (exp_downward_test_data): Likewise.
34799         (exp_test_downward): Likewise.
34800         (exp_upward_test_data): Likewise.
34801         (exp_test_upward): Likewise.
34802         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34803         (exp10_test): Use ALL_RM_TEST.
34804         (exp10_tonearest_test_data): Remove.
34805         (exp10_test_tonearest): Likewise.
34806         (exp10_towardzero_test_data): Likewise.
34807         (exp10_test_towardzero): Likewise.
34808         (exp10_downward_test_data): Likewise.
34809         (exp10_test_downward): Likewise.
34810         (exp10_upward_test_data): Likewise.
34811         (exp10_test_upward): Likewise.
34812         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34813         (expm1_test_data): Likewise.
34814         (expm1_test): Use ALL_RM_TEST.
34815         (expm1_tonearest_test_data): Remove.
34816         (expm1_test_tonearest): Likewise.
34817         (expm1_towardzero_test_data): Likewise.
34818         (expm1_test_towardzero): Likewise.
34819         (expm1_downward_test_data): Likewise.
34820         (expm1_test_downward): Likewise.
34821         (expm1_upward_test_data): Likewise.
34822         (expm1_test_upward): Likewise.
34823         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34824         (fma_test): Use ALL_RM_TEST.
34825         (fma_towardzero_test_data): Remove.
34826         (fma_test_towardzero): Likewise.
34827         (fma_downward_test_data): Likewise.
34828         (fma_test_downward): Likewise.
34829         (fma_upward_test_data): Likewise.
34830         (fma_test_upward): Likewise.
34831         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34832         (j0_test_data): Update call to AUTO_TESTS_f_f.
34833         (j1_test_data): Likewise.
34834         (jn_test_data): Update call to AUTO_TESTS_if_f.
34835         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34836         (log_test_data): Update call to AUTO_TESTS_f_f.
34837         (log10_test_data): Likewise.
34838         (log1p_test_data): Likewise.
34839         (log2_test_data): Likewise.
34840         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34841         (pow_tonearest_test_data): Likewise.
34842         (sin_test_data): Update call to AUTO_TESTS_f_f.
34843         (sin_test): Use ALL_RM_TEST.
34844         (sin_tonearest_test_data): Remove.
34845         (sin_test_tonearest): Likewise.
34846         (sin_towardzero_test_data): Likewise.
34847         (sin_test_towardzero): Likewise.
34848         (sin_downward_test_data): Likewise.
34849         (sin_test_downward): Likewise.
34850         (sin_upward_test_data): Likewise.
34851         (sin_test_upward): Likewise.
34852         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34853         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34854         (sinh_test): Use ALL_RM_TEST.
34855         (sinh_tonearest_test_data): Remove.
34856         (sinh_test_tonearest): Likewise.
34857         (sinh_towardzero_test_data): Likewise.
34858         (sinh_test_towardzero): Likewise.
34859         (sinh_downward_test_data): Likewise.
34860         (sinh_test_downward): Likewise.
34861         (sinh_upward_test_data): Likewise.
34862         (sinh_test_upward): Likewise.
34863         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34864         (sqrt_test): Use ALL_RM_TEST.
34865         (sqrt_tonearest_test_data): Remove.
34866         (sqrt_test_tonearest): Likewise.
34867         (sqrt_towardzero_test_data): Likewise.
34868         (sqrt_test_towardzero): Likewise.
34869         (sqrt_downward_test_data): Likewise.
34870         (sqrt_test_downward): Likewise.
34871         (sqrt_upward_test_data): Likewise.
34872         (sqrt_test_upward): Likewise.
34873         (tan_test_data): Update call to AUTO_TESTS_f_f.
34874         (tan_test): Use ALL_RM_TEST.
34875         (tan_tonearest_test_data): Remove.
34876         (tan_test_tonearest): Likewise.
34877         (tan_towardzero_test_data): Likewise.
34878         (tan_test_towardzero): Likewise.
34879         (tan_downward_test_data): Likewise.
34880         (tan_test_downward): Likewise.
34881         (tan_upward_test_data): Likewise.
34882         (tan_test_upward): Likewise.
34883         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34884         (tgamma_test_data): Likewise.
34885         (y0_test_data): Likewise.
34886         (y1_test_data): Likewise.
34887         (yn_test_data): Update call to AUTO_TESTS_if_f.
34888         (main): Do not call removed functions.
34889
34890 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34891
34892         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34893         (ldexp_test_data): Remove.
34894         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34895         scalbn_test_data.
34896         (scalb_test): Use ALL_RM_TEST.
34897
34898 2014-03-19  Andreas Schwab  <schwab@suse.de>
34899
34900         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34901
34902 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34903
34904         [BZ #16649]
34905         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34906         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34907         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34908         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34909         (__ASSUME_PREADV): Undefine.
34910         (__ASSUME_PWRITEV): Likewise.
34911
34912 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34913
34914         * bits/mman-linux.h: Add comment about non-Linux use.
34915         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34916         bits/mman-linux.h resting place.
34917
34918         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34919         * bits/mman-linux.h: ... here.
34920
34921 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34922
34923         * conform/conformtest.pl: Add standard definition when calling C
34924         preprocessor on data files.
34925         (checknamespace): Remove unused variable.
34926
34927 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34928
34929         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34930         minus_oflow, plus_uflow and minus_uflow in expected results.
34931         * math/libm-test.inc (scalbn_test_data): Add more tests of
34932         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34933         minus_uflow.
34934         (scalbn_test): Use ALL_RM_TEST.
34935         (scalbln_test_data): Add more tests of negative arguments.  Use
34936         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34937         (scalbln_test): Use ALL_RM_TEST.
34938
34939 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34940
34941         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34942
34943 2014-03-18  Will Newton  <will.newton@linaro.org>
34944
34945         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34946         inaccurate comment.
34947
34948 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34949
34950         * Makerules [!subdir] (check-abi): Exit with error status if a
34951         test failed.
34952
34953 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34954
34955         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34956         for rint.  Include results for all rounding modes.
34957         (nearbyint_test): Use ALL_RM_TEST.
34958         (rint_test_data): Include all tests used for nearbyint.
34959
34960 2014-03-17  Will Newton  <will.newton@linaro.org>
34961
34962         * nptl/sysdeps/pthread/pthread.h: Revert previous
34963         change.
34964
34965         * sysdeps/generic/ldsodefs.h: Revert previous
34966         change.
34967
34968         * libio/genops.c: Revert previous change.
34969         * libio/libioP.h: Likewise.
34970         * stdio-common/vfprintf.c: Likewise.
34971
34972         * sysdeps/generic/math_private.h: Revert previous
34973         change.
34974
34975         * sysdeps/generic/math_private.h: Check whether
34976         HAVE_RM_CTX is defined with #ifdef rather
34977         than #if.
34978
34979         * argp/argp-fmtstream.h: Check whether
34980         __STRICT_ANSI__ is defined with #ifdef rather
34981         than #if.
34982         * argp/argp.h: Likewise.
34983
34984         * libio/genops.c: Check whether
34985         _IO_JUMPS_OFFSET is defined with #ifdef rather
34986         than #if.
34987         * libio/libioP.h: Likewise.
34988         * stdio-common/vfprintf.c: Likewise.
34989
34990         * sysdeps/generic/ldsodefs.h: Check whether
34991         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34992         than #if.
34993
34994         * nptl/sysdeps/pthread/pthread.h: Check
34995         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34996         its value.
34997
34998 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34999
35000         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35001         setting O_APPEND.
35002         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35003         test case.
35004
35005         [BZ #16680]
35006         * libio/fileops.c (_IO_file_open): Seek to end of file but
35007         don't cache the offset.
35008         (get_file_offset): Remove function.
35009         (do_ftell): Use cached offset when available.
35010         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35011         don't cache the offset.
35012         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35013         case.
35014         (do_one_test): Call it.
35015         (do_ftell_test): Fix up expected old offset for a+ mode.
35016         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35017         available.
35018
35019         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35020         up test status with function return status.
35021         (do_write_test): Likewise.
35022         (do_append_test): Likewise.
35023
35024         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35025         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35026         Remove.
35027
35028 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35029
35030         * math/gen-libm-test.pl (parse_args): Handle results specified for
35031         each rounding mode separately.
35032         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35033         tests and results from lrint_tonearest_test_data,
35034         lrint_towardzero_test_data, lrint_downward_test_data and
35035         lrint_upward_test_data.
35036         (lrint_test): Use ALL_RM_TEST.
35037         (lrint_tonearest_test_data): Remove.
35038         (lrint_test_tonearest): Likewise.
35039         (lrint_towardzero_test_data): Likewise.
35040         (lrint_test_towardzero): Likewise.
35041         (lrint_downward_test_data): Likewise.
35042         (lrint_test_downward): Likewise.
35043         (lrint_upward_test_data): Likewise.
35044         (lrint_test_upward): Likewise.
35045         (llrint_test_data): Merge in per-rounding-mode tests and results
35046         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35047         llrint_downward_test_data and llrint_upward_test_data.
35048         (llrint_test): Use ALL_RM_TEST.
35049         (llrint_tonearest_test_data): Remove.
35050         (llrint_test_tonearest): Likewise.
35051         (llrint_towardzero_test_data): Likewise.
35052         (llrint_test_towardzero): Likewise.
35053         (llrint_downward_test_data): Likewise.
35054         (llrint_test_downward): Likewise.
35055         (llrint_upward_test_data): Likewise.
35056         (llrint_test_upward): Likewise.
35057         (rint_test_data): Merge in per-rounding-mode tests and results
35058         from rint_tonearest_test_data, rint_towardzero_test_data,
35059         rint_downward_test_data and rint_upward_test_data.  Add
35060         per-rounding-mode results for tests not in those arrays.
35061         (rint_test): Use ALL_RM_TEST.
35062         (rint_tonearest_test_data): Remove.
35063         (rint_test_tonearest): Likewise.
35064         (rint_towardzero_test_data): Likewise.
35065         (rint_test_towardzero): Likewise.
35066         (rint_downward_test_data): Likewise.
35067         (rint_test_downward): Likewise.
35068         (rint_upward_test_data): Likewise.
35069         (rint_test_upward): Likewise.
35070         (main): Don't call removed functions.
35071
35072 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35073
35074         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35075         "Compiled on ..." crapola.  It is anti-useful.
35076
35077 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35078
35079         * scripts/evaluate-test.sh: Handle fourth argument to determine
35080         whether test run should stop on failure.
35081         * Makeconfig (stop-on-test-failure): New variable.
35082         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35083         $(stop-on-test-failure).
35084         * Makefile (tests): Give a summary of results from testing and
35085         exit with failure status if they include an ERROR or FAIL.
35086         (xtests): Likewise.
35087         * manual/install.texi (Configuring and compiling): Mention
35088         stop-on-test-failure=y.
35089         * INSTALL: Regenerated.
35090
35091 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35092
35093         * scripts/versionlist.awk: New file.
35094         * Makerules [$(build-shared) = yes]
35095         (postclean-generated): Add Versions.def, not Versions.def.v and
35096         Versions.def.v.i.
35097         ($(common-objpfx)Versions.def.v.i): Target removed.
35098         ($(common-objpfx)Versions.def): New target.
35099         ($(common-objpfx)Versions.all): Depend on that rather that
35100         $(common-objpfx)Versions.def.v.
35101         * Versions.def: File removed.
35102
35103         * Makeconfig (+gccwarn): Add -Wundef.
35104         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35105         a dl-sysdep.h breaking its contract.
35106         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35107         * include/stackinfo.h: New file.
35108         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35109         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35110         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35111         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35112         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35113         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35114         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35115         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35116         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35117         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35118         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35119         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35120         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35121         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35122         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35123
35124 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35125
35126         [BZ #16707]
35127         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35128         implementation.
35129         * math/libm-test.inc (round_test_data): Add more tests.
35130
35131         [BZ #16706]
35132         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35133         implementation.
35134         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35135
35136         [BZ #16701]
35137         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35138         implementation.
35139         * math/libm-test.inc (ceil_test_data): Add more tests.
35140
35141         * math/libm-test.inc (trunc_test_data): Add more tests related to
35142         BZ#16414.
35143
35144 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35145
35146         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35147         with #if rather than #ifdef.
35148         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35149
35150 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35151
35152         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35153         first.  Disable AVX-512 GCC support if assembler doesn't support
35154         it.
35155         * sysdeps/x86_64/configure: Regenerated.
35156
35157 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35158
35159         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35160         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35161         (__old_pthread_attr_setstack): Likewise.
35162         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35163         [!_STACK_GROWS_DOWN]: Likewise.
35164
35165 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35166
35167         * config.make.in (have-bash2): Delete.
35168         * configure.ac (libc_cv_have_bash2): Delete.
35169         * configure: Regenerate.
35170         * elf/Makefile (common-ldd-rewrite): Rename to ...
35171         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35172         (sh-ldd-rewrite): Delete.
35173         (bash-ldd-rewrite): Delete.
35174         (have-bash2): Delete checks.
35175         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35176         ldd-rewrite.
35177
35178         * config.make.in (have-ksh): Delete.
35179         (KSH): Delete.
35180         * configure.ac (libc_cv_have_ksh): Delete.
35181         * configure: Regenerate.
35182
35183         * elf/Makefile: Delete $(have-ksh) check.
35184         ($(objpfx)sotruss): Change KSH to BASH.
35185         * elf/sotruss.ksh: Rename to ...
35186         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35187         function style to match POSIX.  Drop ksh vim mode setting.
35188
35189         * manual/time.texi (Specifying the Time Zone with TZ): Change
35190         Tuesday to Thursday.
35191
35192         * debug/tst-longjmp_chk2.c: Update header comment.
35193         (stackoverflow_handler): Add comment.  Call assert on pass value.
35194
35195 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35196
35197         [BZ #16194]
35198         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35199         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35200         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35201         (La_x86_64_vector): Add zmm.
35202         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35203         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35204         ($(objpfx)tst-audit10): New target.
35205         ($(objpfx)tst-audit10.out): Likewise.
35206         (tst-audit10-ENV): New.
35207         (AVX512-CFLAGS): Likewise.
35208         (CFLAGS-tst-audit10.c): Likewise.
35209         (CFLAGS-tst-auditmod10a.c): Likewise.
35210         (CFLAGS-tst-auditmod10b.c): Likewise.
35211         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35212         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35213         * sysdeps/x86_64/configure: Regenerated.
35214         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35215         AVX-512 zmm register support.
35216         (_dl_x86_64_save_sse): Likewise.
35217         (_dl_x86_64_restore_sse): Likewise.
35218         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35219         size vector registers.
35220         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35221         (ZMM_SIZE): Likewise.
35222         * sysdeps/x86_64/tst-audit10.c: New file.
35223         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35224         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35225
35226 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35227
35228         * configure.ac (HAVE_EHDR_START): New check.
35229         * configure: Regenerated.
35230         * config.h.in (HAVE_EHDR_START): New #undef.
35231         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35232         assuming the lowest-addressed segment maps the start of the file.
35233
35234 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35235
35236         * INSTALL: Regenerated.
35237
35238 2014-03-13  Will Newton  <will.newton@linaro.org>
35239
35240         * manual/setjmp.texi (System V contexts): Improve
35241         clarity and grammar of documentation.
35242
35243 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35244
35245         [BZ #16381]
35246         * elf/Makefile (tests): Add tst-pie2.
35247         (tests-pie): Add tst-pie2.
35248         * elf/tst-pie2.c: New file.
35249         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35250         for ET_EXEC.
35251         * elf/rtld.c (map_doit): Load executable as lt_executable.
35252         (dl_main): Likewise.
35253
35254 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35255
35256         [BZ #16642]
35257         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35258         (__ASSUME_PSELECT): Undefine.
35259
35260 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35261
35262         [BZ #16689]
35263         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35264         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35265         static build.
35266         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35267         selector for static builds.
35268
35269 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35270
35271         [BZ #16695]
35272         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35273         key in the buffer.
35274
35275 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35276
35277         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35278         IFUNC selector for static builds.
35279
35280 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35281
35282         * sysdeps/mips/math_private.h [__mips_hard_float]
35283         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35284         libc_feresetround_mips_ctx.
35285         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35286         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35287         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35288
35289         [BZ #16677]
35290         * math/s_nextafter.c (__nextafter): Do not return value from
35291         overflowing computation.
35292         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35293         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35294         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35295         Likewise.
35296         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35297         Likewise.
35298         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35299         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35300
35301 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35302
35303         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35304         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35305         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35306         the new mov targetting sp.
35307
35308 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35309
35310         [BZ #16683]
35311         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35312         Define it for static builds as well.
35313         (NO_BZERO_IMPL): Likewise.
35314
35315 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35316
35317         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35318         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35319         multiarch strspn for PPC64.
35320         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35321         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35322         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35323         (__libc_ifunc_impl_list): Likewise.
35324         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35325         multiarch optimizations
35326         * string/strspn.c (strspn): Using macro to redefine symbol name.
35327
35328 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35329             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35330
35331         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35332         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35333         multiarch strncat for PPC64.
35334         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35335         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35336         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35337         (__libc_ifunc_impl_list): Likewise.
35338         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35339         multiarch optimizations
35340
35341 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35342
35343         [BZ #16639]
35344         * nscd/nscd.service: Make service type forking.
35345
35346 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35347
35348         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35349         sign in non default rounding modes.
35350         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35351
35352 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35353
35354         * math/libm-test.inc (ALL_RM_TEST): New macro.
35355         (ceil_test): Use ALL_RM_TEST.
35356         (cimag_test): Likewise.
35357         (conj_test): Likewise.
35358         (copysign_test): Likewise.
35359         (cproj_test): Likewise.
35360         (creal_test): Likewise.
35361         (fabs_test): Likewise.
35362         (floor_test): Likewise.
35363         (fmax_test): Likewise.
35364         (fmin_test): Likewise.
35365         (fmod_test): Likewise.
35366         (fpclassify_test): Likewise.
35367         (frexp_test): Likewise.
35368         (ilogb_test): Likewise.
35369         (isfinite_test): Likewise.
35370         (finite_test): Likewise.
35371         (isgreater_test): Likewise.
35372         (isgreaterequal_test): Likewise.
35373         (isinf_test): Likewise.
35374         (isless_test): Likewise.
35375         (islessequal_test): Likewise.
35376         (islessgreater_test): Likewise.
35377         (isnan_test): Likewise.
35378         (isnormal_test): Likewise.
35379         (issignaling_test): Likewise.
35380         (isunordered_test): Likewise.
35381         (logb_test): Likewise.
35382         (logb_downward_test_data): Remove.
35383         (logb_test_downward): Likewise.
35384         (lround_test): Use ALL_RM_TEST.
35385         (llround_test): Likewise.
35386         (modf_test): Likewise.
35387         (nexttoward_test): Likewise.
35388         (remainder_test): Likewise.
35389         (drem_test): Likewise.
35390         (remainder_tonearest_test_data): Likewise.
35391         (remainder_test_tonearest): Likewise.
35392         (drem_test_tonearest): Likewise.
35393         (remainder_towardzero_test_data): Likewise.
35394         (remainder_test_towardzero): Likewise.
35395         (drem_test_towardzero): Likewise.
35396         (remainder_downward_test_data): Likewise.
35397         (remainder_test_downward): Likewise.
35398         (drem_test_downward): Likewise.
35399         (remainder_upward_test_data): Likewise.
35400         (remainder_test_upward): Likewise.
35401         (drem_test_upward): Likewise.
35402         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35403         (round_test): Use ALL_RM_TEST.
35404         (signbit_test): Likewise.
35405         (trunc_test): Likewise.
35406         (significand_test): Likewise.
35407         (main): Don't call removed functions.
35408
35409 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35410
35411         [BZ #16674]
35412         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35413         || __USE_XOPEN2K8].
35414         (ILL_ILLOPN): Likewise.
35415         (ILL_ILLADR): Likewise.
35416         (ILL_ILLTRP): Likewise.
35417         (ILL_PRVOPC): Likewise.
35418         (ILL_PRVREG): Likewise.
35419         (ILL_COPROC): Likewise.
35420         (ILL_BADSTK): Likewise.
35421         (FPE_INTDIV): Likewise.
35422         (FPE_INTOVF): Likewise.
35423         (FPE_FLTDIV): Likewise.
35424         (FPE_FLTOVF): Likewise.
35425         (FPE_FLTUND): Likewise.
35426         (FPE_FLTRES): Likewise.
35427         (FPE_FLTINV): Likewise.
35428         (FPE_FLTSUB): Likewise.
35429         (SEGV_MAPERR): Likewise.
35430         (SEGV_ACCERR): Likewise.
35431         (BUS_ADRALN): Likewise.
35432         (BUS_ADRERR): Likewise.
35433         (BUS_OBJERR): Likewise.
35434         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35435         (TRAP_TRACE): Likewise.
35436         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35437         __USE_XOPEN2K8].
35438         (CLD_KILLED): Likewise.
35439         (CLD_DUMPED): Likewise.
35440         (CLD_TRAPPED): Likewise.
35441         (CLD_STOPPED): Likewise.
35442         (CLD_CONTINUED): Likewise.
35443         (POLL_IN): Likewise.
35444         (POLL_OUT): Likewise.
35445         (POLL_MSG): Likewise.
35446         (POLL_ERR): Likewise.
35447         (POLL_PRI): Likewise.
35448         (POLL_HUP): Likewise.
35449         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35450         Likewise.
35451         (ILL_ILLOPN): Likewise.
35452         (ILL_ILLADR): Likewise.
35453         (ILL_ILLTRP): Likewise.
35454         (ILL_PRVOPC): Likewise.
35455         (ILL_PRVREG): Likewise.
35456         (ILL_COPROC): Likewise.
35457         (ILL_BADSTK): Likewise.
35458         (FPE_INTDIV): Likewise.
35459         (FPE_INTOVF): Likewise.
35460         (FPE_FLTDIV): Likewise.
35461         (FPE_FLTOVF): Likewise.
35462         (FPE_FLTUND): Likewise.
35463         (FPE_FLTRES): Likewise.
35464         (FPE_FLTINV): Likewise.
35465         (FPE_FLTSUB): Likewise.
35466         (SEGV_MAPERR): Likewise.
35467         (SEGV_ACCERR): Likewise.
35468         (BUS_ADRALN): Likewise.
35469         (BUS_ADRERR): Likewise.
35470         (BUS_OBJERR): Likewise.
35471         (BUS_MCEERR_AR): Likewise.
35472         (BUS_MCEERR_AO): Likewise.
35473         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35474         (TRAP_TRACE): Likewise.
35475         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35476         __USE_XOPEN2K8].
35477         (CLD_KILLED): Likewise.
35478         (CLD_DUMPED): Likewise.
35479         (CLD_TRAPPED): Likewise.
35480         (CLD_STOPPED): Likewise.
35481         (CLD_CONTINUED): Likewise.
35482         (POLL_IN): Likewise.
35483         (POLL_OUT): Likewise.
35484         (POLL_MSG): Likewise.
35485         (POLL_ERR): Likewise.
35486         (POLL_PRI): Likewise.
35487         (POLL_HUP): Likewise.
35488         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35489         (ILL_ILLOPN): Likewise.
35490         (ILL_ILLADR): Likewise.
35491         (ILL_ILLTRP): Likewise.
35492         (ILL_PRVOPC): Likewise.
35493         (ILL_PRVREG): Likewise.
35494         (ILL_COPROC): Likewise.
35495         (ILL_BADSTK): Likewise.
35496         (FPE_INTDIV): Likewise.
35497         (FPE_INTOVF): Likewise.
35498         (FPE_FLTDIV): Likewise.
35499         (FPE_FLTOVF): Likewise.
35500         (FPE_FLTUND): Likewise.
35501         (FPE_FLTRES): Likewise.
35502         (FPE_FLTINV): Likewise.
35503         (FPE_FLTSUB): Likewise.
35504         (SEGV_MAPERR): Likewise.
35505         (SEGV_ACCERR): Likewise.
35506         (BUS_ADRALN): Likewise.
35507         (BUS_ADRERR): Likewise.
35508         (BUS_OBJERR): Likewise.
35509         (BUS_MCEERR_AR): Likewise.
35510         (BUS_MCEERR_AO): Likewise.
35511         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35512         (TRAP_TRACE): Likewise.
35513         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35514         __USE_XOPEN2K8].
35515         (CLD_KILLED): Likewise.
35516         (CLD_DUMPED): Likewise.
35517         (CLD_TRAPPED): Likewise.
35518         (CLD_STOPPED): Likewise.
35519         (CLD_CONTINUED): Likewise.
35520         (POLL_IN): Likewise.
35521         (POLL_OUT): Likewise.
35522         (POLL_MSG): Likewise.
35523         (POLL_ERR): Likewise.
35524         (POLL_PRI): Likewise.
35525         (POLL_HUP): Likewise.
35526         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35527         Likewise.
35528         (ILL_ILLOPN): Likewise.
35529         (ILL_ILLADR): Likewise.
35530         (ILL_ILLTRP): Likewise.
35531         (ILL_PRVOPC): Likewise.
35532         (ILL_PRVREG): Likewise.
35533         (ILL_COPROC): Likewise.
35534         (ILL_BADSTK): Likewise.
35535         (ILL_BADIADDR): Likewise.
35536         (ILL_BREAK): Likewise.
35537         (FPE_INTDIV): Likewise.
35538         (FPE_INTOVF): Likewise.
35539         (FPE_FLTDIV): Likewise.
35540         (FPE_FLTOVF): Likewise.
35541         (FPE_FLTUND): Likewise.
35542         (FPE_FLTRES): Likewise.
35543         (FPE_FLTINV): Likewise.
35544         (FPE_FLTSUB): Likewise.
35545         (FPE_DECOVF): Likewise.
35546         (FPE_DECDIV): Likewise.
35547         (FPE_DECERR): Likewise.
35548         (FPE_INVASC): Likewise.
35549         (FPE_INVDEC): Likewise.
35550         (SEGV_MAPERR): Likewise.
35551         (SEGV_ACCERR): Likewise.
35552         (SEGV_PSTKOVF): Likewise.
35553         (BUS_ADRALN): Likewise.
35554         (BUS_ADRERR): Likewise.
35555         (BUS_OBJERR): Likewise.
35556         (BUS_MCEERR_AR): Likewise.
35557         (BUS_MCEERR_AO): Likewise.
35558         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35559         (TRAP_TRACE): Likewise.
35560         (TRAP_BRANCH): Likewise.
35561         (TRAP_HWBKPT): Likewise.
35562         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35563         __USE_XOPEN2K8].
35564         (CLD_KILLED): Likewise.
35565         (CLD_DUMPED): Likewise.
35566         (CLD_TRAPPED): Likewise.
35567         (CLD_STOPPED): Likewise.
35568         (CLD_CONTINUED): Likewise.
35569         (POLL_IN): Likewise.
35570         (POLL_OUT): Likewise.
35571         (POLL_MSG): Likewise.
35572         (POLL_ERR): Likewise.
35573         (POLL_PRI): Likewise.
35574         (POLL_HUP): Likewise.
35575         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35576         (ILL_ILLOPN): Likewise.
35577         (ILL_ILLADR): Likewise.
35578         (ILL_ILLTRP): Likewise.
35579         (ILL_PRVOPC): Likewise.
35580         (ILL_PRVREG): Likewise.
35581         (ILL_COPROC): Likewise.
35582         (ILL_BADSTK): Likewise.
35583         (FPE_INTDIV): Likewise.
35584         (FPE_INTOVF): Likewise.
35585         (FPE_FLTDIV): Likewise.
35586         (FPE_FLTOVF): Likewise.
35587         (FPE_FLTUND): Likewise.
35588         (FPE_FLTRES): Likewise.
35589         (FPE_FLTINV): Likewise.
35590         (FPE_FLTSUB): Likewise.
35591         (SEGV_MAPERR): Likewise.
35592         (SEGV_ACCERR): Likewise.
35593         (BUS_ADRALN): Likewise.
35594         (BUS_ADRERR): Likewise.
35595         (BUS_OBJERR): Likewise.
35596         (BUS_MCEERR_AR): Likewise.
35597         (BUS_MCEERR_AO): Likewise.
35598         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35599         (TRAP_TRACE): Likewise.
35600         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35601         __USE_XOPEN2K8].
35602         (CLD_KILLED): Likewise.
35603         (CLD_DUMPED): Likewise.
35604         (CLD_TRAPPED): Likewise.
35605         (CLD_STOPPED): Likewise.
35606         (CLD_CONTINUED): Likewise.
35607         (POLL_IN): Likewise.
35608         (POLL_OUT): Likewise.
35609         (POLL_MSG): Likewise.
35610         (POLL_ERR): Likewise.
35611         (POLL_PRI): Likewise.
35612         (POLL_HUP): Likewise.
35613         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35614         (ILL_ILLOPN): Likewise.
35615         (ILL_ILLADR): Likewise.
35616         (ILL_ILLTRP): Likewise.
35617         (ILL_PRVOPC): Likewise.
35618         (ILL_PRVREG): Likewise.
35619         (ILL_COPROC): Likewise.
35620         (ILL_BADSTK): Likewise.
35621         (FPE_INTDIV): Likewise.
35622         (FPE_INTOVF): Likewise.
35623         (FPE_FLTDIV): Likewise.
35624         (FPE_FLTOVF): Likewise.
35625         (FPE_FLTUND): Likewise.
35626         (FPE_FLTRES): Likewise.
35627         (FPE_FLTINV): Likewise.
35628         (FPE_FLTSUB): Likewise.
35629         (SEGV_MAPERR): Likewise.
35630         (SEGV_ACCERR): Likewise.
35631         (BUS_ADRALN): Likewise.
35632         (BUS_ADRERR): Likewise.
35633         (BUS_OBJERR): Likewise.
35634         (BUS_MCEERR_AR): Likewise.
35635         (BUS_MCEERR_AO): Likewise.
35636         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35637         (TRAP_TRACE): Likewise.
35638         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35639         __USE_XOPEN2K8].
35640         (CLD_KILLED): Likewise.
35641         (CLD_DUMPED): Likewise.
35642         (CLD_TRAPPED): Likewise.
35643         (CLD_STOPPED): Likewise.
35644         (CLD_CONTINUED): Likewise.
35645         (POLL_IN): Likewise.
35646         (POLL_OUT): Likewise.
35647         (POLL_MSG): Likewise.
35648         (POLL_ERR): Likewise.
35649         (POLL_PRI): Likewise.
35650         (POLL_HUP): Likewise.
35651         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35652         (ILL_ILLOPN): Likewise.
35653         (ILL_ILLADR): Likewise.
35654         (ILL_ILLTRP): Likewise.
35655         (ILL_PRVOPC): Likewise.
35656         (ILL_PRVREG): Likewise.
35657         (ILL_COPROC): Likewise.
35658         (ILL_BADSTK): Likewise.
35659         (FPE_INTDIV): Likewise.
35660         (FPE_INTOVF): Likewise.
35661         (FPE_FLTDIV): Likewise.
35662         (FPE_FLTOVF): Likewise.
35663         (FPE_FLTUND): Likewise.
35664         (FPE_FLTRES): Likewise.
35665         (FPE_FLTINV): Likewise.
35666         (FPE_FLTSUB): Likewise.
35667         (SEGV_MAPERR): Likewise.
35668         (SEGV_ACCERR): Likewise.
35669         (BUS_ADRALN): Likewise.
35670         (BUS_ADRERR): Likewise.
35671         (BUS_OBJERR): Likewise.
35672         (BUS_MCEERR_AR): Likewise.
35673         (BUS_MCEERR_AO): Likewise.
35674         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35675         (TRAP_TRACE): Likewise.
35676         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35677         __USE_XOPEN2K8].
35678         (CLD_KILLED): Likewise.
35679         (CLD_DUMPED): Likewise.
35680         (CLD_TRAPPED): Likewise.
35681         (CLD_STOPPED): Likewise.
35682         (CLD_CONTINUED): Likewise.
35683         (POLL_IN): Likewise.
35684         (POLL_OUT): Likewise.
35685         (POLL_MSG): Likewise.
35686         (POLL_ERR): Likewise.
35687         (POLL_PRI): Likewise.
35688         (POLL_HUP): Likewise.
35689         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35690         (ILL_ILLOPN): Likewise.
35691         (ILL_ILLADR): Likewise.
35692         (ILL_ILLTRP): Likewise.
35693         (ILL_PRVOPC): Likewise.
35694         (ILL_PRVREG): Likewise.
35695         (ILL_COPROC): Likewise.
35696         (ILL_BADSTK): Likewise.
35697         (ILL_DBLFLT): Likewise.
35698         (ILL_HARDWALL): Likewise.
35699         (FPE_INTDIV): Likewise.
35700         (FPE_INTOVF): Likewise.
35701         (FPE_FLTDIV): Likewise.
35702         (FPE_FLTOVF): Likewise.
35703         (FPE_FLTUND): Likewise.
35704         (FPE_FLTRES): Likewise.
35705         (FPE_FLTINV): Likewise.
35706         (FPE_FLTSUB): Likewise.
35707         (SEGV_MAPERR): Likewise.
35708         (SEGV_ACCERR): Likewise.
35709         (BUS_ADRALN): Likewise.
35710         (BUS_ADRERR): Likewise.
35711         (BUS_OBJERR): Likewise.
35712         (BUS_MCEERR_AR): Likewise.
35713         (BUS_MCEERR_AO): Likewise.
35714         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35715         (TRAP_TRACE): Likewise.
35716         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35717         __USE_XOPEN2K8].
35718         (CLD_KILLED): Likewise.
35719         (CLD_DUMPED): Likewise.
35720         (CLD_TRAPPED): Likewise.
35721         (CLD_STOPPED): Likewise.
35722         (CLD_CONTINUED): Likewise.
35723         (POLL_IN): Likewise.
35724         (POLL_OUT): Likewise.
35725         (POLL_MSG): Likewise.
35726         (POLL_ERR): Likewise.
35727         (POLL_PRI): Likewise.
35728         (POLL_HUP): Likewise.
35729         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35730         (ILL_ILLOPN): Likewise.
35731         (ILL_ILLADR): Likewise.
35732         (ILL_ILLTRP): Likewise.
35733         (ILL_PRVOPC): Likewise.
35734         (ILL_PRVREG): Likewise.
35735         (ILL_COPROC): Likewise.
35736         (ILL_BADSTK): Likewise.
35737         (FPE_INTDIV): Likewise.
35738         (FPE_INTOVF): Likewise.
35739         (FPE_FLTDIV): Likewise.
35740         (FPE_FLTOVF): Likewise.
35741         (FPE_FLTUND): Likewise.
35742         (FPE_FLTRES): Likewise.
35743         (FPE_FLTINV): Likewise.
35744         (FPE_FLTSUB): Likewise.
35745         (SEGV_MAPERR): Likewise.
35746         (SEGV_ACCERR): Likewise.
35747         (BUS_ADRALN): Likewise.
35748         (BUS_ADRERR): Likewise.
35749         (BUS_OBJERR): Likewise.
35750         (BUS_MCEERR_AR): Likewise.
35751         (BUS_MCEERR_AO): Likewise.
35752         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35753         (TRAP_TRACE): Likewise.
35754         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35755         __USE_XOPEN2K8].
35756         (CLD_KILLED): Likewise.
35757         (CLD_DUMPED): Likewise.
35758         (CLD_TRAPPED): Likewise.
35759         (CLD_STOPPED): Likewise.
35760         (CLD_CONTINUED): Likewise.
35761         (POLL_IN): Likewise.
35762         (POLL_OUT): Likewise.
35763         (POLL_MSG): Likewise.
35764         (POLL_ERR): Likewise.
35765         (POLL_PRI): Likewise.
35766         (POLL_HUP): Likewise.
35767         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35768         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35769
35770         [BZ #16670]
35771         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35772         before #include of <time.h>.
35773         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35774         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35775         (test-xfail-UNIX98/sched.h/conform): Likewise.
35776
35777 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35778
35779         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35780         error absence of trapping exception support.
35781         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35782
35783 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35784
35785         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35786         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35787         * timezone/Makefile (testdata): Move definition above include of
35788         Rules.
35789         (test-zones): New variable.
35790         (tests-special): Add zone files.
35791         (build-testdata): Use $(evaluate-test).
35792
35793         * elf/Makefile (tests-special): Rename tests to end with .out.
35794         ($(objpfx)noload-mem): Likewise.
35795         ($(objpfx)tst-leaks1-mem): Likewise.
35796         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35797         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35798         $(objpfx)test-iconvconfig.out.
35799         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35800         set -e inside subshell and redirect output to file.
35801         * iconvdata/Makefile (generated): Rename tests to end with .out.
35802         Correct type.
35803         (tests-special): Rename tests to end with .out.
35804         ($(objpfx)mtrace-tst-loading): Likewise.
35805         * intl/Makefile (generated): Likewise.
35806         (tests-special): Likewise.
35807         ($(objpfx)mtrace-tst-gettext): Likewise.
35808         * misc/Makefile (generated): Likewise.
35809         (tests-special): Likewise.
35810         ($(objpfx)tst-error1-mem): Likewise.
35811         * nptl/Makefile (tests-special): Likewise.
35812         ($(objpfx)tst-stack3-mem): Likewise.
35813         (generated): Likewise.
35814         * posix/Makefile (generated): Likewise.
35815         (tests-special): Likewise.
35816         (xtests-special): Likewise.
35817         ($(objpfx)tst-fnmatch-mem): Likewise.
35818         ($(objpfx)bug-regex2-mem): Likewise.
35819         ($(objpfx)bug-regex14-mem): Likewise.
35820         ($(objpfx)bug-regex21-mem): Likewise.
35821         ($(objpfx)bug-regex31-mem): Likewise.
35822         ($(objpfx)tst-vfork3-mem): Likewise.
35823         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35824         ($(objpfx)tst-pcre-mem): Likewise.
35825         ($(objpfx)tst-boost-mem): Likewise.
35826         ($(objpfx)bug-ga2-mem): Likewise.
35827         ($(objpfx)bug-glob2-mem): Likewise.
35828         * resolv/Makefile (generate): Likewise.
35829         (tests-special): Likewise.
35830         (xtests-special): Likewise.
35831         (generated): Likewise.
35832         ($(objpfx)mtrace-tst-leaks): Likewise.
35833         ($(objpfx)mtrace-tst-leaks2): Likewise.
35834
35835         * scripts/merge-test-results.sh: New file.
35836         * Makefile (tests-special-notdir): New variable.
35837         (tests): Run merge-test-results.sh.
35838         (xtests): Likewise.
35839         * Rules (tests-special-notdir): New variable.
35840         (xtests-special-notdir): Likewise.
35841         (tests): Run merge-test-results.sh
35842         (xtests): Likewise.
35843
35844         * Makeconfig (test-xfail-name): New variable.
35845         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35846         compute variable name for expected failures.
35847         * conform/Makefile (conformtest-headers-data): New variable.
35848         (conformtest-standards): Likewise.
35849         (conformtest-headers-ISO): Likewise.
35850         (conformtest-headers-ISO99): Likewise.
35851         (conformtest-headers-ISO11): Likewise.
35852         (conformtest-headers-POSIX): Likewise.
35853         (conformtest-headers-XPG3): Likewise.
35854         (conformtest-headers-XPG4): Likewise.
35855         (conformtest-headers-UNIX98): Likewise.
35856         (conformtest-headers-XOPEN2K): Likewise.
35857         (conformtest-headers-POSIX2008): Likewise.
35858         (conformtest-headers-XOPEN2K8): Likewise.
35859         (conformtest-header-list-base): Likewise.
35860         (conformtest-header-list-tests): Likewise.
35861         (conformtest-header-base): Likewise.
35862         (conformtest-header-tests): Likewise.
35863         (tests-special): Add $(conformtest-header-list-tests).  If
35864         [$(fast-check) && !$(cross-compiling)], add
35865         $(conformtest-header-tests) instead of
35866         $(objpfx)run-conformtest.out.
35867         (generated): Add $(conformtest-header-list-base).  If
35868         [$(fast-check) && !$(cross-compiling)], add
35869         $(conformtest-header-base).  Remove previous setting.
35870         ($(conformtest-header-list-tests)): New target.
35871         (test-xfail-run-conformtest): Remove variable.
35872         ($(objpfx)run-conformtest.out): Remove target.
35873         (test-xfail-ISO11/complex.h/conform): New variable.
35874         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35875         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35876         (test-xfail-XPG3/varargs.h/conform): Likewise.
35877         (test-xfail-XPG4/varargs.h/conform): Likewise.
35878         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35879         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35880         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35881         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35882         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35883         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35884         (test-xfail-XPG3/ftw.h/conform): Likewise.
35885         (test-xfail-XPG3/grp.h/conform): Likewise.
35886         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35887         (test-xfail-XPG3/limits.h/conform): Likewise.
35888         (test-xfail-XPG3/pwd.h/conform): Likewise.
35889         (test-xfail-XPG3/search.h/conform): Likewise.
35890         (test-xfail-XPG3/signal.h/conform): Likewise.
35891         (test-xfail-XPG3/stdio.h/conform): Likewise.
35892         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35893         (test-xfail-XPG3/string.h/conform): Likewise.
35894         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35895         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35896         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35897         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35898         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35899         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35900         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35901         (test-xfail-XPG3/termios.h/conform): Likewise.
35902         (test-xfail-XPG3/time.h/conform): Likewise.
35903         (test-xfail-XPG3/unistd.h/conform): Likewise.
35904         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35905         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35906         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35907         (test-xfail-XPG4/netdb.h/conform): Likewise.
35908         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35909         (test-xfail-XPG4/signal.h/conform): Likewise.
35910         (test-xfail-XPG4/stdio.h/conform): Likewise.
35911         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35912         (test-xfail-XPG4/stropts.h/conform): Likewise.
35913         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35914         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35915         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35916         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35917         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35918         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35919         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35920         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35921         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35922         (test-xfail-XPG4/termios.h/conform): Likewise.
35923         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35924         (test-xfail-XPG4/unistd.h/conform): Likewise.
35925         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35926         (test-xfail-POSIX/sched.h/conform): Likewise.
35927         (test-xfail-POSIX/signal.h/conform): Likewise.
35928         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35929         (test-xfail-POSIX/tar.h/conform): Likewise.
35930         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35931         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35932         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35933         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35934         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35935         (test-xfail-UNIX98/sched.h/conform): Likewise.
35936         (test-xfail-UNIX98/signal.h/conform): Likewise.
35937         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35938         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35939         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35940         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35941         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35942         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35943         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35944         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35945         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35946         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35947         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35948         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35949         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35950         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35951         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35952         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35953         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35954         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35955         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35956         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35957         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35958         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35959         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35960         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35961         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35962         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35963         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35964         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35965         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35966         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35967         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35968         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35969         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35970         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35971         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35972         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35973         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35974         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35975         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35976         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35977         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35978         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35979         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35980         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35981         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35982         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35983         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35984         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35985         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35986         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35987         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35988         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35989         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35990         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35991         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35992         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35993         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35994         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35995         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35996         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35997         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35998         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35999         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36000         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36001         (conformtest-cc-flags): Likewise.
36002         ($(conformtest-header-tests): New target.
36003         * conform/check-header-lists.sh: New file.
36004         * conform/run-conformtest.sh: Remove.
36005
36006         * conform/conformtest.pl: Allow ' and \ in values given for
36007         constants.
36008         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36009         inclusion.
36010         [POSIX] (sys/types.h): Likewise.
36011         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36012         inclusion.
36013         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36014         inclusion.
36015         * conform/data/signal.h-data (SIGIO): Remove expectation.
36016         [XPG3] (SIGBUS): Do not expect.
36017         [POSIX || XPG3] (SIGPOLL): Likewise.
36018         [POSIX || XPG3] (SIGPROF): Likewise.
36019         [POSIX || XPG3] (SIGSYS): Likewise.
36020         [XPG3] (SIGTRAP): Likewise.
36021         [POSIX || XPG3] (SIGURG): Likewise.
36022         [POSIX || XPG3] (SIGVTALRM): Likewise.
36023         [POSIX || XPG3] (SIGXCPU): Likewise.
36024         [POSIX || XPG3] (SIGXFSZ): Likewise.
36025         [POSIX] (SA_SIGINFO): Expect.
36026         [XPG3] (siginfo_t): Do not expect type or contents.
36027         [POSIX] (si_pid): Do not expect element.
36028         [POSIX] (si_uid): Likewise.
36029         [POSIX] (si_addr): Likewise.
36030         [POSIX] (si_status): Likewise.
36031         [POSIX] (si_band): Likewise.
36032         [XPG4] (si_value): Likewise.
36033         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36034         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36035         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36036         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36037         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36038         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36039         [POSIX || XPG3] (ILL_COPROC): Likewise.
36040         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36041         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36042         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36043         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36044         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36045         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36046         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36047         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36048         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36049         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36050         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36051         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36052         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36053         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36054         [POSIX || XPG3] (CLD_EXITED): Likewise.
36055         [POSIX || XPG3] (CLD_KILLED): Likewise.
36056         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36057         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36058         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36059         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36060         [POSIX || XPG3] (POLL_IN): Likewise.
36061         [POSIX || XPG3] (POLL_OUT): Likewise.
36062         [POSIX || XPG3] (POLL_MSG): Likewise.
36063         [POSIX || XPG3] (POLL_ERR): Likewise.
36064         [POSIX || XPG3] (POLL_PRI): Likewise.
36065         [POSIX || XPG3] (POLL_HUP): Likewise.
36066         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36067         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36068         (SIG*): Do not allow.
36069         [XPG3] (si_*): Likewise.
36070         [XPG3] (SI_*): Likewise.
36071         [XPG3 || XPG4] (sigev_*): Likewise.
36072         [XPG3 || XPG4] (SIGEV_*): Likewise.
36073         [XPG3 || XPG4] (sival_*): Likewise.
36074         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36075         [POSIX || XPG3] (BUS_*): Likewise.
36076         [POSIX || XPG3] (CLD_*): Likewise.
36077         [POSIX || XPG3] (FPE_*): Likewise.
36078         [POSIX || XPG3] (ILL_*): Likewise.
36079         [POSIX || XPG3] (POLL_*): Likewise.
36080         [POSIX || XPG3] (SEGV_*): Likewise.
36081         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36082         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36083         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36084         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36085         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36086         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36087         Specify type and value.
36088         (TVERSLEN): Likewise.
36089         (REGTYPE): Likewise.
36090         (AREGTYPE): Likewise.
36091         (LNKTYPE): Likewise.
36092         (SYMTYPE): Likewise.
36093         (CHRTYPE): Likewise.
36094         (BLKTYPE): Likewise.
36095         (DIRTYPE): Likewise.
36096         (FIFOTYPE): Likewise.
36097         (CONTTYPE): Likewise.
36098         (TSUID): Likewise.
36099         (TSGID): Likewise.
36100         (TSVTX): Likewise.
36101         (TUREAD): Likewise.
36102         (TUWRITE): Likewise.
36103         (TUEXEC): Likewise.
36104         (TGREAD): Likewise.
36105         (TGWRITE): Likewise.
36106         (TGEXEC): Likewise.
36107         (TOREAD): Likewise.
36108         (TOWRITE): Likewise.
36109         (TOEXEC): Likewise.
36110         [POSIX] (TSVTX): Expect constant.
36111
36112 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36113
36114         * Makefile (tests): Change dependencies to ....
36115         (tests-special): ... additions to this variable.
36116         (tests): Depend on $(tests-special).
36117         * Makerules (check-abi-list): New variable.
36118         (check-abi): Depend on $(check-abi-list).
36119         [$(subdir) = elf] (tests-special): Add
36120         $(objpfx)check-abi-libc.out.
36121         [$(build-shared) = yes && subdir] (tests-special): Add
36122         $(check-abi-list).
36123         [$(build-shared) = yes && subdir] (tests): Do not depend on
36124         check-abi.
36125         * Rules (tests): Depend on $(tests-special).
36126         (xtests): Depend on $(xtests-special).
36127         * catgets/Makefile (tests): Change dependencies to ....
36128         (tests-special): ... additions to this variable.
36129         * conform/Makefile (tests): Change dependencies to ....
36130         (tests-special): ... additions to this variable.
36131         * elf/Makefile (tests): Change dependencies to ....
36132         (tests-special): ... additions to this variable.
36133         * grp/Makefile (tests): Change dependencies to ....
36134         (tests-special): ... additions to this variable.
36135         * iconv/Makefile (xtests): Change dependencies to ....
36136         (xtests-special): ... additions to this variable.
36137         * iconvdata/Makefile (tests): Change dependencies to ....
36138         (tests-special): ... additions to this variable.
36139         * intl/Makefile (tests): Change dependencies to ....
36140         (tests-special): ... additions to this variable.  Also add
36141         $(objpfx)tst-gettext.out.
36142         * io/Makefile (tests): Change dependencies to ....
36143         (tests-special): ... additions to this variable.
36144         * libio/Makefile (tests): Change dependencies to ....
36145         (tests-special): ... additions to this variable.
36146         * malloc/Makefile (tests): Change dependencies to ....
36147         (tests-special): ... additions to this variable.
36148         * misc/Makefile (tests): Change dependencies to ....
36149         (tests-special): ... additions to this variable.
36150         * nptl/Makefile (tests): Change dependencies to ....
36151         (tests-special): ... additions to this variable.
36152         * nptl_db/Makefile (tests): Change dependencies to ....
36153         (tests-special): ... additions to this variable.
36154         * posix/Makefile (tests): Change dependencies to ....
36155         (tests-special): ... additions to this variable.
36156         (xtests): Change dependencies to ....
36157         (xtests-special): ... additions to this variable.
36158         * resolv/Makefile (tests): Change dependencies to ....
36159         (tests-special): ... additions to this variable.
36160         (xtests): Change dependencies to ....
36161         (xtests-special): ... additions to this variable.
36162         * stdio-common/Makefile (tests): Change dependencies to ....
36163         (tests-special): ... additions to this variable.
36164         (do-tst-unbputc): Remove target.
36165         (do-tst-printf): Likewise.
36166         * stdlib/Makefile (tests): Change dependencies to ....
36167         (tests-special): ... additions to this variable.
36168         * string/Makefile (tests): Change dependencies to ....
36169         (tests-special): ... additions to this variable.
36170         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36171         (tests-special): ... additions to this variable.
36172
36173         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36174         whole file.
36175         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36176         whole file.
36177         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36178         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36179
36180         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36181         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36182         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36183         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36184         * conform/data/libgen.h-data [XPG3]: Likewise.
36185         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36186         * conform/data/ndbm.h-data [XPG3]: Likewise.
36187         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36188         * conform/data/netdb.h-data [XPG3]: Likewise.
36189         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36190         * conform/data/poll.h-data [XPG3]: Likewise.
36191         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36192         * conform/data/strings.h-data [XPG3]: Likewise.
36193         * conform/data/stropts.h-data [XPG3]: Likewise.
36194         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36195         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36196         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36197         Likewise.
36198         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36199         * conform/data/sys/time.h-data [XPG3]: Likewise.
36200         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36201         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36202         * conform/data/sys/un.h-data [XPG3]: Likewise.
36203         * conform/data/syslog.h-data [XPG3]: Likewise.
36204         * conform/data/ucontext.h-data [XPG3]: Likewise.
36205         * conform/data/utmpx.h-data [XPG3]: Likewise.
36206         * conform/data/varargs.h-data [UNIX98]: Enable file.
36207
36208         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36209
36210         * math/libm-test.inc (struct test_f_f_data): Move expected results
36211         into structure for each rounding mode.
36212         (struct test_ff_f_data): Likewise.
36213         (struct test_ff_f_data_nexttoward): Likewise.
36214         (struct test_fi_f_data): Likewise.
36215         (struct test_fl_f_data): Likewise.
36216         (struct test_if_f_data): Likewise.
36217         (struct test_fff_f_data): Likewise.
36218         (struct test_c_f_data): Likewise.
36219         (struct test_f_f1_data): Likewise.
36220         (struct test_fF_f1_data): Likewise.
36221         (struct test_ffI_f1_data): Likewise.
36222         (struct test_c_c_data): Likewise.
36223         (struct test_cc_c_data): Likewise.
36224         (struct test_f_i_data): Likewise.
36225         (struct test_ff_i_data): Likewise.
36226         (struct test_f_l_data): Likewise.
36227         (struct test_f_L_data): Likewise.
36228         (struct test_fFF_11_data): Likewise.
36229         (RM_): New macro.
36230         (RM_FE_DOWNWARD): Likewise.
36231         (RM_FE_TONEAREST): Likewise.
36232         (RM_FE_TOWARDZERO): Likewise.
36233         (RM_FE_UPWARD): Likewise.
36234         (RUN_TEST_LOOP_f_f): Update references to expected results.
36235         (RUN_TEST_LOOP_2_f): Likewise.
36236         (RUN_TEST_LOOP_fff_f): Likewise.
36237         (RUN_TEST_LOOP_c_f): Likewise.
36238         (RUN_TEST_LOOP_f_f1): Likewise.
36239         (RUN_TEST_LOOP_fF_f1): Likewise.
36240         (RUN_TEST_LOOP_fI_f1): Likewise.
36241         (RUN_TEST_LOOP_ffI_f1): Likewise.
36242         (RUN_TEST_LOOP_c_c): Likewise.
36243         (RUN_TEST_LOOP_cc_c): Likewise.
36244         (RUN_TEST_LOOP_f_i): Likewise.
36245         (RUN_TEST_LOOP_f_i_tg): Likewise.
36246         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36247         (RUN_TEST_LOOP_f_b): Likewise.
36248         (RUN_TEST_LOOP_f_b_tg): Likewise.
36249         (RUN_TEST_LOOP_f_l): Likewise.
36250         (RUN_TEST_LOOP_f_L): Likewise.
36251         (RUN_TEST_LOOP_fFF_11): Likewise.
36252         * math/gen-libm-test.pl (parse_args): Output four copies of
36253         expected results for each test.
36254
36255         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36256         (__ASSUME_UTIMES): Remove.
36257         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36258         (__ASSUME_UTIMES): Likewise.
36259
36260         * math/gen-auto-libm-tests.c: Update comment on output format.
36261         (output_for_one_input_case): Generate before-rounding and
36262         after-rounding information as conditions on output flags not
36263         floating-point format.
36264         * math/auto-libm-test-out: Regenerated.
36265         * math/gen-libm-test.pl (cond_value): New function.
36266         (or_cond_value): Use cond_value.
36267         (generate_testfile): Handle conditional exceptions.
36268
36269 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36270
36271         * math/libm-test.inc (max_valid_error): New variable.
36272         (init_max_error): Take new argument specifying whether function
36273         results are exactly determined.  Set max_valid_error and bound
36274         other variables for errors based on this argument.
36275         (set_max_error): Do not record results above max_valid_error.
36276         (check_float_internal): Only accept errors of up to 0.5ulps if
36277         also at most max_valid_error.
36278         (START): Take new argument EXACT and pass it to init_max_error.
36279         (acos_test): Update call to START.
36280         (acos_test_tonearest): Likewise.
36281         (acos_test_towardzero): Likewise.
36282         (acos_test_downward): Likewise.
36283         (acos_test_upward): Likewise.
36284         (acosh_test): Likewise.
36285         (asin_test): Likewise.
36286         (asin_test_tonearest): Likewise.
36287         (asin_test_towardzero): Likewise.
36288         (asin_test_downward): Likewise.
36289         (asin_test_upward): Likewise.
36290         (asinh_test): Likewise.
36291         (atan_test): Likewise.
36292         (atanh_test): Likewise.
36293         (atan2_test): Likewise.
36294         (cabs_test): Likewise.
36295         (cacos_test): Likewise.
36296         (cacosh_test): Likewise.
36297         (carg_test): Likewise.
36298         (casin_test): Likewise.
36299         (casinh_test): Likewise.
36300         (catan_test): Likewise.
36301         (catanh_test): Likewise.
36302         (cbrt_test): Likewise.
36303         (ccos_test): Likewise.
36304         (ccosh_test): Likewise.
36305         (ceil_test): Likewise.
36306         (cexp_test): Likewise.
36307         (cimag_test): Likewise.
36308         (clog_test): Likewise.
36309         (clog10_test): Likewise.
36310         (conj_test): Likewise.
36311         (copysign_test): Likewise.
36312         (cos_test): Likewise.
36313         (cos_test_tonearest): Likewise.
36314         (cos_test_towardzero): Likewise.
36315         (cos_test_downward): Likewise.
36316         (cos_test_upward): Likewise.
36317         (cosh_test): Likewise.
36318         (cosh_test_tonearest): Likewise.
36319         (cosh_test_towardzero): Likewise.
36320         (cosh_test_downward): Likewise.
36321         (cosh_test_upward): Likewise.
36322         (cpow_test): Likewise.
36323         (cproj_test): Likewise.
36324         (creal_test): Likewise.
36325         (csin_test): Likewise.
36326         (csinh_test): Likewise.
36327         (csqrt_test): Likewise.
36328         (ctan_test): Likewise.
36329         (ctan_test_tonearest): Likewise.
36330         (ctan_test_towardzero): Likewise.
36331         (ctan_test_downward): Likewise.
36332         (ctan_test_upward): Likewise.
36333         (ctanh_test): Likewise.
36334         (ctanh_test_tonearest): Likewise.
36335         (ctanh_test_towardzero): Likewise.
36336         (ctanh_test_downward): Likewise.
36337         (ctanh_test_upward): Likewise.
36338         (erf_test): Likewise.
36339         (erfc_test): Likewise.
36340         (exp_test): Likewise.
36341         (exp_test_tonearest): Likewise.
36342         (exp_test_towardzero): Likewise.
36343         (exp_test_downward): Likewise.
36344         (exp_test_upward): Likewise.
36345         (exp10_test): Likewise.
36346         (exp10_test_tonearest): Likewise.
36347         (exp10_test_towardzero): Likewise.
36348         (exp10_test_downward): Likewise.
36349         (exp10_test_upward): Likewise.
36350         (pow10_test): Likewise.
36351         (exp2_test): Likewise.
36352         (expm1_test): Likewise.
36353         (expm1_test_tonearest): Likewise.
36354         (expm1_test_towardzero): Likewise.
36355         (expm1_test_downward): Likewise.
36356         (expm1_test_upward): Likewise.
36357         (fabs_test): Likewise.
36358         (fdim_test): Likewise.
36359         (floor_test): Likewise.
36360         (fma_test): Likewise.
36361         (fma_test_towardzero): Likewise.
36362         (fma_test_downward): Likewise.
36363         (fma_test_upward): Likewise.
36364         (fmax_test): Likewise.
36365         (fmin_test): Likewise.
36366         (fmod_test): Likewise.
36367         (fpclassify_test): Likewise.
36368         (frexp_test): Likewise.
36369         (hypot_test): Likewise.
36370         (ilogb_test): Likewise.
36371         (isfinite_test): Likewise.
36372         (finite_test): Likewise.
36373         (isgreater_test): Likewise.
36374         (isgreaterequal_test): Likewise.
36375         (isinf_test): Likewise.
36376         (isless_test): Likewise.
36377         (islessequal_test): Likewise.
36378         (islessgreater_test): Likewise.
36379         (isnan_test): Likewise.
36380         (isnormal_test): Likewise.
36381         (issignaling_test): Likewise.
36382         (isunordered_test): Likewise.
36383         (j0_test): Likewise.
36384         (j1_test): Likewise.
36385         (jn_test): Likewise.
36386         (ldexp_test): Likewise.
36387         (lgamma_test): Likewise.
36388         (gamma_test): Likewise.
36389         (lrint_test): Likewise.
36390         (lrint_test_tonearest): Likewise.
36391         (lrint_test_towardzero): Likewise.
36392         (lrint_test_downward): Likewise.
36393         (lrint_test_upward): Likewise.
36394         (llrint_test): Likewise.
36395         (llrint_test_tonearest): Likewise.
36396         (llrint_test_towardzero): Likewise.
36397         (llrint_test_downward): Likewise.
36398         (llrint_test_upward): Likewise.
36399         (log_test): Likewise.
36400         (log10_test): Likewise.
36401         (log1p_test): Likewise.
36402         (log2_test): Likewise.
36403         (logb_test): Likewise.
36404         (logb_test_downward): Likewise.
36405         (lround_test): Likewise.
36406         (llround_test): Likewise.
36407         (modf_test): Likewise.
36408         (nearbyint_test): Likewise.
36409         (nextafter_test): Likewise.
36410         (nexttoward_test): Likewise.
36411         (pow_test): Likewise.
36412         (pow_test_tonearest): Likewise.
36413         (pow_test_towardzero): Likewise.
36414         (pow_test_downward): Likewise.
36415         (pow_test_upward): Likewise.
36416         (remainder_test): Likewise.
36417         (drem_test): Likewise.
36418         (remainder_test_tonearest): Likewise.
36419         (drem_test_tonearest): Likewise.
36420         (remainder_test_towardzero): Likewise.
36421         (drem_test_towardzero): Likewise.
36422         (remainder_test_downward): Likewise.
36423         (drem_test_downward): Likewise.
36424         (remainder_test_upward): Likewise.
36425         (drem_test_upward): Likewise.
36426         (remquo_test): Likewise.
36427         (rint_test): Likewise.
36428         (rint_test_tonearest): Likewise.
36429         (rint_test_towardzero): Likewise.
36430         (rint_test_downward): Likewise.
36431         (rint_test_upward): Likewise.
36432         (round_test): Likewise.
36433         (scalb_test): Likewise.
36434         (scalbn_test): Likewise.
36435         (scalbln_test): Likewise.
36436         (signbit_test): Likewise.
36437         (sin_test): Likewise.
36438         (sin_test_tonearest): Likewise.
36439         (sin_test_towardzero): Likewise.
36440         (sin_test_downward): Likewise.
36441         (sin_test_upward): Likewise.
36442         (sincos_test): Likewise.
36443         (sinh_test): Likewise.
36444         (sinh_test_tonearest): Likewise.
36445         (sinh_test_towardzero): Likewise.
36446         (sinh_test_downward): Likewise.
36447         (sinh_test_upward): Likewise.
36448         (sqrt_test): Likewise.
36449         (sqrt_test_tonearest): Likewise.
36450         (sqrt_test_towardzero): Likewise.
36451         (sqrt_test_downward): Likewise.
36452         (sqrt_test_upward): Likewise.
36453         (tan_test): Likewise.
36454         (tan_test_tonearest): Likewise.
36455         (tan_test_towardzero): Likewise.
36456         (tan_test_downward): Likewise.
36457         (tan_test_upward): Likewise.
36458         (tanh_test): Likewise.
36459         (tgamma_test): Likewise.
36460         (trunc_test): Likewise.
36461         (y0_test): Likewise.
36462         (y1_test): Likewise.
36463         (yn_test): Likewise.
36464         (significand_test): Likewise.
36465
36466         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36467         individual tests in comment.
36468         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36469         (prev_max_error): New variable.
36470         (prev_real_max_error): Likewise.
36471         (prev_imag_max_error): Likewise.
36472         (compare_ulp_data): Don't refer to test names in comment.
36473         (find_test_ulps): Remove function.
36474         (find_function_ulps): Likewise.
36475         (find_complex_function_ulps): Likewise.
36476         (init_max_error): Take function name as argument.  Look up ulps
36477         for that function.
36478         (print_ulps): Remove function.
36479         (print_max_error): Use prev_max_error instead of calling
36480         find_function_ulps.
36481         (print_complex_max_error): Use prev_real_max_error and
36482         prev_imag_max_error instead of calling find_complex_function_ulps.
36483         (check_float_internal): Take max_ulp parameter instead of calling
36484         find_test_ulps.  Don't call print_ulps.
36485         (check_float): Update call to check_float_internal.
36486         (check_complex): Update calls to check_float_internal.
36487         (START): Pass argument to init_max_error.
36488         * math/gen-libm-test.pl (%results): Don't include "kind"
36489         information.
36490         (parse_ulps): Don't handle ulps of individual tests.
36491         (print_ulps_file): Likewise.
36492         (output_ulps): Likewise.
36493         * math/README.libm-test: Update.
36494         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36495         individual tests.
36496         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36497         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36498         * sysdeps/arm/libm-test-ulps: Likewise.
36499         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36500         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36501         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36502         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36503         * sysdeps/microblaze/libm-test-ulps: Likewise.
36504         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36505         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36506         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36507         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36508         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36509         * sysdeps/sh/libm-test-ulps: Likewise.
36510         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36511         * sysdeps/tile/libm-test-ulps: Likewise.
36512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36513
36514 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36515
36516         * math/libm-test.inc (print_complex_max_error): Check separately
36517         whether real and imaginary errors are within allowed range and
36518         pass 0 to print_complex_function_ulps instead of value within
36519         allowed range.
36520
36521 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36522
36523         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36524         formatting.
36525         (get_handles_fopen): Likewise.
36526         (do_write_test): Likewise.
36527
36528         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36529
36530         * libio/fileops.c (do_ftell): Use cached offset when
36531         available.
36532         * libio/iofwide.c (do_ftell_wide): Likewise.
36533         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36534         _IO_file_attach.
36535         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36536
36537         [BZ #16532]
36538         * libio/libioP.h (get_file_offset): New function.
36539         * libio/fileops.c (get_file_offset): Likewise.
36540         (do_ftell): Likewise.
36541         (_IO_new_file_seekoff): Split out ftell logic.
36542         * libio/wfileops.c (do_ftell_wide): Likewise.
36543         (_IO_wfile_seekoff): Split out ftell logic.
36544         * libio/tst-ftell-active-handler.c: New test case.
36545         * libio/Makefile (tests): Add it.
36546
36547 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36548
36549         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36550         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36551
36552 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36553
36554         [BZ #16639]
36555         * nscd/connections.c (nscd_init): Call do_exit.
36556         (start_threads): Call do_exit and notify_parent.
36557         (begin_drop_privileges): Call do_exit.
36558         (finish_drop_privileges): Likewise.
36559         * nscd/selinux.c (preserve_capabilities): Likewise.
36560         (install_real_capabilities): Likewise.
36561         (nscd_selinux_enabled): Likewise.
36562         (avc_create_thread): Likewise.
36563         (avc_alloc_lock): Likewise.
36564         (nscd_avc_init): Likewise.
36565         * nscd/nscd.c (parent_fd): New static variable.
36566         (main): Create a pipe between parent and child processes.
36567         Skip closing parent_fd.
36568         (monitor_child): New function.
36569         (do_exit): Likewise.
36570         (notify_parent): Likewise.
36571         * nscd/nscd.h (notify_parent): Likewise.
36572         (do_exit): Likewise.
36573
36574 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36575
36576         * malloc/malloc.c (__libc_calloc): Revert last change.
36577
36578 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36579
36580         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36581
36582 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36583
36584         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36585         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36586         implementation.
36587         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36588         (__libc_ifunc_impl_list): Likewise.
36589         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36590         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36591         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36592         * string/strrchr.c: Define STRRCHR.
36593
36594 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36595
36596         * benchtest/bench-strtok.c (simple_strtok): Delete.
36597         (strtok_string): Use as benchmark.
36598         * string/strtok (STRTOK): New macro.
36599
36600 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36601
36602         * manual/threads.texi: Add header and standard comments to all
36603         functions.
36604
36605         * elf/dl-lookup.c (check_match): New function.
36606         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36607         (do_lookup_x): Remove nested function check_match. Use non-nested
36608         function check_match.
36609
36610 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36611
36612         * csu/Makefile (generated, before-compile): Use += rather than =.
36613         * catgets/Makefile (generated, generated-dirs): Likewise.
36614         * debug/Makefile (generated): Likewise.
36615         * dlfcn/Makefile (generated): Likewise.
36616         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36617         * iconvdata/Makefile (before-compile, generated): Likewise.
36618         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36619         * libio/Makefile (generated): Likewise.
36620         * malloc/Makefile (generated): Likewise.
36621         * manual/Makefile (generated, generated-dirs): Likewise.
36622         * misc/Makefile (generated): Likewise.
36623         * posix/Makefile (generated): Likewise.
36624         * resolv/Makefile (generated): Likewise.
36625         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36626         * timezone/Makefile (generated, generated-dirs): Likewise.
36627
36628         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36629
36630 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36631
36632         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36633         power8 implementation.
36634         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36635         file: POWER8 llround ifunc implementation.
36636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36637         (__lllround): Add POWER8 implementation.
36638         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36639         POWER8 llround implementation.
36640
36641         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36642         power8 implementation.
36643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36644         file: POWER8 llrint ifunc implementation.
36645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36646         Add POWER8 implementation.
36647         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36648         POWER8 llrint implementation.
36649
36650         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36651         power8 implementation.
36652         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36653         file: POWER8 finite ifunc implementation.
36654         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36655         Add POWER8 implementation.
36656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36657         Likewise.
36658         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36659         POWER8 finite implementation.
36660         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36661
36662         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36663         power8 implementation.
36664         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36665         file: POWER8 isinf ifunc implementation.
36666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36667         POWER8 implementation.
36668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36669         Likewise.
36670         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36671         isinf implementation.
36672         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36673
36674         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36675         (INIT_ARCH): Add hwcap2 initialization.
36676         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36677         power8 implementation.
36678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36679         file: POWER8 isnan ifunc implementation.
36680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36681         POWER8 implementation.
36682         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36683         Likewise.
36684         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36685         isnan implementation.
36686         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36687
36688 2014-02-27  Joey Ye  <joey.ye@arm.com>
36689
36690         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36691         (_FP_NANFRAC_Q): Set to zero.
36692
36693 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36694
36695         [BZ #16623]
36696         * math/auto-libm-test-in: New test inputs.
36697         * math/auto-libm-test-out: Regenerate.
36698         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36699         and DA.
36700         (__cos): Likewise.
36701         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36702
36703 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36704
36705         * scripts/evaluate-test.sh: Take new argument indicating whether
36706         failure is expected.
36707         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36708         indicating whether failure is expected.
36709         * conform/Makefile (test-xfail-run-conformtest): New variable.
36710         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36711         level.
36712         * posix/Makefile (test-xfail-annexc): New variable.
36713         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36714
36715 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36716
36717         * argp/Makefile: Include Makeconfig immediately after defining
36718         subdir.
36719         * assert/Makefile: Likewise.
36720         * benchtests/Makefile: Likewise.
36721         * catgets/Makefile: Likewise.
36722         * conform/Makefile: Likewise.
36723         * crypt/Makefile: Likewise.
36724         * csu/Makefile: Likewise.
36725         (all): Remove target.
36726         * ctype/Makefile: Include Makeconfig immediately after defining
36727         subdir.
36728         * debug/Makefile: Likewise.
36729         * dirent/Makefile: Likewise.
36730         * dlfcn/Makefile: Likewise.
36731         * gmon/Makefile: Likewise.
36732         * gnulib/Makefile: Likewise.
36733         * grp/Makefile: Likewise.
36734         * gshadow/Makefile: Likewise.
36735         * hesiod/Makefile: Likewise.
36736         * hurd/Makefile: Likewise.
36737         (all): Remove target.
36738         * iconvdata/Makefile: Include Makeconfig immediately after
36739         defining subdir.
36740         * inet/Makefile: Likewise.
36741         * intl/Makefile: Likewise.
36742         * io/Makefile: Likewise.
36743         * libio/Makefile: Likewise.
36744         (all): Remove target.
36745         * locale/Makefile: Include Makeconfig immediately after defining
36746         subdir.
36747         * login/Makefile: Likewise.
36748         * mach/Makefile: Likewise.
36749         (all): Remove target.
36750         * malloc/Makefile: Include Makeconfig immediately after defining
36751         subdir.
36752         (all): Remove target.
36753         * manual/Makefile: Include Makeconfig immediately after defining
36754         subdir.
36755         * math/Makefile: Likewise.
36756         * misc/Makefile: Likewise.
36757         * nis/Makefile: Likewise.
36758         * nss/Makefile: Likewise.
36759         * po/Makefile: Likewise.
36760         (all): Remove target.
36761         * posix/Makefile: Include Makeconfig immediately after defining
36762         subdir.
36763         * pwd/Makefile: Likewise.
36764         * resolv/Makefile: Likewise.
36765         * resource/Makefile: Likewise.
36766         * rt/Makefile: Likewise.
36767         * setjmp/Makefile: Likewise.
36768         * shadow/Makefile: Likewise.
36769         * signal/Makefile: Likewise.
36770         * socket/Makefile: Likewise.
36771         * soft-fp/Makefile: Likewise.
36772         * stdio-common/Makefile: Likewise.
36773         * stdlib/Makefile: Likewise.
36774         * streams/Makefile: Likewise.
36775         * string/Makefile: Likewise.
36776         * sunrpc/Makefile: Likewise.
36777         (all): Remove target.
36778         * sysvipc/Makefile: Include Makeconfig immediately after defining
36779         subdir.
36780         * termios/Makefile: Likewise.
36781         * time/Makefile: Likewise.
36782         * timezone/Makefile: Likewise.
36783         (all): Remove target.
36784         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36785         subdir.
36786         * wctype/Makefile: Likewise.
36787
36788 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36789
36790         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36791         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36792         (libc_feholdexcept_setround_mips): Ditto.
36793         (libc_feholdsetround): New.
36794         (libc_feholdsetroundf): New.
36795         (libc_feholdsetroundl): New.
36796         (libc_feupdateenv_test_mips): New.
36797         (libc_feupdateenv_test): New.
36798         (libc_feupdateenv_testf): New.
36799         (libc_feupdateenv_testl): New.
36800         (libc_feresetround): New.
36801         (libc_feresetroundf): New.
36802         (libc_feresetroundl): New.
36803         (libc_fetestexcept_mips): New.
36804         (libc_fetestexcept): New.
36805         (libc_fetestexceptf): New.
36806         (libc_fetestexceptl): New.
36807         (HAVE_RM_CTX): New.
36808         (libc_feholdexcept_setround_mips_ctx): New.
36809         (libc_feholdexcept_setround_ctx): New.
36810         (libc_feholdexcept_setroundf_ctx): New.
36811         (libc_feholdexcept_setroundl_ctx): New.
36812         (libc_fesetenv_mips_ctx): New.
36813         (libc_fesetenv_ctx): New.
36814         (libc_fesetenv_ctxf): New.
36815         (libc_fesetenv_ctxl): New.
36816         (libc_feupdateenv_mips_ctx): New.
36817         (libc_feupdateenv_ctx): New.
36818         (libc_feupdateenvf_ctx): New.
36819         (libc_feupdateenvl_ctx): New.
36820         (libc_feholdsetround_mips_ctx): New.
36821         (libc_feholdsetround_ctx): New.
36822         (libc_feholdsetroundf_ctx): New.
36823         (libc_feholdsetroundl_ctx): New.
36824         (libc_feresetround_mips_ctx): New.
36825         (libc_feresetround_ctx): New.
36826         (libc_feresetroundf_ctx): New.
36827         (libc_feresetroundl_ctx): New.
36828
36829 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36830
36831         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36832
36833         * manual/ipc.texi: New file.
36834         * manual/Makefile (chapters): Add ipc.
36835         * manual/job.texi: Add "Inter-Process Communication" to next.
36836         * manual/process.texi: Add "Inter-Process Communication" to prev.
36837
36838 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36839
36840         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36841
36842 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36843
36844         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36845
36846         * manual/arith.texi: Fix spaces after sentences.
36847         * manual/charset.texi: Likewise.
36848         * manual/errno.texi: Likewise.
36849         * manual/install.texi: Likewise.
36850         * manual/llio.texi: Likewise.
36851         * manual/locale.texi: Likewise.
36852         * manual/maint.texi: Likewise.
36853         * manual/math.texi: Likewise.
36854         * manual/memory.texi: Likewise.
36855         * manual/message.texi: Likewise.
36856         * manual/probes.texi: Likewise.
36857         * manual/resource.texi: Likewise.
36858         * manual/signal.texi: Likewise.
36859         * manual/socket.texi: Likewise.
36860         * manual/stdio.texi: Likewise.
36861         * manual/string.texi: Likewise.
36862         * manual/time.texi: Likewise.
36863         * manual/users.texi: Likewise.
36864
36865 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36866
36867         [BZ #16632]
36868         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36869         _DEFAULT_SOURCE is defined.
36870
36871 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36872             Carlos O'Donell  <carlos@redhat.com>
36873
36874         [BZ #16613]
36875         * elf/dl-tls.c (_dl_count_modids): New function.
36876         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36877         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36878         audit library and increment generation counter.
36879         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36880         * elf/tst-audit9.c: New file.
36881         * elf/tst-auditmod9a.c: New file.
36882         * elf/tst-auditmod9b.c: New file.
36883         * elf/Makefile: Add rules to build and run tst-audit9.
36884
36885 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36886
36887         [BZ #15347]
36888         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36889
36890 2014-02-25  Will Newton  <will.newton@linaro.org>
36891
36892         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36893         (__longjmp): Restore sp and lr before restoring callee
36894         saved registers.  Add longjmp and longjmp_target
36895         SystemTap probe point.
36896         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36897         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36898         Define to zero to match jmpbuf layout.
36899         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36900         (__sigsetjmp): Save sp and lr before saving callee
36901         saved registers.  Add setjmp SystemTap probe point.
36902
36903 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36904
36905         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36906
36907 2014-02-24  Andreas Schwab  <schwab@suse.de>
36908
36909         [BZ #15804]
36910         * elf/pldd.c (wait_for_ptrace_stop): New function.
36911         (main): Call it after attaching.
36912
36913 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36914
36915         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36916         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36917         Versions files is now verboten.
36918         * hurd/Versions (libc: GLIBC_2.0):
36919         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36920         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36921         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36922         * mach/Versions: Likewise.
36923
36924         * csu/Versions: Remove unused %include.
36925         * resolv/Versions: Likewise.
36926
36927 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36928
36929         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36930         ($(objpfx)check-local-headers.out): Likewise.
36931         ($(objpfx)begin-end-check.out): Likewise.
36932         * Makerules (check-abi-%.out): Likewise.
36933         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36934         ($(objpfx)test2.cat): Likewise.
36935         ($(objpfx)de/libc.cat): Likewise.
36936         ($(objpfx)test-gencat.out): Likewise.
36937         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36938         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36939         ($(objpfx)noload-mem): Likewise.
36940         ($(objpfx)tst-pathopt.out): Likewise.
36941         ($(objpfx)tst-rtld-load-self.out): Likewise.
36942         ($(objpfx)tst-array1-cmp.out): Likewise.
36943         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36944         ($(objpfx)tst-array2-cmp.out): Likewise.
36945         ($(objpfx)tst-array3-cmp.out): Likewise.
36946         ($(objpfx)tst-array4-cmp.out): Likewise.
36947         ($(objpfx)tst-array5-cmp.out): Likewise.
36948         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36949         ($(objpfx)check-textrel.out): Likewise.
36950         ($(objpfx)check-execstack.out): Likewise.
36951         ($(objpfx)check-localplt.out): Likewise.
36952         ($(objpfx)order2-cmp.out): Likewise.
36953         ($(objpfx)tst-leaks1-mem): Likewise.
36954         ($(objpfx)tst-leaks1-static-mem): Likewise.
36955         ($(objpfx)tst-initorder-cmp.out): Likewise.
36956         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36957         ($(objpfx)tst-unused-dep.out): Likewise.
36958         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36959         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36960         * iconv/Makefile (test-iconvconfig): Likewise.
36961         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36962         ($(objpfx)iconv-test.out): Likewise.
36963         ($(objpfx)tst-tables.out): Likewise.
36964         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36965         ($(objpfx)tst-gettext.out): Likewise.
36966         ($(objpfx)tst-translit.out): Likewise.
36967         ($(objpfx)tst-gettext2.out): Likewise.
36968         ($(objpfx)tst-gettext4.out): Likewise.
36969         ($(objpfx)tst-gettext6.out): Likewise.
36970         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36971         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36972         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36973         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36974         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36975         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36976         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36977         ($(objpfx)wordexp-tst.out): Likewise.
36978         ($(objpfx)annexc.out): Likewise.
36979         ($(objpfx)tst-fnmatch-mem): Likewise.
36980         ($(objpfx)bug-regex2-mem): Likewise.
36981         ($(objpfx)bug-regex14-mem): Likewise.
36982         ($(objpfx)bug-regex21-mem): Likewise.
36983         ($(objpfx)bug-regex31-mem): Likewise.
36984         ($(objpfx)tst-vfork3-mem): Likewise.
36985         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36986         ($(objpfx)tst-pcre-mem): Likewise.
36987         ($(objpfx)tst-boost-mem): Likewise.
36988         ($(objpfx)tst-getconf.out): Likewise.
36989         ($(objpfx)bug-ga2-mem): Likewise.
36990         ($(objpfx)bug-glob2-mem): Likewise.
36991         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36992         ($(objpfx)mtrace-tst-leaks2): Likewise.
36993         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36994         ($(objpfx)tst-printf.out): Likewise.
36995         ($(objpfx)tst-setvbuf1.out): Likewise.
36996         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36997         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36998         ($(objpfx)tst-fmtmsg.out): Likewise.
36999         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37000         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37001
37002         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37003         * bits/sigaction.h [__USE_MISC]: Likewise.
37004         * bits/waitstatus.h: Update #endif comments.
37005         * ctype/ctype.h: Likewise.
37006         * dirent/dirent.h: Likewise.
37007         [__USE_MISC]: Remove redundant conditionals.
37008         * grp/grp.h: Update #endif comments.
37009         [__USE_GNU]: Remove redundant conditionals.
37010         [__USE_MISC]: Likewise.
37011         * inet/netinet/in.h [__USE_GNU]: Likewise.
37012         * io/sys/stat.h [__USE_MISC]: Likewise.
37013         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37014         * libio/bits/stdio.h: Update #endif comments.
37015         [__USE_MISC]: Remove redundant conditionals.
37016         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37017         * libio/stdio.h: Update #endif comments.
37018         [__USE_MISC]: Remove redundant conditionals.
37019         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37020         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37021         * math/math.h: Update #else and #endif comments.
37022         [__USE_MISC]: Remove redundant conditionals.
37023         * misc/sys/uio.h: Update #endif comments.
37024         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37025         * posix/glob.h [__USE_MISC]: Likewise.
37026         * posix/sys/types.h: Update #endif comments.
37027         [__USE_MISC]: Remove redundant conditionals.
37028         * posix/sys/wait.h: Update #endif comments.
37029         [__USE_MISC]: Remove redundant conditionals.
37030         * posix/unistd.h: Update #endif comments.
37031         [__USE_MISC]: Remove redundant conditionals.
37032         * pwd/pwd.h [__USE_GNU]: Likewise.
37033         [__USE_MISC]: Likewise.
37034         * resolv/netdb.h [__USE_GNU]: Likewise.
37035         * signal/signal.h: Update #endif comments.
37036         [__USE_MISC]: Remove redundant conditionals.
37037         * stdlib/stdlib.h: Update #else and #endif comments.
37038         [__USE_MISC]: Remove redundant conditionals.
37039         [__USE_GNU]: Likewise.
37040         * string/bits/string2.h [__USE_MISC]: Likewise.
37041         * string/string.h: Update #endif comments.
37042         [__USE_MISC]: Remove redundant conditionals.
37043         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37044         Likewise.
37045         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37046         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37047         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37048         Likewise.
37049         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37050         Likewise.
37051         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37052         comments.
37053         [__USE_MISC]: Remove redundant conditionals.
37054         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37055         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37056         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37057         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37058         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37059         Likewise.
37060         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37061         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37062         Likewise.
37063         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37064         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37065         Likewise.
37066         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37067         Likewise.
37068         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37069         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37070         Likewise.
37071         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37072         Likewise.
37073         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37074         * sysdeps/x86/bits/string.h: Update #endif comments.
37075         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37076         conditionals.
37077         * time/sys/time.h: Update #endif comments.
37078         * time/time.h: Likewise.
37079         [__USE_MISC]: Remove redundant conditionals.
37080
37081 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37082
37083         [BZ #16600]
37084         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37085
37086 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37087
37088         * Versions.def (librt): Add GLIBC_2.17.
37089
37090 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37091
37092         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37093         synonym for _SYS_AUXV_H to allow direct inclusion.
37094         * sysdeps/sparc/bits/hwcap.h: Likewise.
37095         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37096         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37097         * sysdeps/sparc/sysdep.h: Likewise.
37098
37099 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37100
37101         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37102
37103 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37104
37105         * benchtests/bench-strrchr.c: Print length instead of position.
37106
37107 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37108
37109         [BZ #16611]
37110         * sysdeps/unix/sysv/linux/kernel-features.h
37111         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37112         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37113         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37114         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37115         Likewise.
37116         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37117         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37118         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37119         (__ASSUME_SENDMMSG): Define instead of using previous
37120         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37121         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37122         (__ASSUME_SENDMMSG_SYSCALL): Define.
37123         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37124         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37125         Likewise.
37126         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37127         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37128         Likewise.
37129         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37130         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37131         Likewise.
37132         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37133         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37134         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37135         [__ASSUME_SENDMMSG]: Change conditionals to
37136         [__ASSUME_SENDMMSG_SOCKETCALL].
37137         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37138         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37139         Define.
37140         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37141         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37142         Likewise.
37143         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37144         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37145         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37146         [!__ASSUME_SENDMMSG]: Change conditional to
37147         [!__ASSUME_SENDMMSG_SOCKETCALL].
37148         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37149         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37150         Define.
37151
37152         [BZ #16610]
37153         * sysdeps/unix/sysv/linux/kernel-features.h
37154         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37155         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37156         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37157         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37158         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37159         [__i386__ || __sparc__]
37160         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37161         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37162         (__ASSUME_RECVMMSG): Define instead of using previous
37163         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37164         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37165         (__ASSUME_RECVMMSG_SYSCALL): Define.
37166         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37167         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37168         Likewise.
37169         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37170         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37171         Likewise.
37172         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37173         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37174         Likewise.
37175         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37176         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37177         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37178         [__ASSUME_RECVMMSG]: Change condition to
37179         [__ASSUME_RECVMMSG_SOCKETCALL].
37180         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37181         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37182         Define.
37183         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37184         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37185         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37186         Likewise.
37187         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37188         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37189         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37190         [!__ASSUME_RECVMMSG]: Change condition to
37191         [!__ASSUME_RECVMMSG_SOCKETCALL].
37192         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37193         (__ASSUME_RECVMMSG_SYSCALL): Define.
37194
37195         [BZ #16609]
37196         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37197         __powerpc__ || __s390__ || __sh__ || __sparc__]
37198         (__ASSUME_SOCKETCALL): Define.
37199         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37200         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37201         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37202         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37203         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37204         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37205         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37206         (__ASSUME_ACCEPT4): Define instead of using previous
37207         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37208         __powerpc__ || __sparc__ || __s390__)] condition.
37209         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37210         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37211         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37212         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37213         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37214         [!__ASSUME_ACCEPT4]: Change condition to
37215         [!__ASSUME_ACCEPT4_SOCKETCALL].
37216         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37217         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37218         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37219         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37220         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37221         __ASSUME_ACCEPT4_SYSCALL.
37222         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37223         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37224         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37225         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37226         __ASSUME_ACCEPT4_SYSCALL.
37227         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37228         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37229         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37230         [__ASSUME_ACCEPT4]: Change condition to
37231         [__ASSUME_ACCEPT4_SOCKETCALL].
37232         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37233         (__ASSUME_SOCKETCALL): Define.
37234         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37235         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37236         (__ASSUME_SOCKETCALL): Define.
37237         (__ASSUME_ACCEPT4): Remove.
37238         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37239         Define.
37240         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37241         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37242         Likewise.
37243         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37244         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37245
37246         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37247         macro.
37248         (HWCAP_ARM_LPAE): Likewise.
37249         (HWCAP_ARM_EVTSTRM): Likewise.
37250         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37251         Add vpfd32, lpae and evtstrm.
37252         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37253         Increase to 22.
37254
37255 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37256
37257         * math/auto-libm-test-in: Add tests of clog10.
37258         * math/auto-libm-test-out: Regenerated.
37259         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37260         * sysdeps/i386/fpu/libm-test-ulps: Update.
37261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37262
37263 2014-02-18  Andreas Schwab  <schwab@suse.de>
37264
37265         [BZ #16574]
37266         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37267         Store non-zero if the second buffer was newly allocated.
37268         (send_dg): Likewise.
37269         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37270         to send_vc and send_dg.
37271         (res_nsend): Pass NULL for ansp2_malloced.
37272         * resolv/res_query.c (__libc_res_nquery): Add parameter
37273         answerp2_malloced and pass it down to __libc_res_nsend.
37274         (res_nquery): Pass additional NULL to __libc_res_nquery.
37275         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37276         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37277         second answer buffer if answerp2_malloced was set.
37278         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37279         (__libc_res_nquerydomain): Add parameter
37280         answerp2_malloced and pass it down to __libc_res_nquery.
37281         (res_nquerydomain): Pass additional NULL to
37282         __libc_res_nquerydomain.
37283         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37284         additional NULL to __libc_res_nsend and __libc_res_nquery.
37285         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37286         additional NULL to __libc_res_nsearch.
37287         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37288         parameter of __libc_res_nsearch to check for separately allocated
37289         second buffer.
37290         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37291         __libc_res_nquery.
37292         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37293         additional NULL to __libc_res_nquery.
37294         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37295         __libc_res_nsearch.
37296         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37297         * include/resolv.h: Update prototypes of __libc_res_nquery,
37298         __libc_res_nsearch, __libc_res_nsend.
37299
37300 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37301
37302         * math/auto-libm-test-in: Add tests of fma.
37303         * math/auto-libm-test-out: Regenerated.
37304         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37305         (fma_towardzero_test_data): Likewise.
37306         (fma_downward_test_data): Likewise.
37307         (fma_upward_test_data): Likewise.
37308         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37309         mpc_mode.
37310         (rounding_modes): Add values for new field.
37311         (func_calc_method): Add value mpfr_fff_f.
37312         (func_calc_desc): Add mpfr_fff_f union field.
37313         (test_function): Add field exact_args.
37314         (FUNC): Add macro argument EXACT_ARGS.
37315         (FUNC_mpfr_f_f): Update call to FUNC.
37316         (FUNC_mpfr_f_f): Likewise.
37317         (FUNC_mpfr_ff_f): Likewise.
37318         (FUNC_mpfr_if_f): Likewise.
37319         (FUNC_mpc_c_f): Likewise.
37320         (FUNC_mpc_c_c): Likewise.
37321         (test_functions): Add fma.  Update calls to FUNC.
37322         (handle_input_arg): Add argument exact_args.
37323         (add_test): Update call to handle_input_arg.
37324         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37325         (output_for_one_input_case): Update call to calc_generic_results.
37326         Recalculate exact zero results in each rounding mode.
37327
37328         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37329         non-negative before setting low bit.
37330         * math/auto-libm-test-in: Mark one asin test possibly having
37331         spurious underflow.
37332         * math/auto-libm-test-out: Regenerated.
37333         * sysdeps/i386/fpu/libm-test-ulps: Update.
37334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37335
37336 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37337
37338         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37339         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37340         ports/sysdeps/unix/sysv/linux/microblaze.
37341         * README: Add missing listing for microblaze*-*-linux-gnu.
37342
37343 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37344
37345         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37346         duplicate code
37347
37348 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37349
37350         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37351         * sysdeps/unix/sysv/linux/ia64: Move directory from
37352         ports/sysdeps/unix/sysv/linux/ia64.
37353         * README: Update listing for ia64-*-linux-gnu.
37354
37355 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37356             Joseph Myers  <joseph@codesourcery.com>
37357
37358         * Makeconfig (test-name): New variable.
37359         (evaluate-test): Likewise.
37360         * Makerules (do-test-clean): Remove .test-result files.
37361         (common-mostlyclean): Likewise.
37362         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37363         * scripts/evaluate-test.sh: New file.
37364
37365 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37366
37367         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37368         separate $(objpfx)tst-fopenloc-cmp.out and
37369         $(objpfx)tst-fopenloc-mem.out targets.
37370         (tests): Update dependencies.
37371         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37372         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37373         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37374         (tst-rxspencer-no-utf8-ARGS): New variable.
37375         (tst-rxspencer-no-utf8-ENV): Likewise.
37376         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37377         instead of $(objpfx)tst-rxspencer-mem.
37378         ($(objpfx)tst-rxspencer-mem): Change target to
37379         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37380         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37381         * posix/tst-rxspencer-no-utf8.c: New file.
37382
37383         * elf/Makefile ($(objpfx)order.out): Remove rule.
37384         [$(run-built-tests) = yes] (tests): Depend on
37385         $(objpfx)order-cmp.out.
37386         ($(objpfx)order-cmp.out): New rule.
37387         [$(run-built-tests) = yes] (tests): Depend on
37388         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37389         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37390         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37391         $(objpfx)tst-array5-static-cmp.out.
37392         ($(objpfx)tst-array1.out): Remove rule.
37393         ($(objpfx)tst-array1-cmp.out): New rule.
37394         ($(objpfx)tst-array1-static.out): Remove rule.
37395         ($(objpfx)tst-array1-static-cmp.out): New rule.
37396         ($(objpfx)tst-array2.out): Remove rule.
37397         ($(objpfx)tst-array2-cmp.out): New rule.
37398         ($(objpfx)tst-array3.out): Remove rule.
37399         ($(objpfx)tst-array3-cmp.out): New rule.
37400         ($(objpfx)tst-array4.out): Remove rule.
37401         ($(objpfx)tst-array4-cmp.out): New rule.
37402         ($(objpfx)tst-array5.out): Remove rule.
37403         ($(objpfx)tst-array5-cmp.out): New rule.
37404         ($(objpfx)tst-array5-static.out): Remove rule.
37405         ($(objpfx)tst-array5-static-cmp.out): New rule.
37406         [$(run-built-tests) = yes] (tests): Depend on
37407         $(objpfx)order2-cmp.out.
37408         ($(objpfx)order2.out): Remove rule.
37409         ($(objpfx)order2-cmp.out): New rule.
37410         ($(objpfx)tst-initorder.out): Remove rule.
37411         [$(run-built-tests) = yes] (tests): Depend on
37412         $(objpfx)tst-initorder-cmp.out.
37413         ($(objpfx)tst-initorder-cmp.out): New rule.
37414         ($(objpfx)tst-initorder2.out): Remove rule.
37415         [$(run-built-tests) = yes] (tests): Depend on
37416         $(objpfx)tst-initorder2-cmp.out.
37417         ($(objpfx)tst-initorder2-cmp.out): New rule.
37418         [$(run-built-tests) = yes] (tests): Depend on
37419         $(objpfx)tst-unused-dep-cmp.out.
37420         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37421         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37422         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37423         on $(objpfx)tst-setvbuf1-cmp.out.
37424         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37425         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37426         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37427         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37428         ($(objpfx)tst-svc.out): Remove rule.
37429         ($(objpfx)tst-svc-cmp.out): New rule.
37430
37431 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37432
37433         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37434         * ctype/ctype.h [__USE_MISC]: Likewise.
37435         * dirent/dirent.h [__USE_MISC]: Likewise.
37436         * grp/grp.h [__USE_MISC]: Likewise.
37437         * io/fcntl.h [__USE_MISC]: Likewise.
37438         * io/sys/stat.h [__USE_MISC]: Likewise.
37439         * libio/stdio.h [__USE_MISC]: Likewise.
37440         * posix/unistd.h [__USE_MISC]: Likewise.
37441         * pwd/pwd.h [__USE_MISC]: Likewise.
37442         * stdlib.h [__USE_MISC]: Likewise.
37443         * string/bits/string2.h [__USE_MISC]: Likewise.
37444         * string/string.h [__USE_MISC]: Likewise.
37445         * time/time.h [__USE_MISC]: Likewise.
37446
37447 2014-02-13  Andreas Schwab  <schwab@suse.de>
37448
37449         [BZ #16574]
37450         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37451         second answer buffer if it was separately allocated.
37452
37453 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37454
37455         * sysdeps/mips/math-tests.h: Include <features.h>.
37456         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37457         (ROUNDING_TESTS_long_double): Do not define.
37458         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37459         (EXCEPTION_TESTS_long_double): Likewise.
37460         * sysdeps/mips/mips64/libm-test-ulps: Update.
37461
37462         * include/features.h (__USE_BSD): Remove macro definitions.
37463         (__USE_SVID): Likewise.
37464         (_BSD_SOURCE): Likewise.
37465         (_SVID_SOURCE): Likewise.
37466         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37467         from definition of _DEFAULT_SOURCE.
37468         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37469         [_DEFAULT_SOURCE].
37470         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37471         * bits/mman.h [__USE_BSD]: Likewise.
37472         * bits/termios.h [__USE_BSD]: Likewise.
37473         * bits/waitstatus.h [__USE_BSD]: Likewise.
37474         * ctype/ctype.h [__USE_SVID]: Likewise.
37475         * dirent/dirent.h [__USE_BSD]: Likewise.
37476         * grp/grp.h [__USE_SVID]: Likewise.
37477         [__USE_BSD]: Likewise.
37478         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37479         * io/fcntl.h [__USE_BSD]: Likewise.
37480         * io/ftw.h [__USE_BSD]: Likewise.
37481         * io/sys/stat.h [__USE_BSD]: Likewise.
37482         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37483         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37484         * libio/stdio.h [__USE_SVID]: Likewise.
37485         [__USE_BSD]: Likewise.
37486         * math/math.h [__USE_SVID]: Likewise.
37487         [__USE_BSD]: Likewise.
37488         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37489         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37490         * misc/search.h [__USE_SVID]: Likewise.
37491         * misc/sys/mman.h [__USE_BSD]: Likewise.
37492         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37493         * misc/sys/uio.h [__USE_BSD]: Likewise.
37494         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37495         * posix/glob.h [__USE_BSD]: Likewise.
37496         * posix/regex.h [__USE_BSD]: Likewise.
37497         * posix/sys/types.h [__USE_BSD]: Likewise.
37498         [__USE_SVID]: Likewise.
37499         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37500         * posix/sys/wait.h [__USE_BSD]: Likewise.
37501         [__USE_SVID]: Likewise.
37502         * posix/unistd.h [__USE_BSD]: Likewise.
37503         [__USE_SVID]: Likewise.
37504         * pwd/pwd.h [__USE_SVID]: Likewise.
37505         * resolv/netdb.h [__USE_BSD]: Likewise.
37506         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37507         * signal/signal.h [__USE_BSD]: Likewise.
37508         [__USE_SVID]: Likewise.
37509         * socket/sys/socket.h [__USE_BSD]: Likewise.
37510         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37511         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37512         [__USE_SVID]: Likewise.
37513         * string/bits/string2.h [__USE_BSD]: Likewise.
37514         [__USE_SVID]: Likewise.
37515         * string/bits/string3.h [__USE_BSD]: Likewise.
37516         * string/endian.h [__USE_BSD]: Likewise.
37517         * string/string.h [__USE_SVID]: Likewise.
37518         [__USE_BSD]: Likewise.
37519         * string/strings.h [__USE_BSD]: Likewise.
37520         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37521         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37522         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37523         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37524         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37525         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37526         Likewise.
37527         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37528         Likewise.
37529         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37530         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37531         Likewise.
37532         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37533         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37534         Likewise.
37535         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37536         Likewise.
37537         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37538         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37539         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37540         Likewise.
37541         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37542         Likewise.
37543         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37544         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37545         * termios/termios.h [__USE_BSD]: Likewise.
37546         * time/sys/time.h [__USE_BSD]: Likewise.
37547         * time/time.h [__USE_BSD]: Likewise.
37548         [__USE_SVID]: Likewise.
37549
37550         * Makefile (subdir_targets): Remove subdir_lint.out.
37551
37552         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37553         (do-tst-printf): Likewise.
37554         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37555         $(objpfx)tst-printf.out.
37556
37557         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37558
37559         * Makerules (check-abi-%): Change target to
37560         $(objpfx)check-abi-%.out.
37561         (check-abi target): Update dependencies.
37562         (check-abi-pattern variable): Redirect output of diff to $@.
37563         (check-abi variable): Likewise.
37564         * elf/Makefile (check-abi): Update dependencies.
37565
37566         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37567         unused.
37568         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37569         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37570         subnormal range.
37571         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37572         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37573         value has largest subnormal exponent.
37574         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37575         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37576         * sysdeps/aarch64/soft-fp/sfp-machine.h
37577         (_FP_TININESS_AFTER_ROUNDING): New macro.
37578         * sysdeps/alpha/soft-fp/sfp-machine.h
37579         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37580         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37581         Likewise.
37582         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37583         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37584         * sysdeps/mips/soft-fp/sfp-machine.h
37585         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37586         * sysdeps/powerpc/soft-fp/sfp-machine.h
37587         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37588         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37589         Likewise.
37590         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37591         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37592         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37593         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37594         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37595         Likewise.
37596
37597 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37598
37599         [BZ #16545]
37600         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37601         model 1.
37602
37603 2014-02-12  Richard Henderson  <rth@redhat.com>
37604
37605         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37606         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37607         * sysdeps/unix/sysv/linux/alpha: Move directory from
37608         ports/sysdeps/unix/sysv/linux/alpha.
37609         * README: Update listing for alpha-*-linux-gnu.
37610
37611 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37612
37613         * include/features.h: Update comment documenting feature test
37614         macros.
37615         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37616         _DEFAULT_SOURCE.
37617         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37618         (_SVID_SOURCE): Likewise.
37619         (_DEFAULT_SOURCE): Update description of default features.
37620         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37621         with _GNU_SOURCE.
37622         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37623         (S_ISVTX): Likewise.
37624         * manual/math.texi (Mathematical Constants): Likewise.
37625         * manual/signal.texi (Interrupted Primitives): Likewise.
37626         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37627         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37628         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37629         Don't refer to _SVID_SOURCE in warning text.
37630
37631         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37632
37633         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37634         already defined.
37635         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37636         * sysdeps/mips/dl-lookup.c: Remove.
37637         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37638
37639 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37640
37641         [BZ #16447]
37642         * math/auto-libm-test-in: Add testcase for expl.
37643         * math/auto-libm-test-out: Regenerate.
37644         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37645         calculation of unsafe.
37646         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37647
37648 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37649
37650         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37651         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37652         ports/sysdeps/unix/sysv/linux/aarch64.
37653         * README: Update listing for aarch64*-*-linux-gnu.
37654
37655 2014-02-11  Will Newton  <will.newton@linaro.org>
37656
37657         * manual/probes.texi (Mathematical Function Probes): Use
37658         "triggered" instead of "hit".
37659
37660         * manual/probes.texi (Internal Probes): Add documentation
37661         of setjmp, longjmp and longjmp_target probes.
37662
37663         * include/stap-probe.h: Add comment about probe argument
37664         format.
37665
37666         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37667         definition.  (tr_where, tr_freehook, tr_mallochook,
37668         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37669
37670 2014-02-11  David S. Miller  <davem@davemloft.net>
37671
37672         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37673         processing int_tests.
37674
37675 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37676
37677         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37678         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37679         * sysdeps/unix/sysv/linux/mips: Move directory from
37680         ports/sysdeps/unix/sysv/linux/mips.
37681         * README: Update listing for mips-*-linux-gnu and
37682         mips64-*-linux-gnu.
37683
37684 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37685
37686         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37687         * sysdeps/unix/sysv/linux/m68k: Move directory from
37688         ports/sysdeps/unix/sysv/linux/m68k.
37689         * README: Update listing for m68k-*-linux-gnu.
37690
37691 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37692
37693         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37694         * sysdeps/unix/sysv/linux/generic: Move directory from
37695         ports/sysdeps/unix/sysv/linux/generic.
37696         * sysdeps/unix/sysv/linux/tile: Move directory from
37697         ports/sysdeps/unix/sysv/linux/tile.
37698         * README: Update listing for tile*-*-linux-gnu.
37699
37700 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37701
37702         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37703         __builtin_expect.
37704         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37705         * catgets/open_catalog.c (__open_catalog): Likewise.
37706         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37707         * debug/confstr_chk.c: Likewise.
37708         * debug/fread_chk.c (__fread_chk): Likewise.
37709         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37710         * debug/getgroups_chk.c: Likewise.
37711         * debug/mbsnrtowcs_chk.c: Likewise.
37712         * debug/mbsrtowcs_chk.c: Likewise.
37713         * debug/mbstowcs_chk.c: Likewise.
37714         * debug/memcpy_chk.c: Likewise.
37715         * debug/memmove_chk.c: Likewise.
37716         * debug/mempcpy_chk.c: Likewise.
37717         * debug/memset_chk.c: Likewise.
37718         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37719         * debug/strcat_chk.c (__strcat_chk): Likewise.
37720         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37721         * debug/strncat_chk.c (__strncat_chk): Likewise.
37722         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37723         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37724         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37725         * debug/wcpncpy_chk.c: Likewise.
37726         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37727         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37728         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37729         * debug/wcsncpy_chk.c: Likewise.
37730         * debug/wcsnrtombs_chk.c: Likewise.
37731         * debug/wcsrtombs_chk.c: Likewise.
37732         * debug/wcstombs_chk.c: Likewise.
37733         * debug/wmemcpy_chk.c: Likewise.
37734         * debug/wmemmove_chk.c: Likewise.
37735         * debug/wmempcpy_chk.c: Likewise.
37736         * debug/wmemset_chk.c: Likewise.
37737         * dirent/scandirat.c (SCANDIRAT): Likewise.
37738         * dlfcn/dladdr1.c (dladdr1): Likewise.
37739         * dlfcn/dladdr.c (dladdr): Likewise.
37740         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37741         * dlfcn/dlerror.c (__dlerror): Likewise.
37742         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37743         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37744         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37745         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37746         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37747         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37748         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37749         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37750         Likewise.
37751         * elf/dl-conflict.c: Likewise.
37752         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37753         * elf/dl-dst.h: Likewise.
37754         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37755         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37756         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37757         * elf/dl-init.c (call_init, _dl_init): Likewise.
37758         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37759         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37760         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37761         Likewise.
37762         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37763         Likewise.
37764         * elf/dl-minimal.c (__libc_memalign): Likewise.
37765         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37766         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37767         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37768         * elf/dl-sym.c (do_sym): Likewise.
37769         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37770         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37771         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37772         * elf/dl-writev.h (_dl_writev): Likewise.
37773         * elf/ldconfig.c (search_dir): Likewise.
37774         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37775         (dl_main): Likewise.
37776         * elf/setup-vdso.h (setup_vdso): Likewise.
37777         * grp/compat-initgroups.c (compat_call): Likewise.
37778         * grp/fgetgrent.c (fgetgrent): Likewise.
37779         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37780         * grp/putgrent.c (putgrent): Likewise.
37781         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37782         Likewise.
37783         * hurd/hurdinit.c: Likewise.
37784         * iconvdata/8bit-gap.c (struct): Likewise.
37785         * iconvdata/ansi_x3.110.c : Likewise.
37786         * iconvdata/big5.c : Likewise.
37787         * iconvdata/big5hkscs.c : Likewise.
37788         * iconvdata/cp1255.c: Likewise.
37789         * iconvdata/cp1258.c : Likewise.
37790         * iconvdata/cp932.c : Likewise.
37791         * iconvdata/euc-cn.c: Likewise.
37792         * iconvdata/euc-jisx0213.c : Likewise.
37793         * iconvdata/euc-jp.c: Likewise.
37794         * iconvdata/euc-jp-ms.c : Likewise.
37795         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37796         * iconvdata/gb18030.c : Likewise.
37797         * iconvdata/gbbig5.c (const): Likewise.
37798         * iconvdata/gbgbk.c: Likewise.
37799         * iconvdata/gbk.c : Likewise.
37800         * iconvdata/ibm1364.c : Likewise.
37801         * iconvdata/ibm930.c : Likewise.
37802         * iconvdata/ibm932.c: Likewise.
37803         * iconvdata/ibm933.c : Likewise.
37804         * iconvdata/ibm935.c : Likewise.
37805         * iconvdata/ibm937.c : Likewise.
37806         * iconvdata/ibm939.c : Likewise.
37807         * iconvdata/ibm943.c: Likewise.
37808         * iconvdata/iso_11548-1.c: Likewise.
37809         * iconvdata/iso-2022-cn.c : Likewise.
37810         * iconvdata/iso-2022-cn-ext.c : Likewise.
37811         * iconvdata/iso-2022-jp-3.c: Likewise.
37812         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37813         * iconvdata/iso-2022-kr.c : Likewise.
37814         * iconvdata/iso646.c (gconv_end): Likewise.
37815         * iconvdata/iso_6937-2.c : Likewise.
37816         * iconvdata/iso_6937.c : Likewise.
37817         * iconvdata/iso8859-1.c: Likewise.
37818         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37819         * iconvdata/shift_jisx0213.c : Likewise.
37820         * iconvdata/sjis.c : Likewise.
37821         * iconvdata/t.61.c : Likewise.
37822         * iconvdata/tcvn5712-1.c : Likewise.
37823         * iconvdata/tscii.c: Likewise.
37824         * iconvdata/uhc.c : Likewise.
37825         * iconvdata/unicode.c (gconv_end): Likewise.
37826         * iconvdata/utf-16.c (gconv_end): Likewise.
37827         * iconvdata/utf-32.c (gconv_end): Likewise.
37828         * iconvdata/utf-7.c (base64): Likewise.
37829         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37830         * iconv/gconv_close.c (__gconv_close): Likewise.
37831         * iconv/gconv_open.c (__gconv_open): Likewise.
37832         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37833         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37834         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37835         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37836         (ucs4le_internal_loop_single): Likewise.
37837         * iconv/iconv.c (iconv): Likewise.
37838         * iconv/iconv_close.c: Likewise.
37839         * iconv/loop.c (SINGLE): Likewise.
37840         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37841         * include/atomic.h: Likewise.
37842         * inet/inet6_option.c (option_alloc): Likewise.
37843         * intl/bindtextdom.c (set_binding_values): Likewise.
37844         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37845         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37846         * intl/localealias.c (read_alias_file): Likewise.
37847         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37848         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37849         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37850         * libio/fmemopen.c (fmemopen): Likewise.
37851         * libio/iofgets.c (_IO_fgets): Likewise.
37852         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37853         * libio/iofgetws.c (fgetws): Likewise.
37854         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37855         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37856         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37857         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37858         * locale/findlocale.c (_nl_find_locale): Likewise.
37859         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37860         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37861         Likewise.
37862         * locale/setlocale.c (setlocale): Likewise.
37863         * login/programs/pt_chown.c (main): Likewise.
37864         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37865         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37866         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37867         (mmap, mmap64, mremap, munmap): Likewise.
37868         * math/e_exp2l.c: Likewise.
37869         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37870         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37871         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37872         * math/s_catan.c (__catan): Likewise.
37873         * math/s_catanf.c (__catanf): Likewise.
37874         * math/s_catanh.c (__catanh): Likewise.
37875         * math/s_catanhf.c (__catanhf): Likewise.
37876         * math/s_catanhl.c (__catanhl): Likewise.
37877         * math/s_catanl.c (__catanl): Likewise.
37878         * math/s_ccosh.c (__ccosh): Likewise.
37879         * math/s_ccoshf.c (__ccoshf): Likewise.
37880         * math/s_ccoshl.c (__ccoshl): Likewise.
37881         * math/s_cexp.c (__cexp): Likewise.
37882         * math/s_cexpf.c (__cexpf): Likewise.
37883         * math/s_cexpl.c (__cexpl): Likewise.
37884         * math/s_clog10.c (__clog10): Likewise.
37885         * math/s_clog10f.c (__clog10f): Likewise.
37886         * math/s_clog10l.c (__clog10l): Likewise.
37887         * math/s_clog.c (__clog): Likewise.
37888         * math/s_clogf.c (__clogf): Likewise.
37889         * math/s_clogl.c (__clogl): Likewise.
37890         * math/s_csin.c (__csin): Likewise.
37891         * math/s_csinf.c (__csinf): Likewise.
37892         * math/s_csinh.c (__csinh): Likewise.
37893         * math/s_csinhf.c (__csinhf): Likewise.
37894         * math/s_csinhl.c (__csinhl): Likewise.
37895         * math/s_csinl.c (__csinl): Likewise.
37896         * math/s_csqrt.c (__csqrt): Likewise.
37897         * math/s_csqrtf.c (__csqrtf): Likewise.
37898         * math/s_csqrtl.c (__csqrtl): Likewise.
37899         * math/s_ctan.c (__ctan): Likewise.
37900         * math/s_ctanf.c (__ctanf): Likewise.
37901         * math/s_ctanh.c (__ctanh): Likewise.
37902         * math/s_ctanhf.c (__ctanhf): Likewise.
37903         * math/s_ctanhl.c (__ctanhl): Likewise.
37904         * math/s_ctanl.c (__ctanl): Likewise.
37905         * math/w_pow.c: Likewise.
37906         * math/w_powf.c: Likewise.
37907         * math/w_powl.c: Likewise.
37908         * math/w_scalb.c (sysv_scalb): Likewise.
37909         * math/w_scalbf.c (sysv_scalbf): Likewise.
37910         * math/w_scalbl.c (sysv_scalbl): Likewise.
37911         * misc/error.c (error_tail): Likewise.
37912         * misc/pselect.c (__pselect): Likewise.
37913         * nis/nis_callback.c (__nis_create_callback): Likewise.
37914         * nis/nis_call.c (__nisfind_server): Likewise.
37915         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37916         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37917         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37918         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37919         * nis/nis_lookup.c (nis_lookup): Likewise.
37920         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37921         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37922         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37923         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37924         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37925         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37926         * nis/nss_compat/compat-initgroups.c (add_group)
37927         (internal_getgrent_r): Likewise.
37928         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37929         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37930         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37931         (internal_getspnam_r): Likewise.
37932         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37933         (_nss_nis_getaliasbyname_r): Likewise.
37934         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37935         (_nss_nis_getntohost_r): Likewise.
37936         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37937         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37938         (_nss_nis_getgrgid_r): Likewise.
37939         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37940         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37941         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37942         (_nss_nis_gethostbyname4_r): Likewise.
37943         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37944         (initgroups_netid): Likewise.
37945         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37946         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37947         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37948         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37949         (_nss_nis_getprotobynumber_r): Likewise.
37950         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37951         (_nss_nis_getsecretkey): Likewise.
37952         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37953         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37954         (_nss_nis_getpwuid_r): Likewise.
37955         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37956         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37957         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37958         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37959         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37960         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37961         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37962         Likewise.
37963         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37964         (_nss_nisplus_getntohost_r): Likewise.
37965         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37966         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37967         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37968         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37969         Likewise.
37970         * nis/nss_nisplus/nisplus-initgroups.c
37971         (_nss_nisplus_initgroups_dyn): Likewise.
37972         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37973         (_nss_nisplus_getnetbyaddr_r): Likewise.
37974         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37975         (_nss_nisplus_getprotobynumber_r): Likewise.
37976         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37977         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37978         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37979         Likewise.
37980         * nis/nss_nisplus/nisplus-service.c
37981         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37982         (_nss_nisplus_getservbyport_r): Likewise.
37983         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37984         (_nss_nisplus_getspnam_r): Likewise.
37985         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37986         Likewise.
37987         * nscd/aicache.c (addhstaiX): Likewise.
37988         * nscd/cache.c (cache_search, prune_cache): Likewise.
37989         * nscd/connections.c (register_traced_file, send_ro_fd)
37990         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37991         (main_loop_epoll): Likewise.
37992         * nscd/grpcache.c (addgrbyX): Likewise.
37993         * nscd/hstcache.c (addhstbyX): Likewise.
37994         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37995         * nscd/mem.c (gc, mempool_alloc): Likewise.
37996         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37997         (addinnetgrX): Likewise.
37998         * nscd/nscd-client.h (__nscd_acquire_maplock)
37999         (__nscd_drop_map_ref): Likewise.
38000         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38001         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38002         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38003         Likewise.
38004         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38005         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38006         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38007         (__nscd_get_map_ref): Likewise.
38008         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38009         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38010         Likewise.
38011         * nscd/pwdcache.c (addpwbyX): Likewise.
38012         * nscd/selinux.c (preserve_capabilities): Likewise.
38013         * nscd/servicescache.c (addservbyX): Likewise.
38014         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38015         * posix/fnmatch.c (fnmatch): Likewise.
38016         * posix/getopt.c (_getopt_internal_r): Likewise.
38017         * posix/glob.c (glob, glob_in_dir): Likewise.
38018         * posix/wordexp.c (exec_comm_child): Likewise.
38019         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38020         (getanswer_r, gaih_getanswer_slice): Likewise.
38021         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38022         * resolv/res_init.c: Likewise.
38023         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38024         * resolv/res_query.c (__libc_res_nquery): Likewise.
38025         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38026         Likewise.
38027         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38028         * stdio-common/perror.c (perror): Likewise.
38029         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38030         * stdio-common/tmpnam.c (tmpnam): Likewise.
38031         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38032         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38033         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38034         Likewise.
38035         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38036         * stdlib/putenv.c (putenv): Likewise.
38037         * stdlib/setenv.c (__add_to_environ): Likewise.
38038         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38039         * stdlib/strtol_l.c (INTERNAL): Likewise.
38040         * string/memmem.c (memmem): Likewise.
38041         * string/strerror.c (strerror): Likewise.
38042         * string/strnlen.c (__strnlen): Likewise.
38043         * string/test-memmem.c (simple_memmem): Likewise.
38044         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38045         * sunrpc/pm_getport.c (__get_socket): Likewise.
38046         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38047         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38048         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38049         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38050         Likewise.
38051         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38052         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38053         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38054         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38055         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38056         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38057         Likewise.
38058         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38059         Likewise.
38060         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38061         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38062         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38063         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38064         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38065         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38066         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38067         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38068         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38069         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38070         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38071         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38072         Likewise.
38073         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38074         Likewise.
38075         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38076         Likewise.
38077         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38078         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38079         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38080         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38081         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38082         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38083         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38084         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38085         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38086         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38087         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38088         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38089         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38090         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38091         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38092         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38093         Likewise.
38094         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38095         Likewise.
38096         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38097         Likewise.
38098         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38099         Likewise.
38100         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38101         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38102         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38103         Likewise.
38104         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38105         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38106         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38107         * sysdeps/posix/sleep.c: Likewise.
38108         * sysdeps/posix/tempname.c: Likewise.
38109         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38110         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38111         Likewise.
38112         * sysdeps/powerpc/powerpc32/dl-machine.h
38113         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38114         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38115         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38116         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38117         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38118         Likewise.
38119         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38120         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38121         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38122         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38123         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38124         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38125         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38126         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38127         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38128         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38129         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38130         (elf_machine_lazy_rel): Likewise.
38131         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38132         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38133         (elf_machine_lazy_rel): Likewise.
38134         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38135         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38136         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38137         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38138         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38139         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38140         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38141         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38142         Likewise.
38143         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38144         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38145         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38146         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38147         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38148         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38149         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38150         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38151         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38152         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38153         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38154         Likewise.
38155         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38156         (__posix_fallocate64_l64): Likewise.
38157         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38158         (posix_fallocate): Likewise.
38159         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38160         Likewise.
38161         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38162         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38163         (getifaddrs_internal): Likewise.
38164         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38165         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38166         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38167         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38168         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38169         (__posix_fallocate64_l64): Likewise.
38170         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38171         Likewise.
38172         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38173         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38174         (__get_clockfreq): Likewise.
38175         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38176         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38177         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38178         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38179         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38180         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38181         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38182         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38183         Likewise.
38184         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38185         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38186         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38187         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38188         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38189         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38190         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38191         Likewise.
38192         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38193         (posix_fallocate): Likewise.
38194         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38195         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38196         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38197         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38198         (elf_machine_rela, elf_machine_rela_relative)
38199         (elf_machine_lazy_rel): Likewise.
38200         * time/asctime.c (asctime_internal): Likewise.
38201         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38202         * time/tzset.c (__tzset_parse_tz): Likewise.
38203         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38204         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38205         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38206         * wcsmbs/wcsmbsload.h: Likewise.
38207
38208         [BZ #15894]
38209         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38210
38211         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38212         (arena_get2): Remove THREAD_STATS conditionals.
38213         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38214         (__malloc_stats, int): Likewise.
38215
38216 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38217
38218         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38219         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38220
38221         * manual/setjmp.texi: Fix typos/grammar errors.
38222
38223         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38224         Only return early when n is <= 0.  Delete unused return statement.
38225
38226         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38227         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38228         * debug/tst-longjmp_chk3.c: New file.
38229
38230         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38231         (test_main): Replace code with set_fortify_handler call.
38232         * debug/test-strcpy_chk.c: Likewise.
38233         * debug/tst-chk1.c: Likewise.
38234         * debug/tst-longjmp_chk.c: Likewise.
38235         * test-skeleton.c: Include fcntl.h & paths.h
38236         (set_fortify_handler): Define.
38237
38238         * debug/tst-longjmp_chk.c: Add header comment and include
38239         ../test-skeleton.c.
38240         (do_test): Mark static.
38241         (TEST_FUNCTION): Define.
38242
38243         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38244         (IP_PMTUDISC_INTERFACE): Likewise.
38245         (IP_MULTICAST_IF): Likewise.
38246         (IP_MULTICAST_TTL): Likewise.
38247         (IP_MULTICAST_LOOP): Likewise.
38248         (IP_ADD_MEMBERSHIP): Likewise.
38249         (IP_DROP_MEMBERSHIP): Likewise.
38250         (IP_UNBLOCK_SOURCE): Likewise.
38251         (IP_BLOCK_SOURCE): Likewise.
38252         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38253         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38254         (IP_MSFILTER): Likewise.
38255         (MCAST_JOIN_GROUP): Likewise.
38256         (MCAST_BLOCK_SOURCE): Likewise.
38257         (MCAST_UNBLOCK_SOURCE): Likewise.
38258         (MCAST_LEAVE_GROUP): Likewise.
38259         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38260         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38261         (MCAST_MSFILTER): Likewise.
38262         (IP_MULTICAST_ALL): Likewise.
38263         (IP_UNICAST_IF): Likewise.
38264
38265         * timezone/Makefile: Delete $(have-ksh) check.
38266         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38267         * timezone/tzselect.ksh: Add +x mode bits.
38268
38269         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38270         (ANON_INODE_FS_MAGIC): Likewise.
38271         (BDEVFS_MAGIC): Likewise.
38272         (BINFMTFS_MAGIC): Likewise.
38273         (BTRFS_TEST_MAGIC): Likewise.
38274         (CRAMFS_MAGIC_WEND): Likewise.
38275         (DEBUGFS_MAGIC): Likewise.
38276         (ECRYPTFS_SUPER_MAGIC): Likewise.
38277         (EXT3_SUPER_MAGIC): Likewise.
38278         (EXT4_SUPER_MAGIC): Likewise.
38279         (FUTEXFS_SUPER_MAGIC): Likewise.
38280         (HOSTFS_SUPER_MAGIC): Likewise.
38281         (HUGETLBFS_MAGIC): Likewise.
38282         (MINIX3_SUPER_MAGIC): Likewise.
38283         (MTD_INODE_FS_MAGIC): Likewise.
38284         (NILFS_SUPER_MAGIC): Likewise.
38285         (OPENPROM_SUPER_MAGIC): Likewise.
38286         (PIPEFS_MAGIC): Likewise.
38287         (PSTOREFS_MAGIC): Likewise.
38288         (QNX6_SUPER_MAGIC): Likewise.
38289         (RAMFS_MAGIC): Likewise.
38290         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38291         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38292         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38293         (SECURITYFS_MAGIC): Likewise.
38294         (SELINUX_MAGIC): Likewise.
38295         (SMACK_MAGIC): Likewise.
38296         (SOCKFS_MAGIC): Likewise.
38297         (SQUASHFS_MAGIC): Likewise.
38298         (STACK_END_MAGIC): Likewise.
38299         (TMPFS_MAGIC): Likewise.
38300         (USBDEVICE_SUPER_MAGIC): Likewise.
38301         (V9FS_MAGIC): Likewise.
38302         (XENFS_SUPER_MAGIC): Likewise.
38303         (CRAMFS_MAGIC): Fix typo in comment.
38304         (EXT2_SUPER_MAGIC): Update comment.
38305         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38306
38307 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38308
38309         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38310         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38311         * sysdeps/unix/sysv/linux/arm: Move directory from
38312         ports/sysdeps/unix/sysv/linux/arm.
38313         * README: Update listing for arm-*-linux-gnueabi.
38314
38315         * README: Remove mention of am33.
38316
38317 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38318
38319         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38320         than the comma operator, to avoid "rhs of comma has no effect"
38321         compiler warnings.
38322         (__sigfillset, __sigandset, __sigorset): Likewise.
38323         * include/signal.h (__sigemptyset): Likewise.
38324         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38325
38326 2014-02-07  Allan McRae  <allan@archlinux.org>
38327
38328         * version.h (RELEASE): Set to "development".
38329         (VERSION): Set to "2.19.90"
38330         * NEWS: Add 2.20 section.
38331
38332 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38333
38334         [BZ #16529]
38335         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38336
38337 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38338
38339         * manual/contrib.texi: Update entry for Carlos O'Donell,
38340         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38341
38342 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38343
38344         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38345
38346         * sysdeps/unix/sysv/linux/kernel-features.h
38347         [__LINUX_KERNEL_VERSION >= 0x020621]
38348         (__ASSUME_PROC_PID_TASK_COMM): Define.
38349
38350 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38351
38352         [BZ #16398]
38353         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38354         conversion when destination buffer does not have enough space.
38355         * libio/tst-ftell-partial-wide.c: New test case.
38356         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38357
38358         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38359         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38360         Leonard and Allan McRae.
38361
38362 2014-02-04  David S. Miller  <davem@davemloft.net>
38363
38364         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38365         32-bit.
38366
38367 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38368
38369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38370         New file
38371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38372         New file
38373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38374         New file.
38375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38376         New file.
38377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38378         New file.
38379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38380         New file.
38381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38382         New file.
38383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38384         New file.
38385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38386         New file.
38387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38388         New file.
38389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38390         New file.
38391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38392         New file.
38393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38394         New file.
38395
38396 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38397
38398         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38399         * shlib-versions: Likewise.
38400
38401 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38402             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38403
38404         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38405         (abilist-pattern): New variable, set to %-le.abilist.
38406
38407         * Makerules (abilist-pattern): New variable.
38408         (vpath): Use $(abilist-pattern) in place of %.abilist.
38409         (check-abi-% pattern rule): Likewise.
38410         (check-abi, update-abi): Likewise.
38411
38412 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38413
38414         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38415
38416 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38417
38418         * manual/startup.texi: Add next, previous, and top entries for
38419         the `Program Arguments' and `Environment Variables' nodes.
38420
38421 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38422
38423         * manual/macros.texi: Add comments before MTASC-safety macros.
38424
38425         * manual/users.texi: Document MTASC-safety properties.
38426
38427         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38428         (pthread_getspecific, pthread_setspecific): Format with
38429         @deftypefun, and add @safety note.
38430         * manual/signal.texi: Move comments that analyze the above
38431         functions to their home place.
38432
38433 2014-02-03  Allan McRae  <allan@archlinux.org>
38434
38435         * po/sl.po: Update Slovenian translation from translation project.
38436
38437 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38438
38439         * manual/time.texi (timegm): Add missing blank after @c.
38440         Reported by Joseph Myers <joseph@codesourcery.com>.
38441
38442 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38443
38444         * manual/check-safety.sh: New.
38445         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38446
38447         * manual/terminal.texi: Document MTASC-safety properties.
38448
38449         * manual/filesys.texi: Document MTASC-safety properties.
38450
38451         * manual/errno.texi: Document MTASC-safety properties.
38452
38453         * manual/intro.texi: Document safety identifiers and
38454         conditionals.
38455
38456         * manual/string.texi (wcstok): Fix prototype.
38457         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38458
38459         * manual/time.texi: Document MTASC-safety properties.
38460
38461         * manual/string.texi: Document MTASC-safety properties.
38462
38463         * manual/threads.texi: Document MTASC-safety properties.
38464
38465         * manual/stdio.texi: Document MTASC-safety properties.
38466
38467         * manual/syslog.texi: Document MTASC-safety properties.
38468
38469         * manual/sysinfo.texi: Document MTASC-safety properties.
38470
38471         * manual/startup.texi: Document MTASC-safety properties.
38472
38473         * manual/socket.texi: Document MTASC-safety properties.
38474
38475         * manual/signal.texi: Document MTASC-safety properties.
38476
38477 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38478
38479         * manual/setjmp.texi: Document MTASC-safety properties.
38480
38481         * manual/search.texi: Document MTASC-safety properties.
38482
38483         * manual/resource.texi: Document MTASC-safety properties.
38484
38485         * manual/process.texi: Document MTASC-safety properties.
38486
38487         * manual/platform.texi: Document MTASC-safety properties.
38488
38489         * manual/pipe.texi: Document MTASC-safety properties.
38490
38491         * manual/pattern.texi: Document MTASC-safety properties.
38492
38493         * manual/message.texi: Document MTASC-safety properties.
38494
38495         [BZ #12751]
38496         * manual/memory.texi: Document MTASC-safety properties.
38497
38498         * manual/math.texi: Document MTASC-safety properties.
38499
38500         * manual/locale.texi: Document MTASC-safety properties.
38501
38502         * manual/llio.texi: Document MTASC-safety properties.
38503
38504         * manual/libdl.texi: New.
38505
38506         * manual/lang.texi: Document MTASC-safety properties.
38507
38508         * manual/job.texi: Document MTASC-safety properties.
38509
38510         * manual/getopt.texi: Document MTASC-safety properties.
38511
38512         * manual/ctype.texi: Document MTASC-safety properties.
38513
38514 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38515
38516         [BZ #16046]
38517         * csu/libc-tls.c (static_map): Remove variable.
38518         (__libc_setup_tls): Use main executable's link map for TLS data.
38519         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38520         casing for LM_ID_BASE and GL(dl_nns).
38521         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38522         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38523         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38524         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38525         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38526         member.
38527         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38528         l_phnum members.
38529
38530 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38531
38532         * manual/debug.texi: Document MTASC-safety properties.
38533
38534 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38535
38536         [BZ #16510]
38537         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38538         of __x86_64__ when disabling x87 inline functions.
38539
38540 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38541
38542         * manual/charset.texi: Document MTASC-safety properties.
38543
38544         * manual/crypt.texi: Document MTASC-safety properties.
38545
38546         * manual/conf.texi: Document MTASC-safety properties.
38547
38548         * manual/arith.texi: Document MTASC-safety properties.
38549
38550         * manual/argp.texi: Document MTASC-safety properties.
38551
38552         * manual/macros.texi: Introduce macros to document multi
38553         thread, asynchronous signal and asynchronous cancellation
38554         safety properties.
38555         * manual/intro.texi: Introduce the properties themselves.
38556
38557 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38558
38559         * sysdeps/sh/sh4/Makefile: New file.
38560
38561 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38562
38563         * math/gen-libm-test.pl ($srcdir): New variable.
38564         ($auto_input): Use it.
38565
38566 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38567
38568         [BZ #16506]
38569         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38570         access beyond array bounds when parsing netgroups file.
38571
38572         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38573         the old buffer before realloc.
38574
38575 2014-01-27  Allan McRae  <allan@archlinux.org>
38576
38577         * po/fr.po: Update French translation from translation project.
38578
38579 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38580
38581         * sysdeps/sh/libm-test-ulps: Regenerate.
38582
38583 2014-01-24  David S. Miller  <davem@davemloft.net>
38584
38585         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38586
38587 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38588
38589         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38590         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38591
38592 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38593
38594         [BZ #16474]
38595         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38596         string pointers after reallocation.
38597
38598 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38599
38600         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38601         __SH4A__ instead of __SH_FPU_ANY__.
38602
38603 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38604
38605         * sysdeps/sh/fpu_control.h: New file.
38606         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38607         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38608         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38609         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38610         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38611         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38612         * sysdeps/sh/sys/ucontext.h: Remove.
38613         * sysdeps/sh/sys: Remove directory.
38614
38615 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38616
38617         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38618         s390/sys/ucontext.h.
38619         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38620         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38621
38622 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38623
38624         [BZ #15605]
38625         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38626
38627 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38628
38629         [BZ#16431]
38630         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38631         Adjust the vDSO correctly for internal calls.
38632         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38633
38634 2014-01-20  Allan McRae  <allan@archlinux.org>
38635
38636         * po/ca.po: Update Catalan translation from translation project.
38637
38638 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38639
38640         * sysdeps/s390/sotruss-lib.c: New file.
38641
38642 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38643
38644         [BZ#16430]
38645         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38646         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38647         local calls issues by not having a PLT stub required for IFUNC calls.
38648         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38649
38650 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38651
38652         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38653         * math/test-fpucw-static.c: Likewise.
38654
38655 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38656
38657         [BZ #16453]
38658         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38659
38660 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38661
38662         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38663         implementation for powerpc.
38664
38665 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38666
38667         [BZ #14782]
38668         * sysdeps/posix/system.c (__libc_system): Do not enable
38669         asynchronous cancellation.
38670
38671 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38672
38673         [BZ #16427]
38674         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38675         handling only for numbers special also in the IEEE case.
38676
38677 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38678
38679         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38680
38681 2014-01-11  Allan McRae  <allan@archlinux.org>
38682
38683         * po/bg.po: Update Bulgarian translation from translation project.
38684
38685         * po/de.po: Update German translation from translation project.
38686
38687 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38688
38689         * sysdeps/generic/gcc-compat.h: New file.
38690
38691 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38692
38693         * benchtests/asin-inputs: Correct slow inputs.
38694         * benchtests/acos-inputs: Likewise.
38695
38696 2014-01-10  Allan McRae  <allan@archlinux.org>
38697
38698         * po:sv.po: Update Swedish translation from translation project.
38699
38700         * po/vi.po: Update Vietnamese translation from translation project.
38701
38702         * po/eo.po: Update Esperanto translation from translation project.
38703
38704         * po/cs.po: Update Czech translation from translation project.
38705
38706         * po/nl.po: Update Dutch translation from translation project.
38707
38708         * po/pl.po: Update Polish translation from translation project.
38709
38710         * po/ru.po: Update Russian translation from translation project.
38711
38712         * po/uk.po: Update Ukrainian translation from translation project.
38713
38714 2014-01-08  Brooks Moses  <bmoses@google.com>
38715
38716         * elf/dl-load.c: Fix comment typo.
38717
38718 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38719
38720         * po/header.pot: Rename to...
38721         * po/pot.header: ... this.
38722         * po/Makefile: Use pot.header.
38723
38724 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38725             Maxim Kuvyrkov  <maxim@kugelworks.com>
38726
38727         [BZ #16394]
38728         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38729         SRC and DEST against LEN.
38730
38731 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38732
38733         [BZ #16414]
38734         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38735         implementation.
38736         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38737
38738 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38739
38740         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38741
38742 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38743
38744         [BZ #16408]
38745         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38746         for large positive arguments.
38747
38748 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38749
38750         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38751
38752         * math/auto-libm-test-in: Mark various tests with
38753         xfail-rounding:ldbl-128ibm.
38754         * math/auto-libm-test-out: Regenerated.
38755
38756         [BZ #16407]
38757         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38758         Increase overflow threshold.
38759
38760 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38761
38762         [BZ #14286]
38763         * stdio-common/vfprintf.c: Check for integer overflow.
38764
38765 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38766
38767         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38768         the first argument and return value of __tls_get_addr_internal.
38769
38770 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38771
38772         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38773         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38774
38775 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38776
38777         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38778         * sysdeps/s390/rtld-global-offsets.sym: New file.
38779         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38780         GLIBC_2.19 symbol.
38781         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38782         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38783         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38784         ... this.
38785         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38786         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38787         ... this.
38788         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38789         Regenerate.
38790         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38791         Regenerate.
38792         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38793         halfs of GPRs for high_gprs contexts.
38794         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38795         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38796         field.
38797         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38798         uc_flags field.
38799         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38800         64 bit versions:
38801         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38802         for high GPRs (uc_high_gprs) and for future extensions
38803         (__reserved).
38804         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38805         for future extensions (__reserved).
38806         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38807         64 bit versions:
38808         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38809         SC_HIGHGPRS offset definition.
38810         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38811         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38812
38813         * Versions.def: Add GLIBC_2.19 for libpthread.
38814         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38815         siglongjmp for libpthread with GLIBC_2.19 symver.
38816         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38817         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38818         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38819         * sysdeps/s390/__longjmp.c: New file.
38820         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38821         * sysdeps/s390/longjmp.c: New file.
38822         * sysdeps/s390/setjmp.S: New file.
38823         * sysdeps/s390/sigjmp.S: New file.
38824         * sysdeps/s390/v1-longjmp.c: New file.
38825         * sysdeps/s390/v1-setjmp.h: New file.
38826         * sysdeps/s390/v1-sigjmp.c: New file.
38827         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38828         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38829         GLIBC_2.19 version.
38830         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38831         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38832         versioned symbols for ____longjmp_chk.
38833         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38834         Likewise.
38835         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38836         Regenerate.
38837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38838         Regenerate.
38839         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38840         Regenerate.
38841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38842         Regenerate.
38843         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38844         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38845         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38846         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38847         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38848         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38849         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38850         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38851         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38852         * sysdeps/s390/rtld-__longjmp.c: New file.
38853         * sysdeps/s390/rtld-setjmp.S: New file.
38854
38855 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38856
38857         [BZ #16400]
38858         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38859         Return -__logl (x) for small positive arguments without evaluating
38860         a polynomial.
38861
38862 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38863
38864         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38865         Rename to ...
38866         (__ptrace_peeksiginfo_args): ... this.
38867         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38868         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38869         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38870
38871 2014-01-06  Allan McRae  <allan@archlinux.org>
38872
38873         * inet/netinet/in.h: Fix typo in comment.
38874
38875 2014-01-05  Andreas Jaeger  <aj@suse.de>
38876
38877         * sysdeps/i386/fpu/libm-test-ulps: Update.
38878
38879 2014-01-05  Allan McRae  <allan@archlinux.org>
38880
38881         * po/libc.pot: Regenerated.
38882
38883         * malloc/memusagestat.c: Fix gettext call formatting.
38884
38885 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38886
38887         * nscd/nscd.c: Improve usage() output.
38888
38889 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38890
38891         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38892         * sysdeps/unix/sysv/linux/configure: Regenerated.
38893         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38894         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38895
38896 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38897
38898         [BZ #16390]
38899         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38900         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38901
38902 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38903
38904         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38905         extra tokens at end of #undef directive.
38906         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38907         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38908         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38909
38910 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38911
38912         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38913
38914         * math/auto-libm-test-in: Mark various tests with
38915         xfail-rounding:ldbl-128ibm.
38916         * math/auto-libm-test-out: Regenerated.
38917
38918 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38919
38920         [BZ #16386]
38921         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38922         numbers with subnormal high part when calculating exponent.
38923
38924         [BZ #16385]
38925         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38926         fabs.
38927
38928         [BZ #16384]
38929         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38930         M_LN2l.
38931         (__ieee754_acoshl): Use __log1pl not __log1p.
38932
38933 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38934
38935         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38936         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38937         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38938         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38939         (reused_arena, arena_get2): Convert to GNU style.
38940         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38941         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38942         (memalign_check, __malloc_set_state): Likewise.
38943         * malloc/mallocbug.c (main): Likewise.
38944         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38945         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38946         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38947         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38948         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38949         (__posix_memalign, malloc_info): Likewise.
38950         * malloc/malloc.h: Likewise.
38951         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38952         (mallochook, memalignhook, reallochook, mabort): Likewise.
38953         * malloc/mcheck.h: Likewise.
38954         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38955         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38956         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38957         * malloc/morecore.c (__default_morecore): Likewise.
38958         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38959         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38960         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38961         (print_and_abort): Likewise.
38962         * malloc/obstack.h: Likewise.
38963         * malloc/set-freeres.c (__libc_freeres): Likewise.
38964         * malloc/tst-mallocstate.c (main): Likewise.
38965         * malloc/tst-mtrace.c (main): Likewise.
38966         * malloc/tst-realloc.c (do_test): Likewise.
38967
38968 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38969
38970         [BZ #16366]
38971         * nscd/netgroupcache.c (do_notfound): New function.
38972         (addgetnetgrentX): Use it.
38973
38974         [BZ # 16365]
38975         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38976         NSS_STATUS_NOTFOUND.
38977
38978 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38979
38980         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38982
38983 2014-01-01  Allan McRae  <allan@archlinux.org>
38984
38985         * scripts/update-copyrights: Update configure input file suffix.
38986
38987         * NEWS: Update copyright year.
38988         * catgets/gencat.c: Likewise.
38989         * csu/version.c: Likewise.
38990         * debug/catchsegv.sh: Likewise.
38991         * debug/pcprofiledump.c: Likewise.
38992         * debug/xtrace.sh: Likewise.
38993         * elf/ldconfig.c: Likewise.
38994         * elf/ldd.bash.in: Likewise.
38995         * elf/pldd.c: Likewise.
38996         * elf/sotruss.ksh: Likewise.
38997         * elf/sprof.c: Likewise.
38998         * iconv/iconv_prog.c: Likewise.
38999         * iconv/iconvconfig.c: Likewise.
39000         * locale/programs/locale.c: Likewise.
39001         * locale/programs/localedef.c: Likewise.
39002         * login/programs/pt_chown.c: Likewise.
39003         * malloc/memusage.sh: Likewise.
39004         * malloc/memusagestat.c: Likewise.
39005         * malloc/mtrace.pl: Likewise.
39006         * manual/libc.texinfo: Likewise.
39007         * nscd/nscd.c: Likewise.
39008         * nss/getent.c: Likewise.
39009         * nss/makedb.c: Likewise.
39010         * posix/getconf.c: Likewise.
39011         * scripts/test-installation.pl: Likewise.
39012
39013         * All files with FSF copyright notices: Update copyright dates
39014         using scripts/update-copyrights.
39015         * intl/plural.c: Regenerated.
39016         * locale/programs/charmap-kw.h: Likewise.
39017         * locale/programs/locfile-kw.h: Likewise.
39018
39019 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39020
39021         * sysdeps/unix/sysv/linux/configure: Regenerated.
39022         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39023         the linux/fanotify.h header.
39024         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39025         HAVE_LINUX_FANOTIFY_H is defined.
39026
39027 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39028
39029         * benchtests/cos-inputs: New inputs.
39030         * benchtests/sin-inputs: Likewise.
39031
39032         * benchtests/atan-inputs: New inputs. Fix name of multiple
39033         precision fallback inputs.
39034
39035         * benchtests/atanh-inputs: New inputs.
39036         * benchtests/tanh-inputs: Likewise.
39037
39038         * benchtests/acosh-inputs: New inputs.
39039         * benchtests/asinh-inputs: Likewise.
39040
39041         * benchtests/cosh-inputs: New inputs.
39042         * benchtests/sinh-inputs: Likewise.
39043
39044         * benchtests/acos-inputs: Add more inputs.
39045         * benchtests/asin-inputs: Likewise.
39046
39047 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39048
39049         [BZ #16375]
39050         * manual/arith.texi: Fix spelling.
39051         * manual/charset.texi: Likewise.
39052         * manual/errno.texi: Likewise.
39053         * manual/filesys.texi: Likewise.
39054         * manual/lang.texi: Likewise.
39055         * manual/llio.texi: Likewise.
39056         * manual/locale.texi: Likewise.
39057         * manual/message.texi: Likewise.
39058         * manual/resource.texi: Likewise.
39059         * manual/search.texi: Likewise.
39060         * manual/setjmp.texi: Likewise.
39061         * manual/stdio.texi: Likewise.
39062         * manual/string.texi: Likewise.
39063         * manual/sysinfo.texi: Likewise.
39064         * manual/time.texi: Likewise.
39065
39066 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39067
39068         * po/sl.po: New file.
39069
39070 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39071
39072         * .gitignore: Add core/.gdbinit/.gdb_history.
39073
39074 2013-12-27  Allan McRae  <allan@archlinux.org>
39075
39076         [BZ #16369]
39077         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39078         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39079
39080 2013-12-24  Brooks Moses  <bmoses@google.com>
39081
39082         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39083         all compilers that claim C++98 compliance, not just GCC.
39084         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39085         Likewise.
39086
39087 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39088
39089         * NEWS: Restore accidentally deleted bug-fix entries.
39090
39091 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39092             Ondřej Bílka  <neleai@seznam.cz>
39093
39094         [BZ #15073]
39095         * malloc/malloc.c (_int_free): Perform sanity check only if we
39096         have_lock.
39097
39098 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39099
39100         [BZ #12986]
39101         * manual/stdio.texi (String Input Conversions): Clarify that character
39102         classes are not supported.
39103
39104 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39105
39106         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39107
39108 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39109
39110         [BZ #16337]
39111         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39112         Calculate results for small negative arguments directly rather
39113         than using reflection formula with special underflow handling.
39114
39115         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39116         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39117         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39118         (fchflags): Likewise.
39119         (revoke): Likewise.
39120         (setlogin): Likewise.
39121         (sigaltstack): Likewise.
39122         (wait4): Likewise.
39123         (sigblock): Remove.
39124         (sigsetmask): Likewise.
39125         (wait3): Likewise.
39126         (waitpid): Likewise.
39127         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39128         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39129         file.
39130         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39131         * sysdeps/unix/bsd/Makefile: ... here.
39132         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39133         * sysdeps/unix/bsd/Versions: ... here.
39134         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39135         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39136         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39137         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39138         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39139         * sysdeps/unix/bsd/sigblock.c: ... here.
39140         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39141         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39142         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39143         * sysdeps/unix/bsd/sigvec.c: ... here.
39144         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39145         * sysdeps/unix/bsd/tcdrain.c: ... here.
39146         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39147         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39148         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39149         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39150         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39151         * sysdeps/unix/bsd/wait.c: ... here.
39152         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39153         * sysdeps/unix/bsd/wait3.c: ... here.
39154         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39155         * sysdeps/unix/bsd/waitpid.c: ... here.
39156
39157 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39158
39159         [BZ #16356]
39160         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39161         round-to-nearest for [!USE_AS_EXPM1L].
39162         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39163         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39164         more tests of exp and exp10.  Expect some exp10 tests to miss
39165         exceptions or fail in directed rounding modes.
39166         * math/auto-libm-test-out: Regenerated.
39167         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39168         (exp10_test_tonearest): New function.
39169         (exp10_towardzero_test_data): New array.
39170         (exp10_test_towardzero): New function.
39171         (exp10_downward_test_data): New array.
39172         (exp10_test_downward): New function.
39173         (exp10_upward_test_data): New array.
39174         (exp10_test_upward): New function.
39175         (main): Call the new functions.
39176         * sysdeps/i386/fpu/libm-test-ulps: Update.
39177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39178
39179 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39180
39181         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39182         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39183         * math/auto-libm-test-out: Regenerated.
39184         * math/libm-test.inc (acosh_test_data): Add more tests.
39185         (atanh_test_data): Likewise.
39186         (ceil_test_data): Likewise.
39187         (copysign_test_data): Likewise.
39188         * sysdeps/i386/fpu/libm-test-ulps: Update.
39189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39190
39191         * timezone/checktab.awk: Update from tzcode 2013i.
39192         * timezone/private.h: Likewise.
39193         * timezone/scheck.c: Likewise.
39194         * timezone/tzfile.h: Likewise.
39195         * timezone/tzselect.ksh: Likewise.
39196         * timezone/zdump.c: Likewise.
39197         * timezone/zic.c: Likewise.
39198
39199         * math/auto-libm-test-in: Add tests of cpow.
39200         * math/auto-libm-test-out: Regenerated.
39201         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39202         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39203         mpc_cc_c.
39204         (func_calc_desc): Add mpc_cc_c union field.
39205         (test_functions): Add cpow.
39206         (special_fill_2pi): New function.
39207         (special_real_inputs): Add 2pi.
39208         (calc_generic_results): Handle mpc_cc_c.
39209         * sysdeps/i386/fpu/libm-test-ulps: Update.
39210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39211
39212         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39213         csqrt, ctan and ctanh.
39214         * math/auto-libm-test-out: Regenerated.
39215         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39216         (TEST_COND_x86): Likewise.
39217         (ccos_test_data): Use AUTO_TESTS_c_c.
39218         (ccosh_test_data): Likewise.
39219         (cexp_test_data): Likewise.
39220         (clog_test_data): Likewise.
39221         (csqrt_test_data): Likewise.
39222         (ctan_test_data): Likewise.
39223         (ctan_tonearest_test_data): Likewise.
39224         (ctan_towardzero_test_data): Likewise.
39225         (ctan_downward_test_data): Likewise.
39226         (ctan_upward_test_data): Likewise.
39227         (ctanh_test_data): Likewise.
39228         (ctanh_tonearest_test_data): Likewise.
39229         (ctanh_towardzero_test_data): Likewise.
39230         (ctanh_downward_test_data): Likewise.
39231         (ctanh_upward_test_data): Likewise.
39232         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39233         mpc_c_c.
39234         (func_calc_desc): Add mpc_c_c union field.
39235         (FUNC_mpc_c_c): New macro.
39236         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39237         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39238         ctanh.
39239         (special_fill_min_subnorm_p120): New function.
39240         (special_real_inputs): Add min_subnorm_p120.
39241         (calc_generic_results): Handle mpc_c_c.
39242         * sysdeps/i386/fpu/libm-test-ulps: Update.
39243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39244
39245 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39246
39247         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39248         (do_sin_slow): New functions.
39249         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39250         (cslow2, csloww1, csloww2): Use the new functions.
39251
39252         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39253         Use M to change sign of result instead of X.  Assume X is
39254         positive.
39255         (csloww1): Likewise.
39256         (__sin): Adjust.
39257         (__cos): Adjust.
39258
39259         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39260         arguments A and DA.
39261         (__sin): Adjust.
39262         (__cos): Likewise.
39263
39264         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39265         (__cos): Likewise.
39266         (sloww1): Don't adjust sign of DX.
39267         (csloww1): Likewise.
39268         (sloww2): Use X directly and don't adjust sign of DX.
39269         (csloww2): Likewise.
39270
39271 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39272
39273         * math/auto-libm-test-in: Add tests of cabs and carg.
39274         * math/auto-libm-test-out: Regenerated.
39275         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39276         (carg_test_data): Likewise.
39277         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39278         mpc_c_f.
39279         (func_calc_desc): Add mpc_c_f union field.
39280         (test_functions): Add cabs and carg.
39281         (calc_generic_results): Handle mpc_c_f.
39282
39283         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39284         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39285         as a macro and a compat symbol.
39286         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39287         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39288         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39289         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39290         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39291         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39292         not use .hidden.
39293         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39294         Likewise.
39295         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39296         Likewise.
39297         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39298         Likewise.
39299         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39300         Likewise.
39301         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39302         Likewise.
39303         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39304         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39305         from GLIBC_2.3.2.
39306
39307 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39308
39309         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39310
39311 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39312
39313         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39314         trailing whitespace removed.
39315         * scripts/config.guess: Update to version 2013-11-29.
39316         * scripts/config.sub: Update to version 2013-10-01.
39317
39318         * math/auto-libm-test-in: Add tests of sincos.
39319         * math/auto-libm-test-out: Regenerated.
39320         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39321         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39322         mpfr_f_11.
39323         (func_calc_desc): Add mpfr_f_11 union field.
39324         (test_functions): Add sincos.
39325         (calc_generic_results): Handle mpfr_f_11.
39326         * sysdeps/i386/fpu/libm-test-ulps: Update.
39327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39328
39329 2013-12-19  Andreas Schwab  <schwab@suse.de>
39330
39331         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39332         CALL_MCOUNT.
39333         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39334         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39335         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39336
39337 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39338
39339         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39340         * sysdeps/i386/fpu/libm-test-ulps: Update.
39341         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39342
39343         [BZ #16293]
39344         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39345         round-to-nearest mode when using frndint.
39346         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39347         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39348         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39349         Likewise.
39350         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39351         sinh test to fail.
39352         * math/auto-libm-test-out: Regenerated.
39353         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39354         (TEST_COND_x86): Likewise.
39355         (expm1_tonearest_test_data): New array.
39356         (expm1_test_tonearest): New function.
39357         (expm1_towardzero_test_data): New array.
39358         (expm1_test_towardzero): New function.
39359         (expm1_downward_test_data): New array.
39360         (expm1_test_downward): New function.
39361         (expm1_upward_test_data): New array.
39362         (expm1_test_upward): New function.
39363         (main): Run the new test functions.
39364         * sysdeps/i386/fpu/libm-test-ulps: Update.
39365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39366
39367         * include/features.h: Update comment documenting feature test
39368         macros.  Mention _DEFAULT_SOURCE in comment.
39369         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39370         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39371         _BSD_SOURCE and _SVID_SOURCE.
39372         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39373         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39374         !_SVID_SOURCE]: Likewise.
39375         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39376         (__USE_POSIX_IMPLICITLY): Define.
39377         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39378         (_POSIX_SOURCE): Undefine and redefine.
39379         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39380         (_POSIX_C_SOURCE): Likewise.
39381         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39382         (Feature Test Macros): Update documentation of default features.
39383
39384 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39385
39386         * benchtests/Makefile: Add bench-strtok.
39387         * benchtests/bench-strtok.c: New file: strtok benchtest.
39388
39389 2013-12-19  Allan McRae  <allan@archlinux.org>
39390
39391         * manual/install.texi: Suppress menu for plain text output.
39392         * INSTALL: Regenerated.
39393
39394 2013-12-18  Brooks Moses  <bmoses@google.com>
39395
39396         [BZ #15846]
39397         * misc/getauxval.c: Include errno.h.
39398         (__getauxval): Set errno to ENOENT if the requested type is not
39399         found.
39400         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39401         don't declare with __attribute_const__.
39402         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39403         * manual/startup.texi: Document that getauxval sets errno.
39404
39405 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39406
39407         * math/auto-libm-test-in: Add tests of jn and yn.
39408         * math/auto-libm-test-out: Regenerated.
39409         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39410         (yn_test_data): Likewise.
39411         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39412         mpfr_if_f.
39413         (func_calc_desc): Add mpfr_if_f union field.
39414         (FUNC_mpfr_if_f): New macro.
39415         (test_functions): Add jn and yn.
39416         (calc_generic_results): Assert type of second input for
39417         mpfr_ff_f.  Handle mpfr_if_f.
39418         (output_for_one_input_case): Disable all checking for arguments
39419         fitting floating-point types in case of an integer argument.
39420         * sysdeps/i386/fpu/libm-test-ulps: Update.
39421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39422
39423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39424         Don't expect fegetround reference in libm.so.
39425
39426 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39427
39428         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39429         $(config-cflags-nofma).
39430
39431 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39432
39433         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39434         * math/auto-libm-test-out: Regenerated.
39435
39436         [BZ #16338]
39437         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39438         to determine exponent and adjust argument to have exponent of -1.
39439         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39440         log2.
39441         * math/auto-libm-test-out: Regenerated.
39442         * sysdeps/i386/fpu/libm-test-ulps: Update.
39443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39444
39445 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39446
39447         * manual/probes.texi: Remove cases when per-thread arenas are
39448         disabled.
39449
39450 2013-12-18  Andreas Schwab  <schwab@suse.de>
39451
39452         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39453         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39454         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39455         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39456         * sysdeps/i386/i686/multiarch/Makefile: Update.
39457         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39458
39459 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39460
39461         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39462         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39463
39464 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39465
39466         [BZ #15968]
39467         Support TZ transition times < 00:00:00.
39468         This is needed for version-3 tz-format files; it supports time
39469         stamps past 2037 for America/Godthab (the only entry in the tz
39470         database for which this change is relevant).
39471         * manual/time.texi (TZ Variable): Document transition times
39472         from -167:59:59 through -00:00:01.
39473         * time/tzset.c (tz_rule): Time of day is now signed.
39474         (__tzset_parse_tz): Parse negative time of day.
39475
39476         Document TZ transition times >= 25:00:00.
39477         * manual/time.texi (TZ Variable): Document transition times from
39478         25:00:00 through 167:59:59.  These are already supported, and this
39479         support will help with version-3 tz-format files.
39480
39481         * manual/time.texi (TZ Variable): Modernize North America example
39482         to reflect current (i.e., 2007-and-later) daylight saving rules.
39483
39484         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39485
39486 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39487
39488         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39489         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39490         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39491         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39492         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39493         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39494         * sysdeps/unix/bsd/clock.c: Likewise.
39495         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39496         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39497         * sysdeps/unix/bsd/init-posix.c: Likewise.
39498         * sysdeps/unix/bsd/poll.c: Likewise.
39499         * sysdeps/unix/bsd/ptsname.c: Likewise.
39500         * sysdeps/unix/bsd/seekdir.c: Likewise.
39501         * sysdeps/unix/bsd/setegid.c: Likewise.
39502         * sysdeps/unix/bsd/seteuid.c: Likewise.
39503         * sysdeps/unix/bsd/setgid.c: Likewise.
39504         * sysdeps/unix/bsd/setrgid.c: Likewise.
39505         * sysdeps/unix/bsd/setruid.c: Likewise.
39506         * sysdeps/unix/bsd/setsid.c: Likewise.
39507         * sysdeps/unix/bsd/setuid.c: Likewise.
39508         * sysdeps/unix/bsd/sigaction.c: Likewise.
39509         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39510         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39511         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39512         * sysdeps/unix/bsd/telldir.c: Likewise.
39513         * sysdeps/unix/bsd/times.c: Likewise.
39514         * sysdeps/unix/bsd/usleep.c: Likewise.
39515
39516         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39517         ($(objpfx)libbsd-compat.a): Remove rule.
39518
39519         * include/features.h (__FAVOR_BSD): Do not define.
39520         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39521         features conflicting with POSIX.
39522         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39523         (_BSD_SOURCE): Remove description of not being a subset of other
39524         feature test macros.
39525         * manual/job.texi (getpgrp): Do not document BSD version.
39526         (getpgid): Do not document by reference to BSD getpgrp.
39527         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39528         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39529         * signal/signal.h [__FAVOR_BSD]: Likewise.
39530         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39531         instead of making contents conditional on [__FAVOR_BSD].
39532         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39533
39534 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39535
39536         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39537
39538 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39539
39540         [BZ #16314]
39541         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39542         values below 2**-450, not 2**-500.
39543         * math/auto-libm-test-in: Don't allow spurious underflow from
39544         hypot.
39545         * math/auto-libm-test-out: Regenerated.
39546
39547         [BZ #16316]
39548         [BZ #16330]
39549         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39550         values of ha and hb and sort them after adjusting subnormal
39551         arguments.
39552         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39553         Likewise.
39554         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39555         values of ea and eb and sort them after adjusting subnormal
39556         arguments.
39557         * math/auto-libm-test-in: Do not expect some hypot tests of
39558         subnormals to fail.  Add more hypot tests.
39559         * math/auto-libm-test-out: Regenerated.
39560
39561 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39562
39563         [BZ #13304]
39564         * sysdeps/sh/s_fma.c: New file.
39565         * sysdeps/sh/s_fmaf.c: New file.
39566         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39567         version.
39568         * sysdeps/sh/Implies: Add sh/soft-fp.
39569
39570 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39571
39572         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39573         level of indirection to members `objname', `errstring', `malloced'.
39574         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39575         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39576         it as the __longjmp argument (just pass 1 instead).
39577         (_dl_catch_error): Initialize C with argument pointers and address of
39578         volatile local ERRCODE rather than copying values out of C at return.
39579
39580 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39581
39582         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39583         * math/auto-libm-test-out: Regenerated.
39584         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39585         (hypot_test_data): Likewise.
39586         (pow_test_data): Likewise.
39587         (pow_tonearest_test_data): Likewise.
39588         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39589         mpfr_ff_f.
39590         (func_calc_desc): Add mpfr_ff_f union field.
39591         (FUNC_mpfr_ff_f): New macro.
39592         (test_functions): Add atan2, hypot and pow.
39593         (special_fill_min): New function.
39594         (special_fill_minus_min): Likewise.
39595         (special_fill_min_subnorm): Likewise.
39596         (special_fill_minus_min_subnorm): Likewise.
39597         (special_real_inputs): Add min, -min, min_subnorm and
39598         -min_subnorm.
39599         (calc_generic_results): Handle mpfr_ff_f.
39600         * sysdeps/i386/fpu/libm-test-ulps: Update.
39601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39602
39603 2013-12-16  Will Newton  <will.newton@linaro.org>
39604
39605         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39606         (Aligned Memory Blocks): Add documentation for aligned_alloc
39607         and suggest it as an alternative to posix_memalign.
39608         (Hooks for Malloc): Document __memalign_hook is also called
39609         for aligned_alloc.  (Summary of Malloc): Add summary for
39610         aligned alloc.  Document __memalign_hook is also called
39611         for aligned_alloc.
39612
39613 2013-12-16  Will Newton  <will.newton@linaro.org>
39614
39615         * manual/memory.texi (Malloc Examples): Clarify default
39616         alignment documentation.  Suggest posix_memalign rather
39617         than memalign or valloc.
39618         (Aligned Memory Blocks): Remove suggestion to use memalign
39619         or valloc.  Remove obsolete comment about BSD.
39620         Document memalign errno values and mark the function obsolete.
39621         Document posix_memalign returned error codes.  Mark valloc
39622         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39623         called for posix_memalign and valloc.
39624         (Summary of Malloc): Add posix_memalign to function summary.
39625         __memalign_hook is also called for posix_memalign and valloc.
39626
39627 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39628
39629         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39630         TAYLOR_SIN.
39631         (__sin): Adjust.
39632         (__cos): Likewise.
39633         (sloww): Use mynumber union.  Expand ternary operator into
39634         if-else statements.
39635         (cslow): use mynumber union.
39636
39637 2013-12-16  Allan McRae  <allan@archlinux.org>
39638
39639         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39640         * configure: Regenerated.
39641
39642         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39643
39644         [BZ #14120]
39645         * configure.ac: Added --enable-maintainer-mode. Check for
39646         autoconf when enabled.
39647         * configure: Regenerated.
39648
39649         * nscd/nscd.service: New file.
39650         * nscd/nscd.tmpfiles: New file.
39651
39652 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39653
39654         [BZ #12100]
39655         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39656         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39657         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39658         (strstr): Add __strstr_sse2_unaligned ifunc.
39659         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39660         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39661         (strcasestr): Remove __strcasestr_sse42 ifunc.
39662         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39663         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39664         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39665
39666 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39667
39668         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39669         * sysdeps/sh/bits/fenv.h: ... here.
39670         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39671
39672 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39673
39674         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39675
39676         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39677         hypotf multiarch implementations.
39678         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39679         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39680         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39681         multiarch hypot for PPC64.
39682         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39683         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39684         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39685         multiarch hypotf for PPC64.
39686
39687         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39688         modff multiarch implementations.
39689         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39692         multiarch modf for PPC64.
39693         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39694         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39695         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39696         multiarch modff for PPC64.
39697
39698         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39699         and logl multiarch implementations.
39700         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39703         multiarch logb for PPC64.
39704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39705         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39707         multiarch logb for PPC64.
39708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39709         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39710         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39711         multiarch logb for PPC64.
39712
39713         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39714         isinff multiarch implementation.
39715         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39716         file.
39717         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39718         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39719         multiarch isinf for PPC64.
39720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39721         file.
39722         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39723         multiarch isinff for PPC64.
39724
39725         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39726         finitef multiarch implementation.
39727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39728         file.
39729         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39730         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39731         multiarch finite for PPC64.
39732         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39733         file.
39734         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39735         multiarch finitef for PPC64.
39736
39737         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39738         lrint multiarch implementation.
39739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39740         file.
39741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39742         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39743         multiarch llrint for PPC64.
39744         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39745         multiarch lrint for PPC64.
39746
39747         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39748         copysignf multiarch implementation.
39749         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39750         file.
39751         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39752         file.
39753         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39754         multiarch copysign for PPC64.
39755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39756         multiarch copysignf for PPC64.
39757
39758         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39759         multiarch implementation.
39760         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39761         file.
39762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39763         file.
39764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39765         file.
39766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39767         file.
39768         multiarch llround for PPC64.
39769         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39770         multiarch trunc for PPC64.
39771         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39772         multiarch truncf for PPC64.
39773
39774         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39775         multiarch implementation.
39776         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39777         file.
39778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39779         file.
39780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39781         file.
39782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39783         file.
39784         multiarch llround for PPC64.
39785         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39786         multiarch round for PPC64.
39787         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39788         multiarch roundf for PPC64.
39789
39790         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39791         multiarch implementation.
39792         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39793         file.
39794         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39795         file.
39796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39797         file.
39798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39799         file.
39800         multiarch llround for PPC64.
39801         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39802         multiarch floor for PPC64.
39803         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39804         multiarch floorf for PPC64.
39805
39806         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39807         multiarch implementation.
39808         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39809         file.
39810         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39811         file.
39812         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39813         file.
39814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39815         file.
39816         multiarch llround for PPC64.
39817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39818         multiarch ceil for PPC64.
39819         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39820         multiarch ceilf for PPC64.
39821
39822         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39823         multiarch implementation.
39824         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39825         file.
39826         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39827         file.
39828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39829         file.
39830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39831         multiarch llround for PPC64.
39832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39833         multiarch lround for PPC64.
39834
39835         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39836         multiarch implementation.
39837         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39839         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39840         file.
39841         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39842         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39844         multiarch isnan for PPC64.
39845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39846         multiarch isnanf for PPC64.
39847
39848         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39849         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39850         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39851         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39852         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39854
39855         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39856         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39857         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39858         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39859
39860         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39861         multiarch implementations.
39862         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39863         (__libc_ifunc_impl_list): Likewise.
39864         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39865         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39866         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39867         multiarch stpcpy for PPC64.
39868
39869         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39870         multiarch implementations.
39871         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39872         (__libc_ifunc_impl_list): Likewise.
39873         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39874         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39875         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39876         multiarch strcpy for PPC64.
39877
39878         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39879         redefine function name.
39880         (_wordcopy_fwd_dest_aligned): Likewise.
39881         (_wordcopy_bwd_aligned): Likewise.
39882         (_wordcopy_bwd_dest_aligned): Likewise.
39883         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39884         multiarch implementations.
39885         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39886         (__libc_ifunc_impl_list): Likewise.
39887         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39888         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39889         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39890         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39891         multiarch wcscpy for PPC64.
39892
39893         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39894         multiarch implementations.
39895         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39896         (__libc_ifunc_impl_list): Likewise.
39897         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39898         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39899         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39900         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39901         multiarch wcscpy for PPC64.
39902
39903         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39904         multiarch implementations.
39905         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39906         (__libc_ifunc_impl_list): Likewise.
39907         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39908         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39909         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39910         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39911         multiarch wcsrchr for PPC64.
39912
39913         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39914         multiarch implementations.
39915         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39916         (__libc_ifunc_impl_list): Likewise.
39917         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39918         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39919         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39920         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39921         multiarch wcschr for PPC64.
39922
39923         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39924         multiarch implementations.
39925         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39926         (__libc_ifunc_impl_list): Likewise.
39927         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39928         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39929         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39930         multiarch strchrnul for PPC64.
39931
39932         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39933         implementations.
39934         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39935         (__libc_ifunc_impl_list): Likewise.
39936         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39937         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39938         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39939         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39940         strchr for PPC64.
39941
39942         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39943         implementations.
39944         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39945         (__libc_ifunc_impl_list): Likewise.
39946         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39947         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39948         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39949         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39950         strncmp for PPC64.
39951
39952         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39953         multiarch implementations.
39954         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39955         (__libc_ifunc_impl_list): Likewise.
39956         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39957         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39958         strncasecmp for PPC64.
39959         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39960         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39961         multiarch strncasecmp_l for PPC64.
39962
39963         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39964         multiarch implementations.
39965         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39966         (__libc_ifunc_impl_list): Likewise.
39967         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39968         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39969         multiarch strcasecmp for PPC64.
39970         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39971         file.
39972         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39973         multiarch strcasecmp_l for PPC64.
39974
39975         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39976         implementations.
39977         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39978         (__libc_ifunc_impl_list): Likewise.
39979         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39980         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39981         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39982         strnlen for PPC64.
39983
39984         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39985         implementations.
39986         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39987         (__libc_ifunc_impl_list): Likewise.
39988         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39989         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39990         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39991         strlen for PPC64.
39992
39993         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39994         implementations.
39995         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39996         (__libc_ifunc_impl_list): Likewise.
39997         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39998         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39999         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40000         rawmemrchr for PPC64.
40001
40002         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40003         implementation.
40004         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40005         (__libc_ifunc_impl_list): Likewise.
40006         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40007         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40008         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40009         memrchr for PPC64.
40010
40011         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40012         implementation.
40013         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40014         (__libc_ifunc_impl_list): Likewise.
40015         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40016         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40017         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40018         memchr for PPC64.
40019
40020         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40021         implementation.
40022         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40023         (__libc_ifunc_impl_list): Likewise.
40024         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40025         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40026         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40027         mempcpy for PPC64.
40028
40029         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40030         avoid cretion of __bzero symbol.
40031         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40032         Likewise.
40033         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40034         Likewise.
40035         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40036         Likewise.
40037         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40038         multiarch implementations.
40039         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40040         (__libc_ifunc_impl_list): Likewise.
40041         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40042         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40043         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40044         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40045         bzero for PPC32.
40046         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40047         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40048         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40049         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40050         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40051         memset for PPC64.
40052         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40053
40054         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40055         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40056         implementations.
40057         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40058         (__libc_ifunc_impl_list): Likewise.
40059         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40060         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40061         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40062         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40063         memcmp for PPC64.
40064
40065         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40066         multiarch for POWER/PPC64.
40067         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40068         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40069         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40070         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40071         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40072         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40073         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40074         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40075         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40076         memcpy for PPC64.
40077
40078         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40079         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40080         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40081         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40082         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40083         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40084         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40085         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40086         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40087         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40088         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40089         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40090         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40091         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40092         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40100
40101 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40102
40103         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40104
40105 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40106
40107         * benchtests/Makefile (bench): Add exp2 and log2.
40108         (LDLIBS-bench-exp2): Add -lm.
40109         (LDLIBS-bench-log2): Likewise.
40110         * benchtests/exp2-inputs: New inputs file.
40111         * benchtests/log2-inputs: New inputs file.
40112         * benchtests/log-inputs: Add new inputs.
40113         * benchtests/tan-inputs: Likewise.
40114
40115 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40116
40117         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40118         definition...
40119         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40120         (csloww2): ... from here.
40121
40122         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40123         instead of structures.
40124         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40125         (POLYNOMIAL): Likewise.
40126         (TAYLOR_SLOW): Likewise.
40127         (__sin): Likewise.
40128         (__cos): Likewise.
40129         (slow1): Likewise.
40130         (slow2): Likewise.
40131         (sloww): Likewise.
40132         (sloww1); Likewise.
40133         (sloww2): Likewise.
40134         (bsloww1): Likewise.
40135         (bsloww2): Likewise.
40136         (cslow2): Likewise.
40137         (csloww): Likewise.
40138         (csloww1): Likewise.
40139         (csloww2): Likewise.
40140
40141 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40142
40143         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40144         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40145         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40146         * malloc/hooks.c (realloc_check): Likewise.
40147
40148         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40149         * malloc/arena.c: Remove PER_THREAD conditional.
40150         [!PER_THREAD]: Remove code.
40151         (ptmalloc_unlock_all2): Likewise.
40152         (ptmalloc_init): Likewise.
40153         (_int_new_arena): Likewise.
40154         (arena_get2): Likewise.
40155         * malloc/hooks.c (__malloc_get_state): Likewise.
40156         (__malloc_set_state): Likewise.
40157         * malloc/malloc.c: Likewise.
40158         (struct malloc_state): Likewise.
40159         (struct malloc_par): Likewise.
40160         (__libc_realloc): Likewise.
40161         (__libc_mallopt): Likewise.
40162
40163 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40164
40165         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40166
40167 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40168
40169         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40170         macro to a function.  Check for zero perturb_byte.
40171         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40172
40173         * malloc/malloc.c: (force_reg): Remove.
40174         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40175         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40176         force_reg by atomic_forced_read.
40177         * malloc/arena.c (ptmalloc_init): Likewise.
40178         * malloc/hooks.c (top_check): Likewise.
40179
40180 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40181
40182         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40183
40184 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40185
40186         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40187
40188 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40189
40190         * math/auto-libm-test-in: Add tests of lgamma.
40191         * math/auto-libm-test-out: Regenerated.
40192         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40193         (M_LOG_2_SQRT_PIl): Likewise.
40194         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40195         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40196         mpfr_f_f1.
40197         (func_calc_desc): Add mpfr_f_f1 union field.
40198         (ARGS1): New macro.
40199         (ARGS2): Likewise.
40200         (ARGS3): Likewise.
40201         (ARGS4): Likewise.
40202         (RET1): Likewise.
40203         (RET2): Likewise.
40204         (CALC): Likewise.
40205         (FUNC): Likewise.
40206         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40207         (test_functions): Add lgamma.
40208         (calc_generic_results): Handle mpfr_f_f1.
40209         * sysdeps/i386/fpu/libm-test-ulps: Update.
40210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40211
40212 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40213
40214         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40215         __mpn_add_n for PowerPC64/POWER7.
40216         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40217         __mpn_sub_n for PowerPC64/POWER7.
40218
40219         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40220         __mpn_addmul_1 for PowerPC64.
40221         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40222         __mpn_submul_1 for PowerPC64.
40223         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40224         for PowerPC64.
40225         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40226         for PowerPC64.
40227
40228 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40229
40230         [BZ #15089]
40231         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40232
40233 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40234
40235         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40236
40237         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40238         add multiarch folders.
40239         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40240         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40241         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40242         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40243         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40244         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40245         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40246         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40247         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40248         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40249         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40256
40257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40258         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40260         New file.
40261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40262         New file.
40263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40264         multiarch __ieee754_hypot for PowerPC32.
40265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40266         New file.
40267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40268         New file.
40269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40270         multiarch __ieee754_hypotf for PowerPC32.
40271
40272         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40273         long_double_symbol only if __logbl is defined.
40274         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40275         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40276         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40277         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40278         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40279         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40280         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40281         path for implementation.
40282         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40283         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40284         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40285         logb, and logbl multiarch implementations for PowerPC32.
40286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40287         file.
40288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40289         file.
40290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40291         multiarch logb for PowerPC32.
40292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40293         file.
40294         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40295         file.
40296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40297         multiarch logbf for PowerPC32.
40298         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40300         file.
40301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40302         multiarch logbl implementation for PowerPC32.
40303
40304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40305         and modff multiarch implementations.
40306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40307         New file.
40308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40309         New file.
40310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40311         multiarch modf for PowerPC32.
40312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40313         New file.
40314         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40315         New file.
40316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40317         multiarch modff for PowerPC32.
40318
40319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40320         and lrintf multiarch implementations.
40321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40322         New file.
40323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40324         New file.
40325         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40326         multiarch lrint for PowerPC32.
40327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40328         file: multiarch lrintf for PowerPC32.
40329
40330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40331         and lroundf multiarch implementations.
40332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40333         New file.
40334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40335         New file.
40336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40337         New file.
40338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40339         multiarch lround for PowerPC32.
40340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40341         file: multiarch lroundf for PowerPC32.
40342
40343         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40344         copysign and copysignf multiarch implementations.
40345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40346         New file.
40347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40348         New file.
40349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40350         file: multiarch copysign for PowerPC32.
40351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40352         file: multiarch copysignf for PowerPC32.
40353
40354         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40355         and truncf multiarch implementations.
40356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40357         New file.
40358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40359         file.
40360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40361         multiarch trunc for PowerPC32.
40362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40363         New file.
40364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40365         New file.
40366         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40367         multiarch truncf for PowerPC32.
40368
40369         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40370         and roundf multiarch implementations.
40371         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40372         New file.
40373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40374         file.
40375         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40376         multiarch round for PowerPC32.
40377         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40378         New file.
40379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40380         New file.
40381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40382         multiarch roundf for PowerPC32.
40383
40384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40385         and floorf multiarch implementations.
40386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40387         New file.
40388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40389         file.
40390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40391         multiarch floor for PowerPC32.
40392         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40393         New file.
40394         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40395         New file.
40396         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40397         multiarch floorf for PowerPC32.
40398
40399         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40400         and ceilf multiarch implementations.
40401         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40402         New file.
40403         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40404         file.
40405         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40406         multiarch ceil for PowerPC32.
40407         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40408         New file.
40409         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40410         file.
40411         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40412         multiarch ceilf for PowerPC32.
40413
40414         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40415         is defined.
40416         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40417         FINITEF is defined.
40418         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40419         and finitef multiarch implementations.
40420         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40421         New file.
40422         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40423         file.
40424         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40425         multiarch finite for PowerPC32.
40426         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40427         New file.
40428         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40429         file: multiarch finitef for PowerPC32.
40430
40431         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40432         and isinff multiarch implementations.
40433         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40434         file.
40435         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40436         file.
40437         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40438         multiarch isinf for PowerPC32.
40439         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40440         New file.
40441         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40442         multiarch isinff for PowerPC32.
40443
40444         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40445         alias when __isnan is defined.
40446         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40447         and isnanf multiarch implementations.
40448         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40449         file.
40450         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40451         file.
40452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40453         file.
40454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40455         file.
40456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40457         multiarch isnan for PowerPC32.
40458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40459         New file.
40460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40461         New file.
40462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40463         multiarch isnanf for PowerPC32.
40464
40465         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40466         and sqrtf multiarch implementations.
40467         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40468         file.
40469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40470         file.
40471         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40472         multiarch sqrt for PowerPC32.
40473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40474         file.
40475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40476         file.
40477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40478         multiarch sqrtf for PowerPC32.
40479
40480         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40481         and llroundf multiarch implementations.
40482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40483         New file.
40484         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40485         New file.
40486         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40487         New file.
40488         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40489         file: multiarch llround for PowerPC32.
40490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40491         file: multiarch llroundf for PowerPC32.
40492
40493         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40494         multiarch PowerPC32 fpu implementations.
40495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40496         New file.
40497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40498         New file.
40499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40500         multiarch llrint for PowerPC32.
40501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40502         New file.
40503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40504         New file.
40505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40506         file.
40507
40508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40509
40510         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40511         file.
40512         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40513         file.
40514         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40515         file.
40516         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40517         multiarch wordcopy for PPC32.
40518         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40519         wordcopy objects.
40520         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40521         (__libc_ifunc_impl_list): Likewise.
40522         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40523         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40524         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40525         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40526         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40527         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40528
40529         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40530         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40531         file.
40532         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40533         file.
40534         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40535         file.
40536         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40537         multiarch wcscpy for PPC32.
40538         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40539         multiarch objects.
40540         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40541         (__libc_ifunc_impl_list): Likewise.
40542         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40543         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40544         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40545         sysdeps/powerpc/power6/wcscpy.c.
40546
40547         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40548         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40549         file.
40550         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40551         file.
40552         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40553         file.
40554         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40555         multiarch wcsrchr for PPC32.
40556         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40557         multiarch objects.
40558         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40559         (__libc_ifunc_impl_list): Likewise.
40560         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40561         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40562         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40563         sysdeps/powerpc/power6/wcsrchr.c.
40564
40565         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40566         file.
40567         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40568         file.
40569         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40570         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40571         multiarch wcschr for PPc32.
40572         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40573         multiarch objects.
40574         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40575         (__libc_ifunc_impl_list): Likewise.
40576         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40577         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40578         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40579         sysdeps/powerpc/power6/wcschr.c.
40580
40581         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40582         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40583         file.
40584         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40585         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40586         file: multiarch strchr for PPC32.
40587         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40588         multiarch objects.
40589         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40590         (__libc_ifunc_impl_list): Likewise.
40591
40592         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40593         name.
40594         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40595         file.
40596         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40597         file.
40598         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40599         multiarch strchrnul for PPC32.
40600         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40601         multiarch objects.
40602         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40603         (__libc_ifunc_impl_list): Likewise.
40604
40605         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40606         file.
40607         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40608         multiarch strncasecmp for PPC32.
40609         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40610         file.
40611         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40612         multiarch strncasecmp_l for PPC32.
40613         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40614         strncasecmp multiarch objects.
40615         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40616         (__libc_ifunc_impl_list): Likewise.
40617
40618         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40619         file.
40620         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40621         multiarch strncasecmp for PPC32.
40622         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40623         New file.
40624         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40625         multiarch strcasecmp_l for PPC32.
40626         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40627         multiarch objects.
40628         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40629         (__libc_ifunc_impl_list): Likewise.
40630
40631         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40632         file.
40633         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40634         file.
40635         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40636         multiarch strncmp for PPC32.
40637         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40638         multiarch objects.
40639         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40640         (__libc_ifunc_impl_list): Likewise.
40641
40642         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40643         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40644         file.
40645         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40646         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40647         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40648         multiarch objects.
40649         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40650         (__libc_ifunc_impl_list): Likewise.
40651
40652         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40653         file.
40654         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40655         file.
40656         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40657         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40658         multiarch objects.
40659         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40660         (__libc_ifunc_impl_list): Likewise.
40661
40662         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40663         file.
40664         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40665         file.
40666         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40667         multiarch rawmemchr for PPC32.
40668         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40669         multiarch objects.
40670         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40671         (__libc_ifunc_impl_list): Likewise.
40672
40673         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40674         file.
40675         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40676         file.
40677         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40678         file: memrchr multiarch for PPC32.
40679         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40680         multiarch objects.
40681         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40682         (__libc_ifunc_impl_list): Likewise.
40683
40684         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40685         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40686         file.
40687         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40688         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40689         multiarch memchr for PPC32.
40690         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40691         multiarch objects.
40692         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40693         (__libc_ifunc_impl_list): Likewise.
40694
40695         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40696         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40697         file.
40698         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40699         file.
40700         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40701         file: multiarch mempcpy for PPC32.
40702         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40703         multiarch objects.
40704         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40705         (__libc_ifunc_impl_list): Likewise.
40706
40707         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40708         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40709         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40710         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40711         multiarch bzero for PPC32.
40712         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40713         file.
40714         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40715         file.
40716         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40717         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40718         file: multiarch memset for PPC32.
40719         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40720         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40721         memset multiarch objects.
40722         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40723         (__libc_ifunc_impl_list): Likewise.
40724
40725         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40726         file.
40727         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40728         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40729         memcmp for PPC32.
40730         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40731         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40732         multiarch objects.
40733         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40734         (__libc_ifunc_impl_list): Likewise.
40735
40736         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40737         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40738         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40739         file.
40740         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40741         file.
40742         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40743         file.
40744         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40745         multiarch memcpy for PPC32.
40746         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40747         multiarch objects.
40748         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40749         (__libc_ifunc_impl_list): Likewise.
40750
40751         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40752         support multiarch for POWER/PPC32.
40753         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40754         Likewise.
40755         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40757         Implies file to make multiarch folder appers before the fpu and
40758         default folder for power4 configuration.
40759
40760 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40761
40762         * scripts/bench.pl: Append volatile keyword to type.
40763
40764 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40765
40766         * sysdeps/sh/sotruss-lib.c: New file.
40767         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40768
40769 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40770
40771         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40772
40773 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40774
40775         [BZ #6810]
40776         * math/w_tgamma.c: Include <errno.h>.
40777         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40778         * math/w_tgammaf.c: Include <errno.h>.
40779         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40780         * math/w_tgammal.c: Include <errno.h>.
40781         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40782         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40783         underflow.  Add more tgamma tests.
40784         * math/auto-libm-test-out: Regenerated.
40785         * sysdeps/i386/fpu/libm-test-ulps: Update.
40786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40787
40788         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40789         sin, sinh, tan, tanh, tgamma, y0 and y1.
40790         * math/auto-libm-test-out: Regenerated.
40791         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40792         (TEST_COND_x86): Likewise.
40793         (M_E2l): Remove macro.
40794         (M_E3l): Likewise.
40795         (M_2_SQRT_PIl): Likewise.
40796         (M_SQRT_PIl): Likewise.
40797         (M_1_DIV_El): Likewise.
40798         (log_test_data): Use AUTO_TESTS_f_f.
40799         (log10_test_data): Likewise.
40800         (log1p_test_data): Likewise.
40801         (log2_test_data): Likewise.
40802         (sin_test_data): Likewise.
40803         (sin_tonearest_test_data): Likewise.
40804         (sin_towardzero_test_data): Likewise.
40805         (sin_downward_test_data): Likewise.
40806         (sin_upward_test_data): Likewise.
40807         (sinh_test_data): Likewise.
40808         (sinh_tonearest_test_data): Likewise.
40809         (sinh_towardzero_test_data): Likewise.
40810         (sinh_downward_test_data): Likewise.
40811         (sinh_upward_test_data): Likewise.
40812         (tan_test_data): Likewise.
40813         (tan_tonearest_test_data): Likewise.
40814         (tan_towardzero_test_data): Likewise.
40815         (tan_downward_test_data): Likewise.
40816         (tan_upward_test_data): Likewise.
40817         (tanh_test_data): Likewise.
40818         (tgamma_test_data): Likewise.
40819         (y0_test_data): Likewise.
40820         (y1_test_data): Likewise.
40821         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40822         (special_real_inputs): Add pi/4.
40823         * sysdeps/i386/fpu/libm-test-ulps: Update.
40824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40825
40826 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40827
40828         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40829         "longjmp_target" static probes.
40830         (__longjmp): Rename to __longjmp_symbol.
40831         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40832         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40833         on which longjmp to generate.
40834         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40835         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40836         probe.
40837         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40838         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40839         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40840         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40841         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40842         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40844         __longjmp_symbol based on which __longjmp to generate.
40845         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40846         probe.
40847         (setjmp): Rename to setjmp_symbol.
40848         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40849         (_setjmp): Rename to _setjmp_symbol.
40850         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40851         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40852         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40853         which setjmp to generate.
40854         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40855         "longjmp_target" static probes.
40856
40857 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40858
40859         * benchtests/README: Add note about output arguments.
40860         * benchtests/bench-sincos.c: Remove file.
40861         * benchtests/sincos-inputs: New file.
40862         * scripts/bench.pl: Identify output arguments and define
40863         static variables for them.
40864
40865         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40866
40867         [BZ #15941]
40868         * Makefile (INSTALL): Add install-plain.texi as the primary
40869         dependency.
40870         * manual/install-plain.texi: New file.
40871         * manual/install.texi: Include node directive only for
40872         non-plaintext output.
40873
40874 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40875
40876         * stdlib/longlong.h: Update from GCC.
40877
40878         [BZ #6807]
40879         [BZ #15901]
40880         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40881         * math/w_j0f.c (y0f): Likewise.
40882         * math/w_j0l.c (__y0l): Likewise.
40883         * math/w_j1.c (y1): Likewise.
40884         * math/w_j1f.c (y1f): Likewise.
40885         * math/w_j1l.c (__y1l): Likewise.
40886         * math/w_jn.c (yn): Likewise.
40887         * math/w_jnf.c (ynf): Likewise.
40888         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40889         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40890         value for Bessel function domain errors outside _SVID_ mode.
40891         Adjust sign of return value for yn (negative integer, 0).
40892         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40893         by zero in return for negative x and set sign appropriately for
40894         negative n.
40895         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40896         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40897         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40898         expectations in error cases.
40899         (y1_test_data): Likewise.
40900         (yn_test_data): Likewise.
40901         * sysdeps/i386/fpu/libm-test-ulps: Update.
40902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40903
40904 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40905
40906         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40907         "64" to "64-v1".  Add "64-v2".
40908         (abi-64-options): Rename to ...
40909         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40910         (abi-64-condition): Rename to ...
40911         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40912         (abi-64-ld-soname): Rename to ...
40913         (abi-64-v1-ld-soname): ... this.
40914         (abi-64-v2-options): Define.
40915         (abi-64-v2-condition): Likewise.
40916         (abi-64-v2-ld-soname): Likewise.
40917         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40918         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40922
40923 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40924             Alan Modra  <amodra@gmail.com>
40925
40926         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40927         New versions for use with the ELFv2 ABI.
40928         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40929         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40930         declaration.
40931         (struct La_ppc64v2_retval): Likewise.
40932         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40933         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40934         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40935         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40936         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40937         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40938         Do not save or restore CR.
40939         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40940         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40941         return values for ELFv2 ABI.  Fix location of FPR return registers.
40942         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40943         updated values for _CALL_ELF == 2.
40944         (La_regs, La_retval, int_retval): Likewise.
40945
40946 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40947
40948         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40949         (FRAME_MIN_SIZE_PARM): Likewise.
40950         (FRAME_BACKCHAIN): Likewise.
40951         (FRAME_CR_SAVE): Likewise.
40952         (FRAME_LR_SAVE): Likewise.
40953         (FRAME_TOC_SAVE): Likewise.
40954         (FRAME_PARM_SAVE): Likewise.
40955         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40956         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40957         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40958         (call_mcount_parm_offset): New macro.
40959         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40960         (PROF): Use symbolic stack frame offsets.
40961         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40962         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40963         Redefine in terms of FRAME_MIN_SIZE.
40964         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40965         (_dl_profile_resolve): Likewise.  Update comment.
40966         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40967         symbols stack frame offsets.
40968         (__sigsetjmp): Likewise.
40969         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40970         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40971         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40972         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40973
40974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40975         (FRAME_BACKCHAIN): Remove.
40976         (FRAME_CR_SAVE): Likewise.
40977         (FRAME_LR_SAVE): Likewise.
40978         (FRAME_COMPILER_DW): Likewise.
40979         (FRAME_LINKER_DW): Likewise.
40980         (FRAME_TOC_SAVE): Likewise.
40981         (FRAME_PARM_SAVE): Likewise.
40982         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40983         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40984         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40986         (CHECK_SP): Use symbolic stack frame offsets.
40987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40988         zone" instead of caller's parameter save area for temp storage.
40989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40990         Likewise.  Also, use symbolic stack frame offsets.
40991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40992         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40993         our own stack frame instead of the caller's.
40994         (__socket): Use symbolic stack frame offsets.
40995
40996 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40997             Alan Modra  <amodra@gmail.com>
40998
40999         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41000         Define.
41001         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41002         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41003         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41004         New function.
41005         (elf_machine_fixup_plt): Call it.
41006         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41007         reloc arguments.
41008         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41009         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41010         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41011         r2 before calling target.
41012
41013 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41014             Alan Modra  <amodra@gmail.com>
41015
41016         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41017         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41018         versions of macros to support ELFv2 ABI.
41019         (LOCALENTRY): New macro.
41020         (ENTRY, EALIGN): Use it.
41021         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41022         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41023         fall through into ENTRY entry point.
41024         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41025         Only define if _CALL_ELF != 2.
41026
41027         (elf_machine_matches_host): Verify ABI version matches.
41028         (RTLD_START): Use LOCALENTRY.
41029         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41030         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41031         (PLT_ENTRY_WORDS): New macro.
41032         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41033         (elf_machine_runtime_setup): Support ELFv2 ABI.
41034         (elf_machine_fixup_plt): Likewise.
41035         (elf_machine_plt_conflict): Likewise.
41036         (resolve_ifunc): Likewise.
41037         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41038         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41039         Likewise.
41040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41041         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41043         (makecontext): Support ELFv2 ABI.
41044         * elf/elf.h (EF_PPC64_ABI): Define.
41045
41046 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41047
41048         * sysdeps/powerpc/powerpc64/sysdep.h
41049         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41050         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41051         (ENTRY) [ASSEMBLER]: ... but instead here ...
41052         (EALIGN) [ASSEMBLER]: ... and here.
41053         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41054         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41055         (ENTRY_2) [!ASSEMBLER]: Use it.
41056         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41057         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41058         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41059         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41060         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41062         Use PPC64_LOAD_FUNCPTR.
41063
41064         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41065
41066 2013-12-04  Alan Modra  <amodra@gmail.com>
41067
41068         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41069         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41070         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41071         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41072
41073         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41074         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41075         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41076         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41077         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41078         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41079
41080 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41081
41082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41083         (__makecontext): Fix incorrect CFI when backtracing out of
41084         context created via makecontext.
41085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41086         (__setcontext): Fix incorrect CFI during switch to new context.
41087         (__novec_setcontext): Likewise.
41088
41089 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41090
41091         [BZ #4772]
41092         * time/strptime_l.c (__strptime_internal): Allow modifiers
41093         in strptime.
41094         * time/tst-strptime.c (day_tests): Add testcase.
41095
41096 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41097
41098         * scripts/bench.pl: Skip over blank lines.
41099
41100 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41101
41102         [BZ #926]
41103         * manual/time.texi (Calendar Time): Clarify what timezone functions
41104         use.
41105
41106 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41107
41108         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41109
41110 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41111
41112         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41113         implementation.
41114         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41115         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41116         * debug/memset_chk.c (__memset_chk): Likewise.
41117         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41118         * debug/strncpy_chk.c: Likewise.
41119
41120 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41121
41122         [BZ #15268]
41123         [BZ #15425]
41124         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41125         (__ieee754_exp): For possibly underflowing results, check size of
41126         result and force underflow exception if required.
41127         * math/auto-libm-test-in: Add more tests of exp.
41128         * math/auto-libm-test-out: Regenerated.
41129         * sysdeps/i386/fpu/libm-test-ulps: Update.
41130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41131
41132         [BZ #16283]
41133         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41134         * math/w_exp2f.c (__exp2f): Likewise.
41135         * math/w_exp2l.c (__exp2l): Likewise.
41136         * math/auto-libm-test-in: Do not allow missing errno on exp2
41137         underflow.
41138         * math/auto-libm-test-out: Regenerated.
41139
41140 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41141
41142         [BZ #16274]
41143         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41144         handle filename validation.
41145         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41146         (do_open): Delete.
41147
41148 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41149
41150         [BZ #6786]
41151         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41152         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41153         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41154         <float.h>.
41155         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41156         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41157         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41158         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41159         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41160         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41161         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41162         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41163         Add more erfc tests.
41164         * math/auto-libm-test-out: Regenerated.
41165         * sysdeps/i386/fpu/libm-test-ulps: Update.
41166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41167
41168         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41169         exp2, expm1, j0 and j1.
41170         * math/auto-libm-test-out: Regenerated.
41171         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41172         (erfc_test_data): Likewise.
41173         (exp_test_data): Likewise.
41174         (exp_tonearest_test_data): Likewise.
41175         (exp_towardzero_test_data): Likewise.
41176         (exp_downward_test_data): Likewise.
41177         (exp_upward_test_data): Likewise.
41178         (exp10_test_data): Likewise.
41179         (exp2_test_data): Likewise.
41180         (expm1_test_data): Likewise.
41181         (j0_test_data): Likewise.
41182         (j1_test_data): Likewise.
41183         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41184         (input_flag_type): Add flag_xfail_rounding.
41185         (input_flags): Add xfail-rounding.
41186         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41187         (output_for_one_input_case): Handle flag_xfail_rounding.
41188         * sysdeps/i386/fpu/libm-test-ulps: Update.
41189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41190
41191 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41192
41193         [BZ #16289]
41194         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41195         division by 0.
41196
41197 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41198
41199         [BZ #16195]
41200         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41201         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41202         (STAP_PROBE0): New macro.
41203         (STAP_PROBE1): Likewise.
41204         (STAP_PROBE2): Likewise.
41205         (STAP_PROBE3): Likewise.
41206         (STAP_PROBE4): Likewise.
41207
41208 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41209
41210         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41211
41212 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41213
41214         * benchtests/Makefile (bench): Add sqrt.
41215         (LDLIBS-bench-sqrt): New.
41216         * benchtests/sqrt-input: New.
41217
41218 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41219
41220         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41221         (GAIH_EAI): Likewise.
41222         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41223         (gaih_inet): Likewise.
41224         (getaddrinfo): Don't use GAIH_EAI.
41225
41226         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41227         (struct gaih): Remove definition.
41228
41229 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41230
41231         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41232         Use HERRNOP directly.
41233
41234 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41235
41236         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41237
41238 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41239
41240         * math/gen-auto-libm-tests.c (test_functions): Add more
41241         single-argument functions.
41242         (special_fill_pi_2): New function.
41243         (special_fill_minus_pi_2): Likewise.
41244         (special_fill_pi_6): Likewise.
41245         (special_fill_minus_pi_6): Likewise.
41246         (special_fill_pi_3): Likewise.
41247         (special_fill_2pi_3): Likewise.
41248         (special_fill_e): Likewise.
41249         (special_fill_1_e): Likewise.
41250         (special_fill_e_minus_1): Likewise.
41251         (special_real_inputs): Add more special inputs.
41252         (output_for_one_input_case): Do not require ERANGE on underflow to
41253         zero if round-to-nearest result does not underflow to zero, unless
41254         exact results required.
41255         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41256         atan, atanh, cbrt, cos and cosh.
41257         * math/auto-libm-test-out: Regenerated.
41258         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41259         (acos_tonearest_test_data): Likewise.
41260         (acos_towardzero_test_data): Likewise.
41261         (acos_downward_test_data): Likewise.
41262         (acos_upward_test_data): Likewise.
41263         (acosh_test_data): Likewise.
41264         (asin_test_data): Likewise.
41265         (asin_tonearest_test_data): Likewise.
41266         (asin_towardzero_test_data): Likewise.
41267         (asin_upward_test_data): Likewise.
41268         (asinh_test_data): Likewise.
41269         (atan_test_data): Likewise.
41270         (atanh_test_data): Likewise.
41271         (cbrt_test_data): Likewise.
41272         (cos_test_data): Likewise.
41273         (cos_tonearest_test_data): Likewise.
41274         (cos_towardzero_test_data): Likewise.
41275         (cos_downward_test_data): Likewise.
41276         (cos_upward_test_data): Likewise.
41277         (cosh_test_data): Likewise.
41278         (cosh_tonearest_test_data): Likewise.
41279         (cosh_towardzero_test_data): Likewise.
41280         (cosh_downward_test_data): Likewise.
41281         (cosh_upward_test_data): Likewise.
41282         * sysdeps/i386/fpu/libm-test-ulps: Update.
41283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41284
41285 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41286
41287         [BZ #6787]
41288         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41289         * math/w_exp10f.c (__exp10f): Likewise.
41290         * math/w_exp10l.c (__exp10l): Likewise.
41291         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41292         errno settings in existing tests.
41293
41294         [BZ #14032]
41295         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41296         precision control set to double precision.
41297         * sysdeps/i386/fpu/w_sqrt.c: New file.
41298         * math/auto-libm-test-in: Add more tests.
41299         * math/auto-libm-test-out: Update.
41300
41301         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41302         (sqrt_test_tonearest): New function.
41303         (sqrt_towardzero_test_data): New variable.
41304         (sqrt_test_towardzero): New function.
41305         (sqrt_downward_test_data): New variable.
41306         (sqrt_test_downward): New function.
41307         (sqrt_upward_test_data): New variable.
41308         (sqrt_test_upward): New function.
41309         (main): Call the new functions.
41310
41311         * math/gen-auto-libm-tests.c: New file.
41312         * math/auto-libm-test-in: Likewise.
41313         * math/auto-libm-test-out: New generated file.
41314         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41315         variables.
41316         (%beautify): Add generated representations of zero.
41317         (top level): Set $auto_input and call parse_auto_input.
41318         (beautify): Remove trailing "f" from hex float constants.
41319         (parse_args): Handle XFAIL_TEST.
41320         (convert_condition): New function.
41321         (or_value): Likewise.
41322         (or_cond_value): Likewise.
41323         (generate_testfile): Handle AUTO_TESTS_* lines.
41324         (parse_auto_input): New function.
41325         * math/libm-test.inc (XFAIL_TEST): New macro.
41326         (ERRNO_UNCHANGED): Update value.
41327         (ERRNO_EDOM): Likewise.
41328         (ERRNO_ERANGE): Likewise.
41329         (IGNORE_RESULT): Likewise.
41330         (TEST_COND_flt_32): New macro.
41331         (TEST_COND_dbl_64): Likewise.
41332         (TEST_COND_ldbl_96_intel): Likewise.
41333         (TEST_COND_ldbl_96_m68k): Likewise.
41334         (TEST_COND_ldbl_128): Likewise.
41335         (TEST_COND_ldbl_128ibm): Likewise.
41336         (TEST_COND_long32): Likewise.
41337         (TEST_COND_long64): Likewise.
41338         (TEST_COND_before_rounding): Likewise.
41339         (TEST_COND_after_rounding): Likewise.
41340         (enable_test): Handle XFAIL_TEST flag.
41341         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41342         with finite results.
41343         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41344         auto-libm-test-out.
41345
41346 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41347             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41348
41349         [BZ #16214]
41350         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41351         __tls_get_addr_internal instead of __tls_get_offset in order to
41352         avoid GOT pointer dependency.  Make rtld export
41353         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41354         __tls_get_addr since we are a __tls_get_offset platform.
41355         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41356         GOT pointer being set up before.
41357         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41358
41359 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41360
41361         * manual/math.texi (Errors in Math Functions): Document accuracy
41362         goals.
41363
41364         [BZ #15004]
41365         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41366         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41367         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41368         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41369         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41370         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41371         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41372         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41373         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41374         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41375         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41376         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41377         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41378         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41379         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41380         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41381
41382         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41383         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41384         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41385         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41386         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41387         Likewise.
41388         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41389         Likewise.
41390         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41391         Likewise.
41392         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41393         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41394         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41395         atomic-feupdateenv and flt-rounds.
41396         * sysdeps/powerpc/nofpu/Versions (libc): Add
41397         __atomic_feholdexcept, __atomic_feclearexcept,
41398         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41399         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41400         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41401         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41402         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41403         here.
41404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41405         Update.
41406
41407         * manual/arith.texi (FP Exceptions): Document that exceptions may
41408         not be raised when matherr is used.
41409         (Math Error Reporting): Document overflow in directed rounding
41410         modes.  Document that errno may not be set when finite values are
41411         returned on overflow.  Document intent to set errno on underflow
41412         only for underflow to zero.
41413
41414         [BZ #16271]
41415         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41416         round-to-nearest then adjust result for other rounding modes.
41417         * include/fenv.h (fegetround): Use libm_hidden_proto.
41418         * math/fegetround.c (fegetround): Use libm_hidden_def.
41419         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41420         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41421         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41422         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41423         Likewise.
41424         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41425         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41426         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41427         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41428
41429 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41430
41431         [BZ #16077]
41432         * nss/Versions (libnss_files): Add
41433         _nss_files_gethostbyname3_r.
41434         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41435         New function.
41436         (HOST_DB_LOOKUP): Remove macro.
41437         (_nss_files_gethostbyname_r): Implement function without the
41438         HOST_DB_LOOKUP macro.
41439         (_nss_files_gethostbyname2_r): Likewise.
41440
41441 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41442
41443         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41444
41445 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41446
41447         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41448         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41449         warning.
41450
41451 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41452
41453         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41454         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41455         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41456         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41457         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41458         __fe_nomask_env_priv and attribute_hidden.
41459         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41460         (libc_feupdateenv_test_ppc): Likewise.
41461         (libc_feresetround_ppc): Likewise.
41462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41463         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41464         compat_symbol macro.
41465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41466         (__fe_nomask_env): Likewise.
41467         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41468
41469 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41470
41471         * string/Makefile: Remove ifunc tests.
41472         * string/test-string.h: Define TEST_IFUNC.
41473         * string/test-bcopy-ifunc.c: Remove.
41474         * string/test-bzero-ifunc.c: Likewise.
41475         * string/test-memccpy-ifunc.c: Likewise.
41476         * string/test-memchr-ifunc.c: Likewise.
41477         * string/test-memcmp-ifunc.c: Likewise.
41478         * string/test-memcpy-ifunc.c: Likewise.
41479         * string/test-memmem-ifunc.c: Likewise.
41480         * string/test-memmove-ifunc.c: Likewise.
41481         * string/test-mempcpy-ifunc.c: Likewise.
41482         * string/test-memrchr-ifunc.c: Likewise.
41483         * string/test-memset-ifunc.c: Likewise.
41484         * string/test-rawmemchr-ifunc.c: Likewise.
41485         * string/test-stpcpy-ifunc.c: Likewise.
41486         * string/test-stpncpy-ifunc.c: Likewise.
41487         * string/test-strcasecmp-ifunc.c: Likewise.
41488         * string/test-strcasestr-ifunc.c: Likewise.
41489         * string/test-strcat-ifunc.c: Likewise.
41490         * string/test-strchr-ifunc.c: Likewise.
41491         * string/test-strchrnul-ifunc.c: Likewise.
41492         * string/test-strcmp-ifunc.c: Likewise.
41493         * string/test-strcpy-ifunc.c: Likewise.
41494         * string/test-strcspn-ifunc.c: Likewise.
41495         * string/test-strlen-ifunc.c: Likewise.
41496         * string/test-strncasecmp-ifunc.c: Likewise.
41497         * string/test-strncat-ifunc.c: Likewise.
41498         * string/test-strncmp-ifunc.c: Likewise.
41499         * string/test-strncpy-ifunc.c: Likewise.
41500         * string/test-strnlen-ifunc.c: Likewise.
41501         * string/test-strpbrk-ifunc.c: Likewise.
41502         * string/test-strrchr-ifunc.c: Likewise.
41503         * string/test-strspn-ifunc.c: Likewise.
41504         * string/test-strstr-ifunc.c: Likewise.
41505
41506 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41507
41508         * benchtests/Makefile: Remove ifunc tests.
41509         * benchtests/bench-string.h: Define TEST_IFUNC.
41510         * benchtests/bench-bcopy-ifunc.c: Remove.
41511         * benchtests/bench-bzero-ifunc.c: Likewise.
41512         * benchtests/bench-memccpy-ifunc.c: Likewise.
41513         * benchtests/bench-memchr-ifunc.c: Likewise.
41514         * benchtests/bench-memcmp-ifunc.c: Likewise.
41515         * benchtests/bench-memcpy-ifunc.c: Likewise.
41516         * benchtests/bench-memmem-ifunc.c: Likewise.
41517         * benchtests/bench-memmove-ifunc.c: Likewise.
41518         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41519         * benchtests/bench-memrchr-ifunc.c: Likewise.
41520         * benchtests/bench-memset-ifunc.c: Likewise.
41521         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41522         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41523         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41524         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41525         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41526         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41527         * benchtests/bench-strcat-ifunc.c: Likewise.
41528         * benchtests/bench-strchr-ifunc.c: Likewise.
41529         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41530         * benchtests/bench-strcmp-ifunc.c: Likewise.
41531         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41532         * benchtests/bench-strcpy-ifunc.c: Likewise.
41533         * benchtests/bench-strcspn-ifunc.c: Likewise.
41534         * benchtests/bench-strlen-ifunc.c: Likewise.
41535         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41536         * benchtests/bench-strncat-ifunc.c: Likewise.
41537         * benchtests/bench-strncmp-ifunc.c: Likewise.
41538         * benchtests/bench-strncpy-ifunc.c: Likewise.
41539         * benchtests/bench-strnlen-ifunc.c: Likewise.
41540         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41541         * benchtests/bench-strrchr-ifunc.c: Likewise.
41542         * benchtests/bench-strsep-ifunc.c: Likewise.
41543         * benchtests/bench-strspn-ifunc.c: Likewise.
41544         * benchtests/bench-strstr-ifunc.c: Likewise.
41545
41546 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41547
41548         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41549
41550 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41551
41552         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41553         * rt/aio.h: Likewise.
41554         * sysdeps/gnu/bits/utmp.h: Likewise.
41555         * sysdeps/gnu/bits/utmpx.h: Likewise.
41556         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41557         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41558         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41559         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41560         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41561         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41562         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41563         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41564         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41565         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41566         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41567         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41568         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41570         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41571         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41572         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41573         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41574         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41575         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41576         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41577         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41578         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41579         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41580         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41581         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41582         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41583         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41584         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41585         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41586         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41587         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41588         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41589         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41590         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41591         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41592         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41593         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41594         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41595         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41596         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41597         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41598
41599 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41600
41601         [BZ #16245]
41602         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41603         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41604
41605 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41606
41607         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41608         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41609         Likewise.
41610
41611 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41612
41613         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41614         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41615         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41616         (__fesetround): Remove define.
41617         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41618         rounding and exceptions handling.
41619         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41620         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41621         (__fe_nomask_env): Likewise.
41622         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41623         __fegetround instead of fegetround.
41624         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41625         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41626
41627 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41628
41629         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41630         it's there.
41631
41632         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41633
41634 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41635
41636         [BZ #11157]
41637         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41638         (encrypt_r): Likewise.
41639         * malloc/obstack.h (obstack_free): Likewise.
41640         * posix/unistd.h (encrypt): Likewise.
41641
41642 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41643
41644         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41645         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41646         DL_CALL_DT_FINI() that call the functions directly.
41647         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41648         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41649         * elf/dl-fini.c: Likewise.
41650
41651 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41652
41653         * malloc/hooks.c (memalign_check): Add alignment rounding.
41654         * malloc/malloc.c (_mid_memalign): New function.
41655         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41656         Implement by calling _mid_memalign.
41657         * manual/probes.texi (Memory Allocation Probes): Remove
41658         memory_valloc_retry and memory_pvalloc_retry.
41659
41660 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41661
41662         * locale/programs/locarchive.c (open_archive): Add const
41663         qualifier to ARCHIVEFNAME and copy default fname to
41664         DEFAULT_FNAME.
41665
41666         [BZ #15601]
41667         * libio/tst-widetext.input: Rename Oriya to Odia.
41668         * locale/iso-639.def: Likewise.
41669
41670         * manual/probes.texi (Mathematical Function Probes): Add
41671         documentation for sin, cos, asin and acos probes.
41672         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41673         (__sin32): Add slowasin probe.
41674         (__cos32): Add slowacos probe.
41675         (__mpsin): Add slowsin probe.
41676         (__mpcos): Add slowcos probe.
41677
41678 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41679
41680         [BZ #15483]
41681         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41682         thread-local __sim_exceptions_thread and global
41683         __sim_exceptions_global.
41684         (__sim_disabled_exceptions): Change to thread-local
41685         __sim_disabled_exceptions_thread and global
41686         __sim_disabled_exceptions_global.
41687         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41688         and global __sim_round_mode_global.
41689         (__simulate_exceptions): Use thread-local floating-point state and
41690         set global state from it as needed.
41691         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41692         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41693         __sim_round_mode_thread.
41694         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41695         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41696         and global __sim_exceptions_global.
41697         (__sim_disabled_exceptions): Change to thread-local
41698         __sim_disabled_exceptions_thread and global
41699         __sim_disabled_exceptions_global.
41700         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41701         and global __sim_round_mode_global.
41702         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41703         (SIM_SET_GLOBAL): Likewise.
41704         * sysdeps/powerpc/soft-fp/sfp-machine.h
41705         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41706         __sim_round_mode_thread.
41707         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41708         __sim_disabled_exceptions_thread.
41709         (__sim_exceptions): Change to __sim_exceptions_thread.
41710         (__sim_disabled_exceptions): Change to
41711         __sim_disabled_exceptions_thread.
41712         (__sim_round_mode): Change to __sim_round_mode_thread.
41713         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41714         thread-local floating-point state and set global state from it as
41715         needed.
41716         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41717         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41718         (__sim_disabled_exceptions): Remove extern declaration.
41719         (feenableexcept): Use thread-local floating-point state and set
41720         global state from it as needed.
41721         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41722         extern declaration.
41723         (__sim_disabled_exceptions): Likewise.
41724         (__sim_round_mode): Likewise.
41725         (__fegetenv): Use thread-local floating-point state.
41726         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41727         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41728         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41729         floating-point state and set global state from it as needed.
41730         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41731         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41732         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41733         Likewise.
41734         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41735         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41736         Likewise.
41737         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41738         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41739         Use __sim_round_mode_thread.
41740         * math/test-fenv-tls.c: New file.
41741         * math/Makefile (tests): Add test-fenv-tls.
41742         ($(objpfx)test-fenv-tls): Depend on
41743         $(common-objpfx)nptl/libpthread.so.
41744
41745 2013-11-19  Andreas Schwab  <schwab@suse.de>
41746
41747         * locale/programs/locale.c (show_info): Decode wordarray elements.
41748         * locale/categories.def (LC_MONETARY): Add element for
41749         _NL_MONETARY_CRNCYSTR.
41750         * locale/C-monetary.c (conversion_rate): New variable.
41751         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41752         element.
41753
41754 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41755
41756         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41757         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41758
41759 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41760
41761         * elf/Makefile (tst-auxv): New test.
41762         * elf/tst-auxv.c: New
41763         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41764
41765 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41766
41767         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41768         (hidden_proto): Caller changed.
41769         (hidden_tls_proto): New macro.
41770         (libc_hidden_tls_proto): Likewise.
41771         (rtld_hidden_tls_proto): Likewise.
41772         (libm_hidden_tls_proto): Likewise.
41773         (libresolv_hidden_tls_proto): Likewise.
41774         (librt_hidden_tls_proto): Likewise.
41775         (libdl_hidden_tls_proto): Likewise.
41776         (libnss_files_hidden_tls_proto): Likewise.
41777         (libnsl_hidden_tls_proto): Likewise.
41778         (libnss_nisplus_hidden_tls_proto): Likewise.
41779         (libutil_hidden_tls_proto): Likewise.
41780
41781 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41782
41783         [BZ #10253]
41784         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41785         (decompose_rpath): Defer expansion to fillin_rpath.
41786         (_dl_init_paths): Pass linkmap to fillin_rpath.
41787
41788 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41789
41790         * benchtests/Makefile: Add strsep.
41791         * benchtests/bench-strsep.c: New file: strsep benchtest.
41792         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41793
41794 2013-11-18  Andreas Schwab  <schwab@suse.de>
41795
41796         * locale/programs/locale.c (show_info) [case byte]: Check for
41797         '\377' instead of '\177'.
41798         * locale/C-monetary.c (not_available): Always use "\377".
41799         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41800         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41801         detect unavailable sign_posn locale elements.
41802         * locale/localeconv.c (__localeconv): For grouping and
41803         mon_grouping handle "\177" and "\377" like no grouping.
41804         (INT_ELEM): New macro.  Use it to set all numeric members.
41805         * locale/programs/ld-monetary.c (monetary_read)
41806         <tok_mon_grouping>: Normalize single -1 to the empty string.
41807         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41808         Likewise.
41809
41810 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41811
41812         [BZ #16055]
41813         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41814         when we match (nil).
41815         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41816
41817 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41818
41819         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41820         (NO_TEST_INLINE): Update value.
41821         (ERRNO_UNCHANGED): Likewise.
41822         (ERRNO_EDOM): Likewise.
41823         (ERRNO_ERANGE): Likewise.
41824         (IGNORE_RESULT): Likewise.
41825         (check_float_internal): Check signs of NaN results if
41826         TEST_NAN_SIGN used.
41827         (check_complex): Pass TEST_NAN_SIGN flag through to second
41828         check_float_internal call.
41829         (copysign_test_data): Add tests with quiet NaNs as second
41830         argument.  Use TEST_NAN_SIGN.
41831         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41832         TEST_NAN_SIGN.
41833         (signbit_test_data): Add tests of quiet NaN argument.
41834         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41835
41836         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41837         $ignore_result.
41838         (parse_args): Handle function results specified as IGNORE.
41839         * math/libm-test.inc (IGNORE_RESULT): New macro.
41840         (check_float_internal): Do not check numerical result if flag
41841         IGNORE_RESULT set.
41842         (check_complex): Pass through IGNORE_RESULT to second
41843         check_float_internal call.
41844         (check_int): Do not check numerical result if flag IGNORE_RESULT
41845         set.
41846         (check_long): Likewise.
41847         (check_bool): Likewise.
41848         (check_longlong): Likewise.
41849         (lrint_test_data): Add tests of infinite and NaN arguments.
41850         (lrint_tonearest_test_data): Likewise.
41851         (lrint_towardzero_test_data): Likewise.
41852         (lrint_downward_test_data): Likewise.
41853         (lrint_upward_test_data): Likewise.
41854         (llrint_test_data): Likewise.
41855         (llrint_tonearest_test_data): Likewise.
41856         (llrint_towardzero_test_data): Likewise.
41857         (llrint_downward_test_data): Likewise.
41858         (llrint_upward_test_data): Likewise.
41859         (lround_test_data): Likewise.
41860         (llround_test_data): Likewise.
41861
41862         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41863         (ERRNO_UNCHANGED): Update value.
41864         (ERRNO_EDOM): Likewise.
41865         (ERRNO_ERANGE): Likewise.
41866         (NO_TEST_INLINE_FLOAT): New macro.
41867         (NO_TEST_INLINE_DOUBLE): Likewise.
41868         (enable_test): New function.
41869         (RUN_TEST_f_f): Check enable_test before running test.
41870         (RUN_TEST_2_f): Likewise.
41871         (RUN_TEST_fff_f): Likewise.
41872         (RUN_TEST_c_f): Likewise.
41873         (RUN_TEST_f_f1): Likewise.
41874         (RUN_TEST_fF_f1): Likewise.
41875         (RUN_TEST_fI_f1): Likewise.
41876         (RUN_TEST_ffI_f1): Likewise.
41877         (RUN_TEST_c_c): Likewise.
41878         (RUN_TEST_cc_c): Likewise.
41879         (RUN_TEST_f_i): Likewise.
41880         (RUN_TEST_f_i_tg): Likewise.
41881         (RUN_TEST_ff_i_tg): Likewise.
41882         (RUN_TEST_f_b): Likewise.
41883         (RUN_TEST_f_b_tg): Likewise.
41884         (RUN_TEST_f_l): Likewise.
41885         (RUN_TEST_f_L): Likewise.
41886         (RUN_TEST_fFF_11): Likewise.
41887         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41888         conditionals.
41889         (cosh_test_data): Likewise.
41890         (exp_test_data): Likewise.
41891         (expm1_test_data): Likewise.
41892         (hypot_test_data): Likewise.
41893         (pow_test_data): Likewise.
41894         (sinh_test_data): Likewise.
41895         (tanh_test_data): Likewise.
41896         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41897         flags argument.
41898
41899         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41900         tests with quiet NaN input and output.
41901         (acosh_test_data): Likewise.
41902         (asin_test_data): Likewise.
41903         (asinh_test_data): Likewise.
41904         (atan_test_data): Likewise.
41905         (atanh_test_data): Likewise.
41906         (atan2_test_data): Likewise.
41907         (cbrt_test_data): Likewise.
41908         (cos_test_data): Likewise.
41909         (cosh_test_data): Likewise.
41910         (erf_test_data): Likewise.
41911         (erfc_test_data): Likewise.
41912         (exp_test_data): Likewise.
41913         (exp10_test_data): Likewise.
41914         (exp2_test_data): Likewise.
41915         (expm1_test_data): Likewise.
41916         (hypot_test_data): Likewise.
41917         (j0_test_data): Likewise.
41918         (j1_test_data): Likewise.
41919         (jn_test_data): Likewise.
41920         (lgamma_test_data): Likewise.
41921         (log_test_data): Likewise.
41922         (log10_test_data): Likewise.
41923         (log1p_test_data): Likewise.
41924         (log2_test_data): Likewise.
41925         (pow_test_data): Likewise.
41926         (scalb_test_data): Likewise.
41927         (sin_test_data): Likewise.
41928         (sincos_test_data): Likewise.
41929         (sinh_test_data): Likewise.
41930         (tan_test_data): Likewise.
41931         (tanh_test_data): Likewise.
41932         (tgamma_test_data): Likewise.
41933         (y0_test_data): Likewise.
41934         (y1_test_data): Likewise.
41935         (yn_test_data): Likewise.
41936
41937         [BZ #16167]
41938         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41939         argument being NaN and avoid computations with second argument in
41940         that case.
41941         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41942         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41943         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41944
41945 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41946
41947         * locale/iso-639.def: Add Chitwani Tharu (the).
41948
41949 2013-11-14  Andreas Schwab  <schwab@suse.de>
41950
41951         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41952         word instead of empty string.
41953
41954 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41955
41956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41957         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41959         (__fe_nomask_env): Likewise.
41960
41961 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41962
41963         * benchtests/bench-timing.h: Include time.h.
41964
41965 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41966
41967         [BZ #15997]
41968         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41969         to 3.4.0 for x32.
41970         * sysdeps/unix/sysv/linux/configure: Regenerated.
41971
41972 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41973
41974         [BZ #16151]
41975         * stdlib/strtod_l.c (round_and_return): Do not consider
41976         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41977         exponent one less than half the least subnormal exponent.
41978         * stdlib/test-strtod-round-data: Add more tests.
41979         * stdlib/tst-strtod-round.c (tests): Regenerated.
41980
41981 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41982
41983         [BZ #14143]
41984         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41985         (__fe_mask_env): Likewise.
41986         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41987         libm_hidden_proto and add function prototype.
41988         (__fe_mask_env): Add function prototype.
41989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41990         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41992         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41994         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41995
41996 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41997
41998         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41999         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42000
42001 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42002
42003         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42004         of htab_find_slot().
42005
42006 2013-11-11  David S. Miller  <davem@davemloft.net>
42007
42008         [BZ #16150]
42009         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42010         symbol in the non-vis3 case in static builds.
42011         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42012         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42013         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42014         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42015
42016 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42017
42018         [BZ #387]
42019         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42020         it is empty.
42021
42022 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42023
42024         * benchtests/Makefile: Add bench-strtod.
42025         * benchtests/bench-strtod.c: New file: strtod benchtest
42026
42027 2013-11-11  Andreas Schwab  <schwab@suse.de>
42028
42029         [BZ #16153]
42030         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42031         terminating NUL in key length.
42032
42033 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42034
42035         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42036         Add artificial ODP entry for vDSO symbol for PPC64.
42037         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42038         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42039
42040 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42041
42042         [BZ #15374]
42043         * nss/getent.c (services_keys): Recognize services starting with digit.
42044
42045 2013-11-06  David S. Miller  <davem@davemloft.net>
42046
42047         [BZ #15985]
42048         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42049         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42050
42051 2013-11-06  Will Newton  <will.newton@linaro.org>
42052
42053         * manual/memory.texi (Malloc Examples): Remove register
42054         keyword from examples.
42055
42056 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42057
42058         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42059
42060 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42061
42062         [BZ #6981]
42063         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42064         depending on [__GCC_IEC_559 > 0].
42065         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42066         depending on [__GCC_IEC_559_COMPLEX > 0].
42067
42068 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42069
42070         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42071         to iso-639.def.
42072
42073 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42074
42075         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42076
42077 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42078
42079         [BZ #16112]
42080         * malloc/malloc (malloc_info): Do not handle first bin as
42081         special case.
42082
42083 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42084
42085         * locale/iso-639.def: Add Central Nahuatl (nhn).
42086
42087 2013-11-01  Bruno Haible  <bruno@clisp.org>
42088
42089         [BZ #7003]
42090         * manual/math.texi (BSD Random): Specify range upper bound as
42091         in POSIX.
42092
42093 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42094
42095         * locale/iso-639.def: Add Meadow Mari (mhr).
42096
42097 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42098
42099         [BZ #14752], [BZ #15763]
42100         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42101         Validate name.
42102         * rt/tst_shm.c: Add test for escaping directory.
42103
42104 2013-10-31  Andreas Schwab  <schwab@suse.de>
42105
42106         [BZ #15917]
42107         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42108         followed by 'x' as part of digit sequence.
42109         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42110
42111 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42112
42113         [BZ #16037]
42114         * configure.ac: allow GNU Make 4.0 and greater.
42115         * configure: Regenerated.
42116
42117 2013-10-30  Will Newton  <will.newton@linaro.org>
42118
42119         [BZ #16038]
42120         * malloc/hooks.c (memalign_check): Limit alignment to the
42121         maximum representable power of two.
42122         * malloc/malloc.c (__libc_memalign): Likewise.
42123         * malloc/tst-memalign.c (do_test): Add test for very
42124         large alignment values.
42125         * malloc/tst-posix_memalign.c (do_test): Likewise.
42126
42127 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42128
42129         [BZ #11087]
42130         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42131         (munmap_chunk): Likewise.
42132         (mremap_chunk): Likewise.
42133
42134 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42135
42136         [BZ #15799]
42137         * stdlib/div.c (div): Remove obsolete code.
42138         * stdlib/ldiv.c (ldiv): Likewise.
42139         * stdlib/lldiv.c (lldiv): Likewise.
42140
42141 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42142
42143         [BZ #16071]
42144         * nss/nss_files/files-XXX.c (get_contents_ret): New
42145         enumerator.
42146         (get_contents): New function.
42147         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42148
42149 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42150
42151         * configure.in: Moved to ...
42152         * configure.ac: ... here. Change reference to configure.in
42153         to configure.ac.
42154         * sysdeps/arm/preconfigure.ac: ... here.
42155         configure.in to configure.ac.
42156         * sysdeps/gnu/configure.in: Moved to ...
42157         * sysdeps/gnu/configure.ac: ... here.
42158         * sysdeps/i386/configure.in: Moved to ...
42159         * sysdeps/i386/configure.ac: ... here.
42160         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42161         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42162         * sysdeps/mach/configure.in: Moved to ...
42163         * sysdeps/mach/configure.ac: ... here.
42164         * sysdeps/mach/hurd/configure.in: Moved to ...
42165         * sysdeps/mach/hurd/configure.ac: ... here.
42166         * sysdeps/powerpc/configure.in: Moved to ...
42167         * sysdeps/powerpc/configure.ac: ... here.
42168         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42169         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42170         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42171         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42172         * sysdeps/s390/s390-32/configure.in: Moved to ...
42173         * sysdeps/s390/s390-32/configure.ac: ... here.
42174         * sysdeps/s390/s390-64/configure.in: Moved to ...
42175         * sysdeps/s390/s390-64/configure.ac: ... here.
42176         * sysdeps/sh/configure.in: Moved to ...
42177         * sysdeps/sh/configure.ac: ... here.
42178         * sysdeps/sparc/configure.in: Moved to ...
42179         * sysdeps/sparc/configure.ac: ... here.
42180         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42181         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42182         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42183         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42184         * sysdeps/x86_64/configure.in: Moved to ...
42185         * sysdeps/x86_64/configure.ac: ... here.
42186         * sysdeps/x86_64/preconfigure.in: Moved to ...
42187         * sysdeps/x86_64/preconfigure.ac: ... here.
42188         * aclocal.m4: Change reference to configure.in to configure.ac.
42189         * config.h.in: Likewise.
42190         * manual/install.texi: Likewise.
42191         * manual/maint.texi: Likewise.
42192         * Makefile: Likewise.
42193         * malloc/Makefile: Likewise.
42194         * nscd/Makefile: Likewise.
42195         * Makeconfig: Change reference to configure.in and
42196         preconfigure.in to configure.ac and preconfigure.ac
42197         respectively.
42198         * INSTALL: Regenerated.
42199         * configure: Likewise.
42200         * sysdeps/gnu/configure: Likewise.
42201         * sysdeps/i386/configure: Likewise.
42202         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42203         * sysdeps/mach/configure: Likewise.
42204         * sysdeps/mach/hurd/configure: Likewise.
42205         * sysdeps/powerpc/configure: Likewise.
42206         * sysdeps/powerpc/powerpc32/configure: Likewise.
42207         * sysdeps/powerpc/powerpc64/configure: Likewise.
42208         * sysdeps/s390/s390-32/configure: Likewise.
42209         * sysdeps/s390/s390-64/configure: Likewise.
42210         * sysdeps/sh/configure: Likewise.
42211         * sysdeps/sparc/configure: Likewise.
42212         * sysdeps/unix/sysv/linux/configure: Likewise.
42213         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42214         * sysdeps/x86_64/configure: Likewise.
42215         * sysdeps/x86_64/preconfigure: Likewise.
42216
42217 2013-10-29  Andreas Schwab  <schwab@suse.de>
42218
42219         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42220
42221 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42222
42223         * benchtests/pow-inputs: Add new inputs.
42224
42225         * benchtests/exp-inputs: Add new inputs.
42226
42227         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42228         conditional check for return value.
42229         (__cos32): Likewise.
42230
42231 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42232
42233         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42234         to provide a boost for large inputs with word alignment.
42235         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42236         implementation based on optimized PPC64 strcpy.
42237         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42238         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42239         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42240         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42241
42242 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42243
42244         [BZ #2801]
42245         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42246
42247 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42248
42249         [BZ #14876]
42250         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42251         * time/tst-strptime.c (day_tests): Add testcase.
42252
42253 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42254
42255         [BZ #14029]
42256         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42257
42258 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42259
42260         [BZ #16074]
42261         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42262         MAP_FAILED on error.
42263
42264 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42265
42266         [BZ #16072]
42267         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42268         heap for large requests.
42269
42270 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42271
42272         [BZ #9954]
42273         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42274         result if the result has no associated interface.
42275         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42276         interface for all 127.X.Y.Z addresses.
42277
42278 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42279
42280         * locale/iso-639.def: Add Ligurian (lij)
42281
42282 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42283
42284         [BZ #15825]
42285         * sunrpc/rpc_main.c: Document rpcgen -5.
42286
42287 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42288
42289         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42290
42291 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42292
42293         [BZ #10278]
42294         * posix/glob.c: Match only directories when trailing slash is present.
42295         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42296         (main): Add testcase.
42297
42298 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42299
42300         [BZ #15670]
42301         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42302
42303 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42304
42305         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42306         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42307         AUTH_DES and cindex for FIPS 140-2.
42308         (DES Encryption): Add cindex FIPS 46-3.
42309
42310         * locale/locarchive.h (struct locarhandle): Add fname.
42311         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42312         if an optional argument was specified to --list-archive,
42313         otherwise NULL.
42314         * locale/programs/locarchive.c (show_archive_content): Take new
42315         argument fname and pass it via ah.fname to open_archive.
42316         * locale/programs/localedef.h: Update decl.
42317         (open_archive): If AH->fname is non-null, open that file
42318         rather than the default file name, and don't ignore ENOENT.
42319         (create_archive): Set AH.fname to NULL.
42320         (delete_locales_from_archive): Likewise.
42321         (add_locales_to_archive): Likewise.
42322         * locale/programs/locfile.c (write_all_categories): Likewise.
42323
42324 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42325             Aldy Hernandez  <aldyh@redhat.com>
42326
42327         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42328         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42329         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42330         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42331         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42332         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42333         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42334         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42335         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42336         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42337         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42338         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42339         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42340         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42341         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42342         Likewise.
42343         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42344         Likewise.
42345         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42346         Likewise.
42347         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42348         Likewise.
42349         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42350         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42351         Likewise.
42352         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42353         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42354         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42355         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42356         Likewise.
42357         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42358         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42359         * sysdeps/powerpc/preconfigure: Likewise.
42360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42361         Likewise.
42362         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42363         Replace contents of file by #include of <fenv_libc.h>.
42364         * sysdeps/powerpc/soft-fp/sfp-machine.h
42365         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42366         and <sys/prctl.h>.
42367         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42368         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42369         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42370         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42371         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42372         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42373         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42374         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42375         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42376         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42377         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42378         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42380         Allow copysignl PLT reference to be missing.
42381
42382 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42383             Joseph Myers  <joseph@codesourcery.com
42384
42385         [BZ #15948]
42386         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42387         single character.
42388         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42389
42390 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42391
42392         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42393         * elf/tst-tls1.c: Likewise.
42394         * elf/tst-tls10.h: Likewise.
42395         * elf/tst-tls14.c: Likewise.
42396         * elf/tst-tls2.c: Likewise.
42397         * elf/tst-tls3.c: Likewise.
42398         * elf/tst-tls4.c: Likewise.
42399         * elf/tst-tls5.c: Likewise.
42400         * elf/tst-tls6.c: Likewise.
42401         * elf/tst-tls7.c: Likewise.
42402         * elf/tst-tls8.c: Likewise.
42403         * elf/tst-tls9.c: Likewise.
42404         * elf/tst-tlsmod1.c: Likewise.
42405         * elf/tst-tlsmod13.c: Likewise.
42406         * elf/tst-tlsmod13a.c: Likewise.
42407         * elf/tst-tlsmod14a.c: Likewise.
42408         * elf/tst-tlsmod16a.c: Likewise.
42409         * elf/tst-tlsmod16b.c: Likewise.
42410         * elf/tst-tlsmod2.c: Likewise.
42411         * elf/tst-tlsmod3.c: Likewise.
42412         * elf/tst-tlsmod4.c: Likewise.
42413         * elf/tst-tlsmod5.c: Likewise.
42414         * elf/tst-tlsmod6.c: Likewise.
42415
42416 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42417
42418         [BZ #12486]
42419         * malloc/malloc.c: remove checks for statistics.
42420
42421 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42422
42423         [BZ #15277]
42424         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42425         * inet/tst-network.c: Add testcase.
42426
42427 2013-10-17  Andreas Schwab  <schwab@suse.de>
42428
42429         [BZ #15218]
42430         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42431         to determine canonical name.
42432
42433 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42434
42435         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42436         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42437         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42438         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42439         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42440         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42441         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42442         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42443         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42444         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42445         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42446         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42447         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42448         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42449         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42450         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42451         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42452         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42453         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42454         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42455         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42456         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42457         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42458         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42459         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42460         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42461         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42462         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42463         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42464         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42465         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42466         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42467         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42468         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42469         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42470         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42471         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42472         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42473         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42474         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42475         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42476         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42477         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42478         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42479         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42480         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42481         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42482         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42483         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42484         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42485         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42486         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42487         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42488         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42489         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42490         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42491         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42492         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42493
42494 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42495
42496         [BZ #16041]
42497         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42498         make result into a quiet NaN.
42499
42500 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42501
42502         * soft-fp/adddf3.c: Fix horizontal whitespace.
42503         * soft-fp/addsf3.c: Likewise.
42504         * soft-fp/addtf3.c: Likewise.
42505         * soft-fp/divdf3.c: Likewise.
42506         * soft-fp/divsf3.c: Likewise.
42507         * soft-fp/divtf3.c: Likewise.
42508         * soft-fp/double.h: Likewise.
42509         * soft-fp/eqdf2.c: Likewise.
42510         * soft-fp/eqsf2.c: Likewise.
42511         * soft-fp/eqtf2.c: Likewise.
42512         * soft-fp/extenddftf2.c: Likewise.
42513         * soft-fp/extended.h: Likewise.
42514         * soft-fp/extendsfdf2.c: Likewise.
42515         * soft-fp/extendsftf2.c: Likewise.
42516         * soft-fp/extendxftf2.c: Likewise.
42517         * soft-fp/fixdfdi.c: Likewise.
42518         * soft-fp/fixdfsi.c: Likewise.
42519         * soft-fp/fixdfti.c: Likewise.
42520         * soft-fp/fixsfdi.c: Likewise.
42521         * soft-fp/fixsfsi.c: Likewise.
42522         * soft-fp/fixsfti.c: Likewise.
42523         * soft-fp/fixtfdi.c: Likewise.
42524         * soft-fp/fixtfsi.c: Likewise.
42525         * soft-fp/fixtfti.c: Likewise.
42526         * soft-fp/fixunsdfdi.c: Likewise.
42527         * soft-fp/fixunsdfsi.c: Likewise.
42528         * soft-fp/fixunsdfti.c: Likewise.
42529         * soft-fp/fixunssfdi.c: Likewise.
42530         * soft-fp/fixunssfsi.c: Likewise.
42531         * soft-fp/fixunssfti.c: Likewise.
42532         * soft-fp/fixunstfdi.c: Likewise.
42533         * soft-fp/fixunstfsi.c: Likewise.
42534         * soft-fp/fixunstfti.c: Likewise.
42535         * soft-fp/floatdidf.c: Likewise.
42536         * soft-fp/floatdisf.c: Likewise.
42537         * soft-fp/floatditf.c: Likewise.
42538         * soft-fp/floatsidf.c: Likewise.
42539         * soft-fp/floatsisf.c: Likewise.
42540         * soft-fp/floatsitf.c: Likewise.
42541         * soft-fp/floattidf.c: Likewise.
42542         * soft-fp/floattisf.c: Likewise.
42543         * soft-fp/floattitf.c: Likewise.
42544         * soft-fp/floatundidf.c: Likewise.
42545         * soft-fp/floatundisf.c: Likewise.
42546         * soft-fp/floatunditf.c: Likewise.
42547         * soft-fp/floatunsidf.c: Likewise.
42548         * soft-fp/floatunsisf.c: Likewise.
42549         * soft-fp/floatunsitf.c: Likewise.
42550         * soft-fp/floatuntidf.c: Likewise.
42551         * soft-fp/floatuntisf.c: Likewise.
42552         * soft-fp/floatuntitf.c: Likewise.
42553         * soft-fp/fmadf4.c: Likewise.
42554         * soft-fp/fmasf4.c: Likewise.
42555         * soft-fp/fmatf4.c: Likewise.
42556         * soft-fp/gedf2.c: Likewise.
42557         * soft-fp/gesf2.c: Likewise.
42558         * soft-fp/getf2.c: Likewise.
42559         * soft-fp/ledf2.c: Likewise.
42560         * soft-fp/lesf2.c: Likewise.
42561         * soft-fp/letf2.c: Likewise.
42562         * soft-fp/muldf3.c: Likewise.
42563         * soft-fp/mulsf3.c: Likewise.
42564         * soft-fp/multf3.c: Likewise.
42565         * soft-fp/negdf2.c: Likewise.
42566         * soft-fp/negsf2.c: Likewise.
42567         * soft-fp/negtf2.c: Likewise.
42568         * soft-fp/op-1.h: Likewise.
42569         * soft-fp/op-2.h: Likewise.
42570         * soft-fp/op-4.h: Likewise.
42571         * soft-fp/op-8.h: Likewise.
42572         * soft-fp/op-common.h: Likewise.
42573         * soft-fp/quad.h: Likewise.
42574         * soft-fp/single.h: Likewise.
42575         * soft-fp/soft-fp.h: Likewise.
42576         * soft-fp/sqrtdf2.c: Likewise.
42577         * soft-fp/sqrtsf2.c: Likewise.
42578         * soft-fp/sqrttf2.c: Likewise.
42579         * soft-fp/subdf3.c: Likewise.
42580         * soft-fp/subsf3.c: Likewise.
42581         * soft-fp/subtf3.c: Likewise.
42582         * soft-fp/truncdfsf2.c: Likewise.
42583         * soft-fp/trunctfdf2.c: Likewise.
42584         * soft-fp/trunctfsf2.c: Likewise.
42585         * soft-fp/trunctfxf2.c: Likewise.
42586         * soft-fp/unorddf2.c: Likewise.
42587         * soft-fp/unordsf2.c: Likewise.
42588         * soft-fp/unordtf2.c: Likewise.
42589
42590 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42591
42592         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42593         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42594
42595 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42596
42597         * elf/dl-libc.c: Clear initfini list after freeing.
42598
42599 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42600
42601         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42602         * soft-fp/addsf3.c: Likewise.
42603         * soft-fp/addtf3.c: Likewise.
42604         * soft-fp/divdf3.c: Likewise.
42605         * soft-fp/divsf3.c: Likewise.
42606         * soft-fp/divtf3.c: Likewise.
42607         * soft-fp/double.h: Likewise.
42608         * soft-fp/eqdf2.c: Likewise.
42609         * soft-fp/eqsf2.c: Likewise.
42610         * soft-fp/eqtf2.c: Likewise.
42611         * soft-fp/extenddftf2.c: Likewise.
42612         * soft-fp/extended.h: Likewise.
42613         * soft-fp/extendsfdf2.c: Likewise.
42614         * soft-fp/extendsftf2.c: Likewise.
42615         * soft-fp/extendxftf2.c: Likewise.
42616         * soft-fp/fixdfdi.c: Likewise.
42617         * soft-fp/fixdfsi.c: Likewise.
42618         * soft-fp/fixdfti.c: Likewise.
42619         * soft-fp/fixsfdi.c: Likewise.
42620         * soft-fp/fixsfsi.c: Likewise.
42621         * soft-fp/fixsfti.c: Likewise.
42622         * soft-fp/fixtfdi.c: Likewise.
42623         * soft-fp/fixtfsi.c: Likewise.
42624         * soft-fp/fixtfti.c: Likewise.
42625         * soft-fp/fixunsdfdi.c: Likewise.
42626         * soft-fp/fixunsdfsi.c: Likewise.
42627         * soft-fp/fixunsdfti.c: Likewise.
42628         * soft-fp/fixunssfdi.c: Likewise.
42629         * soft-fp/fixunssfsi.c: Likewise.
42630         * soft-fp/fixunssfti.c: Likewise.
42631         * soft-fp/fixunstfdi.c: Likewise.
42632         * soft-fp/fixunstfsi.c: Likewise.
42633         * soft-fp/fixunstfti.c: Likewise.
42634         * soft-fp/floatdidf.c: Likewise.
42635         * soft-fp/floatdisf.c: Likewise.
42636         * soft-fp/floatditf.c: Likewise.
42637         * soft-fp/floatsidf.c: Likewise.
42638         * soft-fp/floatsisf.c: Likewise.
42639         * soft-fp/floatsitf.c: Likewise.
42640         * soft-fp/floattidf.c: Likewise.
42641         * soft-fp/floattisf.c: Likewise.
42642         * soft-fp/floattitf.c: Likewise.
42643         * soft-fp/floatundidf.c: Likewise.
42644         * soft-fp/floatundisf.c: Likewise.
42645         * soft-fp/floatunsidf.c: Likewise.
42646         * soft-fp/floatunsisf.c: Likewise.
42647         * soft-fp/floatuntidf.c: Likewise.
42648         * soft-fp/floatuntisf.c: Likewise.
42649         * soft-fp/floatuntitf.c: Likewise.
42650         * soft-fp/fmadf4.c: Likewise.
42651         * soft-fp/fmasf4.c: Likewise.
42652         * soft-fp/fmatf4.c: Likewise.
42653         * soft-fp/gedf2.c: Likewise.
42654         * soft-fp/gesf2.c: Likewise.
42655         * soft-fp/getf2.c: Likewise.
42656         * soft-fp/ledf2.c: Likewise.
42657         * soft-fp/lesf2.c: Likewise.
42658         * soft-fp/letf2.c: Likewise.
42659         * soft-fp/muldf3.c: Likewise.
42660         * soft-fp/mulsf3.c: Likewise.
42661         * soft-fp/multf3.c: Likewise.
42662         * soft-fp/negdf2.c: Likewise.
42663         * soft-fp/negsf2.c: Likewise.
42664         * soft-fp/negtf2.c: Likewise.
42665         * soft-fp/op-1.h: Likewise.
42666         * soft-fp/op-2.h: Likewise.
42667         * soft-fp/op-4.h: Likewise.
42668         * soft-fp/op-8.h: Likewise.
42669         * soft-fp/op-common.h: Likewise.
42670         * soft-fp/quad.h: Likewise.
42671         * soft-fp/single.h: Likewise.
42672         * soft-fp/soft-fp.h: Likewise.
42673         * soft-fp/sqrtdf2.c: Likewise.
42674         * soft-fp/sqrtsf2.c: Likewise.
42675         * soft-fp/sqrttf2.c: Likewise.
42676         * soft-fp/subdf3.c: Likewise.
42677         * soft-fp/subsf3.c: Likewise.
42678         * soft-fp/subtf3.c: Likewise.
42679         * soft-fp/truncdfsf2.c: Likewise.
42680         * soft-fp/trunctfdf2.c: Likewise.
42681         * soft-fp/trunctfsf2.c: Likewise.
42682         * soft-fp/trunctfxf2.c: Likewise.
42683         * soft-fp/unorddf2.c: Likewise.
42684         * soft-fp/unordsf2.c: Likewise.
42685         * soft-fp/unordtf2.c: Likewise.
42686
42687 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42688
42689         [BZ #15672]
42690         * misc/error.c (error_tail): Fix possible buffer overflow.
42691
42692 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42693
42694         [BZ #13028]
42695         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42696         address.
42697
42698 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42699
42700         [BZ #832]
42701         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42702         testing pipefail option.
42703
42704 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42705
42706         * soft-fp/double.h: Indent preprocessor directives inside #if.
42707         * soft-fp/extended.h: Likewise.
42708         * soft-fp/op-2.h: Likewise.
42709         * soft-fp/op-4.h: Likewise.
42710         * soft-fp/op-common.h: Likewise.
42711         * soft-fp/quad.h: Likewise.
42712         * soft-fp/single.h: Likewise.
42713         * soft-fp/soft-fp.h: Likewise.
42714
42715 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42716
42717         * iconv/iconv_prog.c: Fix typos.
42718         * stdio-common/psiginfo-data.h: Likewise.
42719
42720 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42721
42722         [BZ #15764]
42723         * locale/setlocale.c: Fix typo.
42724
42725 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42726
42727         [BZ #16036]
42728         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42729         signaling NaN arguments.
42730         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42731         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42732
42733         [BZ #14910]
42734         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42735         unordered operands.
42736         * soft-fp/gesf2.c (__gesf2): Likewise.
42737         * soft-fp/getf2.c (__getf2): Likewise.
42738         * soft-fp/ledf2.c (__ledf2): Likewise.
42739         * soft-fp/lesf2.c (__lesf2): Likewise.
42740         * soft-fp/letf2.c (__letf2): Likewise.
42741
42742         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42743         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42744         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42745         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42746         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42747         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42748         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42749         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42750         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42751         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42752         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42753         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42754         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42755         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42756         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42757         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42758         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42759         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42760         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42761         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42762         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42763         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42764         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42765         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42766         * soft-fp/floattidf.c (__floattidf): Likewise.
42767         * soft-fp/floattisf.c (__floattisf): Likewise.
42768         * soft-fp/floattitf.c (__floattitf): Likewise.
42769         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42770         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42771         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42772         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42773         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42774         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42775         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42776         * soft-fp/gesf2.c (__gesf2): Likewise.
42777         * soft-fp/getf2.c (__getf2): Likewise.
42778         * soft-fp/ledf2.c (__ledf2): Likewise.
42779         * soft-fp/lesf2.c (__lesf2): Likewise.
42780         * soft-fp/letf2.c (__letf2): Likewise.
42781
42782         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42783         Undefine and redefine.
42784         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42785         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42786         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42787         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42788         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42789         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42790         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42791         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42792         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42793         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42794         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42795         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42796         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42797         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42798         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42799
42800         [BZ #16032]
42801         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42802         without decrementing exponent if mantissa >= that for the
42803         denominator, not >.
42804         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42805         denominator, not >.  Decrement exponent in < case instead of
42806         incrementing in >= case.
42807         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42808         without decrementing exponent if mantissa >= that for the
42809         denominator, not >.
42810
42811         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42812         computing saturated result for unsigned overflow.
42813
42814 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42815             Jeff Law  <law@redhat.com>
42816
42817         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42818         (atan2Mp): Add systemtap probe marker.
42819         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42820         (__ieee754_log): Add systemtap probe marker.
42821         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42822         (atanMp): Add systemtap probe marker.
42823         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42824         (tanMp): Add systemtap probe marker.
42825         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42826         (__slowexp): Add systemtap probe marker.
42827         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42828         (__slowpow): Add systemtap probe marker.
42829         * manual/probes.texi: Document probes.
42830
42831 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42832
42833         [BZ #15362]
42834         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42835         written.
42836         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42837         written.
42838         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42839         written to buffer but not flushed.
42840         * libio/iofwrite_u.c:  Likewise.
42841         * libio/iopadn.c:  Return bytes returned even if EOF was
42842         encountered.
42843         * libio/iowpadn.c:  Likewise.
42844         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42845         if _IO_padn does not write the whole buffer.
42846         [!COMPILE_WPRINTF] (PAD): Likewise.
42847
42848 2013-10-10  David S. Miller  <davem@davemloft.net>
42849
42850         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42851         directory block.
42852
42853 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42854
42855         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42856         instead of FSF address.
42857         * soft-fp/fixdfti.c: Likewise.
42858         * soft-fp/fixsfti.c: Likewise.
42859         * soft-fp/fixtfti.c: Likewise.
42860         * soft-fp/fixunsdfti.c: Likewise.
42861         * soft-fp/fixunssfti.c: Likewise.
42862         * soft-fp/fixunstfti.c: Likewise.
42863         * soft-fp/floattidf.c: Likewise.
42864         * soft-fp/floattisf.c: Likewise.
42865         * soft-fp/floattitf.c: Likewise.
42866         * soft-fp/floatuntidf.c: Likewise.
42867         * soft-fp/floatuntisf.c: Likewise.
42868         * soft-fp/floatuntitf.c: Likewise.
42869         * soft-fp/trunctfxf2.c: Likewise.
42870
42871         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42872         * soft-fp/fixdfti.c: Likewise.
42873         * soft-fp/fixsfti.c: Likewise.
42874         * soft-fp/fixtfti.c: Likewise.
42875         * soft-fp/fixunsdfti.c: Likewise.
42876         * soft-fp/fixunssfti.c: Likewise.
42877         * soft-fp/fixunstfti.c: Likewise.
42878         * soft-fp/floattidf.c: Likewise.
42879         * soft-fp/floattisf.c: Likewise.
42880         * soft-fp/floattitf.c: Likewise.
42881         * soft-fp/floatuntidf.c: Likewise.
42882         * soft-fp/floatuntisf.c: Likewise.
42883         * soft-fp/floatuntitf.c: Likewise.
42884         * soft-fp/trunctfxf2.c: Likewise.
42885
42886 2013-10-10  David S. Miller  <davem@davemloft.net>
42887
42888         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42889
42890 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42891
42892         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42893         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42894         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42895         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42896         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42897         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42898         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42899
42900         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42901         for NaNs before doing comparisons on argument.
42902         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42903         Likewise.
42904
42905 2013-10-10  Will Newton  <will.newton@linaro.org>
42906
42907         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42908         passed to _int_memalign does not overflow.
42909
42910 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42911
42912         * scripts/bench.pl: Add include-sources directive.
42913         * benchtests/README: Update documentation.
42914
42915 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42916
42917         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42918         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42919         instead of FP_INIT_ROUNDMODE.
42920         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42921         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42922
42923         [BZ #16034]
42924         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42925         copy class of input value.
42926         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42927         not handle exceptions.
42928         * soft-fp/negsf2.c (__negsf2): Likewise.
42929         * soft-fp/negtf2.c (__negtf2): Likewise.
42930         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42931
42932 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42933
42934         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42935         semicolon.  From Linux kernel.
42936
42937 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42938
42939         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42940
42941 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42942
42943         [BZ #156]
42944         * manual/socket.texi: Added statement about buffer
42945         for gethostbyname2_r.
42946
42947 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42948
42949         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42950         Use .p2align directive instead, throughout.
42951         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42952         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42953         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42954         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42955         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42956         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42957         * sysdeps/x86_64/strchr.S: Likewise.
42958         * sysdeps/x86_64/strrchr.S: Likewise.
42959
42960 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42961
42962         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42963
42964         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42965
42966         * sysdeps/generic/math_private.h (__mpsin1): Remove
42967         declaration.
42968         (__mpcos1): Likewise.
42969         (__mpsin): New argument __range_reduce.
42970         (__mpcos): Likewise.
42971         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42972         (slow): Use __mpsin and __mpcos.
42973         (slow1): Likewise.
42974         (slow2): Likewise.
42975         (sloww): Likewise.
42976         (sloww1): Likewise.
42977         (sloww2): Likewise.
42978         (bsloww): Likewise.
42979         (bsloww1): Likewise.
42980         (bsloww2): Likewise.
42981         (cslow2): Likewise.
42982         (csloww): Likewise.
42983         (csloww1): Likewise.
42984         (csloww2): Likewise.
42985         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42986         range_reduce.  Merge in __mpsin1.
42987         (__mpcos): Likewise.
42988         (__mpsin1): Remove.
42989         (__mpcos1): Likewise.
42990
42991 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42992
42993         * locale/loadlocale.c (_nl_intern_locale_data): Use
42994         LOCFILE_ALIGNED_P.
42995         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42996         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42997         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42998         obstack data is appropriately aligned.
42999         (obstack_int32_grow_fast): Likewise.
43000         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43001         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43002         (add_locale_uint32_array): Likewise.
43003
43004 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43005
43006         * benchtests/Makefile: Remove ARGLIST and RET variables.
43007         ($(objpfx)bench-%.c): Pass only function name to the script.
43008         * benchtests/README: Update documentation.
43009         * benchtests/acos-inputs: Add new directives.
43010         * benchtests/acosh-inputs: Likewise.
43011         * benchtests/asin-inputs: Likewise.
43012         * benchtests/asinh-inputs: Likewise.
43013         * benchtests/atan-inputs: Likewise.
43014         * benchtests/atanh-inputs: Likewise.
43015         * benchtests/cos-inputs: Likewise.
43016         * benchtests/cosh-inputs: Likewise.
43017         * benchtests/exp-inputs: Likewise.
43018         * benchtests/log-inputs: Likewise.
43019         * benchtests/pow-inputs: Likewise.
43020         * benchtests/rint-inputs: Likewise.
43021         * benchtests/sin-inputs: Likewise.
43022         * benchtests/sinh-inputs: Likewise.
43023         * benchtests/tan-inputs: Likewise.
43024         * benchtests/tanh-inputs: Likewise.
43025         * scripts/bench.pl: Add support for new directives.
43026
43027 2013-10-07  Alan Modra  <amodra@gmail.com>
43028
43029         * README: Fix careless merge.
43030
43031 2013-10-05  Alan Modra  <amodra@gmail.com>
43032
43033         * NEWS: Mention powerpc64le support and bugs fixed.
43034         * README: Both big-endian and little-endian powerpc64 supported.
43035
43036 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43037
43038         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43039         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43040         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43041         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43042
43043 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43044
43045         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43046         match prototype.
43047
43048 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43049
43050         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43051         Move -mhard-float appending from
43052         ports/sysdeps/powerpc/powerpc32/Makefile.
43053         [$(with-fp) = yes] (ASFLAGS): Likewise.
43054         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43055         * sysdeps/powerpc/nofpu: Move directory from
43056         ports/sysdeps/powerpc/nofpu.
43057         * sysdeps/powerpc/soft-fp: Move directory from
43058         ports/sysdeps/powerpc/soft-fp.
43059         * sysdeps/powerpc/powerpc32/405: Move directory from
43060         ports/sysdeps/powerpc/powerpc32/405.
43061         * sysdeps/powerpc/powerpc32/440: Move directory from
43062         ports/sysdeps/powerpc/powerpc32/440.
43063         * sysdeps/powerpc/powerpc32/464: Move directory from
43064         ports/sysdeps/powerpc/powerpc32/464.
43065         * sysdeps/powerpc/powerpc32/476: Move directory from
43066         ports/sysdeps/powerpc/powerpc32/476.
43067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43068         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43070         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43072         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43074         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43076         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43077         * README: Update for powerpc-*-linux-gnu software floating point
43078         support in libc.
43079
43080         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43081         case to powerpc/powerpc32*.
43082         * sysdeps/unix/sysv/linux/configure: Regenerated.
43083
43084         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43085         (_FPU_MASK_OM): Define as 0x04.
43086         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43087         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43088         0x00c10080.
43089         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43090         0x0000003c.
43091         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43092
43093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43094         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43095         getcontext_e500.
43096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43097         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43098         setcontext_e500.
43099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43100         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43101         and setcontext_e500.
43102
43103 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43104
43105         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43106
43107 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43108
43109         * manual/threads.texi (Default Thread Attributes): Fix typo.
43110
43111 2013-10-04  Will Newton  <will.newton@linaro.org>
43112
43113         * malloc/Makefile: Add tst-memalign.
43114         * malloc/tst-memalign.c: New file.
43115
43116         * malloc/tst-posix_memalign.c: Add comments.
43117         (do_test): Add comments and call free on all potentially
43118         allocated pointers. Add space after cast.
43119
43120         * malloc/tst-pvalloc.c: Add comments.
43121         (do_test): Add comments and call free on all potentially
43122         allocated pointers. Remove duplicate check for NULL pointer.
43123         Add space after cast.
43124
43125         * malloc/tst-valloc.c: Add comments.
43126         (do_test): Add comments and call free on all potentially
43127         allocated pointers. Remove duplicate check for NULL pointer.
43128         Add space after cast.
43129
43130 2013-10-04  Alan Modra  <amodra@gmail.com>
43131
43132         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43133         Use stdint types in rather than __attribute__((mode())).
43134         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43135
43136 2013-10-04  Alan Modra  <amodra@gmail.com>
43137
43138         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43139         Correct handling of unaligned relocs for little-endian.
43140         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43141
43142 2013-10-04  Alan Modra  <amodra@gmail.com>
43143
43144         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43145         * configure: Regenerate.
43146         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43147         * shlib-versions: Likewise.
43148
43149 2013-10-04  Alan Modra  <amodra@gmail.com>
43150
43151         * string/tester.c (test_memrchr): Increment reported test cycle.
43152
43153 2013-10-04  Alan Modra  <amodra@gmail.com>
43154
43155         * string/test-memcpy.c (do_one_test): When reporting errors, print
43156         string address and don't overrun end of string.
43157
43158 2013-10-04  Alan Modra  <amodra@gmail.com>
43159
43160         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43161         insrdi.  Make better use of reg selection to speed exit slightly.
43162         Schedule entry path a little better.  Remove useless "are we done"
43163         checks on entry to main loop.  Handle wrapping around zero address.
43164         Correct main loop count.  Handle single left-over word from main
43165         loop inline rather than by using loop_small.  Remove extra word
43166         case in loop_small caused by wrong loop count.  Add little-endian
43167         support.
43168         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43169         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43170         cache hint.
43171         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43172         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43173         support.  Avoid rlwimi.
43174         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43175
43176 2013-10-04  Alan Modra  <amodra@gmail.com>
43177
43178         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43179         insrdi.  Formatting.
43180         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43181         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43182         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43183         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43184         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43185         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43186
43187 2013-10-04  Alan Modra  <amodra@gmail.com>
43188
43189         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43190         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43191         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43192         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43193         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43194         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43195         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43196         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43197         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43198         use of regs.  Use power7 mtocrf.  Tidy function tails.
43199
43200 2013-10-04  Alan Modra  <amodra@gmail.com>
43201
43202         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43203         Formatting.  Consistently use rXXX register defines or rN defines.
43204         Use early exit labels that avoid restoring unused non-volatile regs.
43205         Make cr field use more consistent with rWORDn compares.  Rename
43206         regs used as shift registers for unaligned loop, using rN defines
43207         for short lifetime/multiple use regs.
43208         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43209         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43210         addi 1,1,64 to pop stack frame.  Simplify return value code.
43211         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43212
43213 2013-10-04  Alan Modra  <amodra@gmail.com>
43214
43215         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43216         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43217         rather than rlwimi.
43218         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43219         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43220         little-endian support.  Correct typos.
43221         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43222         rather than rlwimi.
43223         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43224         in loop and entry code to keep "and." results.
43225         (strchr): Add little-endian support.  Comment.  Move cntlzd
43226         earlier in tail.
43227         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43228
43229 2013-10-04  Alan Modra  <amodra@gmail.com>
43230
43231         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43232         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43233         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43234         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43235
43236 2013-10-04  Alan Modra  <amodra@gmail.com>
43237
43238         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43239         (rTMP): Define as r11.
43240         (strcmp): Add little-endian support.  Optimise tail.
43241         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43242         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43243         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43244         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43245         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43246         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43247         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43248
43249 2013-10-04  Alan Modra  <amodra@gmail.com>
43250
43251         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43252         little-endian support.  Remove unnecessary "are we done" tests.
43253         Handle "s" wrapping around zero and extremely large "size".
43254         Correct main loop count.  Handle single left-over word from main
43255         loop inline rather than by using small_loop.  Correct comments.
43256         Delete "zero" tail, use "end_max" instead.
43257         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43258
43259 2013-10-04  Alan Modra  <amodra@gmail.com>
43260
43261         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43262         support.  Don't branch over align.
43263         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43264         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43265         support.  Rearrange tmp reg use to suit.  Comment.
43266         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43267
43268 2013-10-04  Alan Modra  <amodra@gmail.com>
43269
43270         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43271
43272 2013-10-04  Alan Modra  <amodra@gmail.com>
43273
43274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43275         conditional form of branch and link when obtaining pc.
43276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43277
43278 2013-10-04  Alan Modra  <amodra@gmail.com>
43279
43280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43281         HIWORD/LOWORD.
43282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43284
43285 2013-10-04  Alan Modra  <amodra@gmail.com>
43286
43287         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43288         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43289         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43290         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43291         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43292         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43293         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43294         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43295         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43296         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43297
43298 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43299             Alistair Popple <alistair@ozlabs.au.ibm.com>
43300             Alan Modra <amodra@gmail.com>
43301
43302         [BZ #15723]
43303         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43304         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43305         _dl_hwcap access for little-endian.
43306         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43307         destroy vmx regs when saving unaligned.
43308         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43309         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43310         destroy vmx regs when saving unaligned.
43311
43312 2013-10-04  Alan Modra  <amodra@gmail.com>
43313
43314         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43315         Don't use a union to pack hi/low value.
43316
43317 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43318
43319         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43320         for little-endian.
43321         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43322         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43323         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43324         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43325         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43326
43327 2013-10-04  Alan Modra  <amodra@gmail.com>
43328
43329         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43330         constants to usual value for .cst8 section, and remove redundant
43331         high address load.
43332         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43333         constant for 0x1p52.  Load little-endian words of double from
43334         correct stack offsets.
43335
43336 2013-10-04  Alan Modra  <amodra@gmail.com>
43337
43338         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43339         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43340         words of double from correct stack offsets.
43341         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43342         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43343         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43344         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43345         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43346         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43347         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43348         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43349         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43350         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43351         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43352         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43353         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43354         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43355         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43356         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43357         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43358
43359 2013-10-04  Alan Modra  <amodra@gmail.com>
43360
43361         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43362         64-bit int/double union.
43363         (_FPU_SETCW): Likewise.
43364         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43365         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43366
43367 2013-10-04  Alan Modra  <amodra@gmail.com>
43368
43369         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43370         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43371
43372 2013-10-04  Alan Modra  <amodra@gmail.com>
43373
43374         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43375         use vector int constants.
43376         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43377
43378 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43379
43380         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43381         array with long long.
43382         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43383         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43384         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43385         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43386         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43387         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43388         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43389         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43390         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43391         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43392         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43393         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43394         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43395
43396 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43397
43398         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43399         (__signbit): Likewise.  Correct for little-endian.
43400         (__signbitl): Call __signbit.
43401         (lrint): Correct for little-endian.
43402         (lrintf): Call lrint.
43403
43404 2013-10-04  Alan Modra  <amodra@gmail.com>
43405
43406         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43407         union 32-bit int array member with 64-bit int array.
43408         (t515, tm256): Double rather than long double.
43409         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43410
43411 2013-10-04  Alan Modra  <amodra@gmail.com>
43412
43413         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43414         Delete.
43415         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43416         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43417         version of math_ldbl.h.
43418
43419 2013-10-04  Alan Modra  <amodra@gmail.com>
43420
43421         [BZ #15734], [BZ #15735]
43422         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43423         all uses of ieee875 long double macros and unions.  Simplify test
43424         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43425         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43426         normalize after ldbl_extract_mantissa, and don't add hidden bit
43427         already handled.  Don't treat low word of ieee854 mantissa like
43428         low word of IBM long double and mask off bit when testing for
43429         zero.
43430         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43431         all uses of ieee875 long double macros and unions.  Simplify tests
43432         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43433         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43434         two1022, instead use their values.  Recognise that tests for large
43435         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43436         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43437         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43438         test for 0.0L and nan.  Correct negation.
43439         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43440         ieee875 long double macros and unions.  Correct output for large
43441         magnitude x.  Correct absolute value calculation.
43442         (__erfcl): Likewise.
43443         * math/libm-test.inc: Add tests for errors discovered in IBM long
43444         double versions of fmodl, remainderl, erfl and erfcl.
43445
43446 2013-10-04  Alan Modra  <amodra@gmail.com>
43447
43448         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43449         all uses of ieee854 long double macros and unions.  Simplify tests
43450         for long doubles that are fully specified by the high double.
43451         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43452         Likewise.
43453         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43454         Remove dead code too.
43455         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43456         (__ieee754_ynl): Likewise.
43457         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43458         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43459         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43460         Remove dead code too.
43461         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43462         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43463         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43464         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43465         Simplify.
43466         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43467         Simplify.
43468         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43469         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43470         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43471         Comment on variable precision.
43472         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43473         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43474         Likewise.
43475         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43476         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43477         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43478         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43479         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43480
43481 2013-10-04  Alan Modra  <amodra@gmail.com>
43482
43483         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43484         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43485         all uses of ieee854 long double macros and unions.
43486         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43487         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43488         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43489         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43490         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43491         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43492         Likewise.
43493         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43494         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43495         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43496         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43497         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43498         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43499         Simplify sign and nan test too.
43500         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43501         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43502         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43503         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43504         Likewise.
43505         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43506         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43507         Likewise.
43508         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43509         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43510         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43511         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43512         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43513         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43514
43515 2013-10-04  Alan Modra  <amodra@gmail.com>
43516
43517         * stdio-common/printf_size.c (__printf_size): Don't use
43518         union ieee854_long_double in fpnum union.
43519         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43520         signbit macro to retrieve sign from long double.
43521         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43522         retrieve sign from long double.
43523         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43524         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43525         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43526         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43527         * math/test-misc.c (main): Don't use union ieee854_long_double.
43528
43529 2013-10-04  Alan Modra  <amodra@gmail.com>
43530
43531         [BZ #15680]
43532         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43533         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43534         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43535         calculation.  Remove unnecessary test for denormal exponent.
43536         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43537         Correct handling of denormals.  Avoid undefined shift behaviour.
43538         Correct normalisation of low mantissa when low double is denormal.
43539         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43540         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43541         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43542         Correct normalisation of low mantissa.  Test for overflow of high
43543         mantissa and normalise.
43544         (ldbl_nearbyint): Use more readable constant for two52.
43545         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43546         (__mpn_construct_long_double): Fix test for overflow of high
43547         mantissa and correct normalisation.  Avoid undefined shift.
43548
43549 2013-10-04  Alan Modra  <amodra@gmail.com>
43550
43551         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43552         (union ibm_extended_long_double): Define as an array of ieee754_double.
43553         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43554         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43555         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43556         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43557         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43558         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43559         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43560         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43561         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43562         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43563         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43564
43565 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43566
43567         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43568         page size instead of calling getpagesize.
43569
43570         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43571         (LOCFILE_ALIGN_MASK): Likewise.
43572         (LOCFILE_ALIGN_UP): Likewise.
43573         (LOCFILE_ALIGNED_P): Likewise.
43574         * locale/programs/ld-collate.c (collate_output): Use the new
43575         macros instead of __alignof__ (int32_t).
43576         * locale/weight.h (findidx): Likewise.
43577
43578 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43579
43580         [BZ #431]
43581         * manual/string.texi: Fix strncat and wcsncat.
43582
43583 2013-10-03  Brooks Moses  <bmoses@google.com>
43584
43585         [BZ #15915]
43586         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43587         * Makerules: ...here, and adjust associated comments.
43588
43589 2013-10-02  Will Newton  <will.newton@linaro.org>
43590
43591         * malloc/Makefile: Add tst-pvalloc.
43592         * malloc/tst-pvalloc.c: New file.
43593
43594 2013-10-02  Will Newton  <will.newton@linaro.org>
43595
43596         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43597         improve test coverage.
43598
43599 2013-10-02  Will Newton  <will.newton@linaro.org>
43600
43601         * malloc/Makefile: Add tst-posix_memalign.
43602         * malloc/tst-posix_memalign.c: New file.
43603
43604 2013-10-01  Eric Blake  <eblake@redhat.com>
43605
43606         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43607         Use __THROWNL rather than __THROW on static functions.
43608
43609 2013-09-30  Petr Machata  <pmachata@redhat.com>
43610
43611         * elf/elf.h (R_AARCH64_ABS16): New macro.
43612         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43613         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43614         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43615         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43616         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43617         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43618         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43619         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43620         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43621         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43622         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43623         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43624         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43625         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43626         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43627         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43628         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43629         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43630         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43631         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43632         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43633         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43634         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43635         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43636         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43637         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43638         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43639         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43640         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43641         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43642         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43643         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43644         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43645         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43646         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43647         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43648         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43649         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43650         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43651         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43652         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43653         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43654         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43655         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43656         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43657         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43658         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43659         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43660         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43661         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43662         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43663         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43664         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43665         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43666         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43667         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43668         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43669         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43670         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43671         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43672         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43673         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43674         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43675         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43676         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43677         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43678         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43679         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43680         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43681         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43682         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43683         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43684         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43685         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43686         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43687         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43688         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43689         (R_AARCH64_TLSDESC_LDR): Likewise.
43690         (R_AARCH64_TLSDESC_ADD): Likewise.
43691         (R_AARCH64_TLSDESC_CALL): Likewise.
43692
43693 2013-09-30  Andreas Schwab  <schwab@suse.de>
43694
43695         [BZ #15048]
43696         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43697         the nss database lookup.
43698         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43699         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43700
43701 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43702
43703         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43704
43705 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43706
43707         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43708         ${Bash-specific parameter/pattern/string} parameter expansion.
43709         * sysdeps/unix/make-syscalls.sh: Likewise.
43710
43711 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43712
43713         * sysdeps/sh/stackguard-macros.h: New file.
43714
43715 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43716
43717         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43718         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43719         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43720         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43721         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43722         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43723
43724 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43725
43726         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43727         Fix thread ID register.
43728
43729 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43730
43731         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43732         [POSIX || UNIX98]: Require rather than permitting all symbols from
43733         <time.h>.
43734         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43735         element of struct sched_param.
43736         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43737         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43738         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43739         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43740         constant.
43741
43742 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43743
43744         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43745         argument calculation.
43746
43747 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43748
43749         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43750         Expect macro.
43751         [POSIX] (pthread_attr_t): Do not require type.
43752         [POSIX] (pthread_cond_t): Likewise.
43753         [POSIX] (pthread_condattr_t): Likewise.
43754         [POSIX] (pthread_key_t): Likewise.
43755         [POSIX] (pthread_mutex_t): Likewise.
43756         [POSIX] (pthread_mutexattr_t): Likewise.
43757         [POSIX] (pthread_once_t): Likewise.
43758         [POSIX] (pthread_t): Likewise.
43759         [POSIX-based standards] (pthread_atfork): Expect function.
43760
43761 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43762             Richard Sandiford  <richard@codesourcery.com>
43763
43764         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43765         (swap_endianness_p): New extern variable.
43766         (set_big_endian): New inline function.
43767         (maybe_swap_uint32): Likewise.
43768         (maybe_swap_uint32_array): Likewise.
43769         (maybe_swap_uint32_obstack): Likewise.
43770         * locale/programs/locfile.c: Include <stdbool.h>.
43771         (swap_endianness_p): New variable.
43772         (add_locale_uint32): Call maybe_swap_uint32.
43773         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43774         (write_locale_data): Call maybe_swap_uint32_array.
43775         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43776         maybe_swap_uint32.
43777         (obstack_int32_grow_fast): Likewise.
43778         (output_weightwc): Call maybe_swap_uint32_obstack.
43779         (collate_output): Likewise.
43780         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43781         (OPT_LITTLE_ENDIAN): Likewise.
43782         (options): Add --little-endian and --big-endian options.
43783         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43784         * locale/programs/locarchive.c: Include "locfile.h".
43785         (GET): New macro.
43786         (SET): Likewise.
43787         (INC): Likewise.
43788         (create_archive): Use the new macros to access fields of
43789         structures directly mapped from or written to locale archives.
43790         (oldlocrecentcmp): Likewise.
43791         (enlarge_archive): Likewise.
43792         (insert_name): Likewise.
43793         (add_alias): Likewise.
43794         (add_locale): Likewise.
43795         (delete_locales_from_archive): Likewise.
43796         (show_archive_content): Likewise.
43797         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43798         locale data.
43799
43800 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43801
43802         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43803         http://www.gnu.org/doc/freemanuals.texi.
43804         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43805
43806 2013-09-24  Will Newton  <will.newton@linaro.org>
43807
43808         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43809         macro.
43810
43811 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43812
43813         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43814         unsigned char.
43815
43816 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43817
43818         * manual/threads.texi (POSIX Threads): Fix a typo.
43819
43820 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43821
43822         [BZ #14547]
43823         * string/tst-strcoll-overflow.c: New test case.
43824         * string/Makefile (xtests): Add tst-strcoll-overflow.
43825         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43826         cache if string sizes may cause integer overflow.
43827
43828         [BZ #14547]
43829         * string/strcoll_l.c (coll_seq): New members rule, idx,
43830         save_idx and back_us.
43831         (get_next_seq_nocache): New function.
43832         (do_compare_nocache): New function.
43833         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43834         when malloc fails.
43835
43836 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43837
43838         [BZ #15754]
43839         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43840         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43841         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43842
43843         [BZ #15754]
43844         * elf/Makefile (tests): Add tst-ptrguard1.
43845         (tests-static): Add tst-ptrguard1-static.
43846         (tst-ptrguard1-ARGS): Define.
43847         (tst-ptrguard1-static-ARGS): Define.
43848         * elf/tst-ptrguard1.c: New file.
43849         * elf/tst-ptrguard1-static.c: New file.
43850         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43851         * sysdeps/i386/stackguard-macros.h: Likewise.
43852         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43853         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43854         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43855         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43856         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43857         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43858
43859 2013-09-23  Hector Marco  <hecmargi@upv.es>
43860             Ismael Ripoll  <iripoll@disca.upv.es>
43861             Carlos O'Donell  <carlos@redhat.com>
43862
43863         [BZ #15754]
43864         * sysdeps/generic/stackguard-macros.h: Define
43865         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43866         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43867         Define __pointer_chk_guard_local.
43868         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43869         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43870
43871 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43872
43873         [BZ #15859]
43874         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43875
43876 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43877
43878         * include/string.h (__ffs): Declare as hidden.
43879         * string/ffs.c (__ffs): Define as hidden.
43880         * sysdeps/i386/ffs.c (__ffs): Likewise.
43881         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43882         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43883         * sysdeps/s390/ffs.c (__ffs): Likewise.
43884         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43885
43886 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43887
43888         * NEWS: Mention malloc probes.
43889
43890         * malloc/arena.c (new_heap): New memory_heap_new probe.
43891         (grow_heap): New memory_heap_more probe.
43892         (shrink_heap): New memory_heap_less probe.
43893         (heap_trim): New memory_heap_free probe.
43894         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43895         (systrim): New memory_sbrk_less probe.
43896         * manual/probes.texi: Document them.
43897
43898         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43899         * manual/probes.texi: Document it.
43900
43901         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43902         (__libc_realloc): Add memory_realloc_retry probe.
43903         (__libc_memalign): Add memory_memalign_retry probe.
43904         (__libc_valloc): Add memory_valloc_retry probe.
43905         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43906         (__libc_calloc): Add memory_calloc_retry probe.
43907         * manual/probes.texi: Document them.
43908
43909         * malloc/arena.c (get_free_list): Add probe
43910         memory_arena_reuse_free_list.
43911         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43912         and memory_arena_reuse.
43913         (arena_get2) [!PER_THREAD]: Likewise.
43914         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43915         memory_arena_reuse_realloc.
43916         * manual/probes.texi: Document them.
43917
43918         * malloc/malloc.c (__libc_free): Add
43919         memory_mallopt_free_dyn_thresholds probe.
43920         (__libc_mallopt): Add multiple memory_mallopt probes.
43921         * manual/probes.texi: Document them.
43922
43923         * malloc/malloc.c: Include stap-probe.h.
43924         (__libc_mallopt): Add memory_mallopt probe.
43925         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43926         * manual/probes.texi: New.
43927         * manual/Makefile (chapters): Add probes.
43928         * manual/threads.texi: Set next node.
43929
43930 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43931
43932         [BZ #15963, #13985]
43933         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43934         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43935         Add `Chinese' to `nan' entry name.
43936
43937 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43938
43939         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43940         (POLYNOMIAL): Likewise.
43941         (TAYLOR_SINCOS): Likewise.
43942         (TAYLOR_SLOW): Likewise.
43943         (__sin): Use TAYLOR_SINCOS.
43944         (__cos): Likewise.
43945         (slow): Use TAYLOR_SLOW.
43946         (sloww): Likewise.
43947         (bsloww): Likewise.
43948         (csloww): Likewise.
43949
43950 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43951
43952         * stdlib/strtod_l.c: Fix buffer overrun.
43953
43954 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43955
43956         * benchtests/Makefile (bench): Add sincos.
43957         * benchtests/bench-sincos.c: New file.
43958
43959         * math/libm-test.inc (cos_test_data): New test inputs.
43960         (sin_test_data): Likewise.
43961
43962         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43963         macro.
43964         (__sin): Use it.
43965         (__cos): Likewise.
43966         (slow1): Likewise.
43967         (slow2): Likewise.
43968         (sloww1): Likewise.
43969         (sloww2): Likewise.
43970         (bsloww1): Likewise.
43971         (bsloww2): Likewise.
43972         (cslow2): Likewise.
43973         (csloww1): Likewise.
43974         (csloww2): Likewise.
43975
43976         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43977         function.
43978         (__sin): Use it.
43979         (__cos): Likewise.
43980
43981         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43982         gotos.
43983         (__cos): Likewise.
43984
43985 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43986
43987         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43988         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43989         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43990         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43991         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43992         * elf/cache.c (print_entry): Handle the new cache flags.
43993
43994 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43995             Aldy Hernandez  <aldyh@redhat.com>
43996
43997         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43998         Change condition to [_SOFT_FLOAT].
43999         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44000         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44001         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44002         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44003         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44004         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44005         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44006         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44007         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44008         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44009         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44010         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44011         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44012         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44013         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44014         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44015         declaration.
44016
44017 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44018
44019         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44020         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44021         (__longjmp): Use LOAD_GP to load saved GPRs.
44022         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44023         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44024         (__sigsetjmp): Use SAVE_GP to save GPRs.
44025
44026         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44027         Do not append -msoft-float.
44028         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44029
44030 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44031
44032         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44033
44034 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44035
44036         [BZ #15966]
44037         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44038         (_FPU_GETCW): Use initial "__" on variable and field names but not
44039         on macro parameter name.
44040         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44041         parentheses around reference to macro parameter.
44042
44043 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44044
44045         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44046         prototype.
44047         (ctype_startup): Use uint32_t in cast and sizeof for
44048         ctype->charnames.
44049
44050 2013-09-11  Jia Liu  <proljc@gmail.com>
44051
44052         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44053         __daddr_t_defined.
44054         [__FreeBSD__]: Likewise.
44055
44056 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44057
44058         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44059         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44060         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44061         (strchr): Remove __strchr_sse42 ifunc selection.
44062         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44063         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44064
44065 2013-09-11  Will Newton  <will.newton@linaro.org>
44066
44067         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44068         parameter to RES. Remove hardcoded 1000 value.
44069         * benchtests/bench-skeleton.c (main): Pass RES parameter
44070         to TIMING_INIT and multiply result by 1000.
44071
44072 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44073
44074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44075
44076 2013-09-11  Andreas Schwab  <schwab@suse.de>
44077
44078         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44079         if not defined.
44080         (O_TMPFILE) [__USE_GNU]: Define.
44081         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44082         Define.
44083
44084 2013-09-11  Will Newton  <will.newton@linaro.org>
44085
44086         [BZ #15857]
44087         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44088         does not overflow.
44089
44090 2013-09-11  Will Newton  <will.newton@linaro.org>
44091
44092         [BZ #15856]
44093         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44094         does not overflow.
44095
44096 2013-09-11  Will Newton  <will.newton@linaro.org>
44097
44098         [BZ #15855]
44099         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44100         does not overflow.
44101
44102 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44103
44104         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44105         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44106         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44107         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44108         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44109
44110 2013-09-10  Allan McRae  <allan@archlinux.org>
44111
44112         [BZ #15748]
44113         * manual/arith.texi (Parsing of Floats): Clarify
44114         cross-reference.
44115
44116         [BZ #15849]
44117         * manual/install.texi (Running make install): Mention
44118         --enable-pt-chown.
44119         * INSTALL: Regenerated.
44120
44121 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44122
44123         * csu/init-first.c (_init): Remove the !SHARED condition around
44124         FPU control word initialization.
44125         * elf/dl-support.c (_dl_fpu_control): New variable.
44126         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44127         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44128         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44129         * math/test-fpucw-static.c: New file.
44130         * math/test-fpucw-ieee.c: New file.
44131         * math/test-fpucw-ieee-static.c: New file.
44132         * math/Makefile (tests): Add `test-fpucw-ieee' and
44133         `$(tests-static)'.
44134         (tests-static): New variable.
44135         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44136         dependency to...
44137         [($(build-shared),yes)]
44138         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44139         ... this.
44140         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44141         New dependency.
44142
44143 2013-09-09  Allan McRae  <allan@archlinux.org>
44144
44145         [BZ #15939]
44146         * manual/string.texi (Collation Functions): Fix typo in
44147         strcoll example.
44148         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44149
44150         [BZ #15893]
44151         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44152
44153         [BZ #15892]
44154         * libio/memstream.c (open_memstream): Fix memory leak.
44155         * libio/wmemstream.c (open_wmemstream): Likewise.
44156
44157         [BZ #15895]
44158         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44159
44160 2013-09-09  Will Newton  <will.newton@linaro.org>
44161
44162         * malloc/Makefile: Add tst-realloc to tests.
44163         * malloc/tst-realloc.c: New file.
44164
44165 2013-09-09  Allan McRae  <allan@archlinux.org>
44166
44167         [BZ #15844]
44168         * COPYING: Update from GNU website to fix FSF address.
44169         * COPYING.LIB: Likewise.
44170
44171 2013-09-06  David S. Miller  <davem@davemloft.net>
44172
44173         * po/zh_TW.po: Update Chinese (traditional) translation from
44174         translation project.
44175
44176 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44177             Joseph Myers  <joseph@codesourcery.com>
44178
44179         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44180         "localeinfo.h".
44181         (obstack_chunk_alloc): New macro.
44182         (obstack_chunk_free): Likewise.
44183         (record_offset): New function.
44184         (init_locale_data): Likewise.
44185         (align_locale_data): Likewise.
44186         (add_locale_empty): Likewise.
44187         (add_locale_raw_data): Likewise.
44188         (add_locale_raw_obstack): Likewise.
44189         (add_locale_string): Likewise.
44190         (add_locale_wstring): Likewise.
44191         (add_locale_uint32): Likewise.
44192         (add_locale_uint32_array): Likewise.
44193         (add_locale_char): Likewise.
44194         (start_locale_structure): Likewise.
44195         (end_locale_structure): Likewise.
44196         (start_locale_prelude): Likewise.
44197         (end_locale_prelude): Likewise.
44198         (write_locale_data): Take locale_file structure rather than an
44199         iovec.
44200         * locale/programs/locfile.h: Include "obstack.h".
44201         (struct locale_file): Change to store locale file contents instead
44202         of header.
44203         (init_locale_data): New prototype.
44204         (align_locale_data): Likewise.
44205         (add_locale_empty): Likewise.
44206         (add_locale_raw_data): Likewise.
44207         (add_locale_raw_obstack): Likewise.
44208         (add_locale_string): Likewise.
44209         (add_locale_wstring): Likewise.
44210         (add_locale_uint32): Likewise.
44211         (add_locale_uint32_array): Likewise.
44212         (add_locale_char): Likewise.
44213         (start_locale_structure): Likewise.
44214         (end_locale_structure): Likewise.
44215         (start_locale_prelude): Likewise.
44216         (end_locale_prelude): Likewise.
44217         (write_locale_data): Update prototype.
44218         * locale/programs/3level.h (struct TABLE): Remove result field.
44219         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44220         Use new locale_file interface.
44221         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44222         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44223         * locale/programs/ld-address.c (address_output): Use new
44224         locale_file interface.
44225         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44226         NO_ADD_LOCALE.
44227         (collate_finish): Don't call collseq_table_finalize.
44228         (collate_output): Use new locale_file interface.
44229         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44230         in file.
44231         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44232         (TABLE): Move defines earlier in file.
44233         (ELEMENT): Likewise.
44234         (DEFAULT): Likewise.
44235         (wctrans_table_add): Move macro and inline function earlier in
44236         file.
44237         (struct wctype_table): Move type earlier in file.
44238         (add_locale_wctype_table): New static prototype.
44239         (struct locale_ctype_t): Use logical types instead of struct iovec
44240         pointers for members.
44241         (ctype_output): Use new locale_file interface.
44242         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44243         new locale_file interface.
44244         (allocate_arrays): Update for use of new locale_file interface.
44245         * locale/programs/ld-identification.c (identification_output): Use
44246         new locale_file interface.
44247         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44248         * locale/programs/ld-messages.c (messages_output): Likewise.
44249         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44250         * locale/programs/ld-name.c (name_output): Likewise.
44251         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44252         * locale/programs/ld-paper.c (paper_output): Likewise.
44253         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44254         * locale/programs/ld-time.c (time_output): Likewise.
44255
44256 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44257
44258         * benchtests/Makefile: Add memrchr benchmark.
44259         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44260         benchmark as memrchr.
44261         * benchtests/bench-memrchr-ifunc.c: New file.
44262         * benchtests/bench-memrchr.c: New file.
44263
44264 2013-09-06   Will Newton  <will.newton@linaro.org>
44265
44266         * benchtests/Makefile (string-bench): Add memcpy.
44267
44268 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44269             Cong Wang  <amwang@redhat.com>
44270
44271         [BZ #15850]
44272         * sysdeps/unix/sysv/linux/bits/in.h
44273         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44274         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44275         before __USE_KERNEL_IPV6_DEFS uses.
44276         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44277         IPPROTO_BEETPH.
44278         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44279         sockaddr_in6, or ipv6_mreq.
44280
44281 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44282
44283         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44284         memory access for final bytes in some large inputs.
44285         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44286
44287 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44288
44289         * string/test-memrchr.c: New file.
44290         * string/test-memrchr-ifunc.c: New file.
44291         * string/Makefile: Add new memrchr testcase.
44292
44293 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44294
44295         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44296         fanotify_init returns EPERM.
44297
44298 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44299
44300         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44301         errors.
44302         (top level): Treat second token from macro or constant entries for
44303         allowed headers as allowed.
44304         * include/complex.h: Condition internal declarations on
44305         [!_ISOMAC].
44306         * include/fenv.h: Condition include of <stdbool.h> and internal
44307         declarations on [!_ISOMAC].
44308
44309 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44310
44311         [BZ #15923]
44312         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44313
44314 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44315
44316         * configure.in (--enable-versioning): Remove configure option.
44317         (libc_cv_asm_symver_directive): Remove configure test.
44318         (libc_cv_ld_version_script_option): Likewise.
44319         (VERSIONING): Remove variable and AC_SUBST.
44320         (DO_VERSIONING): Remove AC_DEFINE.
44321         * configure: Regenerated.
44322         * config.h.in (DO_VERSIONING): Remove macro.
44323         * Makerules [$(versioning) = yes]: Change conditionals to
44324         [$(build-shared) = yes].
44325         * config.make.in (versioning): Remove variable.
44326         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44327         [$(build-shared) = yes].
44328         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44329         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44330         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44331         [$(build-shared) = yes].
44332         * extra-lib.mk [$(versioning) = yes]: Likewise.
44333         * hurd/Makefile [$(versioning) = yes]: Likewise.
44334         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44335         [SHARED].
44336         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44337         [SHARED].
44338         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44339         [SHARED && !NO_HIDDEN].
44340         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44341         [SHARED].
44342         [SHARED && DO_VERSIONING]: Likewise..
44343         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44344         [$(build-shared) = yes].
44345         * manual/install.texi (--disable-versioning): Remove
44346         documentation.
44347         * INSTALL: Regenerated.
44348         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44349         to [SHARED].
44350         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44351         [$(build-shared) = yes].
44352         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44353         * sysdeps/i386/i686/multiarch/strstr-c.c
44354         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44355         [SHARED && !NO_HIDDEN].
44356         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44357         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44358         * sysdeps/powerpc/powerpc32/dl-machine.c
44359         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44360         * sysdeps/powerpc/powerpc32/sysdep.h
44361         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44362         to [SHARED && PIC && !NO_HIDDEN].
44363         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44364         conditional to [SHARED].
44365
44366 2013-09-04   Will Newton  <will.newton@linaro.org>
44367
44368         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44369         * benchtests/bench-string.h: Include bench-timing.h instead
44370         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44371         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44372         call to HP_TIMING_DIFF_INIT.
44373         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44374         instead of hp-timing.h macros.
44375         * benchtests/bench-memchr.c: Likewise.
44376         * benchtests/bench-memcmp.c: Likewise.
44377         * benchtests/bench-memcpy.c: Likewise.
44378         * benchtests/bench-memmem.c: Likewise.
44379         * benchtests/bench-memmove.c: Likewise.
44380         * benchtests/bench-memset.c: Likewise.
44381         * benchtests/bench-rawmemchr.c: Likewise.
44382         * benchtests/bench-strcasecmp.c: Likewise.
44383         * benchtests/bench-strcasestr.c: Likewise.
44384         * benchtests/bench-strcat.c: Likewise.
44385         * benchtests/bench-strchr.c: Likewise.
44386         * benchtests/bench-strcmp.c: Likewise.
44387         * benchtests/bench-strcpy.c: Likewise.
44388         * benchtests/bench-strcpy_chk.c: Likewise.
44389         * benchtests/bench-strlen.c: Likewise.
44390         * benchtests/bench-strncasecmp.c: Likewise.
44391         * benchtests/bench-strncat.c: Likewise.
44392         * benchtests/bench-strncmp.c: Likewise.
44393         * benchtests/bench-strncpy.c: Likewise.
44394         * benchtests/bench-strnlen.c: Likewise.
44395         * benchtests/bench-strpbrk.c: Likewise.
44396         * benchtests/bench-strrchr.c: Likewise.
44397         * benchtests/bench-strspn.c: Likewise.
44398         * benchtests/bench-strstr.c: Likewise.
44399
44400 2013-09-04  Will Newton  <will.newton@linaro.org>
44401
44402         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44403
44404 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44405
44406         [BZ #15427]
44407         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44408         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44409         * math/libm-test.inc (lgamma_test_data): Add more tests.
44410         * sysdeps/i386/fpu/libm-test-ulps: Update.
44411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44412
44413 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44414
44415         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44416         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44417         Add ifunc.
44418         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44419         Add strcmp-sse2-unaligned
44420         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44421
44422 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44423
44424         * Versions.def (libc): Add GLIBC_2.19.
44425
44426 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44427
44428         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44429         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44430
44431 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44432
44433         [BZ #14155]
44434         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44435         intermediate calculations in recurrence.
44436         (__ieee754_ynf): Likewise.
44437         * math/libm-test.inc (jn_test_data): Do not allow spurious
44438         underflow exception.  Add more tests.
44439         (yn_test_data): Add more tests.
44440         * sysdeps/i386/fpu/libm-test-ulps: Update.
44441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44442
44443 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44444
44445         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44446
44447 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44448
44449         * csu/init-first.c: Fix then/than typos.
44450         * locale/programs/ld-collate.c: Likewise.
44451         * locale/programs/linereader.h: Likewise.
44452         * manual/charset.texi: Likewise.
44453         * manual/filesys.texi: Likewise.
44454         * manual/stdio.texi: Likewise.
44455         * manual/string.texi: Likewise.
44456         * stdlib/fmtmsg.c: Likewise.
44457         * sysdeps/i386/stpncpy.S: Likewise.
44458         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44459         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44460         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44461         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44462
44463 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44464
44465         * elf/dl-open.c: Fix typos.
44466         * iconvdata/gbbig5.c: Likewise.
44467         * iconvdata/iso-2022-jp.c: Likewise.
44468         * iconv/gconv_int.h: Likewise.
44469         * iconv/loop.c: Likewise.
44470         * nis/rpcsvc/nis.h: Likewise.
44471         * resolv/ns_name.c: Likewise.
44472         * stdio-common/vfscanf.c: Likewise.
44473         * streams/stropts.h: Likewise.
44474         * sunrpc/rpc_thread.c: Likewise.
44475         * sysdeps/i386/strpbrk.S: Likewise.
44476         * sysdeps/ieee754/k_standard.c: Likewise.
44477         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44478         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44479         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44480         * sysdeps/mach/hurd/profil.c: Likewise.
44481         * sysdeps/s390/dl-procinfo.h: Likewise.
44482         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44483         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44484         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44485         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44486         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44487
44488 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44489
44490         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44491         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44492
44493 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44494
44495         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44496         aix specific files.
44497         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44498         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44499         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44500         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44501         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44502         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44503         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44504         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44505
44506 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44507             Roland McGrath  <roland@hack.frob.com>
44508
44509         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44510         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44511
44512 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44513
44514         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44515         __executable_start symbol instead of _start.
44516
44517 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44518
44519         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44520         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44521         Move macros to...
44522         * sysdeps/gnu/ldsodefs.h: ... this new file.
44523
44524         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44525         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44526         instead of ELFOSABI_LINUX.
44527
44528         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44529         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44530         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44531         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44532         Likewise.
44533         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44534         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44535         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44536         Likewise.
44537         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44538         (ibm_extended_long_double): Add ieee_nan member.
44539         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44540         (do_test): New function.
44541
44542         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44543         TEST_TRUNC.
44544         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44545         functions, renamed from truncdfsf_test, trunctfsf_test,
44546         trunctfdf_test.
44547         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44548         functions.
44549         (do_test): Run all these.
44550
44551 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44552
44553         * argp/argp-help.c: Fix typos.
44554         * argp/argp-parse.c: Likewise.
44555         * debug/backtracesyms.c: Likewise.
44556         * elf/elf.h: Likewise.
44557         * malloc/malloc.c: Likewise.
44558         * nis/nis_print.c: Likewise.
44559         * resolv/res_comp.c: Likewise.
44560         * stdlib/stdlib.h: Likewise.
44561         * sunrpc/clnt_tcp.c: Likewise.
44562         * sunrpc/clnt_udp.c: Likewise.
44563         * sunrpc/clnt_unix.c: Likewise.
44564         * sysdeps/unix/bsd/ptsname.c: Likewise.
44565         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44566         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44568         Likewise.
44569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44570         Likewise.
44571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44572         Likewise.
44573         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44574
44575 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44576
44577         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44578         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44579
44580 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44581
44582         [BZ #15897]
44583         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44584         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44585         ($(objpfx)bug-dl-leaf): New rule.
44586         ($(objpfx)bug-dl-leaf.so): Likewise.
44587         ($(objpfx)bug-dl-leaf.out): Likewise.
44588         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44589         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44590         * dlfcn/bug-dl-leaf.c: New test.
44591         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44592         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44593         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44594         (dlclose): Likewise.
44595         (dlmopen): Likewise.
44596
44597 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44598
44599         * include/netdb.h [!_ISOMAC]:
44600         Don't include <tls.h>.
44601         (h_errno, __libc_h_errno): Move declaration and macros out of
44602         [_LIBC_REENTRANT].
44603
44604         * include/resolv.h [_RESOLV_H_]:
44605         Don't include <tls.h>.
44606         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44607         * resolv/res_libc.c: Don't include <tls.h>.
44608         (_res): Use __attribute__ ((nocommon)) in place of
44609         __attribute__ ((section (".bss"))).
44610
44611         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44612         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44613
44614         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44615
44616         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44617         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44618
44619         * resolv/res_mkquery.c: Include <sys/time.h>.
44620
44621         * inet/ifreq.c: Moved to ...
44622         * sysdeps/unix/ifreq.c: ... here.
44623         * inet/ifreq.c: New file, true stub version.
44624
44625         * socket/sa_len.c: New file.
44626         * socket/Makefile (aux): Add it.
44627         * sysdeps/unix/sysv/linux/Makefile
44628         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44629         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44630         and #include <socket/sa_len.c>.
44631         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44632         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44633
44634         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44635         * bits/socket.h: ... here.
44636
44637         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44638         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44639         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44640
44641 2013-08-27  Andreas Schwab  <schwab@suse.de>
44642
44643         [BZ #15736]
44644         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44645         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44646         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44647         * string/test-strcasecmp.c (test_main): Run tests in several
44648         locales.
44649         * string/test-strncasecmp.c (test_main): Likewise.
44650
44651         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44652         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44653         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44654         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44655         (__strncasecmp_ssse3) [PIC]: Likewise.
44656
44657 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44658
44659         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44660
44661         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44662         instead of explicitly declaring xdecrypt.
44663         * nis/nss_nis/nis-publickey.c: Likewise.
44664
44665 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44666
44667         [BZ #15890]
44668         * nscd/aicache.c: Include res_hconf.h.
44669         (addhstaiX): Initialize res_hconf.
44670
44671 2013-08-26  Andreas Schwab  <schwab@suse.de>
44672
44673         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44674         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44675
44676 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44677
44678         * nscd/aicache.c (addhstaiX): Fix indentation.
44679
44680 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44681
44682         * configure.ac: Quote $build_pt_chown test.
44683         * configure: Regenerated.
44684
44685 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44686
44687         [BZ #15532]
44688         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44689         * math/s_cexpf.c (__cexpf): Likewise.
44690         * math/s_cexpl.c (__cexpl): Likewise.
44691         * math/libm-test.inc (cexp_test_data): Correct expected return
44692         value for NaN + i0.  Add another test.
44693
44694 2013-08-22  David S. Miller  <davem@davemloft.net>
44695
44696         * po/ca.po: Update Catalan translation from translation project.
44697         * po/uk.po: Add Ukrainian translations from translation project.
44698
44699 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44700
44701         [BZ #15797]
44702         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44703         is infinite, not alongside NaN test.
44704         * math/s_fdimf.c (__fdimf): Likewise.
44705         * math/s_fdiml.c (__fdiml): Likewise.
44706         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44707         errno is unchanged.
44708
44709 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44710
44711         * argp/argp-help.c: Fix typos.
44712         * crypt/speeds.c: Likewise.
44713         * csu/check_fds.c: Likewise.
44714         * elf/dl-load.c: Likewise.
44715         * elf/dl-open.c: Likewise.
44716         * elf/reldep3.c: Likewise.
44717         * elf/reldep.c: Likewise.
44718         * elf/sprof.c: Likewise.
44719         * iconv/iconv_charmap.c: Likewise.
44720         * iconv/skeleton.c: Likewise.
44721         * iconv/strtab.c: Likewise.
44722         * io/lockf64.c: Likewise.
44723         * libio/libioP.h: Likewise.
44724         * resolv/gai_notify.c: Likewise.
44725         * resolv/ns_name.c: Likewise.
44726         * resolv/ns_samedomain.c: Likewise.
44727         * resolv/res_send.c: Likewise.
44728         * stdlib/random.c: Likewise.
44729         * sunrpc/rpc/xdr.h: Likewise.
44730         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44731         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44732         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44733         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44734         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44735         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44736         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44737         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44738         * sysdeps/mach/hurd/check_fds.c: Likewise.
44739         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44740         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44741         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44742         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44743         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44744         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44745         * sysdeps/pthread/aio_notify.c: Likewise.
44746         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44747         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44748         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44749         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44750         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44751
44752 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44753
44754         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44755         version if bit_Slow_SSE4_2 is set.
44756         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44757         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44758
44759 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44760
44761         [BZ #15867]
44762         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44763         trampoline stack frame information.
44764         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44765         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44766         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44767         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44768         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44769         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44770         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44771         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44772         sa_flags value.
44773         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44774         interrupting a syscall and set with option SA_SIGINFO.
44775
44776 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44777
44778         [BZ #15531]
44779         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44780         argument is infinite.
44781         * math/s_cprojf.c (__cprojf): Likewise.
44782         * math/s_cprojl.c (__cprojl): Likewise.
44783         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44784         * math/libm-test.inc (cproj_test_data): Add more tests.
44785
44786         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44787
44788         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44789         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44790         size.  Use __ffs to determine corresponding shift.
44791
44792 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44793             Roland McGrath  <roland@hack.frob.com>
44794
44795         * Makefile (INSTALL): Remove trailing blank lines from output of
44796         makeinfo.
44797
44798 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44799
44800         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44801         Align 32 bit compat elf_greg to 8 bytes.
44802
44803 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44804
44805         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44806
44807 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44808
44809         * string/strcoll_l.c (coll_seq): New structure.
44810         (get_next_seq_cached): New function.
44811         (get_next_seq): New function.
44812         (do_compare): New function.
44813         (STRCOLL): Use GNU style definition.  Simplify implementation
44814         by using get_next_seq, get_next_seq_cached and do_compare.
44815
44816 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44817
44818         [BZ #14699]
44819         CVE-2013-4237
44820         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44821         member.
44822         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44823         member.
44824         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44825         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44826         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44827         conditional.
44828         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44829         GETDENTS_64BIT_ALIGNED.
44830         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44831         * manual/filesys.texi (Reading/Closing Directory): Document
44832         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44833         strongly.
44834         * manual/conf.texi (Limits for Files): Add portability note to
44835         NAME_MAX, PATH_MAX.
44836         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44837
44838 2013-08-13  Andreas Schwab  <schwab@suse.de>
44839
44840         [BZ #15749]
44841         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44842         of fabs.
44843         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44844         LDBL_MAX_EXP >= 16384]: Add tests for it.
44845
44846 2013-08-12  David S. Miller  <davem@davemloft.net>
44847
44848         * version.h (RELEASE): Set to "development".
44849         (VERSION): Set to "2.18.90".
44850         * NEWS: Add 2.19 section.
44851
44852 2013-08-03  David S. Miller  <davem@davemloft.net>
44853
44854         * po/ko.po: Update Korean translation from translation project.
44855
44856 2013-08-01  David S. Miller  <davem@davemloft.net>
44857
44858         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44859         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44860         Bilka.
44861
44862 2013-07-30  David S. Miller  <davem@davemloft.net>
44863
44864         * po/fr.po: Update French translation from translation project.
44865
44866 2013-07-28  David S. Miller  <davem@davemloft.net>
44867
44868         * po/cs.po: Update Czech translation from translation project.
44869
44870         * po/sv.po: Update Swedish translation from translation project.
44871
44872 2013-07-27  David S. Miller  <davem@davemloft.net>
44873
44874         * po/eo.po: Update Esperanto translation from translation project.
44875
44876         * po/vi.po: Update Vietnamese translation from translation project.
44877
44878         * po/de.po: Update German translation from translation project.
44879
44880 2013-07-26  David S. Miller  <davem@davemloft.net>
44881
44882         * po/bg.po: Update Bulgarian translation from translation project.
44883
44884         * po/nl.po: Update Dutch translation from translation project.
44885         * po/pl.po: Update Polish translation from translation project.
44886         * po/ru.po: Update Russian translation from translation project.
44887
44888 2013-07-24  David S. Miller  <davem@davemloft.net>
44889
44890         * po/libc.pot: Update.
44891
44892 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44893
44894         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44895         variable page size.
44896         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44897         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44898         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44899
44900 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44901
44902         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44903
44904 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44905             Andreas Schwab  <schwab@suse.de>
44906             Roland McGrath  <roland@hack.frob.com>
44907             Joseph Myers  <joseph@codesourcery.com>
44908             Carlos O'Donell  <carlos@redhat.com>
44909
44910         [BZ #15755]
44911         * config.h.in: Define HAVE_PT_CHOWN.
44912         * config.make.in (build-pt-chown): New variable.
44913         * configure.in (--enable-pt_chown): New configure option.
44914         * configure: Regenerate.
44915         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44916         build-pt-chown is enabled.
44917         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44918         pt_chown to fix pty ownership.
44919         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44920         CLOSE_ALL_FDS.
44921         * manual/install.texi (Configuring and compiling): Mention
44922         --enable-pt_chown. Add @findex for grantpt.
44923         * INSTALL: Regenerate.
44924
44925 2013-07-20  David S. Miller  <davem@davemloft.net>
44926
44927         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44928         difference between 32-bit and 64-bit.
44929
44930 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44931
44932         [BZ #15711]
44933         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44934         Avoid system header dependency with -ffreestanding.
44935         ($(objpfx)bits/syscall%d): Likewise.
44936
44937 2013-07-13  David S. Miller  <davem@davemloft.net>
44938
44939         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44940         underflows from atanl/atan2l due to bug 15319.
44941         (casinh_test_data): Likewise.
44942
44943 2013-07-07  David S. Miller  <davem@davemloft.net>
44944
44945         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44946
44947 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44948
44949         * sysdeps/i386/fpu/libm-test-ulps: Update.
44950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44951
44952 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44953
44954         * configure.in (--enable-lock-elision): Fix message text.
44955         * INSTALL: Regenerate.
44956         * configure: Regenerate.
44957
44958 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44959
44960         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44961
44962 2013-07-03  Andreas Jaeger  <aj@suse.de>
44963
44964         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44965         define.
44966         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44967         (ptrace_peeksiginfo_args): Add.
44968         (__ptrace_peeksiginfo_flags): Add.
44969         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44970         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44971         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44972
44973 2013-07-03  Allan McRae  <allan@archlinux.org>
44974
44975         * sysdeps/i386/fpu/libm-test-ulps: Update.
44976
44977 2013-07-02  David S. Miller  <davem@davemloft.net>
44978
44979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44980
44981 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44982
44983         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44984
44985 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44986
44987         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44989
44990 2013-07-02  Andi Kleen <ak@linux.intel.com>
44991
44992         * config.h.in (ENABLE_LOCK_ELISION): Add.
44993         * configure.in (--enable-lock-elision): Add option.
44994         * manual/install.texi: Document --enable lock elision.
44995         * configure: Regenerate
44996         * INSTALL: Regenerate.
44997
44998 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44999
45000         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45001         SSE4.2 strcasecmp for libc.a.
45002         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45003
45004 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45005
45006         [BZ #13304]
45007         * soft-fp/op-common.h (_FP_FMA): New macro.
45008         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45009         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45010         (_FP_MUL_MEAT_1_imm): ... here.
45011         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45012         (_FP_MUL_MEAT_1_wide): ... here.
45013         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45014         (_FP_MUL_MEAT_1_hard): ... here.
45015         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45016         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45017         (_FP_MUL_MEAT_2_wide): ... here.
45018         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45019         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45020         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45021         (_FP_MUL_MEAT_2_gmp): ... here.
45022         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45023         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45024         (_FP_MUL_MEAT_4_wide): ... here.
45025         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45026         (_FP_MUL_MEAT_4_gmp): ... here.
45027         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45028         (_FP_WFRACBITS_DW_S): Likewise.
45029         (_FP_WFRACXBITS_DW_S): Likewise.
45030         (_FP_HIGHBIT_DW_S): Likewise.
45031         (FP_FMA_S): Likewise.
45032         (_FP_FRAC_HIGH_DW_S): Likewise.
45033         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45034         (_FP_WFRACBITS_DW_D): Likewise.
45035         (_FP_WFRACXBITS_DW_D): Likewise.
45036         (_FP_HIGHBIT_DW_D): Likewise.
45037         (FP_FMA_D): Likewise.
45038         (_FP_FRAC_HIGH_DW_D): Likewise.
45039         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45040         (_FP_WFRACBITS_DW_E): Likewise.
45041         (_FP_WFRACXBITS_DW_E): Likewise.
45042         (_FP_HIGHBIT_DW_E): Likewise.
45043         (FP_FMA_E): Likewise.
45044         (_FP_FRAC_HIGH_DW_E): Likewise.
45045         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45046         (_FP_WFRACBITS_DW_Q): Likewise.
45047         (_FP_WFRACXBITS_DW_Q): Likewise.
45048         (_FP_HIGHBIT_DW_Q): Likewise.
45049         (FP_FMA_Q): Likewise.
45050         (_FP_FRAC_HIGH_DW_Q): Likewise.
45051         * soft-fp/fmasf4.c: New file.
45052         * soft-fp/fmadf4.c: Likewise.
45053         * soft-fp/fmatf4.c: Likewise.
45054
45055 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45056
45057         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45058         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45059         Silvermont.
45060         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45061         macro.
45062         (index_Slow_SSE4_2): Likewise.
45063         (index_Prefer_PMINUB_for_stringop): Likewise.
45064         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45065         bit_Slow_SSE4_2 is set.
45066         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45067         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45068
45069 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45070
45071         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45072         rtld_global._dl_hwcap2.
45073         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45074         POWER8.
45075         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45076         POWER8 feature descriptions defined in _dl_hwcap2.
45077         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45078         string handling for POWER8 feature bits.
45079         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45080         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45081         _dl_powerpc_cap_flags.
45082         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45083         * sysdeps/powerpc/rtld-global-offsets.sym
45084         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45085         _dl_hwcap2 in the rtld_global_ro structure.
45086
45087 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45088
45089         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45090         hardware capabilities in support of AT_HWCAP2.
45091         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45092         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45093         GLRO(dl_hwcap2).
45094         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45095         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45096         explicitly the unknown a_type display mechanism is used.
45097         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45098         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45099         struct member.
45100         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45101         to macro prototype for AT_HWCAP2 support.
45102         * sysdeps/i386/dl-procinfo.h: Likewise.
45103         * sysdeps/s390/dl-procinfo.h: Likewise.
45104         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45105         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45106         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45107         return -1 for unknown a_type display fallback.
45108         * sysdeps/sparc/dl-procinfo.h: Likewise.
45109         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45110         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45111
45112 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45113
45114         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45115         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45116
45117 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45118
45119         [BZ #12492]
45120         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45121         mprotect making __stack_prot writable.
45122
45123 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45124             Joseph Myers  <joseph@codesourcery.com>
45125
45126         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45127         as being properly aligned.
45128
45129 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45130
45131         * dlfcn/modstatic5.c: New file.
45132         * dlfcn/tststatic5.c: New file.
45133         * dlfcn/Makefile (tests): Add tststatic5.
45134         (tests-static): Likewise.
45135         (modules-names): Add modstatic5.
45136         (tststatic5-ENV): New variable.
45137         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45138
45139         [BZ #15022]
45140         * elf/dl-support.c (_dl_main_map): New variable.
45141         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45142         (_dl_nns, _dl_load_adds): Set to 1.
45143         (_dl_initial_searchlist): Refer to _dl_main_map.
45144         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45145         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45146         call to _dl_get_origin.
45147         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45148         around call_map.
45149         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45150         * dlfcn/modstatic3.c: New file.
45151         * dlfcn/tststatic3.c: New file.
45152         * dlfcn/tststatic4.c: New file.
45153         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45154         (tests-static): Likewise.
45155         (modules-names): Add modstatic3.
45156         (tststatic3-ENV, tststatic4-ENV): New variables.
45157         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45158         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45159
45160 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45161
45162         * configure.in (CC): Require GCC version 4.4 or later.
45163         * configure: Regenerated.
45164         * manual/install.texi (Tools for Compilation): Update GCC version
45165         requirement.
45166         * INSTALL: Regenerated.
45167
45168 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45169
45170         [BZ #15674]
45171         * string/test-memcmp.c (check2): New.
45172         (main): Call check2.
45173
45174         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45175
45176 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45177
45178         [BZ #15022]
45179         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45180         over to...
45181         (dl_open_worker) [!SHARED]: ... here.
45182
45183 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45184
45185         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45186
45187 2013-06-25  Richard Henderson  <rth@redhat.com>
45188
45189         * locale/programs/locarchive.c: Include <libc-internal.h>
45190
45191 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45192
45193         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45194         trailing whitespace removed.
45195
45196 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45197
45198         [BZ #10283]
45199         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45200         * locale/programs/locarchive.c: Include libc-mmap.h.
45201         (prepare_address_space): Take two new outputs (the mmap base and len).
45202         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45203         values.
45204         (create_archive): Declare new mmap base and len values for
45205         prepare_address_space, and store the result in ah.
45206         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45207         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45208         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45209         Declare new mmap base and len values for
45210         prepare_address_space, and store the result in new_ah.
45211         (open_archive): Declare new mmap base and len values for
45212         prepare_address_space, and store the result in ah.
45213         (close_archive): If ah->mmap_base is not NULL, use that and
45214         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45215         * sysdeps/generic/libc-mmap.h: New file.
45216
45217 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45218
45219         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45220         (ALIGN_UP): Likewise.
45221         (PTR_ALIGN_DOWN): Likewise.
45222         (PTR_ALIGN_UP): Likewise.
45223
45224 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45225
45226         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45227         entry mapped to PPC_PLATFORM_POWER8.
45228         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45229         POWER8.
45230         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45231         (_dl_string_platform): Add case for exporting platform position for
45232         POWER8.
45233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45234         search path to sysdeps/powerpc/powerpc32/power8 directory.
45235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45236         search path to sysdeps/powerpc/powerpc64/power8 directory.
45237         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45238         power7 directories.
45239         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45240         power7 directories.
45241
45242 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45243
45244         * INSTALL: Regenerate.
45245
45246         * nscd/connections.c (nscd_init): Fix comment.
45247
45248 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45249
45250         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45251
45252         [BZ #15667]
45253         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45254         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45255
45256 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45257
45258         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45259         DL_DST_REQ_STATIC.
45260         (DL_DST_REQ_STATIC): Remove macro.
45261
45262 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45263
45264         [BZ #7006]
45265         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45266         with a shift of 0 bits.
45267
45268 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45269
45270         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45271         $(tststatic-ENV).
45272
45273 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45274
45275         [BZ #15655]
45276         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45277
45278 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45279
45280         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45281         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45282         accepts -fno-tree-loop-distribute-patterns.
45283         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45284         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45285         recursive call.
45286         * string/memset.c (memset): Likewise.
45287         * string/test-memmove.c (simple_memmove): Disable loop transformation
45288         to library calls.
45289         * string/test-memset.c (simple_memset): Likewise.
45290         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45291         * benchtests/bench-memset.c (simple_memset): Likewise.
45292         * configure: Regenerated.
45293
45294 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45295
45296         * math/test-misc.c (main): Ignore fesetround failure when failures
45297         of subsequent rounding tests would be ignored.
45298
45299         [BZ #15654]
45300         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45301         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45302         * math/fegetenv.c (__fegetenv): Return 0.
45303         * math/fegetexcept.c (fegetexcept): Return 0.
45304         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45305         FE_TONEAREST.
45306         * math/feholdexcpt.c (feholdexcept): Return 0.
45307         * math/fesetenv.c (__fesetenv): Return 0.
45308         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45309         argument FE_TONEAREST.
45310         * math/feupdateenv.c (__feupdateenv): Return 0.
45311         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45312
45313 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45314
45315         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45316         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45317         ($(objpfx)rtld-%.os rules): Use them.
45318
45319 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45320
45321         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45322         fields.
45323
45324 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45325
45326         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45327         length of target pattern, then descending length of dependency pattern.
45328         * configure.in (AWK): Require gawk 3.1.2 or newer.
45329         * manual/install.texi (Tools for Compilation): Say that we do.
45330         * configure: Regenerated.
45331
45332         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45333         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45334         * scripts/sysd-rules.awk: ... this new script.
45335         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45336         than a glob-style pattern.
45337
45338 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45339
45340         * math/test-misc.c (main): Do not treat incorrectly rounded
45341         conversions as failure unless ROUNDING_TESTS passes.
45342
45343 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45344
45345         [BZ #15631]
45346         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45347         restore exception state around main square root computation, then
45348         check for inexactness explicitly.
45349
45350         * math/libm-test.inc (fma_test_data): Add another test.
45351
45352 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45353
45354         * manual/threads.texi (Non-POSIX Extensions): New document
45355         node.  Document pthread_getattr_default_np and
45356         pthread_setattr_default_np.
45357
45358         * Versions.def (libpthread): Add GLIBC_2.18.
45359         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45361         Likewise.
45362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45363         Likewise.
45364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45365         Likewise.
45366         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45367         Likewise.
45368         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45369         Likewise.
45370         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45371         Likewise.
45372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45373         Likewise.
45374         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45375         Likewise.
45376         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45377         Likewise.
45378
45379 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45380
45381         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45382         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45383
45384 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45385             H.J. Lu  <hjl.tools@gmail.com>
45386
45387         [BZ #15627]
45388         * sysdeps/x86_64/rtld-memset.c: Remove file.
45389         * sysdeps/x86_64/rtld-memset.S: New file.
45390
45391 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45392
45393         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45394         (test_in_one_mode): Take arguments for whether the rounding mode
45395         is supported for each floating-point type.
45396         (do_test): Pass new arguments to test_in_one_mode using
45397         ROUNDING_TESTS.
45398
45399 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45400
45401         * posix/tst-waitid.c (do_test): Distinguish different instances of
45402         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45403         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45404         before entering the kernel for waitpid.
45405
45406 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45407
45408         * NEWS: Fix note on clock function precision.  Text by Roland
45409         McGrath.
45410
45411 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45412
45413         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45414         it into place only when and if the sanity check passes.
45415
45416 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45417
45418         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45419         output for whether conversion result is exact.  Take argument
45420         indicating whether type is IBM long double.
45421         (round_for_all): Change need_exact field to ibm_ld.
45422         * stdlib/tst-strtod-round.c (struct exactness): New type.
45423         (struct test): Change bool ld_ok field to struct exactness exact.
45424         (TEST): Update all definitions for change to field.
45425         (tests): Regenerate array contents.
45426         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45427         field value.  Check for IBM long double here.
45428         (do_test): Update calls to test_in_one_mode.
45429
45430 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45431
45432         [BZ #12515]
45433         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45434         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45435
45436 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45437
45438         [BZ #15605]
45439         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45440         generated by the compiler on loop optimizations.
45441         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45442         general definitions.
45443
45444 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45445
45446         * math/bug-nextafter.c: Include <math-tests.h>.
45447         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45448         the relevant type.
45449         * math/bug-nexttoward.c: Include <math-tests.h>.
45450         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45451         the relevant type.
45452         * math/test-misc.c: Include <math-tests.h>.
45453         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45454         the relevant type.
45455
45456 2013-06-12  Andreas Jaeger  <aj@suse.de>
45457
45458         * po/ia.po: Update Interlingua translation from translation
45459         project.
45460
45461 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45462
45463         * include/fenv.h: Include stdbool.h.
45464         (struct rm_ctx): New structure.
45465         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45466         Define macro.
45467         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45468         (SET_RESTORE_ROUNDF): Likewise.
45469         (SET_RESTORE_ROUNDL): Likewise.
45470         (SET_RESTORE_ROUND_NOEX): Likewise.
45471         (SET_RESTORE_ROUND_NOEXF): Likewise.
45472         (SET_RESTORE_ROUND_NOEXL): Likewise.
45473         (SET_RESTORE_ROUND_53BIT): Likewise.
45474         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45475         (libc_feresetround_noexf_ctx): Likewise.
45476         (libc_feresetround_noexl_ctx): Likewise.
45477         (libc_feholdsetround_53bit_ctx): Likewise.
45478         (libc_feresetround_53bit_ctx): Likewise.
45479         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45480         (libc_feholdexcept_setround_sse_ctx): New function.
45481         (libc_fesetenv_sse_ctx): Likewise.
45482         (libc_feupdateenv_sse_ctx): Likewise.
45483         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45484         (libc_feholdexcept_setround_387_ctx): Likewise.
45485         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45486         (libc_feholdsetround_387_prec_ctx): Likewise.
45487         (libc_feholdsetround_387_ctx): Likewise.
45488         (libc_feholdsetround_387_53bit_ctx): Likewise.
45489         (libc_feholdsetround_sse_ctx): Likewise.
45490         (libc_feresetround_sse_ctx): Likewise.
45491         (libc_feresetround_387_ctx): Likewise.
45492         (libc_feupdateenv_387_ctx): Likewise.
45493         (libc_feholdexcept_setroundf_ctx): Define macro.
45494         (libc_fesetenvf_ctx): Likewise.
45495         (libc_feupdateenvf_ctx): Likewise.
45496         (libc_feholdsetroundf_ctx): Likewise.
45497         (libc_feresetroundf_ctx): Likewise.
45498         (libc_feholdexcept_setround_ctx): Likewise.
45499         (libc_fesetenv_ctx): Likewise.
45500         (libc_feupdateenv_ctx): Likewise.
45501         (libc_feholdsetround_ctx): Likewise.
45502         (libc_feresetround_ctx): Likewise.
45503         (libc_feholdexcept_setroundl_ctx): Likewise.
45504         (libc_feupdateenvl_ctx): Likewise.
45505         (libc_feholdsetroundl_ctx): Likewise.
45506         (libc_feresetroundl_ctx): Likewise.
45507         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45508         (libc_feresetround_53bit_ctx): Likewise.
45509
45510 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45511
45512         * locale/iso-639.def: Convert to UTF-8.
45513
45514 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45515
45516         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45517         (EXCEPTION_TESTS_double): Likewise.
45518         (EXCEPTION_TESTS_long_double): Likewise.
45519         (EXCEPTION_TESTS): Likewise.
45520         * math/libm-test.inc (test_exceptions): Only test exceptions if
45521         EXCEPTION_TESTS (FLOAT).
45522
45523 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45524
45525         * benchtests/Makefile (string-bench): Add strcpy_chk and
45526         stpcpy_chk.
45527         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45528         * benchtests/bench-stpcpy_chk.c: New file.
45529         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45530         * benchtests/bench-strcpy_chk.c: New file.
45531         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45532         code.
45533         (do_test): Likewise.
45534
45535 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45536
45537         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45538         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45539         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45540         with tabs where appropriate.
45541         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45542         dl-procinfo.h.
45543         [PPC_PLATFORM_PPC440]: Likewise.
45544         [PPC_PLATFORM_PPC464]: Likewise.
45545         [PPC_PLATFORM_PPC476]: Likewise.
45546         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45547         ppc464, and ppc476 platform strings merging from ports/
45548         dl-procinfo.h.
45549
45550 2013-06-11  Andreas Schwab  <schwab@suse.de>
45551
45552         [BZ #14991]
45553         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45554         (from_ucs4_idx): Regenerate.
45555         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45556         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45557         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45558         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45559         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45560         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45561         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45562         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45563         from FROM_LOOP and TO_LOOP specific macros.
45564         (BODY): Handle combining characters.
45565         * iconvdata/BIG5HKSCS.irreversible: Update.
45566         * iconvdata/BIG5HKSCS.precomposed: New file.
45567         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45568         characters.
45569         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45570
45571 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45572
45573         * include/sys/time.h: Fix indentation and add copyright header.
45574
45575         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45576         (do_test): Likewise.
45577         * string/test-memchr.c (do_one_test): Likewise.
45578         (do_test): Likewise.
45579         * string/test-memcmp.c (do_one_test): Likewise.
45580         (do_test): Likewise.
45581         * string/test-memcpy.c (do_one_test): Likewise.
45582         (do_test): Likewise.
45583         * string/test-memmem.c (do_one_test): Likewise.
45584         (do_test): Likewise.
45585         (do_random_tests): Likewise.
45586         * string/test-memmove.c (do_one_test): Likewise.
45587         (do_test): Likewise.
45588         * string/test-memset.c (do_one_test): Likewise.
45589         (do_test): Likewise.
45590         * string/test-rawmemchr.c (do_one_test): Likewise.
45591         (do_test): Likewise.
45592         * string/test-strcasecmp.c (do_one_test): Likewise.
45593         (do_test): Likewise.
45594         * string/test-strcasestr.c (do_one_test): Likewise.
45595         (do_test): Likewise.
45596         * string/test-strcat.c (do_one_test): Likewise.
45597         (do_test): Likewise.
45598         * string/test-strchr.c (do_one_test): Likewise.
45599         (do_test): Likewise.
45600         * string/test-strcmp.c (do_one_test): Likewise.
45601         (do_test): Likewise.
45602         * string/test-strcpy.c (do_one_test): Likewise.
45603         (do_test): Likewise.
45604         * string/test-string.h: Likewise.
45605         (test_init): Likewise.
45606         * string/test-strlen.c (do_one_test): Likewise.
45607         (do_test): Likewise.
45608         * string/test-strncasecmp.c (do_one_test): Likewise.
45609         (do_test): Likewise.
45610         * string/test-strncat.c (do_one_test): Likewise.
45611         (do_test): Likewise.
45612         * string/test-strncmp.c (do_one_test): Likewise.
45613         (do_test_limit): Likewise.
45614         (do_test): Likewise.
45615         * string/test-strncpy.c (do_one_test): Likewise.
45616         (do_test): Likewise.
45617         * string/test-strnlen.c (do_one_test): Likewise.
45618         (do_test): Likewise.
45619         * string/test-strpbrk.c (do_one_test): Likewise.
45620         (do_test): Likewise.
45621         * string/test-strrchr.c (do_one_test): Likewise.
45622         (do_test): Likewise.
45623         * string/test-strspn.c (do_one_test): Likewise.
45624         (do_test): Likewise.
45625         * string/test-strstr.c (do_one_test): Likewise.
45626         (do_test): Likewise.
45627
45628         * benchtests/Makefile (string-bench): Add string benchmarks.
45629         * benchtests/bench-bcopy-ifunc.c: New file.
45630         * benchtests/bench-bcopy.c: New file.
45631         * benchtests/bench-bzero-ifunc.c: New file.
45632         * benchtests/bench-bzero.c: New file.
45633         * benchtests/bench-memccpy-ifunc.c: New file.
45634         * benchtests/bench-memccpy.c: New file.
45635         * benchtests/bench-memchr-ifunc.c: New file.
45636         * benchtests/bench-memchr.c: New file.
45637         * benchtests/bench-memcmp-ifunc.c: New file.
45638         * benchtests/bench-memcmp.c: New file.
45639         * benchtests/bench-memmem-ifunc.c: New file.
45640         * benchtests/bench-memmem.c: New file.
45641         * benchtests/bench-memmove-ifunc.c: New file.
45642         * benchtests/bench-memmove.c: New file.
45643         * benchtests/bench-mempcpy-ifunc.c: New file.
45644         * benchtests/bench-mempcpy.c: New file.
45645         * benchtests/bench-memset-ifunc.c: New file.
45646         * benchtests/bench-memset.c: New file.
45647         * benchtests/bench-rawmemchr-ifunc.c: New file.
45648         * benchtests/bench-rawmemchr.c: New file.
45649         * benchtests/bench-stpcpy-ifunc.c: New file.
45650         * benchtests/bench-stpcpy.c: New file.
45651         * benchtests/bench-stpncpy-ifunc.c: New file.
45652         * benchtests/bench-stpncpy.c: New file.
45653         * benchtests/bench-strcasecmp-ifunc.c: New file.
45654         * benchtests/bench-strcasecmp.c: New file.
45655         * benchtests/bench-strcasestr-ifunc.c: New file.
45656         * benchtests/bench-strcasestr.c: New file.
45657         * benchtests/bench-strcat-ifunc.c: New file.
45658         * benchtests/bench-strcat.c: New file.
45659         * benchtests/bench-strchr-ifunc.c: New file.
45660         * benchtests/bench-strchr.c: New file.
45661         * benchtests/bench-strchrnul-ifunc.c: New file.
45662         * benchtests/bench-strchrnul.c: New file.
45663         * benchtests/bench-strcmp-ifunc.c: New file.
45664         * benchtests/bench-strcmp.c: New file.
45665         * benchtests/bench-strcpy-ifunc.c: New file.
45666         * benchtests/bench-strcpy.c: New file.
45667         * benchtests/bench-strcspn-ifunc.c: New file.
45668         * benchtests/bench-strcspn.c: New file.
45669         * benchtests/bench-strlen-ifunc.c: New file.
45670         * benchtests/bench-strlen.c: New file.
45671         * benchtests/bench-strncasecmp-ifunc.c: New file.
45672         * benchtests/bench-strncasecmp.c: New file.
45673         * benchtests/bench-strncat-ifunc.c: New file.
45674         * benchtests/bench-strncat.c: New file.
45675         * benchtests/bench-strncmp-ifunc.c: New file.
45676         * benchtests/bench-strncmp.c: New file.
45677         * benchtests/bench-strncpy-ifunc.c: New file.
45678         * benchtests/bench-strncpy.c: New file.
45679         * benchtests/bench-strnlen-ifunc.c: New file.
45680         * benchtests/bench-strnlen.c: New file.
45681         * benchtests/bench-strpbrk-ifunc.c: New file.
45682         * benchtests/bench-strpbrk.c: New file.
45683         * benchtests/bench-strrchr-ifunc.c: New file.
45684         * benchtests/bench-strrchr.c: New file.
45685         * benchtests/bench-strspn-ifunc.c: New file.
45686         * benchtests/bench-strspn.c: New file.
45687         * benchtests/bench-strstr-ifunc.c: New file.
45688         * benchtests/bench-strstr.c: New file.
45689
45690         * benchtests/Makefile: Disable parallel execution of targets.
45691         (string-bench): Add memcpy.
45692         (benchset): New variable to store a list of benchmark sets.
45693         (bench-func): Renamed from bench.
45694         (bench-set): New target.
45695         (bench): Depend on bench-func and bench-set.
45696         * benchtests/README: Add section on benchmark sets.
45697         * benchtests/bench-memcpy-ifunc.c: New file.
45698         * benchtests/bench-memcpy.c: New file.
45699         * benchtests/bench-string.h: New file.
45700
45701 2013-06-11  Andreas Schwab  <schwab@suse.de>
45702
45703         [BZ #15577]
45704         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45705         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45706         values in the triple.
45707         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45708         terminator in the group key.
45709
45710 2013-06-11  Andreas Jaeger  <aj@suse.de>
45711
45712         * po/zh_TW.po: Update Chinese (traditional) translation from
45713         translation project.
45714
45715 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45716
45717         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45718         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45719         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45720         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45721         (clock_getcpuclockid): Likewise.
45722         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45723         Add weak_alias and libc_hidden_def.
45724         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45725         * rt/clock_gettime.c (clock_gettime): Rename to
45726         __clock_gettime.  Add weak_alias and libc_hidden_def.
45727         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45728         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45729         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45730         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45731         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45732         Likewise.
45733         * rt/clock_settime.c (clock_settime): Rename to
45734         __clock_settime.  Add weak_alias and libc_hidden_def.
45735         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45736
45737 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45738
45739         * mach/err_boot.sub: Remove trailing whitespace.
45740         * mach/err_ipc.sub: Likewise.
45741         * mach/err_mach.sub: Likewise.
45742
45743         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45744         (ROUNDING_TESTS_double): Likewise.
45745         (ROUNDING_TESTS_long_double): Likewise.
45746         (ROUNDING_TESTS): Likewise.
45747         * math/libm-test.inc: Include <math-tests.h>.
45748         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45749         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45750         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45751         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45752
45753 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45754
45755         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45756         of assigning.
45757
45758 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45759
45760         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45761         otherwise empty TRANS lines.
45762         * sysdeps/gnu/errlist.c: Regenerated.
45763
45764         * catgets/gencat.c (error_print): Use (void) in function
45765         definition.
45766         * crypt/crypt_util.c (__init_des): Likewise.
45767         * crypt/speeds.c (Stop): Likewise.
45768         (main): Likewise.
45769         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45770         * inet/ruserpass.c (token): Likewise.
45771         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45772         * intl/localealias.c (extend_alias_table): Likewise.
45773         * intl/plural-exp.c (init_germanic_plural): Likewise.
45774         * libio/fcloseall.c (__fcloseall): Likewise.
45775         * libio/genops.c (_IO_flush_all): Likewise.
45776         (_IO_flush_all_linebuffered): Likewise.
45777         (_IO_cleanup): Likewise.
45778         (_IO_iter_begin): Likewise.
45779         (_IO_iter_end): Likewise.
45780         (_IO_list_lock): Likewise.
45781         (_IO_list_unlock): Likewise.
45782         (_IO_list_resetlock): Likewise.
45783         * libio/getchar.c (getchar): Likewise.
45784         * libio/getchar_u.c (getchar_unlocked): Likewise.
45785         * libio/getwchar.c (getwchar): Likewise.
45786         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45787         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45788         * login/getpt.c (__getpt): Likewise.
45789         * login/tst-utmp.c (main): Likewise.
45790         * malloc/hooks.c (__malloc_check_init): Likewise.
45791         * malloc/malloc.c (__malloc_stats): Likewise.
45792         * malloc/mtrace.c (tr_break): Likewise.
45793         (mtrace): Likewise.
45794         (muntrace): Likewise.
45795         * misc/fstab.c (endfsent): Likewise.
45796         * misc/getclktck.c (__getclktck): Likewise.
45797         * misc/getdtsz.c (__getdtablesize): Likewise.
45798         * misc/gethostid.c (gethostid): Likewise.
45799         * misc/getpagesize.c (__getpagesize): Likewise.
45800         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45801         (__get_nprocs): Likewise.
45802         (__get_phys_pages): Likewise.
45803         (__get_avphys_pages): Likewise.
45804         * misc/getttyent.c (getttyent): Likewise.
45805         (setttyent): Likewise.
45806         (endttyent): Likewise.
45807         * misc/getusershell.c (getusershell): Likewise.
45808         (endusershell): Likewise.
45809         (setusershell): Likewise.
45810         (initshells): Likewise.
45811         * misc/hsearch.c (__hdestroy): Likewise.
45812         * misc/sync.c (sync): Likewise.
45813         * misc/syslog.c (closelog_internal): Likewise.
45814         (closelog): Likewise.
45815         * misc/ttyslot.c (ttyslot): Likewise.
45816         * misc/vhangup.c (vhangup): Likewise.
45817         * posix/fork.c (__fork): Likewise.
45818         * posix/getegid.c (__getegid): Likewise.
45819         * posix/geteuid.c (__geteuid): Likewise.
45820         * posix/getgid.c (__getgid): Likewise.
45821         * posix/getpid.c (__getpid): Likewise.
45822         * posix/getppid.c (__getppid): Likewise.
45823         * posix/getuid.c (__getuid): Likewise.
45824         * posix/pause.c (pause): Likewise.
45825         * posix/setpgrp.c (setpgrp): Likewise.
45826         * posix/setsid.c (__setsid): Likewise.
45827         * posix/test-vfork.c (noop): Likewise.
45828         * resolv/gethnamaddr.c (_endhtent): Likewise.
45829         (_gethtent): Likewise.
45830         (ht_endhostent): Likewise.
45831         (gethostent): Likewise.
45832         (dns_service): Likewise.
45833         * stdlib/drand48.c (drand48): Likewise.
45834         * stdlib/lrand48.c (lrand48): Likewise.
45835         * stdlib/mrand48.c (mrand48): Likewise.
45836         * stdlib/rand.c (rand): Likewise.
45837         * stdlib/random.c (__random): Likewise.
45838         * stdlib/setenv.c (clearenv): Likewise.
45839         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45840         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45841         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45842         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45843         (__get_nprocs): Likewise.
45844         (__get_phys_pages): Likewise.
45845         (__get_avphys_pages): Likewise.
45846         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45847         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45848         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45849         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45850         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45851         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45852         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45853         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45854         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45855         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45856         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45857         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45858         * sysdeps/posix/clock.c (clock): Likewise.
45859         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45860         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45861         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45862         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45863         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45864         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45865         (__get_nprocs_conf): Likewise.
45866         (__get_phys_pages): Likewise.
45867         (__get_avphys_pages): Likewise.
45868         * time/clock.c (clock): Likewise.
45869         * time/tzset.c (__tzname_max): Likewise.
45870
45871 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45872
45873         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45874         (__bswap_32): Do not use "register".
45875         * crypt/crypt.c (_ufc_doit_r): Likewise.
45876         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45877         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45878         * gmon/gmon.c (__monstartup): Likewise.
45879         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45880         * hurd/hurdmalloc.c (more_memory): Likewise.
45881         (malloc): Likewise.
45882         (free): Likewise.
45883         (realloc): Likewise.
45884         (malloc_fork_prepare): Likewise.
45885         (malloc_fork_parent): Likewise.
45886         (malloc_fork_child): Likewise.
45887         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45888         (_svcauth_des): Likewise.
45889         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45890         * inet/inet_net.c (inet_network): Likewise.
45891         * inet/inet_netof.c (inet_netof): Likewise.
45892         * inet/rcmd.c (__validuser2_sa): Likewise.
45893         * io/fts.c (fts_open): Likewise.
45894         (fts_load): Likewise.
45895         (fts_close): Likewise.
45896         (fts_read): Likewise.
45897         (fts_children): Likewise.
45898         (fts_build): Likewise.
45899         (fts_stat): Likewise.
45900         (fts_sort): Likewise.
45901         (fts_alloc): Likewise.
45902         (fts_lfree): Likewise.
45903         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45904         (_IO_file_xsgetn): Likewise.
45905         (_IO_file_xsgetn_mmap): Likewise.
45906         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45907         (_IO_cookie_write): Likewise.
45908         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45909         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45910         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45911         * malloc/obstack.c (_obstack_begin): Likewise.
45912         (_obstack_begin_1): Likewise.
45913         (_obstack_newchunk): Likewise.
45914         (_obstack_allocated_p): Likewise.
45915         (obstack_free): Likewise.
45916         (_obstack_memory_used): Likewise.
45917         * misc/getttyent.c (getttynam): Likewise.
45918         (getttyent): Likewise.
45919         (skip): Likewise.
45920         (value): Likewise.
45921         * misc/getusershell.c (initshells): Likewise.
45922         * misc/syslog.c (__vsyslog_chk): Likewise.
45923         * misc/ttyslot.c (ttyslot): Likewise.
45924         * nis/nis_hash.c (__nis_hash): Likewise.
45925         * posix/fnmatch_loop.c (FCT): Likewise.
45926         * posix/getconf.c (print_all): Likewise.
45927         (main): Likewise.
45928         * posix/getopt.c (exchange): Likewise.
45929         * posix/glob.c (globfree): Likewise.
45930         (prefix_array): Likewise.
45931         (__glob_pattern_type): Likewise.
45932         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45933         (NS_GET32): Likewise.
45934         (NS_PUT16): Likewise.
45935         (NS_PUT32): Likewise.
45936         * resolv/gethnamaddr.c (getanswer): Likewise.
45937         (gethostbyname2): Likewise.
45938         (gethostbyaddr): Likewise.
45939         (_gethtent): Likewise.
45940         (_gethtbyname2): Likewise.
45941         (_gethtbyaddr): Likewise.
45942         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45943         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45944         * resolv/res_init.c (__res_vinit): Likewise.
45945         (net_mask): Likewise.
45946         * resolv/res_mkquery.c (outchar): Likewise.
45947         (PRINT): Likewise.
45948         * stdio-common/printf_fp.c (outchar): Likewise.
45949         (PRINT): Likewise.
45950         * stdio-common/printf_fphex.c (outchar): Likewise.
45951         (PRINT): Likewise.
45952         * stdio-common/printf_size.c (outchar): Likewise.
45953         (PRINT): Likewise.
45954         * stdio-common/test_rdwr.c (main): Likewise.
45955         * stdio-common/tfformat.c (matches): Likewise.
45956         * stdio-common/vfprintf.c (outchar): Likewise.
45957         (printf_unknown): Likewise.
45958         (buffered_vfprintf): Likewise.
45959         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45960         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45961         (ReadFile): Likewise.
45962         * stdlib/qsort.c (SWAP): Likewise.
45963         (_quicksort): Likewise.
45964         * stdlib/setenv.c (__add_to_environ): Likewise.
45965         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45966         * stdlib/strtol_l.c (__strtol_l): Likewise.
45967         * stdlib/tst-strtod.c (main): Likewise.
45968         * stdlib/tst-strtol.c (main): Likewise.
45969         * stdlib/tst-strtoll.c (main): Likewise.
45970         * string/bits/string2.h (__strcmp_cc): Likewise.
45971         (__strcmp_cg): Likewise.
45972         (__strcspn_c1): Likewise.
45973         (__strcspn_c2): Likewise.
45974         (__strcspn_c3): Likewise.
45975         (__strspn_c1): Likewise.
45976         (__strspn_c2): Likewise.
45977         (__strspn_c3): Likewise.
45978         (__strsep_1c): Likewise.
45979         (__strsep_2c): Likewise.
45980         (__strsep_3c): Likewise.
45981         * string/memccpy.c (__memccpy): Likewise.
45982         * string/stpcpy.c (__stpcpy): Likewise.
45983         * string/strcmp.c (strcmp): Likewise.
45984         * string/strrchr.c (strrchr): Likewise.
45985         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45986         Likewise.
45987         * sysdeps/mach/hurd/getcwd.c
45988         (_hurd_canonicalize_directory_name_internal): Likewise.
45989         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45990         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45991         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45992         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45993         Likewise, in both definitions.
45994         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45995         definitions.
45996         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45997         64] (__bswap_64): Likewise.
45998         * time/test_time.c (main): Likewise.
45999         * time/tzfile.c (__tzfile_read): Likewise.
46000         (__tzfile_compute): Likewise.
46001         * time/tzset.c (__tzset_parse_tz): Likewise.
46002         (tzset_internal): Likewise.
46003         (compute_change): Likewise.
46004         * wcsmbs/wcscat.c (__wcscat): Likewise.
46005         * wcsmbs/wcschr.c (wcschr): Likewise.
46006         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46007         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46008         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46009         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46010         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46011         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46012         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46013         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46014         * wcsmbs/wmemset.c (wmemset): Likewise.
46015
46016 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46017
46018         * scripts/config.guess: Update to version 2013-05-16.
46019         * scripts/config.sub: Update to version 2013-04-24.
46020         * scripts/install-sh: Update to version 2011-11-20.07.
46021         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46022         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46023
46024 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46025
46026         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46027         * elf/sln.c: Likewise.
46028         * hurd/hurd/ioctl.h: Likewise.
46029         * hurd/hurdmalloc.c: Likewise.
46030         * hurd/xattr.c: Likewise.
46031         * include/shlib-compat.h: Likewise.
46032         * inet/ruserpass.c: Likewise.
46033         * libio/iofgets_u.c: Likewise.
46034         * libio/iofgetws_u.c: Likewise.
46035         * locale/programs/ld-identification.c: Likewise.
46036         * locale/programs/ld-time.c: Likewise.
46037         * mach/msg-destroy.c: Likewise.
46038         * nss/nss_files/files-netgrp.c: Likewise.
46039         * resolv/res_data.c: Likewise.
46040         * soft-fp/op-1.h: Likewise.
46041         * soft-fp/op-2.h: Likewise.
46042         * soft-fp/op-4.h: Likewise.
46043         * soft-fp/op-common.h: Likewise.
46044         * stdio-common/printf_fphex.c: Likewise.
46045         * stdlib/strtod_l.c: Likewise.
46046         * sunrpc/rpc/clnt.h: Likewise.
46047         * sysdeps/generic/framestate.c: Likewise.
46048         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46049         * sysdeps/i386/bsd-setjmp.S: Likewise.
46050         * sysdeps/i386/__longjmp.S: Likewise.
46051         * sysdeps/i386/setjmp.S: Likewise.
46052         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46053         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46054         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46055         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46056         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46057         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46058         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46059         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46060         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46061         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46062         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46063         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46064         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46065         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46066         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46067         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46068         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46069         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46070         * sysdeps/ieee754/support.c: Likewise.
46071         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46072         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46073         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46074         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46075         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46076         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46077         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46078         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46079         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46080         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46081         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46082         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46083         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46084         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46085         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46086         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46087         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46089
46090 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46091
46092         * posix/transbug.c: Remove executable mode.
46093
46094 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46095
46096         * crypt/speeds.c: Remove trailing whitespace.
46097         * dlfcn/default.c: Likewise.
46098         * elf/ifuncdep2.c: Likewise.
46099         * elf/ifuncmain1.c: Likewise.
46100         * elf/ifuncmain1vis.c: Likewise.
46101         * elf/testobj.h: Likewise.
46102         * elf/tst-stackguard1.c: Likewise.
46103         * gmon/sys/gmon.h: Likewise.
46104         * hurd/hurdmsg.c: Likewise.
46105         * hurd/new-fd.c: Likewise.
46106         * hurd/ports-get.c: Likewise.
46107         * iconvdata/ibm1008_420.c: Likewise.
46108         * inet/tst-getni1.c: Likewise.
46109         * inet/tst-getni2.c: Likewise.
46110         * libio/ioungetc.c: Likewise.
46111         * libio/wfiledoalloc.c: Likewise.
46112         * manual/libm-err-tab.pl: Likewise.
46113         * math/w_dremf.c: Likewise.
46114         * misc/ftruncate.c: Likewise.
46115         * posix/bug-glob2.c: Likewise.
46116         * posix/tst-pcre.c: Likewise.
46117         * posix/wait4.c: Likewise.
46118         * resolv/README: Likewise.
46119         * resolv/res_debug.h: Likewise.
46120         * resolv/tst-inet_ntop.c: Likewise.
46121         * setjmp/bug269-setjmp.c: Likewise.
46122         * soft-fp/extended.h: Likewise.
46123         * soft-fp/op-1.h: Likewise.
46124         * soft-fp/op-2.h: Likewise.
46125         * soft-fp/op-4.h: Likewise.
46126         * soft-fp/op-8.h: Likewise.
46127         * soft-fp/testit.c: Likewise.
46128         * stdio-common/bug16.c: Likewise.
46129         * stdlib/random.c: Likewise.
46130         * sunrpc/rpcsvc/rquota.x: Likewise.
46131         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46132         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46133         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46134         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46135         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46136         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46137         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46138         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46139         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46140         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46141         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46142         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46143         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46144         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46145         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46146         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46147         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46148         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46149         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46150         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46151         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46152         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46153         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46154         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46155         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46156         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46157         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46158         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46159         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46160         * sysdeps/ieee754/s_lib_version.c: Likewise.
46161         * sysdeps/mach/hurd/check_fds.c: Likewise.
46162         * sysdeps/mach/hurd/getsockname.c: Likewise.
46163         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46164         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46165         * sysdeps/powerpc/bits/link.h: Likewise.
46166         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46167         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46168         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46169         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46170         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46171         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46172         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46173         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46174         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46175         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46176         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46177         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46178         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46179         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46180         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46181         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46182         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46183         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46184         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46185         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46186         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46187         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46188         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46189         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46190         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46191         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46192         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46193         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46194         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46195         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46196         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46197         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46198         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46199         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46200         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46201         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46202         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46203         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46204         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46205         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46206         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46207         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46208         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46209         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46210         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46211         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46212         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46213         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46214         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46215         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46216         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46217         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46218         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46219         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46220         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46221         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46222         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46223         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46224         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46225         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46226         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46227         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46228         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46229         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46230         * sysdeps/powerpc/sysdep.h: Likewise.
46231         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46232         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46233         * sysdeps/sh/dl-trampoline.S: Likewise.
46234         * sysdeps/sh/memset.S: Likewise.
46235         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46236         * sysdeps/sh/strlen.S: Likewise.
46237         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46238         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46239         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46240         * sysdeps/sparc/sparc32/rem.S: Likewise.
46241         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46242         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46243         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46244         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46245         * sysdeps/sparc/sparc32/urem.S: Likewise.
46246         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46247         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46248         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46249         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46250         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46251         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46252         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46253         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46254         * sysdeps/unix/bsd/times.c: Likewise.
46255         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46256         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46260         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46261         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46262         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46263         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46264         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46265         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46266         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46267         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46268         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46269         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46270         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46271         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46272         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46273         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46274         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46275         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46276         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46277         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46278         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46279         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46280         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46281         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46282         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46283         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46284         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46285         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46286         * sysdeps/x86_64/strcspn.S: Likewise.
46287
46288 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46289
46290         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46291         generated file.  Regenerate properly from gen-translit.pl.
46292         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46293         locale/C-translit.h.
46294
46295 2013-06-05  Andreas Schwab  <schwab@suse.de>
46296
46297         [BZ #15100]
46298         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46299         week as 6 instead of -1.
46300         * time/tst-strptime.c (day_tests): Add test case.
46301
46302 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46303
46304         * sysdeps/generic/math_private.h
46305         (libc_feholdexcept_setround_53bit): Replace with
46306         libc_feholdsetround_53bit.
46307         (libc_feupdateenv_53bit): Replace with
46308         libc_feresetround_53bit.
46309         (SET_RESTORE_ROUND_53BIT): Adjust.
46310
46311 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46312
46313         * string/test-strchrnul.c: Add copyright header.
46314
46315         * posix/tst-getaddrinfo4.c: Increase test timeout.
46316
46317 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46318
46319         [BZ #15536]
46320         * math/libm-test.inc (MAX_EXP): Remove
46321         (MIN_EXP): Define.
46322         (ulp): Use MIN_EXP - MANT_DIG.
46323         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46324
46325 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46326
46327         * po/be.po: Revert last change.
46328         * po/zh_CN.po: Likewise.
46329         * po/header.pot: Likewise.
46330
46331 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46332
46333         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46334         link-libc-deps to empty as target-specific variable.
46335         * Makerules (link-libc-args): New variable.
46336         (libc-for-link): Likewise.
46337         (link-libc-deps): Likewise.
46338         (lib%.so): Depend on $(link-libc-deps).  Link with
46339         $(link-libc-args).
46340         (build-module): Link with $(link-libc-args).
46341         (build-module-asneeded): Likewise.
46342         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46343         list of objects.
46344         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46345         target-specific variable.
46346         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46347         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46348         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46349         libc.
46350         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46351         libc and ld.so.
46352         ($(objpfx)libpcprofile.so): Likewise.
46353         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46354         libc_nonshared.a.
46355         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46356         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46357         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46358         $(link-libc-deps).
46359         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46360         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46361         * login/Makefile ($(objpfx)libutil.so): Likewise.
46362         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46363         * math/Makefile ($(objpfx)libm.so): Likewise.
46364         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46365         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46366         variable instead of depending directly on libc.
46367         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46368         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46369         $(link-libc-deps).
46370         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46371         libc.
46372         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46373         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46374         ($(objpfx)libanl.so): Likewise.
46375         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46376         ld.so.
46377         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46378         $(link-libc-deps).
46379         * sysdeps/i386/fpu/Makefile: Remove file.
46380         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46381         ($(objpfx)libm.so): Remove dependency on ld.so.
46382
46383 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46384
46385         [BZ # 15553]
46386         * nis/yp_xdr.c (XDRMAXNAME): Define.
46387         (XDRMAXRECORD): Define.
46388         (xdr_domainname): Use XDRMAXNAME.
46389         (xdr_mapname): Likewise.
46390         (xdr_peername): Likewise.
46391         (xdr_keydat): Use XDRMAXRECORD.
46392         (xdr_valdat): Likewise.
46393
46394 2013-05-30  Jeff Law  <law@redhat.com>
46395
46396         [BZ #14256]
46397         * manual/errno.texi (ESTALE): Update to account for more than
46398         just NFS file systems.
46399         * sysdeps/gnu/errlist.c: Regenerated.
46400
46401 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46402
46403         [BZ #15465]
46404         * elf/Makefile (tests): Add tst-null-argv.
46405         (modules-names):  Add tst-null-argv-lib.
46406         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46407         (tst-null-argv-ENV): Set environment for tst-null-argv.
46408         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46409         (RTLD_PROGNAME): New macro.
46410         * elf/tst-null-argv.c: New test case.
46411         * elf/tst-null-argv-lib.c: Library for test case.
46412         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46413         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46414         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46415         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46416         * elf/dl-init.c (call_init): Likewise.
46417         (_dl_init): Likewise.
46418         * elf/dl-load.c (print_search_path): Likewise.
46419         (_dl_map_object): Likewise.
46420         * elf/dl-lookup.c (do_lookup_x): Likewise.
46421         (add_dependency): Likewise.
46422         (_dl_lookup_symbol_x): Likewise.
46423         (_dl_debug_bindings): Likewise.
46424         * elf/dl-open.c (_dl_show_scope): Likewise.
46425         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46426         * elf/dl-version.c (match_symbol): Likewise.
46427         (_dl_check_map_versions): Likewise.
46428         * elf/rtld.c (dl_main): Likewise.
46429         (print_unresolved): Use RTLD_PROGNAME.
46430         (print_missing_version): Likewise.
46431         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46432         (elf_machine_rela): Likewise.
46433         * sysdeps/powerpc/powerpc32/dl-machine.c
46434         (__process_machine_rela): Likewise.
46435         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46436         Likewise.
46437         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46438         Likewise.
46439         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46440         Likewise.
46441         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46442         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46443         Likewise.
46444         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46445         Likewise.
46446         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46447
46448 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46449
46450         * po/be.po: Add descriptive title.
46451         * po/zh_CN.po: Likewise.
46452         * po/header.pot: Likewise.
46453
46454 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46455
46456         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46457         error message.
46458         (enlarge_archive): Likewise.
46459
46460 2013-05-28  Ben North  <ben@redfrontdoor.org>
46461
46462         * manual/arith.texi (frexp): It is the magnitude of the return
46463         value which lies in [0.5, 1), not the return value itself.
46464
46465 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46466
46467         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46468
46469 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46470
46471         * stdio-common/bug26.c (main): Correct fscanf template.
46472
46473         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46474         declare _dl_skip_args.
46475
46476         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46477         Don't declare.
46478
46479         * manual/platform.texi: Add missing @end deftypefun.
46480
46481 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46482
46483         [BZ #15529]
46484         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46485         bit of mantissa of 2^16382.
46486         * math/libm-test.inc (hypot_test_data): Add more tests.
46487
46488         * math/libm-test.inc: Add drem and pow10 to list of tested
46489         functions.
46490         (pow10_test): New function.
46491         (drem_test): Likewise.
46492         (drem_test_tonearest): Likewise.
46493         (drem_test_towardzero): Likewise.
46494         (drem_test_downward): Likewise.
46495         (drem_test_upward): Likewise.
46496         (main): Call the new functions.
46497
46498         * math/libm-test.inc (finite_test_data): Remove.
46499         (finite_test): Run tests from isfinite_test_data.
46500         (gamma_test_data): Remove.
46501         (gamma_test): Run tests from lgamma_test_data.
46502         * sysdeps/i386/fpu/libm-test-ulps: Update.
46503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46504
46505 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46506
46507         * manual/platform.texi: Add PowerPC PPR function set documentation.
46508         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46509         implementation.
46510
46511 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46512
46513         * math/libm-test.inc (MAX_EXP): Define.
46514         (ULPDIFF): Define.
46515         (ulp): New function.
46516         (check_float_internal): Use ULPDIFF.
46517         (cpow_test): Disable failing test.
46518         (check_ulp): Test ulp() implemetnation.
46519         (main): Call check_ulp before starting tests.
46520
46521 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46522
46523         * math/gen-libm-test.pl (generate_testfile): Do not handle
46524         START_DATA and END_DATA.
46525         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46526         END_DATA.
46527         (acos_tonearest_test_data): Likewise.
46528         (acos_towardzero_test_data): Likewise.
46529         (acos_downward_test_data): Likewise.
46530         (acos_upward_test_data): Likewise.
46531         (acosh_test_data): Likewise.
46532         (asin_test_data): Likewise.
46533         (asin_tonearest_test_data): Likewise.
46534         (asin_towardzero_test_data): Likewise.
46535         (asin_downward_test_data): Likewise.
46536         (asin_upward_test_data): Likewise.
46537         (asinh_test_data): Likewise.
46538         (atan_test_data): Likewise.
46539         (atanh_test_data): Likewise.
46540         (atan2_test_data): Likewise.
46541         (cabs_test_data): Likewise.
46542         (cacos_test_data): Likewise.
46543         (cacosh_test_data): Likewise.
46544         (carg_test_data): Likewise.
46545         (casin_test_data): Likewise.
46546         (casinh_test_data): Likewise.
46547         (catan_test_data): Likewise.
46548         (catanh_test_data): Likewise.
46549         (cbrt_test_data): Likewise.
46550         (ccos_test_data): Likewise.
46551         (ccosh_test_data): Likewise.
46552         (ceil_test_data): Likewise.
46553         (cexp_test_data): Likewise.
46554         (cimag_test_data): Likewise.
46555         (clog_test_data): Likewise.
46556         (clog10_test_data): Likewise.
46557         (conj_test_data): Likewise.
46558         (copysign_test_data): Likewise.
46559         (cos_test_data): Likewise.
46560         (cos_tonearest_test_data): Likewise.
46561         (cos_towardzero_test_data): Likewise.
46562         (cos_downward_test_data): Likewise.
46563         (cos_upward_test_data): Likewise.
46564         (cosh_test_data): Likewise.
46565         (cosh_tonearest_test_data): Likewise.
46566         (cosh_towardzero_test_data): Likewise.
46567         (cosh_downward_test_data): Likewise.
46568         (cosh_upward_test_data): Likewise.
46569         (cpow_test_data): Likewise.
46570         (cproj_test_data): Likewise.
46571         (creal_test_data): Likewise.
46572         (csin_test_data): Likewise.
46573         (csinh_test_data): Likewise.
46574         (csqrt_test_data): Likewise.
46575         (ctan_test_data): Likewise.
46576         (ctan_tonearest_test_data): Likewise.
46577         (ctan_towardzero_test_data): Likewise.
46578         (ctan_downward_test_data): Likewise.
46579         (ctan_upward_test_data): Likewise.
46580         (ctanh_test_data): Likewise.
46581         (ctanh_tonearest_test_data): Likewise.
46582         (ctanh_towardzero_test_data): Likewise.
46583         (ctanh_downward_test_data): Likewise.
46584         (ctanh_upward_test_data): Likewise.
46585         (erf_test_data): Likewise.
46586         (erfc_test_data): Likewise.
46587         (exp_test_data): Likewise.
46588         (exp_tonearest_test_data): Likewise.
46589         (exp_towardzero_test_data): Likewise.
46590         (exp_downward_test_data): Likewise.
46591         (exp_upward_test_data): Likewise.
46592         (exp10_test_data): Likewise.
46593         (exp2_test_data): Likewise.
46594         (expm1_test_data): Likewise.
46595         (fabs_test_data): Likewise.
46596         (fdim_test_data): Likewise.
46597         (finite_test_data): Likewise.
46598         (floor_test_data): Likewise.
46599         (fma_test_data): Likewise.
46600         (fma_towardzero_test_data): Likewise.
46601         (fma_downward_test_data): Likewise.
46602         (fma_upward_test_data): Likewise.
46603         (fmax_test_data): Likewise.
46604         (fmin_test_data): Likewise.
46605         (fmod_test_data): Likewise.
46606         (fpclassify_test_data): Likewise.
46607         (frexp_test_data): Likewise.
46608         (gamma_test_data): Likewise.
46609         (hypot_test_data): Likewise.
46610         (ilogb_test_data): Likewise.
46611         (isfinite_test_data): Likewise.
46612         (isgreater_test_data): Likewise.
46613         (isgreaterequal_test_data): Likewise.
46614         (isinf_test_data): Likewise.
46615         (isless_test_data): Likewise.
46616         (islessequal_test_data): Likewise.
46617         (islessgreater_test_data): Likewise.
46618         (isnan_test_data): Likewise.
46619         (isnormal_test_data): Likewise.
46620         (issignaling_test_data): Likewise.
46621         (isunordered_test_data): Likewise.
46622         (j0_test_data): Likewise.
46623         (j1_test_data): Likewise.
46624         (jn_test_data): Likewise.
46625         (ldexp_test_data): Likewise.
46626         (lgamma_test_data): Likewise.
46627         (lrint_test_data): Likewise.
46628         (lrint_tonearest_test_data): Likewise.
46629         (lrint_towardzero_test_data): Likewise.
46630         (lrint_downward_test_data): Likewise.
46631         (lrint_upward_test_data): Likewise.
46632         (llrint_test_data): Likewise.
46633         (llrint_tonearest_test_data): Likewise.
46634         (llrint_towardzero_test_data): Likewise.
46635         (llrint_downward_test_data): Likewise.
46636         (llrint_upward_test_data): Likewise.
46637         (log_test_data): Likewise.
46638         (log10_test_data): Likewise.
46639         (log1p_test_data): Likewise.
46640         (log2_test_data): Likewise.
46641         (logb_test_data): Likewise.
46642         (logb_downward_test_data): Likewise.
46643         (lround_test_data): Likewise.
46644         (llround_test_data): Likewise.
46645         (modf_test_data): Likewise.
46646         (nearbyint_test_data): Likewise.
46647         (nextafter_test_data): Likewise.
46648         (nexttoward_test_data): Likewise.
46649         (pow_test_data): Likewise.
46650         (pow_tonearest_test_data): Likewise.
46651         (pow_towardzero_test_data): Likewise.
46652         (pow_downward_test_data): Likewise.
46653         (pow_upward_test_data): Likewise.
46654         (remainder_test_data): Likewise.
46655         (remainder_tonearest_test_data): Likewise.
46656         (remainder_towardzero_test_data): Likewise.
46657         (remainder_downward_test_data): Likewise.
46658         (remainder_upward_test_data): Likewise.
46659         (remquo_test_data): Likewise.
46660         (rint_test_data): Likewise.
46661         (rint_tonearest_test_data): Likewise.
46662         (rint_towardzero_test_data): Likewise.
46663         (rint_downward_test_data): Likewise.
46664         (rint_upward_test_data): Likewise.
46665         (round_test_data): Likewise.
46666         (scalb_test_data): Likewise.
46667         (scalbn_test_data): Likewise.
46668         (scalbln_test_data): Likewise.
46669         (signbit_test_data): Likewise.
46670         (sin_test_data): Likewise.
46671         (sin_tonearest_test_data): Likewise.
46672         (sin_towardzero_test_data): Likewise.
46673         (sin_downward_test_data): Likewise.
46674         (sin_upward_test_data): Likewise.
46675         (sincos_test_data): Likewise.
46676         (sinh_test_data): Likewise.
46677         (sinh_tonearest_test_data): Likewise.
46678         (sinh_towardzero_test_data): Likewise.
46679         (sinh_downward_test_data): Likewise.
46680         (sinh_upward_test_data): Likewise.
46681         (sqrt_test_data): Likewise.
46682         (tan_test_data): Likewise.
46683         (tan_tonearest_test_data): Likewise.
46684         (tan_towardzero_test_data): Likewise.
46685         (tan_downward_test_data): Likewise.
46686         (tan_upward_test_data): Likewise.
46687         (tanh_test_data): Likewise.
46688         (tgamma_test_data): Likewise.
46689         (trunc_test_data): Likewise.
46690         (y0_test_data): Likewise.
46691         (y1_test_data): Likewise.
46692         (yn_test_data): Likewise.
46693         (significand_test_data): Likewise.
46694
46695         * math/gen-libm-test.pl (@functions): Remove variable.
46696         (generate_testfile): Don't handle START and END lines.
46697         * math/libm-test.inc (START): New macro.
46698         (END): Likewise.
46699         (END_COMPLEX): Likewise.
46700         (acos_test): Use END macro without arguments.
46701         (acos_test_tonearest): Likewise.
46702         (acos_test_towardzero): Likewise.
46703         (acos_test_downward): Likewise.
46704         (acos_test_upward): Likewise.
46705         (acosh_test): Likewise.
46706         (asin_test): Likewise.
46707         (asin_test_tonearest): Likewise.
46708         (asin_test_towardzero): Likewise.
46709         (asin_test_downward): Likewise.
46710         (asin_test_upward): Likewise.
46711         (asinh_test): Likewise.
46712         (atan_test): Likewise.
46713         (atanh_test): Likewise.
46714         (atan2_test): Likewise.
46715         (cabs_test): Likewise.
46716         (cacos_test): Use END_COMPLEX macro without arguments.
46717         (cacosh_test): Likewise.
46718         (carg_test): Use END macro without arguments.
46719         (casin_test): Use END_COMPLEX macro without arguments.
46720         (casinh_test): Likewise.
46721         (catan_test): Likewise.
46722         (catanh_test): Likewise.
46723         (cbrt_test): Use END macro without arguments.
46724         (ccos_test): Use END_COMPLEX macro without arguments.
46725         (ccosh_test): Likewise.
46726         (ceil_test): Use END macro without arguments.
46727         (cexp_test): Use END_COMPLEX macro without arguments.
46728         (cimag_test): Use END macro without arguments.
46729         (clog_test): Use END_COMPLEX macro without arguments.
46730         (clog10_test): Likewise.
46731         (conj_test): Likewise.
46732         (copysign_test): Use END macro without arguments.
46733         (cos_test): Likewise.
46734         (cos_test_tonearest): Likewise.
46735         (cos_test_towardzero): Likewise.
46736         (cos_test_downward): Likewise.
46737         (cos_test_upward): Likewise.
46738         (cosh_test): Likewise.
46739         (cosh_test_tonearest): Likewise.
46740         (cosh_test_towardzero): Likewise.
46741         (cosh_test_downward): Likewise.
46742         (cosh_test_upward): Likewise.
46743         (cpow_test): Use END_COMPLEX macro without arguments.
46744         (cproj_test): Likewise.
46745         (creal_test): Use END macro without arguments.
46746         (csin_test): Use END_COMPLEX macro without arguments.
46747         (csinh_test): Likewise.
46748         (csqrt_test): Likewise.
46749         (ctan_test): Likewise.
46750         (ctan_test_tonearest): Likewise.
46751         (ctan_test_towardzero): Likewise.
46752         (ctan_test_downward): Likewise.
46753         (ctan_test_upward): Likewise.
46754         (ctanh_test): Likewise.
46755         (ctanh_test_tonearest): Likewise.
46756         (ctanh_test_towardzero): Likewise.
46757         (ctanh_test_downward): Likewise.
46758         (ctanh_test_upward): Likewise.
46759         (erf_test): Use END macro without arguments.
46760         (erfc_test): Likewise.
46761         (exp_test): Likewise.
46762         (exp_test_tonearest): Likewise.
46763         (exp_test_towardzero): Likewise.
46764         (exp_test_downward): Likewise.
46765         (exp_test_upward): Likewise.
46766         (exp10_test): Likewise.
46767         (exp2_test): Likewise.
46768         (expm1_test): Likewise.
46769         (fabs_test): Likewise.
46770         (fdim_test): Likewise.
46771         (finite_test): Likewise.
46772         (floor_test): Likewise.
46773         (fma_test): Likewise.
46774         (fma_test_towardzero): Likewise.
46775         (fma_test_downward): Likewise.
46776         (fma_test_upward): Likewise.
46777         (fmax_test): Likewise.
46778         (fmin_test): Likewise.
46779         (fmod_test): Likewise.
46780         (fpclassify_test): Likewise.
46781         (frexp_test): Likewise.
46782         (gamma_test): Likewise.
46783         (hypot_test): Likewise.
46784         (ilogb_test): Likewise.
46785         (isfinite_test): Likewise.
46786         (isgreater_test): Likewise.
46787         (isgreaterequal_test): Likewise.
46788         (isinf_test): Likewise.
46789         (isless_test): Likewise.
46790         (islessequal_test): Likewise.
46791         (islessgreater_test): Likewise.
46792         (isnan_test): Likewise.
46793         (isnormal_test): Likewise.
46794         (issignaling_test): Likewise.
46795         (isunordered_test): Likewise.
46796         (j0_test): Likewise.
46797         (j1_test): Likewise.
46798         (jn_test): Likewise.
46799         (ldexp_test): Likewise.
46800         (lgamma_test): Likewise.
46801         (lrint_test): Likewise.
46802         (lrint_test_tonearest): Likewise.
46803         (lrint_test_towardzero): Likewise.
46804         (lrint_test_downward): Likewise.
46805         (lrint_test_upward): Likewise.
46806         (llrint_test): Likewise.
46807         (llrint_test_tonearest): Likewise.
46808         (llrint_test_towardzero): Likewise.
46809         (llrint_test_downward): Likewise.
46810         (llrint_test_upward): Likewise.
46811         (log_test): Likewise.
46812         (log10_test): Likewise.
46813         (log1p_test): Likewise.
46814         (log2_test): Likewise.
46815         (logb_test): Likewise.
46816         (logb_test_downward): Likewise.
46817         (lround_test): Likewise.
46818         (llround_test): Likewise.
46819         (modf_test): Likewise.
46820         (nearbyint_test): Likewise.
46821         (nextafter_test): Likewise.
46822         (nexttoward_test): Likewise.
46823         (pow_test): Likewise.
46824         (pow_test_tonearest): Likewise.
46825         (pow_test_towardzero): Likewise.
46826         (pow_test_downward): Likewise.
46827         (pow_test_upward): Likewise.
46828         (remainder_test): Likewise.
46829         (remainder_test_tonearest): Likewise.
46830         (remainder_test_towardzero): Likewise.
46831         (remainder_test_downward): Likewise.
46832         (remainder_test_upward): Likewise.
46833         (remquo_test): Likewise.
46834         (rint_test): Likewise.
46835         (rint_test_tonearest): Likewise.
46836         (rint_test_towardzero): Likewise.
46837         (rint_test_downward): Likewise.
46838         (rint_test_upward): Likewise.
46839         (round_test): Likewise.
46840         (scalb_test): Likewise.
46841         (scalbn_test): Likewise.
46842         (scalbln_test): Likewise.
46843         (signbit_test): Likewise.
46844         (sin_test): Likewise.
46845         (sin_test_tonearest): Likewise.
46846         (sin_test_towardzero): Likewise.
46847         (sin_test_downward): Likewise.
46848         (sin_test_upward): Likewise.
46849         (sincos_test): Likewise.
46850         (sinh_test): Likewise.
46851         (sinh_test_tonearest): Likewise.
46852         (sinh_test_towardzero): Likewise.
46853         (sinh_test_downward): Likewise.
46854         (sinh_test_upward): Likewise.
46855         (sqrt_test): Likewise.
46856         (tan_test): Likewise.
46857         (tan_test_tonearest): Likewise.
46858         (tan_test_towardzero): Likewise.
46859         (tan_test_downward): Likewise.
46860         (tan_test_upward): Likewise.
46861         (tanh_test): Likewise.
46862         (tgamma_test): Likewise.
46863         (trunc_test): Likewise.
46864         (y0_test): Likewise.
46865         (y1_test): Likewise.
46866         (yn_test): Likewise.
46867         (significand_test): Likewise.
46868
46869 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46870
46871         [BZ #15381]
46872         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46873
46874 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46875
46876         [BZ #14894]
46877         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46878         __ppc_mdoio and __ppc_mdoom.
46879         * manual/platform.texi: Document new functions __ppc_yield,
46880         __ppc_mdoio and __ppc_mdoom.
46881
46882 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46883
46884         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46885         (main): Mention "tls" pseudo-hwcap is legacy.
46886         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46887
46888 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46889
46890         * math/gen-libm-test.pl (parse_args): Output only string of
46891         arguments as text for test name, not full call or descriptions of
46892         tests for extra outputs.
46893         (generate_testfile): Do not pass function name to parse_args.
46894         Generate this_func variable from START.
46895         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46896         field to arg_str.
46897         (struct test_ff_f_data): Likewise.
46898         (test_ff_f_data_nexttoward): Likewise.
46899         (struct test_fi_f_data): Likewise.
46900         (struct test_fl_f_data): Likewise.
46901         (struct test_if_f_data): Likewise.
46902         (struct test_fff_f_data): Likewise.
46903         (struct test_c_f_data): Likewise.
46904         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46905         (struct test_fF_f1_data): Likewise.
46906         (struct test_ffI_f1_data): Likewise.
46907         (struct test_c_c_data): Rename test_name field to arg_str.
46908         (struct test_cc_c_data): Likewise.
46909         (struct test_f_i_data): Likewise.
46910         (struct test_ff_i_data): Likewise.
46911         (struct test_f_l_data): Likewise.
46912         (struct test_f_L_data): Likewise.
46913         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46914         and extra2_name.
46915         (COMMON_TEST_SETUP): New macro.
46916         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46917         (COMMON_TEST_CLEANUP): Likewise.
46918         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46919         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46920         macros.
46921         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46922         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46923         macros.
46924         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46925         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46926         cleanup macros.
46927         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46928         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46929         macros.
46930         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46931         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46932         macros.
46933         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46934         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46935         cleanup macros.
46936         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46937         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46938         cleanup macros.
46939         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46940         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46941         cleanup macros.
46942         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46943         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46944         macros.
46945         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46946         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46947         macros.
46948         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46949         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46950         macros.
46951         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46952         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46953         cleanup macros.
46954         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46955         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46956         cleanup macros.
46957         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46958         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46959         macros.
46960         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46961         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46962         cleanup macros.
46963         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46964         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46965         macros.
46966         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46967         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46968         macros.
46969         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46970         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46971         cleanup macros.
46972         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46973
46974 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46975
46976         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46977         to _sifields.sigfault.
46978         (si_addr_lsb): Define new macro.
46979         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46980         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46981         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46982
46983 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46984
46985         [BZ #15441]
46986         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46987         returns -1.
46988         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46989         null return -1.
46990         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46991         loading the domain.
46992
46993 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46994
46995         * math/gen-libm-test.pl (parse_args): Do not include expected
46996         result in test name.
46997         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46998         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46999         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47000         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47001         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47002         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47003
47004 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47005
47006         * benchtests/Makefile: Sort function entries.
47007
47008         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47009         tanh, asinh, acosh, atanh.
47010         * benchtests/acos-inputs: New file.
47011         * benchtests/acosh-inputs: New file.
47012         * benchtests/asin-inputs: New file.
47013         * benchtests/asinh-inputs: New file.
47014         * benchtests/atanh-inputs: New file.
47015         * benchtests/cosh-inputs: New file.
47016         * benchtests/log-inputs: New file.
47017         * benchtests/sinh-inputs: New file.
47018         * benchtests/tanh-inputs: New file.
47019
47020 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47021
47022         [BZ #15339]
47023         * posix/tst-getaddrinfo4.c: New test.
47024         * posix/Makefile (tests): Add it.
47025
47026 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47027
47028         [BZ #15339]
47029         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47030         when no services were used.
47031         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47032         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47033
47034 2013-05-21  Andreas Schwab  <schwab@suse.de>
47035
47036         [BZ #15014]
47037         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47038         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47039         successful.
47040         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47041         redundant variable declarations and reallocation of buffer when
47042         parsing as IPv6 address.  Always set NSS status when called from
47043         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47044         buffer too small.  Correct computation of needed size.
47045         * nss/Makefile (tests): Add test-digits-dots.
47046         * nss/test-digits-dots.c: New test.
47047
47048 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47049
47050         * benchtests/Makefile: Remove instructions for adding
47051         benchmark tests.
47052         * benchtests/README: New file to explain how to execute and
47053         enhance the benchmark tests.
47054
47055 2013-05-21  Andreas Schwab  <schwab@suse.de>
47056
47057         [BZ #15493]
47058         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47059         * setjmp/tst-sigsetjmp.c: New test.
47060
47061 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47062
47063         * sysdeps/x86_64/memset.S (memset): New implementation.
47064         (__bzero): Likewise.
47065         (__memset_tail): New function.
47066
47067 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47068
47069         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47070         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47071         __memcpy_sse2_unaligned ifunc selection.
47072         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47073         Add memcpy-sse2-unaligned.S.
47074         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47075         Add: __memcpy_sse2_unaligned.
47076
47077 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47078
47079         [BZ #15490]
47080         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47081         math_force_eval before restoring floating-point envrionment.
47082         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47083         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47084         Likewise.
47085         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47086         <math_private.h>.
47087         (__nearbyintl): Use math_force_eval before restoring
47088         floating-point environment.
47089         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47090
47091         * math/gen-libm-test.pl (special_functions): Remove.
47092         (parse_args): Don't handle TEST_extra.  Handle functions with no
47093         return value.
47094         * math/libm-test.inc (struct test_sincos_data): Replace with
47095         struct test_fFF_11_data.
47096         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47097         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47098         (sincos_test_data): Change element type to struct
47099         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47100         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47101         RUN_TEST_LOOP_sincos.
47102         * math/README.libm-test: Don't mention special handling of
47103         individual functions.
47104         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47105         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47106         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47107         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47108         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47110
47111         * math/gen-libm-test.pl (get_variable): Remove function.
47112         (parse_args): Don't show pointer parameters to call in test
47113         names.  Use "extra output N" in test names for extra outputs
47114         rather than naming variables.
47115
47116 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47117
47118         [BZ #15488]
47119         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47120         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47121         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47122         double tests.
47123         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47124         disable.
47125         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47126         check_long_double.
47127
47128         * math/gen-libm-test.pl (@tests): Remove variable.
47129         ($count): Likewise.
47130         (new_test): Remove function.
47131         (show_exceptions): New function.
47132         (special_functions): Use show_exceptions instead of new_test.
47133         (parse_args): Likewise.
47134         (generate_testfile): Pass only function name in generated call to
47135         print_max_error or print_complex_max_error.
47136         (get_ulps): Do not handle complex tests specially.
47137         (output_test): Rename to ...
47138         (get_all_ulps_for_test): ... this.  Return a string rather than
47139         printing to a file.  Require ulps to be present.
47140         (output_ulps): Generate arrays rather than #defines.
47141         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47142         (struct ulp_data): New type.
47143         (BUILD_COMPLEX_ULP): Remove macro.
47144         (compare_ulp_data): New function.
47145         (find_ulps): Likewise.
47146         (find_test_ulps): Likewise.
47147         (find_function_ulps): Likewise.
47148         (find_complex_function_ulps): Likewise.
47149         (print_max_error): Determine allowed ulps using
47150         find_function_ulps.
47151         (print_complex_max_error): Determine allowed ulps using
47152         find_complex_function_ulps.
47153         (check_float_internal): Determine max ulps using find_test_ulps.
47154         (check_float): Do not take max_ulp parameter.  Update call to
47155         check_float_internal.
47156         (check_complex): Likewise.
47157         (check_int): Do not take max_ulp parameter.
47158         (check_long): Likewise.
47159         (check_bool): Likewise.
47160         (check_longlong): Likewise.
47161         (struct test_f_f_data): Remove max_ulp field.
47162         (struct test_ff_f_data): Likewise.
47163         (struct test_ff_f_data_nexttoward): Likewise.
47164         (struct test_fi_f_data): Likewise.
47165         (struct test_fl_f_data): Likewise.
47166         (struct test_if_f_data): Likewise.
47167         (struct test_fff_f_data): Likewise.
47168         (struct test_c_f_data): Likewise.
47169         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47170         (struct test_fF_f1_data): Likewise.
47171         (struct test_ffI_f1_data): Likewise.
47172         (struct test_c_c_data): Remove max_ulp field.
47173         (struct test_cc_c_data): Likewise.
47174         (struct test_f_i_data): Likewise.
47175         (struct test_ff_i_data): Likewise.
47176         (struct test_f_l_data): Likewise.
47177         (struct test_f_L_data): Likewise.
47178         (struct test_sincos_data): Likewise.
47179         (RUN_TEST_f_f): Do not handle ulps.
47180         (RUN_TEST_LOOP_f_f): Likewise.
47181         (RUN_TEST_2_f): Likewise.
47182         (RUN_TEST_LOOP_2_f): Likewise.
47183         (RUN_TEST_fff_f): Likewise.
47184         (RUN_TEST_LOOP_fff_f): Likewise.
47185         (RUN_TEST_c_f): Likewise.
47186         (RUN_TEST_LOOP_c_f): Likewise.
47187         (RUN_TEST_f_f1): Likewise.
47188         (RUN_TEST_LOOP_f_f1): Likewise.
47189         (RUN_TEST_fF_f1): Likewise.
47190         (RUN_TEST_LOOP_fF_f1): Likewise.
47191         (RUN_TEST_fI_f1): Likewise.
47192         (RUN_TEST_LOOP_fI_f1): Likewise.
47193         (RUN_TEST_ffI_f1): Likewise.
47194         (RUN_TEST_LOOP_ffI_f1): Likewise.
47195         (RUN_TEST_c_c): Likewise.
47196         (RUN_TEST_LOOP_c_c): Likewise.
47197         (RUN_TEST_cc_c): Likewise.
47198         (RUN_TEST_LOOP_cc_c): Likewise.
47199         (RUN_TEST_f_i): Likewise.
47200         (RUN_TEST_LOOP_f_i): Likewise.
47201         (RUN_TEST_f_i_tg): Likewise.
47202         (RUN_TEST_LOOP_f_i_tg): Likewise.
47203         (RUN_TEST_ff_i_tg): Likewise.
47204         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47205         (RUN_TEST_f_b): Likewise.
47206         (RUN_TEST_LOOP_f_b): Likewise.
47207         (RUN_TEST_f_b_tg): Likewise.
47208         (RUN_TEST_LOOP_f_b_tg): Likewise.
47209         (RUN_TEST_f_l): Likewise.
47210         (RUN_TEST_LOOP_f_l): Likewise.
47211         (RUN_TEST_f_L): Likewise.
47212         (RUN_TEST_LOOP_f_L): Likewise.
47213         (RUN_TEST_sincos): Likewise.
47214         (RUN_TEST_LOOP_sincos): Likewise.
47215
47216 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47217
47218         [BZ #15480]
47219         [BZ #15485]
47220         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47221         main case of finite arguments, set rounding mode to FE_TONEAREST
47222         and discard exceptions.
47223         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47224         exceptions.
47225         (remainder_tonearest_test_data): New variable.
47226         (remainder_test_tonearest): New function.
47227         (remainder_towardzero_test_data): New variable.
47228         (remainder_test_towardzero): New function.
47229         (remainder_downward_test_data): New variable.
47230         (remainder_test_downward): New function.
47231         (remainder_upward_test_data): New variable.
47232         (remainder_test_upward): New function.
47233         (main): Call the new test functions.
47234
47235         * math/libm-test.inc (struct test_f_f1_data): Remove field
47236         extra_init.
47237         (struct test_fF_f1_data): Likewise.
47238         (struct test_ffI_f1_data): Likewise.
47239         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47240         based on value of EXTRA_EXPECTED.
47241         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47242         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47243         EXTRA_VAR based on value of EXTRA_EXPECTED.
47244         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47245         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47246         EXTRA_VAR based on value of EXTRA_EXPECTED.
47247         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47248         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47249         EXTRA_VAR based on value of EXTRA_EXPECTED.
47250         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47251         * math/gen-libm-test.pl (parse_args): Don't output initializers
47252         for extra output values.
47253
47254         * math/libm-test.inc (check_int): Expect result to be exactly
47255         equal to expected value and do not handle ulps.
47256         (check_long): Likewise.
47257         (check_longlong): Likewise.
47258
47259         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47260         exceptions.
47261         (cimag_test_data): Likewise.
47262         (conj_test_data): Likewise.
47263         (copysign_test_data): Likewise.
47264         (cproj_test_data): Likewise.
47265         (creal_test_data): Likewise.
47266         (fabs_test_data): Likewise.
47267         (fdim_test_data): Likewise.
47268         (finite_test_data): Likewise.
47269         (floor_test_data): Likewise.
47270         (fmax_test_data): Likewise.
47271         (fmin_test_data): Likewise.
47272         (fmod_test_data): Likewise.
47273         (fpclassify_test_data): Likewise.
47274         (frexp_test_data): Likewise.
47275         (ilogb_test_data): Likewise.
47276         (isfinite_test_data): Likewise.
47277         (isgreater_test_data): Likewise.
47278         (isgreaterequal_test_data): Likewise.
47279         (isinf_test_data): Likewise.
47280         (isless_test_data): Likewise.
47281         (islessequal_test_data): Likewise.
47282         (islessgreater_test_data): Likewise.
47283         (isnan_test_data): Likewise.
47284         (isnormal_test_data): Likewise.
47285         (issignaling_test_data): Likewise.
47286         (isunordered_test_data): Likewise.
47287         (ldexp_test_data): Likewise.
47288         (lrint_test_data): Likewise.
47289         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47290         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47291         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47292         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47293         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47294         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47295         test input.
47296         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47297         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47298         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47299         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47300         that test input.
47301         (lrint_downward_test_data): Test for "inexact" exceptions.
47302         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47303         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47304         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47305         test input.
47306         (lrint_upward_test_data): Test for "inexact" exceptions.
47307         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47308         test input.
47309         (llrint_test_data): Test for "inexact" exceptions.
47310         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47311         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47312         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47313         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47314         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47315         (llrint_downward_test_data): Test for "inexact" exceptions.
47316         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47317         (llrint_upward_test_data): Test for "inexact" exceptions.
47318         (logb_test_data): Likewise.
47319         (logb_downward_test_data): Likewise.
47320         (nextafter_test_data): Likewise.
47321         (nexttoward_test_data): Likewise.
47322         (remainder_test_data): Likewise.
47323         (remquo_test_data): Likewise.
47324         (scalbn_test_data): Likewise.
47325         (scalbln_test_data): Likewise.
47326         (signbit_test_data): Likewise.
47327         (sqrt_test_data): Likewise.
47328         (significand_test_data): Likewise.
47329
47330 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47331
47332         [BZ #15424]
47333         * benchtests/bench-modf.c (struct args): Mark arg0 as
47334         volatile.
47335         * scripts/bench.pl: Mark members of struct args as volatile.
47336
47337 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47338
47339         [BZ # 15497]
47340         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47341         negative infinity on POWER6 or lower.
47342         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47343
47344 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47345
47346         [BZ #15442]
47347         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47348         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47349         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47350         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47351         (_FP_SETQNAN): New macro.
47352         (_FP_SETQNAN_SEMIRAW): Likewise.
47353         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47354         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47355         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47356         (FP_EXTEND): Use _FP_FRAC_SNANP.
47357         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47358         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47359         into account.
47360         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47361         New macro.
47362         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47363         Likewise.
47364
47365 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47366
47367         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47368         with DIVIDE_BY_ZERO_EXCEPTION.
47369         (gamma_test_data): Likewise.
47370         (lgamma_test_data): Likewise.
47371         (log_test_data): Likewise.
47372         (log10_test_data): Likewise.
47373         (log2_test_data): Likewise.
47374         (tgamma_test_data): Likewise.
47375
47376         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47377         (acos_test_tonearest): Likewise.
47378         (acos_test_towardzero): Likewise.
47379         (acos_test_downward): Likewise.
47380         (acos_test_upward): Likewise.
47381         (acosh_test): Likewise.
47382         (asin_test): Likewise.
47383         (asin_test_tonearest): Likewise.
47384         (asin_test_towardzero): Likewise.
47385         (asin_test_downward): Likewise.
47386         (asin_test_upward): Likewise.
47387         (asinh_test): Likewise.
47388         (atan_test): Likewise.
47389         (atanh_test): Likewise.
47390         (atan2_test): Likewise.
47391         (cabs_test): Likewise.
47392         (cacos_test): Likewise.
47393         (cacosh_test): Likewise.
47394         (casin_test): Likewise.
47395         (casinh_test): Likewise.
47396         (catan_test): Likewise.
47397         (catanh_test): Likewise.
47398         (cbrt_test): Likewise.
47399         (ccos_test): Likewise.
47400         (ccosh_test): Likewise.
47401         (cexp_test): Likewise.
47402         (clog_test): Likewise.
47403         (clog10_test): Likewise.
47404         (cos_test): Likewise.
47405         (cos_test_tonearest): Likewise.
47406         (cos_test_towardzero): Likewise.
47407         (cos_test_downward): Likewise.
47408         (cos_test_upward): Likewise.
47409         (cosh_test): Likewise.
47410         (cosh_test_tonearest): Likewise.
47411         (cosh_test_towardzero): Likewise.
47412         (cosh_test_downward): Likewise.
47413         (cosh_test_upward): Likewise.
47414         (cpow_test): Likewise.
47415         (csin_test): Likewise.
47416         (csinh_test): Likewise.
47417         (csqrt_test): Likewise.
47418         (ctan_test): Likewise.
47419         (ctan_test_tonearest): Likewise.
47420         (ctan_test_towardzero): Likewise.
47421         (ctan_test_downward): Likewise.
47422         (ctan_test_upward): Likewise.
47423         (ctanh_test): Likewise.
47424         (ctanh_test_tonearest): Likewise.
47425         (ctanh_test_towardzero): Likewise.
47426         (ctanh_test_downward): Likewise.
47427         (ctanh_test_upward): Likewise.
47428         (erf_test): Likewise.
47429         (erfc_test): Likewise.
47430         (exp_test): Likewise.
47431         (exp_test_tonearest): Likewise.
47432         (exp_test_towardzero): Likewise.
47433         (exp_test_downward): Likewise.
47434         (exp_test_upward): Likewise.
47435         (exp10_test): Likewise.
47436         (exp2_test): Likewise.
47437         (expm1_test): Likewise.
47438         (fmod_test): Likewise.
47439         (gamma_test): Likewise.
47440         (hypot_test): Likewise.
47441         (j0_test): Likewise.
47442         (j1_test): Likewise.
47443         (jn_test): Likewise.
47444         (lgamma_test): Likewise.
47445         (log_test): Likewise.
47446         (log10_test): Likewise.
47447         (log1p_test): Likewise.
47448         (log2_test): Likewise.
47449         (logb_test_downward): Likewise.
47450         (pow_test): Likewise.
47451         (pow_test_tonearest): Likewise.
47452         (pow_test_towardzero): Likewise.
47453         (pow_test_downward): Likewise.
47454         (pow_test_upward): Likewise.
47455         (remainder_test): Likewise.
47456         (remquo_test): Likewise.
47457         (sin_test): Likewise.
47458         (sin_test_tonearest): Likewise.
47459         (sin_test_towardzero): Likewise.
47460         (sin_test_downward): Likewise.
47461         (sin_test_upward): Likewise.
47462         (sincos_test): Likewise.
47463         (sinh_test): Likewise.
47464         (sinh_test_tonearest): Likewise.
47465         (sinh_test_towardzero): Likewise.
47466         (sinh_test_downward): Likewise.
47467         (sinh_test_upward): Likewise.
47468         (sqrt_test): Likewise.
47469         (tan_test): Likewise.
47470         (tan_test_tonearest): Likewise.
47471         (tan_test_towardzero): Likewise.
47472         (tan_test_downward): Likewise.
47473         (tan_test_upward): Likewise.
47474         (tanh_test): Likewise.
47475         (tgamma_test): Likewise.
47476         (y0_test): Likewise.
47477         (y1_test): Likewise.
47478         (yn_test): Likewise.
47479
47480         * math/gen-libm-test.pl (adjust_arg): Remove function.
47481         (special_function): Remove argument $in_func.  Only handle
47482         generating output for tables of tests, not inside functions.
47483         (parse_args): Likewise.
47484         (generate_testfile): Remove variable $in_func.  Update call to
47485         parse_args.
47486         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47487         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47488         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47489         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47490         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47491         (MAX_VALUE_INIT): Rename macro to max_value.
47492         (MIN_VALUE_INIT): Rename macro to min_value.
47493         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47494         (plus_zero): Remove variable.
47495         (minus_zero): Likewise.
47496         (plus_infty): Likewise.
47497         (minus_infty): Likewise.
47498         (qnan_value): Likewise.
47499         (max_value): Likewise.
47500         (min_value): Likewise.
47501         (min_subnorm_value): Likewise.
47502
47503 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47504
47505         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47506         uint64_t or uint32_t usage.
47507         * crypt/sha256-block.c: Likewise.
47508         * crypt/sha256-crypt.c: Likewise.
47509         * crypt/sha256.c: Likewise.
47510         * crypt/sha512-block.c: Likewise.
47511         * crypt/sha512-crypt.c: Likewise.
47512         * crypt/sha512.c: Likewise.
47513         * debug/backtrace-tst.c: Likewise.
47514         * debug/pcprofiledump.c: Likewise.
47515         * elf/cache.c: Likewise.
47516         * elf/dl-cache.c: Likewise.
47517         * elf/dl-misc.c: Likewise.
47518         * elf/dl-profile.c: Likewise.
47519         * elf/dl-support.c: Likewise.
47520         * elf/ldconfig.c: Likewise.
47521         * elf/sprof.c: Likewise.
47522         * iconv/dummy-repertoire.c: Likewise.
47523         * iconv/iconv_charmap.c: Likewise.
47524         * iconv/skeleton.c: Likewise.
47525         * iconvdata/8bit-generic.c: Likewise.
47526         * iconvdata/cp737.h: Likewise.
47527         * iconvdata/cp775.h: Likewise.
47528         * iconvdata/ibm1008.h: Likewise.
47529         * iconvdata/ibm1025.h: Likewise.
47530         * iconvdata/ibm1046.h: Likewise.
47531         * iconvdata/ibm1097.h: Likewise.
47532         * iconvdata/ibm1112.h: Likewise.
47533         * iconvdata/ibm1122.h: Likewise.
47534         * iconvdata/ibm1123.h: Likewise.
47535         * iconvdata/ibm1124.h: Likewise.
47536         * iconvdata/ibm1129.h: Likewise.
47537         * iconvdata/ibm1130.h: Likewise.
47538         * iconvdata/ibm1132.h: Likewise.
47539         * iconvdata/ibm1133.h: Likewise.
47540         * iconvdata/ibm1137.h: Likewise.
47541         * iconvdata/ibm1140.h: Likewise.
47542         * iconvdata/ibm1141.h: Likewise.
47543         * iconvdata/ibm1142.h: Likewise.
47544         * iconvdata/ibm1143.h: Likewise.
47545         * iconvdata/ibm1144.h: Likewise.
47546         * iconvdata/ibm1145.h: Likewise.
47547         * iconvdata/ibm1146.h: Likewise.
47548         * iconvdata/ibm1147.h: Likewise.
47549         * iconvdata/ibm1148.h: Likewise.
47550         * iconvdata/ibm1149.h: Likewise.
47551         * iconvdata/ibm1153.h: Likewise.
47552         * iconvdata/ibm1154.h: Likewise.
47553         * iconvdata/ibm1155.h: Likewise.
47554         * iconvdata/ibm1156.h: Likewise.
47555         * iconvdata/ibm1157.h: Likewise.
47556         * iconvdata/ibm1158.h: Likewise.
47557         * iconvdata/ibm1160.h: Likewise.
47558         * iconvdata/ibm1161.h: Likewise.
47559         * iconvdata/ibm1162.h: Likewise.
47560         * iconvdata/ibm1163.h: Likewise.
47561         * iconvdata/ibm1164.h: Likewise.
47562         * iconvdata/ibm1166.h: Likewise.
47563         * iconvdata/ibm1167.h: Likewise.
47564         * iconvdata/ibm12712.h: Likewise.
47565         * iconvdata/ibm1390.h: Likewise.
47566         * iconvdata/ibm1399.h: Likewise.
47567         * iconvdata/ibm16804.h: Likewise.
47568         * iconvdata/ibm4517.h: Likewise.
47569         * iconvdata/ibm4899.h: Likewise.
47570         * iconvdata/ibm4909.h: Likewise.
47571         * iconvdata/ibm4971.h: Likewise.
47572         * iconvdata/ibm5347.h: Likewise.
47573         * iconvdata/ibm803.h: Likewise.
47574         * iconvdata/ibm856.h: Likewise.
47575         * iconvdata/ibm901.h: Likewise.
47576         * iconvdata/ibm902.h: Likewise.
47577         * iconvdata/ibm9030.h: Likewise.
47578         * iconvdata/ibm9066.h: Likewise.
47579         * iconvdata/ibm921.h: Likewise.
47580         * iconvdata/ibm922.h: Likewise.
47581         * iconvdata/ibm9448.h: Likewise.
47582         * iconvdata/isiri-3342.h: Likewise.
47583         * iconvdata/jis0201.h: Likewise.
47584         * include/link.h: Likewise.
47585         * include/netdb.h: Likewise.
47586         * inet/check_native.c: Likewise.
47587         * inet/check_pf.c: Likewise.
47588         * inet/getipv4sourcefilter.c: Likewise.
47589         * inet/getnameinfo.c: Likewise.
47590         * inet/getsourcefilter.c: Likewise.
47591         * inet/htonl.c: Likewise.
47592         * inet/setipv4sourcefilter.c: Likewise.
47593         * inet/setsourcefilter.c: Likewise.
47594         * inet/test-inet6_opt.c: Likewise.
47595         * inet/tst-network.c: Likewise.
47596         * locale/C-collate.c: Likewise.
47597         * locale/C-ctype.c: Likewise.
47598         * locale/C-time.c: Likewise.
47599         * locale/C-translit.h: Likewise.
47600         * locale/loadarchive.c: Likewise.
47601         * locale/programs/3level.h: Likewise.
47602         * locale/programs/charmap.c: Likewise.
47603         * locale/programs/charmap.h: Likewise.
47604         * locale/programs/ld-address.c: Likewise.
47605         * locale/programs/ld-collate.c: Likewise.
47606         * locale/programs/ld-ctype.c: Likewise.
47607         * locale/programs/ld-identification.c: Likewise.
47608         * locale/programs/ld-measurement.c: Likewise.
47609         * locale/programs/ld-messages.c: Likewise.
47610         * locale/programs/ld-monetary.c: Likewise.
47611         * locale/programs/ld-name.c: Likewise.
47612         * locale/programs/ld-numeric.c: Likewise.
47613         * locale/programs/ld-paper.c: Likewise.
47614         * locale/programs/ld-telephone.c: Likewise.
47615         * locale/programs/ld-time.c: Likewise.
47616         * locale/programs/linereader.c: Likewise.
47617         * locale/programs/locale.c: Likewise.
47618         * locale/programs/locarchive.c: Likewise.
47619         * locale/programs/locfile.h: Likewise.
47620         * locale/programs/repertoire.c: Likewise.
47621         * locale/programs/simple-hash.c: Likewise.
47622         * locale/programs/simple-hash.h: Likewise.
47623         * malloc/memusage.c: Likewise.
47624         * malloc/memusagestat.c: Likewise.
47625         * nis/nis_defaults.c: Likewise.
47626         * nis/nis_hash.c: Likewise.
47627         * nis/nis_print.c: Likewise.
47628         * nis/nis_xdr.c: Likewise.
47629         * nscd/connections.c: Likewise.
47630         * nscd/hstcache.c: Likewise.
47631         * nscd/nscd_gethst_r.c: Likewise.
47632         * nscd/nscd_getserv_r.c: Likewise.
47633         * nscd/nscd_helper.c: Likewise.
47634         * nscd/servicescache.c: Likewise.
47635         * nss/makedb.c: Likewise.
47636         * nss/nss_db/db-XXX.c: Likewise.
47637         * nss/nss_db/db-initgroups.c: Likewise.
47638         * nss/nss_db/db-netgrp.c: Likewise.
47639         * nss/nss_files/files-network.c: Likewise.
47640         * nss/nss_files/files-parse.c: Likewise.
47641         * posix/bug-regex5.c: Likewise.
47642         * posix/fnmatch_loop.c: Likewise.
47643         * posix/regcomp.c: Likewise.
47644         * posix/regexec.c: Likewise.
47645         * posix/tst-rfc3484-2.c: Likewise.
47646         * posix/tst-rfc3484-3.c: Likewise.
47647         * posix/tst-rfc3484.c: Likewise.
47648         * resolv/nss_dns/dns-canon.c: Likewise.
47649         * resolv/nss_dns/dns-network.c: Likewise.
47650         * resolv/res_init.c: Likewise.
47651         * resolv/res_mkquery.c: Likewise.
47652         * resolv/tst-aton.c: Likewise.
47653         * stdlib/cxa_atexit.c: Likewise.
47654         * stdlib/cxa_finalize.c: Likewise.
47655         * stdlib/gen-fpioconst.c: Likewise.
47656         * stdlib/strtol_l.c: Likewise.
47657         * string/tst-endian.c: Likewise.
47658         * sunrpc/auth_des.c: Likewise.
47659         * sunrpc/clnt_udp.c: Likewise.
47660         * sunrpc/rtime.c: Likewise.
47661         * sunrpc/svcauth_des.c: Likewise.
47662         * sunrpc/xdr.c: Likewise.
47663         * sunrpc/xdr_intXX_t.c: Likewise.
47664         * sunrpc/xdr_rec.c: Likewise.
47665         * sysdeps/generic/ldconfig.h: Likewise.
47666         * sysdeps/generic/ldsodefs.h: Likewise.
47667         * sysdeps/generic/memusage.h: Likewise.
47668         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47669         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47670         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47671         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47672         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47673         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47674         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47675         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47676         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47677         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47678         * sysdeps/posix/getaddrinfo.c: Likewise.
47679         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47680         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47681         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47682         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47683         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47684         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47685         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47686         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47687         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47688         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47689         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47690         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47691         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47692         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47693         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47694         * sysdeps/x86_64/dl-tls.h: Likewise.
47695         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47696         * time/alt_digit.c: Likewise.
47697         * time/era.c: Likewise.
47698         * wcsmbs/tst-c16c32-1.c: Likewise.
47699
47700 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47701
47702         * math/libm-test.inc (struct test_sincos_data): New type.
47703         (RUN_TEST_LOOP_sincos): New macro.
47704         (sincos_test_data): New variable.
47705         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47706
47707 2013-05-16  Richard Henderson  <rth@redhat.com>
47708
47709         * math/atest-exp2.c (LIMB64): New macro.
47710         (CONSTSZ): New macro.
47711         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47712         (hexdig): Move ...
47713         (print_mpn_fp): ... to function scope.
47714         (read_mpn_hex): Remove.
47715         (get_log2): Remove.
47716         (exp2_mpn): Use mp_log2.
47717         (main): Use mp_exp1.
47718
47719 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47720
47721         * math/libm-test.inc: Remove comment about not testing "inexact"
47722         exceptions.
47723         (INEXACT_EXCEPTION): New macro.
47724         (NO_INEXACT_EXCEPTION): Likewise.
47725         (INVALID_EXCEPTION_OK): Update value.
47726         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47727         (OVERFLOW_EXCEPTION_OK): Likewise.
47728         (UNDERFLOW_EXCEPTION_OK): Likewise.
47729         (IGNORE_ZERO_INF_SIGN): Likewise.
47730         (ERRNO_UNCHANGED): Likewise.
47731         (ERRNO_EDOM): Likewise.
47732         (ERRNO_ERANGE): Likewise.
47733         (test_exceptions): Handle testing "inexact" exceptions.
47734         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47735         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47736         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47737         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47738         INEXACT_EXCEPTION.
47739         (rint_towardzero_test_data): Likewise.
47740         (rint_downward_test_data): Likewise.
47741         (rint_upward_test_data): Likewise.
47742
47743         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47744         with OVERFLOW_EXCEPTION.
47745         (exp10_test_data): Likewise.
47746         (exp2_test_data): Likewise.
47747         (expm1_test_data): Likewise.
47748         (lgamma_test_data): Likewise.
47749         (pow_test_data): Likewise.
47750         (tgamma_test_data): Likewise.
47751         (yn_test_data): Remove duplicate test of overflow.
47752
47753         * math/libm-test.inc (struct test_cc_c_data): New type.
47754         (RUN_TEST_LOOP_cc_c): New macro.
47755         (cpow_test_data): New variable.
47756         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47757
47758         * math/libm-test.inc (struct test_f_L_data): New type.
47759         (RUN_TEST_LOOP_f_L): New macro.
47760         (llrint_test_data): New variable.
47761         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47762         (llrint_tonearest_test_data): New variable.
47763         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47764         (llrint_towardzero_test_data): New variable.
47765         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47766         (llrint_downward_test_data): New variable.
47767         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47768         (llrint_upward_test_data): New variable.
47769         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47770         (llround_test_data): New variable.
47771         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47772
47773 2013-05-13  Peter Collingbourne  <pcc@google.com>
47774
47775         * math/atest-exp2.c (get_log2): Remove const attribute.
47776
47777 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47778
47779         * math/libm-test.inc (struct test_f_l_data): New type.
47780         (RUN_TEST_LOOP_f_l): New macro.
47781         (lrint_test_data): New variable.
47782         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47783         (lrint_tonearest_test_data): New variable.
47784         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47785         (lrint_towardzero_test_data): New variable.
47786         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47787         (lrint_downward_test_data): New variable.
47788         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47789         (lrint_upward_test_data): New variable.
47790         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47791         (lround_test_data): New variable.
47792         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47793
47794 2013-05-15  Peter Collingbourne  <pcc@google.com>
47795
47796         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47797         (EXTRACT_WORDS64) Use where appropriate.
47798         (INSERT_WORDS64) Likewise.
47799
47800         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47801         constraints with x constraints.
47802         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47803
47804         * malloc/obstack.c (_obstack_compat): Add initializer.
47805
47806 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47807
47808         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47809         si_trapno and add si_addr_lsb to _sifields.sigfault.
47810         (si_trapno): Remove macro.
47811         (si_addr_lsb): Define new macro.
47812         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47813
47814 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47815
47816         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47817         instead of TEST_f_l.
47818         (llrint_test_tonearest): Likewise.
47819         (llrint_test_towardzero): Likewise.
47820         (llrint_test_downward): Likewise.
47821         (llrint_test_upward): Likewise.
47822         (llround_test): Likewise.
47823
47824         * math/libm-test.inc (struct test_f_i_data): Add comment.
47825         (RUN_TEST_LOOP_f_b): New macro.
47826         (RUN_TEST_LOOP_f_b_tg): Likewise.
47827         (finite_test_data): New variable.
47828         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47829         (isfinite_test_data): New variable.
47830         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47831         (isinf_test_data): New variable.
47832         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47833         (isnan_test_data): New variable.
47834         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47835         (isnormal_test_data): New variable.
47836         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47837         (issignaling_test_data): New variable.
47838         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47839         (signbit_test_data): New variable.
47840         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47841
47842         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47843         with INVALID_EXCEPTION.
47844         (acosh_test_data): Likewise.
47845         (asin_test_data): Likewise.
47846         (atanh_test_data): Likewise.
47847         (fmod_test_data): Likewise.
47848         (log_test_data): Likewise.
47849         (log10_test_data): Likewise.
47850         (log2_test_data): Likewise.
47851         (pow_test_data): Likewise.
47852         (sqrt_test_data): Likewise.
47853         (y0_test_data): Likewise.
47854         (y1_test_data): Likewise.
47855         (yn_test_data): Likewise.
47856
47857         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47858         function contents.
47859
47860         * math/libm-test.inc (struct test_ff_i_data): New type.
47861         (RUN_TEST_LOOP_ff_i_tg): New macro.
47862         (isgreater_test_data): New variable.
47863         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47864         (isgreaterequal_test_data): New variable.
47865         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47866         (isless_test_data): New variable.
47867         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47868         (islessequal_test_data): New variable.
47869         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47870         (islessgreater_test_data): New variable.
47871         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47872         (isunordered_test_data): New variable.
47873         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47874
47875 2013-05-14  David S. Miller  <davem@davemloft.net>
47876
47877         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47878
47879 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47880
47881         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47882
47883         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47884         extra_test to int.
47885         (struct test_f_i_data): Change type of max_ulp to int.
47886
47887         * math/libm-test.inc (test_ffI_f1_data): New type.
47888         (RUN_TEST_LOOP_ffI_f1): New macro.
47889         (remquo_test_data): New variable.
47890         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47891
47892         * setjmp/tst-setjmp-fp.c: New file.
47893         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47894         (link-libm): New variable.
47895         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47896
47897         * math/libm-test.inc (struct test_f_i_data): New type.
47898         (RUN_TEST_LOOP_f_i): New macro.
47899         (RUN_TEST_LOOP_f_i_tg): Likewise.
47900         (fpclassify_test_data): New variable.
47901         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47902         (ilogb_test_data): New variable.
47903         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47904
47905         * math/libm-test.inc (scalbln_test): Correct function name in END
47906         call.
47907
47908         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47909         (RUN_TEST_LOOP_fI_f1): New macro.
47910         (frexp_test_data): New variable.
47911         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47912
47913         * math/libm-test.inc (struct test_fF_f1_data): New type.
47914         (RUN_TEST_LOOP_fF_f1): New macro.
47915         (modf_test_data): New variable.
47916         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47917
47918         * math/libm-test.inc (struct test_f_f1_data): New type.
47919         (RUN_TEST_LOOP_f_f1): New macro.
47920         (gamma_test_data): New variable.
47921         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47922         (lgamma_test_data): New variable.
47923         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47924
47925 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47926
47927         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47928         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47929         (main): Comment "tls" pseudo-hwcap.
47930
47931 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47932
47933         * math/libm-test.inc (struct test_fl_f_data): New type.
47934         (RUN_TEST_LOOP_fl_f): New variable.
47935         (scalbln_test_data): New variable.
47936         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47937
47938         * math/libm-test.inc (struct test_fi_f_data): New type.
47939         (RUN_TEST_LOOP_fi_f): New macro.
47940         (ldexp_test_data): New variable.
47941         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47942         (scalbn_test_data): New variable.
47943         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47944
47945         * math/libm-test.inc (struct test_c_f_data): New type.
47946         (RUN_TEST_LOOP_c_f): New macro.
47947         (cabs_test_data): New variable.
47948         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47949         (carg_test_data): New variable.
47950         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47951         (cimag_test_data): New variable.
47952         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47953         (creal_test_data): New variable.
47954         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47955
47956         * math/libm-test.inc (struct test_if_f_data): New type.
47957         (RUN_TEST_LOOP_if_f): New macro.
47958         (jn_test_data): New variable.
47959         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47960         (yn_test_data): New variable.
47961         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47962
47963         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47964
47965 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47966
47967         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47968         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47969
47970 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47971
47972         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47973         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47974         (bench-deps): Add bench-timing.h.
47975         * benchtests-bench-skeleton.c: Include bench-timing.h.
47976         (main): Use TIMING_* macros instead of clock_gettime.
47977         * benchtests/bench-timing.h: New file.
47978
47979         [BZ #14582]
47980         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47981         Renamed from _LIB_VERSION.
47982         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47983
47984 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47985
47986         * math/libm-test.inc (struct test_fff_f_data): New type.
47987         (RUN_TEST_LOOP_fff_f): New macro.
47988         (fma_test_data): New variable.
47989         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47990         (fma_towardzero_test_data): New variable.
47991         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47992         (fma_downward_test_data): New variable.
47993         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47994         (fma_upward_test_data): New variable.
47995         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47996
47997         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47998         (struct test_c_c_data): New type.
47999         (RUN_TEST_LOOP_c_c): New macro.
48000         (cacos_test_data): New variable.
48001         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48002         (cacosh_test_data): New variable.
48003         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48004         (casin_test_data): New variable.
48005         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48006         (casinh_test_data): New variable.
48007         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48008         (catan_test_data): New variable.
48009         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48010         (catanh_test_data): New variable.
48011         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48012         (ccos_test_data): New variable.
48013         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48014         (ccosh_test_data): New variable.
48015         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48016         (cexp_test_data): New variable.
48017         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48018         (clog_test_data): New variable.
48019         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48020         (clog10_test_data): New variable.
48021         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48022         (conj_test_data): New variable.
48023         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48024         (cproj_test_data): New variable.
48025         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48026         (csin_test_data): New variable.
48027         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48028         (csinh_test_data): New variable.
48029         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48030         (csqrt_test_data): New variable.
48031         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48032         (ctan_test_data): New variable.
48033         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48034         (ctan_tonearest_test_data): New variable.
48035         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48036         (ctan_towardzero_test_data): New variable.
48037         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48038         (ctan_downward_test_data): New variable.
48039         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48040         (ctan_upward_test_data): New variable.
48041         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48042         (ctanh_test_data): New variable.
48043         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48044         (ctanh_tonearest_test_data): New variable.
48045         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48046         (ctanh_towardzero_test_data): New variable.
48047         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48048         (ctanh_downward_test_data): New variable.
48049         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48050         (ctanh_upward_test_data): New variable.
48051         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48052         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48053         of BUILD_COMPLEX.
48054
48055         * math/libm-test.inc (struct test_ff_f_data): New type.
48056         (struct test_ff_f_data_nexttoward): Likewise.
48057         (RUN_TEST_LOOP_2_f): New macro.
48058         (RUN_TEST_LOOP_ff_f): Likewise.
48059         (atan2_test_data): New variable.
48060         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48061         (copysign_test_data): New variable.
48062         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48063         (fdim_test_data): New variable.
48064         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48065         (fmax_test_data): New variable.
48066         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48067         (fmin_test_data): New variable.
48068         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48069         (fmod_test_data): New variable.
48070         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48071         (hypot_test_data): New variable.
48072         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48073         (nextafter_test_data): New variable.
48074         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48075         (nexttoward_test_data): New variable.
48076         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48077         (pow_test_data): New variable.
48078         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48079         (pow_tonearest_test_data): New variable.
48080         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48081         (pow_towardzero_test_data): New variable.
48082         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48083         (pow_downward_test_data): New variable.
48084         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48085         (pow_upward_test_data): New variable.
48086         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48087         (remainder_test_data): New variable.
48088         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48089         (scalb_test_data): New variable.
48090         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48091         * sysdeps/i386/fpu/libm-test-ulps: Update.
48092
48093 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48094
48095         * math/libm-test.inc (fma_test): Use max_value instead of local
48096         variable fltmax.
48097         (nextafter_test): Likewise.
48098
48099         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48100         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48101         (acos_downward_test_data): New variable.
48102         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48103         (acos_upward_test_data): New variable.
48104         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48105         (acosh_test_data): New variable.
48106         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48107         (asin_test_data): New variable.
48108         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48109         (asin_tonearest_test_data): New variable.
48110         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48111         (asin_towardzero_test_data): New variable.
48112         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48113         (asin_downward_test_data): New variable.
48114         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48115         (asin_upward_test_data): New variable.
48116         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48117         (asinh_test_data): New variable.
48118         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48119         (atan_test_data): New variable.
48120         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48121         (atanh_test_data): New variable.
48122         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48123         (cbrt_test_data): New variable.
48124         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48125         (ceil_test_data): New variable.
48126         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48127         (cos_test_data): New variable.
48128         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48129         (cos_tonearest_test_data): New variable.
48130         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48131         (cos_towardzero_test_data): New variable.
48132         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48133         (cos_downward_test_data): New variable.
48134         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48135         (cos_upward_test_data): New variable.
48136         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48137         (cosh_test_data): New variable.
48138         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48139         (cosh_tonearest_test_data): New variable.
48140         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48141         (cosh_towardzero_test_data): New variable.
48142         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48143         (cosh_downward_test_data): New variable.
48144         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48145         (cosh_upward_test_data): New variable.
48146         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48147         (erf_test_data): New variable.
48148         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48149         (erfc_test_data): New variable.
48150         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48151         (exp_test_data): New variable.
48152         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48153         (exp_tonearest_test_data): New variable.
48154         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48155         (exp_towardzero_test_data): New variable.
48156         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48157         (exp_downward_test_data): New variable.
48158         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48159         (exp_upward_test_data): New variable.
48160         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48161         (exp10_test_data): New variable.
48162         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48163         (exp2_test_data): New variable.
48164         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48165         (expm1_test_data): New variable.
48166         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48167         (fabs_test_data): New variable.
48168         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48169         (floor_test_data): New variable.
48170         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48171         (j0_test_data): New variable.
48172         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48173         (j1_test_data): New variable.
48174         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48175         (log_test_data): New variable.
48176         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48177         (log10_test_data): New variable.
48178         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48179         (log1p_test_data): New variable.
48180         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48181         (log2_test_data): New variable.
48182         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48183         (logb_test_data): New variable.
48184         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48185         (logb_downward_test_data): New variable.
48186         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48187         (nearbyint_test_data): New variable.
48188         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48189         (rint_test_data): New variable.
48190         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48191         (rint_tonearest_test_data): New variable.
48192         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48193         (rint_towardzero_test_data): New variable.
48194         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48195         (rint_downward_test_data): New variable.
48196         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48197         (rint_upward_test_data): New variable.
48198         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48199         (round_test_data): New variable.
48200         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48201         (sin_test_data): New variable.
48202         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48203         (sin_tonearest_test_data): New variable.
48204         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48205         (sin_towardzero_test_data): New variable.
48206         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48207         (sin_downward_test_data): New variable.
48208         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48209         (sin_upward_test_data): New variable.
48210         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48211         (sinh_test_data): New variable.
48212         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48213         (sinh_tonearest_test_data): New variable.
48214         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48215         (sinh_towardzero_test_data): New variable.
48216         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48217         (sinh_downward_test_data): New variable.
48218         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48219         (sinh_upward_test_data): New variable.
48220         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48221         (sqrt_test_data): New variable.
48222         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48223         (tan_test_data): New variable.
48224         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48225         (tan_tonearest_test_data): New variable.
48226         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48227         (tan_towardzero_test_data): New variable.
48228         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48229         (tan_downward_test_data): New variable.
48230         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48231         (tan_upward_test_data): New variable.
48232         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48233         (tanh_test_data): New variable.
48234         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48235         (tgamma_test_data): New variable.
48236         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48237         (trunc_test_data): New variable.
48238         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48239         (y0_test_data): New variable.
48240         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48241         (y1_test_data): New variable.
48242         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48243         (significand_test_data): New variable.
48244         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48245
48246 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48247
48248         [BZ #12387]
48249         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48250
48251 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48252
48253         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48254
48255 2013-05-10  Andreas Jaeger  <aj@suse.de>
48256
48257         [BZ #15448]
48258         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48259         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48260
48261 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48262
48263         * math/gen-libm-test.pl (adjust_arg): New function.
48264         (special_functions): Handle generating output in both functions
48265         and arrays.
48266         (parse_args): Likewise.
48267         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48268         $in_func argument to parse_args.
48269         * math/libm-test.inc (struct test_f_f_data): New type.
48270         (IF_ROUND_INIT_): New macro.
48271         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48272         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48273         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48274         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48275         (ROUND_RESTORE_): Likewise.
48276         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48277         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48278         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48279         (ROUND_RESTORE_FE_UPWARD): Likewise.
48280         (RUN_TEST_LOOP_f_f): New macro.
48281         (acos_test_data): New variable.
48282         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48283         (acos_tonearest_test_data): New variable.
48284         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48285
48286 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48287
48288         * benchtests/bench-skeleton.c (startup): Fix coding style.
48289
48290 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48291
48292         [BZ #6809]
48293         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48294         negative infinity argument.
48295         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48296         negative infinity argument.
48297         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48298         negative infinity argument.
48299         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48300         domain errors.
48301
48302 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48303
48304         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48305         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48306         * iconv/iconv_prog.c (main): Likewise.
48307         * locale/programs/charmap-dir.c (charmap_readdir)
48308         (fopen_uncompressed): Likewise.
48309         * locale/programs/locfile.c (siblings_uncached)
48310         (write_locale_data): Use lstat64 instead of lstat.
48311         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48312         stat.
48313
48314 2013-05-10  Andreas Jaeger  <aj@suse.de>
48315
48316         [BZ #15395]
48317         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48318         localization.
48319         Include <locale.h>.
48320
48321 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48322
48323         * elf/dl-close.c (_dl_close_worker): Add comments.
48324
48325 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48326
48327         [BZ #15359]
48328         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48329         high part of pi/2.
48330         (__ieee754_rem_pio2l): Update comments.
48331
48332         [BZ #15429]
48333         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48334         high part of pi/2.
48335         (__ieee754_rem_pio2l): Update comments.
48336
48337         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48338         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48339
48340         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48341         M_PI_4l.
48342
48343         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48344         (M_PI_34_LOG10El): Likewise.
48345         (M_PI2_LOG10El): Likewise.
48346         (M_PI4_LOG10El): Likewise.
48347         (M_PI_LOG10El): Likewise.
48348
48349 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48350
48351         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48352
48353 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48354
48355         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48356         (MINUS_ZERO_INIT): Likewise.
48357         (PLUS_INFTY_INIT): Likewise.
48358         (MINUS_INFTY_INIT): Likewise.
48359         (QNAN_VALUE_INIT): Likewise.
48360         (MAX_VALUE_INIT): Likewise.
48361         (MIN_VALUE_INIT): Likewise.
48362         (MIN_SUBNORM_VALUE_INIT): Likewise.
48363         (plus_zero): Initialize with PLUS_ZERO_INIT.
48364         (minus_zero): Initialize with MINUS_ZERO_INIT.
48365         (plus_infty): Initialize with PLUS_INFTY_INIT.
48366         (minus_infty): Initialize with MINUS_INFTY_INIT.
48367         (qnan_value): Initialize with QNAN_VALUE_INIT.
48368         (max_value): Initialize with MAX_VALUE_INIT.
48369         (min_value): Initialize with MIN_VALUE_INIT.
48370         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48371
48372         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48373         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48374         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48375         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48376
48377         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48378         (RUN_TEST_2_f): Likewise.
48379         (RUN_TEST_ff_f): Likewise.
48380         (RUN_TEST_fi_f): Likewise.
48381         (RUN_TEST_fl_f): Likewise.
48382         (RUN_TEST_fff_f): Likewise.
48383         (RUN_TEST_c_f): Likewise.
48384         (RUN_TEST_f_f1): Likewise.
48385         (RUN_TEST_fF_f1): Likewise.
48386         (RUN_TEST_fI_f1): Likewise.
48387         (RUN_TEST_ffI_f1): Likewise.
48388         (RUN_TEST_c_c): Likewise.
48389         (RUN_TEST_cc_c): Likewise.
48390         (RUN_TEST_f_i): Likewise.
48391         (RUN_TEST_f_i_tg): Likewise.
48392         (RUN_TEST_ff_i_tg): Likewise.
48393         (RUN_TEST_f_b): Likewise.
48394         (RUN_TEST_f_b_tg): Likewise.
48395         (RUN_TEST_f_l): Likewise.
48396         (RUN_TEST_f_L): Likewise.
48397         (RUN_TEST_sincos): Likewise.
48398         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48399         whether to show exceptions.  Do not include ");\n" in return
48400         value.
48401         (special_functions): Output call to RUN_TEST_sincos instead of
48402         check_float calls.  Update calls to new_test.
48403         (parse_args): Output call to single RUN_TEST_* macro instead of
48404         check_* calls and other assignments.  Update calls to new_test.
48405
48406         [BZ #2546]
48407         [BZ #2560]
48408         [BZ #5159]
48409         [BZ #15426]
48410         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48411         input to result for tgamma overflow.
48412         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48413         (gamma_coeff): New variable.
48414         (NCOEFF): New macro.
48415         (gamma_positive): New function.
48416         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48417         underflow here.  Use gamma_positive instead of exp (lgamma) for
48418         other arguments.
48419         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48420         (gamma_coeff): New variable.
48421         (NCOEFF): New macro.
48422         (gammaf_positive): New function.
48423         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48424         underflow here.  Use gamma_positive instead of exp (lgamma) for
48425         other arguments.
48426         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48427         (gamma_coeff): New variable.
48428         (NCOEFF): New macro.
48429         (gammal_positive): New function.
48430         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48431         underflow here.  Use gamma_positive instead of exp (lgamma) for
48432         other arguments.
48433         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48434         (gamma_coeff): New variable.
48435         (NCOEFF): New macro.
48436         (gammal_positive): New function.
48437         (__ieee754_gammal_r): Handle positive infinity, overflow and
48438         underflow here.  Handle NaN the same as positive infinity.  Remove
48439         check x < 0xffffffff for negative integers.  Use gamma_positive
48440         instead of exp (lgamma) for other arguments.
48441         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48442         (gamma_coeff): New variable.
48443         (NCOEFF): New macro.
48444         (gammal_positive): New function.
48445         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48446         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48447         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48448         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48449         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48450         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48451         * sysdeps/generic/math_private.h (__gamma_productf): New
48452         prototype.
48453         (__gamma_product): Likewise.
48454         (__gamma_productl): Likewise.
48455         * math/Makefile (libm-calls): Add gamma_product.
48456         * math/libm-test.inc (tgamma_test): Add more tests.
48457         * sysdeps/i386/fpu/libm-test-ulps: Update.
48458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48459
48460 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48461
48462         * benchtests/bench-skeleton.c (main): Preheat CPU.
48463
48464 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48465
48466         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48467
48468 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48469
48470         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48471         and _dl_skip_args_internal.
48472
48473 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48474
48475         * manual/message.texi (Message Translation): Talk about users.
48476         Message to key mapping impacts design.
48477
48478 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48479
48480         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48481
48482         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48483
48484         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48485         * sysdeps/wordsize-64/glob64.c: ... here.
48486
48487         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48488         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48489         New macros.
48490
48491         * debug/getlogin_r_chk.c: Moved to ...
48492         * login/getlogin_r_chk.c: ... here.
48493         * debug/Makefile (routines): Move getlogin_r_chk to ...
48494         * login/Makefile (routines): ... here.
48495         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48496         * login/Versions (libc: GLIBC_2.4): ... here.
48497
48498         * io/poll.c (__poll): Renamed from poll.
48499         Add libc_hidden_def.
48500         (poll): Define as weak alias.
48501
48502         * debug/ptsname_r_chk.c: Moved to ...
48503         * login/ptsname_r_chk.c: ... here.
48504         * debug/Makefile (routines): Move ptsname_r_chk to ...
48505         * login/Makefile (routines): ... here.
48506         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48507         * login/Versions (libc: GLIBC_2.4): ... here.
48508
48509         * posix/getlogin.c: Moved to ...
48510         * login/getlogin.c: ... here.
48511         * posix/getlogin_r.c: Moved to ...
48512         * login/getlogin_r.c: ... here.
48513         * posix/getlogin_r.c: Moved to ...
48514         * login/getlogin_r.c: ... here.
48515         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48516         * login/Makefile (routines): ... here.
48517         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48518         * login/Versions (libc: GLIBC_2.0): ... here.
48519
48520         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48521         (setrlimit): Define as weak alias.
48522
48523         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48524         Call __ names for open, ftruncate, and close.
48525         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48526         (truncate): Define as weak alias.
48527
48528 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48529
48530         * math/gen-libm-test.pl (parse_args): Initialize x before each
48531         test of frexp, modf and remquo.
48532
48533         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48534         test signgam value.
48535
48536 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48537
48538         [BZ #15418]
48539         [BZ #15419]
48540         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48541         internal tests.
48542         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48543
48544 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48545
48546         * elf/dl-writev.h: New file.
48547         * elf/dl-misc.c: Include it.
48548         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48549         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48550
48551 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48552
48553         * math/libm-test.inc (noXFails): Remove variable.
48554         (noXPasses): Likewise.
48555         (BUILD_COMPLEX_INT): Remove macro.
48556         (print_screen): Remove xfail argument.
48557         (print_screen_max_error): Likewise.
48558         (update_stats): Likewise.
48559         (print_max_error): Likewise.  Update calls to other affected
48560         functions.
48561         (print_complex_max_error): Likewise.
48562         (test_single_exception): Update calls to print_screen.
48563         (test_single_errno): Likewise.
48564         (check_float_internal): Remove xfail argument.  Update calls to
48565         other affected functions.
48566         (check_float): Likewise.
48567         (check_complex): Likewise.
48568         (check_int): Likewise.
48569         (check_long): Likewise.
48570         (check_bool): Likewise.
48571         (check_longlong): Likewise.
48572         (main): Don't print noXFails and noXPasses.
48573         * math/gen-libm-test.pl (top level): Don't mention expected
48574         failure handling in comment.
48575         (new_test): Don't handle expected failures.
48576         (parse_args): Don't mention expected failure handling in comment.
48577         (generate_testfile): Don't handle expected failures.
48578         (parse_ulps): Likewise.
48579         (print_ulps_file): Likewise.
48580         (get_failure): Remove function.
48581         (output_test): Don't handle expected failures.
48582         * make/README.libm-test: Don't mention expected failure handling.
48583
48584         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48585         (minus_zero): Likewise.
48586         (plus_infty): Likewise.
48587         (minus_infty): Likewise.
48588         (qnan_value): Likewise.
48589         (max_value): Likewise.
48590         (min_value): Likewise.
48591         (min_subnorm_value): Likewise.
48592         (initialize): Do not initialize those variables dynamically.
48593
48594 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48595
48596         * io/open.c (__open_2): Moved to ...
48597         * io/open_2.c: ... this new file.
48598         * io/open64.c (__open64_2): Moved to ...
48599         * io/open64_2.c: ... this new file.
48600         * io/openat.c (__openat_2): Moved to ...
48601         * io/openat_2.c: ... this new file.
48602         * io/openat64.c (__openat64_2): Moved to ...
48603         * io/openat64_2.c: ... this new file.
48604         * io/Makefile (routines): Add them.
48605         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48606         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48607         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48608         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48609         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48610         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48611         (__openat64): Add hidden_ver.
48612         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48613         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48614
48615         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48616         Separately conditionalize setting of GLRO(dl_sysinfo) so
48617         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48618         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48619
48620 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48621
48622         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48623         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48624         definition.
48625         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48626         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48627         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48628         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48629         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48630
48631 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48632
48633         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48634         test signgam value.
48635
48636         * math/libm-test.inc (hypot_test): Do not use
48637         IGNORE_ZERO_INF_SIGN.
48638
48639 2013-05-03  Andreas Jaeger  <aj@suse.de>
48640
48641         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48642         Linux 3.9.
48643         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48644         (PF_MAX): Adjust for VSOCK change.
48645
48646 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48647
48648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48649
48650 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48651
48652         [BZ #15264]
48653         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48654         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48655         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48656
48657 2013-05-02  David S. Miller  <davem@davemloft.net>
48658
48659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48660
48661 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48662
48663         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48664
48665 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48666
48667         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48668
48669 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48670
48671         [BZ #14952]
48672         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48673         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48674         Use __attribute__ ((__gnu_inline__)).
48675         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48676         Don't use __attribute__ ((__gnu_inline__)).
48677
48678 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48679
48680         [BZ #15423]
48681         * math/s_catan.c (__catan): Handle small real or imaginary part of
48682         input specially to avoid spurious underflow.
48683         * math/s_catanf.c (__catanf): Likewise.
48684         * math/s_catanh.c (__catanh): Likewise.
48685         * math/s_catanhf.c (__catanhf): Likewise.
48686         * math/s_catanhl.c (__catanhl): Likewise.
48687         * math/s_catanl.c (__catanl): Likewise.
48688         * math/libm-test.inc (catan_test): Add more tests.
48689         (catanh_test): Likewise.
48690         * sysdeps/i386/fpu/libm-test-ulps: Update.
48691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48692
48693 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48694
48695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48696
48697 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48698
48699         [BZ #15416]
48700         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48701         accurately for denominator in atan2.
48702         * math/s_catanf.c (__catanf): Likewise.
48703         * math/s_catanh.c (__catanh): Likewise.
48704         * math/s_catanhf.c (__catanhf): Likewise.
48705         * math/s_catanhl.c (__catanhl): Likewise.
48706         * math/s_catanl.c (__catanl): Likewise.
48707         * math/libm-test.inc (catan_test): Add more tests.
48708         (catanh_test): Likewise.
48709         * sysdeps/i386/fpu/libm-test-ulps: Update.
48710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48711
48712 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48713
48714         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48715
48716         * benchtests/Makefile (bench): Remove slow benchmarks.
48717         * benchtests/atan-inputs: Add slow benchmark inputs.
48718         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48719         (BENCH_FUNC): Accept variant offset.
48720         (VARIANT): Define.
48721         * benchtests/bench-skeleton.c (main): Run benchmark for each
48722         variant.
48723         * benchtests/cos-inputs: Add slow benchmark inputs.
48724         * benchtests/exp-inputs: Likewise.
48725         * benchtests/pow-inputs: Likewise.
48726         * benchtests/sin-inputs: Likewise.
48727         * benchtests/slowatan-inputs: Remove.
48728         * benchtests/slowatan.c: Remove.
48729         * benchtests/slowcos-inputs: Remove.
48730         * benchtests/slowcos.c: Remove.
48731         * benchtests/slowexp-inputs: Remove.
48732         * benchtests/slowexp.c: Remove.
48733         * benchtests/slowpow-inputs: Remove.
48734         * benchtests/slowpow.c: Remove.
48735         * benchtests/slowsin-inputs: Remove.
48736         * benchtests/slowsin.c: Remove.
48737         * benchtests/slowtan-inputs: Remove.
48738         * benchtests/slowtan.c: Remove.
48739         * benchtests/tan-inputs: Add slow benchmark inputs.
48740         * scripts/bench.pl: Parse comments and directives.
48741
48742         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48743         in CPPFLAGS.
48744         ($(objpfx)bench-%.c): Remove *-ITER.
48745         * benchtests/bench-modf.c: Remove definition of ITER.
48746         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48747         (main): Loop for DURATION seconds instead of fixed number of
48748         iterations.
48749         * scripts/bench.pl: Don't expect iterations in parameters.
48750
48751 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48752
48753         * io/fchdir.c (__fchdir): Renamed from fchdir.
48754         (fchdir): Define as weak alias.
48755
48756 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48757
48758         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48759         (ERRNO_EDOM): Likewise.
48760         (ERRNO_ERANGE): Likewise.
48761         (noErrnoTests): New variable.
48762         (init_max_error): Set errno to 0.
48763         (test_single_errno): New function.
48764         (test_errno): Likewise.
48765         (check_float_internal): Call test_errno.  Set errno to 0.
48766         (check_complex): Refer to errno tests in comment.
48767         (check_int): Call test_errno.  Set errno to 0.
48768         (check_long): Likewise.
48769         (check_bool): Likewise.
48770         (check_longlong): Likewise.
48771         (cos_test): Use ERRNO_* flags for errno tests instead of
48772         check_int.
48773         (expm1_test): Likewise.
48774         (fmod_test): Likewise.
48775         (ilogb_test): Likewise.
48776         (lgamma_test): Likewise.
48777         (pow_test): Likewise.
48778         (remainder_test): Likewise.
48779         (sin_test): Likewise.
48780         (tan_test): Likewise.
48781         (yn_test): Likewise.
48782         (initialize): Set errno to 0.
48783         (main): Print number of errno tests.
48784         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48785
48786 2013-04-29  Andreas Jaeger  <aj@suse.de>
48787
48788         [BZ #15084]
48789         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48790         and RES_USEVC.
48791
48792         [BZ #15085]
48793         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48794         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48795         unimplemented.
48796
48797         [BZ #15380]
48798         * stdlib/random.c (__initstate): Return NULL if
48799         __initstate fails.
48800
48801         [BZ #15086]
48802         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48803         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48804         RES_SNGLKUPREOP.
48805
48806 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48807
48808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48809
48810 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48811
48812         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48813         of individual tests.
48814         (casin_test): Likewise.
48815         (casinh_test): Likewise.
48816
48817 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48818
48819         [BZ #15409]
48820         * math/s_catan.c (__catan): Handle arguments with large real or
48821         imaginary part separately without squaring.
48822         * math/s_catanf.c (__catanf): Likewise.
48823         * math/s_catanh.c (__catanh): Likewise.
48824         * math/s_catanhf.c (__catanhf): Likewise.
48825         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48826         and redefine.
48827         (__catanhl): Handle arguments with large real or imaginary part
48828         separately without squaring.
48829         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48830         and redefine.
48831         (__catanl): Handle arguments with large real or imaginary part
48832         separately without squaring.
48833         * math/libm-test.inc (catan_test): Add more tests.
48834         (catanh_test): Likewise.
48835         * sysdeps/i386/fpu/libm-test-ulps: Update.
48836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48837
48838 2013-04-27  Andreas Jaeger  <aj@suse.de>
48839
48840         [BZ #15007]
48841         * stdlib/stdlib.h: Update guards for qecvt.
48842         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48843         <stdlib.h>.
48844
48845 2013-04-27  Allan McRae  <allan@archlinux.org>
48846
48847         * sysdeps/i386/fpu/libm-test-ulps: Update.
48848
48849 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48850
48851         [BZ #15406]
48852         * math/s_catan.c: Include <float.h>.
48853         (__catan): Ensure underflow exception occurs for underflowed
48854         result.
48855         * math/s_catanf.c: Include <float.h>.
48856         (__catanf): Ensure underflow exception occurs for underflowed
48857         result.
48858         * math/s_catanh.c: Include <float.h>.
48859         (__catanh): Ensure underflow exception occurs for underflowed
48860         result.
48861         * math/s_catanhf.c: Include <float.h>.
48862         (__catanhf): Ensure underflow exception occurs for underflowed
48863         result.
48864         * math/s_catanhl.c: Include <float.h>.
48865         (__catanhl): Ensure underflow exception occurs for underflowed
48866         result.
48867         * math/s_catanl.c: Include <float.h>.
48868         (__catanl): Ensure underflow exception occurs for underflowed
48869         result.
48870         * math/libm-test.inc (catan_test): Add more tests.
48871         (catanh_test): Likewise.
48872
48873         [BZ #15405]
48874         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48875         underflowed result.
48876         * math/s_ccoshf.c (__ccoshf): Likewise.
48877         * math/s_ccoshl.c (__ccoshl): Likewise.
48878         * math/s_csin.c (__csin): Likewise.
48879         * math/s_csinf.c (__csinf): Likewise.
48880         * math/s_csinh.c (__csinh): Likewise.
48881         * math/s_csinhf.c (__csinhf): Likewise.
48882         * math/s_csinhl.c (__csinhl): Likewise.
48883         * math/s_csinl.c (__csinl): Likewise.
48884         * math/libm-test.inc (ccos_test): Add more tests.
48885         (ccosh_test): Likewise.
48886         (csin_test): Likewise.
48887         (csinh_test): Likewise.
48888
48889 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48890
48891         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48892         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48893         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48894         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48895         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48896         powerpc/power5+/fpu folders.
48897         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48898
48899
48900 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48901
48902         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48903
48904 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48905
48906         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48907         additions to variable.
48908         [$(config-machine) = x86_64] (modules-names): Likewise.
48909         ($(objpfx)tst-audit3): Remove dependency.
48910         ($(objpfx)tst-audit3.out): Likewise.
48911         ($(objpfx)tst-audit4): Likewise.
48912         ($(objpfx)tst-audit4.out): Likewise.
48913         ($(objpfx)tst-audit5): Likewise.
48914         ($(objpfx)tst-audit5.out): Likewise.
48915         ($(objpfx)tst-audit6): Likewise.
48916         ($(objpfx)tst-audit6.out): Likewise.
48917         ($(objpfx)tst-audit7): Likewise.
48918         ($(objpfx)tst-audit7.out): Likewise.
48919         (tst-audit3-ENV): Remove variable.
48920         (tst-audit4-ENV): Likewise.
48921         (tst-audit5-ENV): Likewise.
48922         (tst-audit6-ENV): Likewise.
48923         (tst-audit7-ENV): Likewise.
48924         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48925         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48926         addition to variable.
48927         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48928         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48929         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48930         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48931         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48932         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48933         tst-audit3, tst-audit4 and tst-audit5.
48934         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48935         tst-audit6 and tst-audit7.
48936         [$(subdir) = elf] (modules-names): Add audit modules for those
48937         tests.
48938         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48939         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48940         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48941         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48942         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48943         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48944         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48945         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48946         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48947         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48948         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48949         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48950         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48951         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48952         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48953         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48954         Likewise.
48955         [$(subdir) = elf && $(config-cflags-avx) = yes]
48956         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48957         [$(subdir) = elf && $(config-cflags-avx) = yes]
48958         (CFLAGS-tst-auditmod4a.c): Likewise.
48959         [$(subdir) = elf && $(config-cflags-avx) = yes]
48960         (CFLAGS-tst-auditmod4b.c): Likewise.
48961         [$(subdir) = elf && $(config-cflags-avx) = yes]
48962         (CFLAGS-tst-auditmod6b.c): Likewise.
48963         [$(subdir) = elf && $(config-cflags-avx) = yes]
48964         (CFLAGS-tst-auditmod6c.c): Likewise.
48965         [$(subdir) = elf && $(config-cflags-avx) = yes]
48966         (CFLAGS-tst-auditmod7b.c): Likewise.
48967         * elf/tst-audit3.c: Move to ...
48968         * sysdeps/x86_64/tst-audit3.c: ... here.
48969         * elf/tst-audit4.c: Move to ...
48970         * sysdeps/x86_64/tst-audit4.c: ... here.
48971         * elf/tst-audit5.c: Move to ...
48972         * sysdeps/x86_64/tst-audit5.c: ... here.
48973         * elf/tst-audit6.c: Move to ...
48974         * sysdeps/x86_64/tst-audit6.c: ... here.
48975         * elf/tst-audit7.c: Move to ...
48976         * sysdeps/x86_64/tst-audit7.c: ... here.
48977         * elf/tst-auditmod3a.c: Move to ...
48978         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48979         * elf/tst-auditmod3b.c: Move to ...
48980         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48981         * elf/tst-auditmod4a.c: Move to ...
48982         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48983         * elf/tst-auditmod4b.c: Move to ...
48984         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48985         * elf/tst-auditmod5a.c: Move to ...
48986         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48987         * elf/tst-auditmod5b.c: Move to ...
48988         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48989         * elf/tst-auditmod6a.c: Move to ...
48990         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48991         * elf/tst-auditmod6b.c: Move to ...
48992         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48993         * elf/tst-auditmod6c.c: Move to ...
48994         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48995         * elf/tst-auditmod7a.c: Move to ...
48996         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48997         * elf/tst-auditmod7b.c: Move to ...
48998         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48999
49000 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49001
49002         [BZ #15366]
49003         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49004         define unconditionally.
49005         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49006         define unconditionally.
49007         (INT8_C, INT16_C, etc.): Likewise.
49008
49009 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49010
49011         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49012         __ehdr_start with hidden visibility.
49013
49014         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49015
49016 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49017
49018         * math/libm-test.inc (cos_test): Use accurate hex constants.
49019         (sincost_test): Likewise.
49020
49021 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49022
49023         * math/libm-test.inc (catan_test): Add more tests.
49024         (catanh_test): Likewise.
49025
49026         * math/s_catanf.c (__catanf): Use suffixed floating-point
49027         constants.
49028         * math/s_catanhf.c (__catanhf): Likewise.
49029         * math/s_catanhl.c (__catanhl): Likewise.
49030         * math/s_catanl.c (__catanl): Likewise.
49031
49032         [BZ #15394]
49033         * math/s_catan.c (__catan): Calculate imaginary part of result
49034         with log1p not log unless computing log of number close to 0.
49035         * math/s_catanf.c (__catanf): Likewise.
49036         * math/s_catanl.c (__catanl): Likewise.
49037         * math/s_catanh.c (__catanh): Calculate real part of result with
49038         log1p not log unless computing log of number close to 0.
49039         * math/s_catanhf.c (__catanhf): Likewise.
49040         * math/s_catanhl.c (__catanhl): Likewise.
49041         * math/libm-test.inc (catan_test): Add more tests.
49042         (catanh_test): Likewise.
49043         * sysdeps/i386/fpu/libm-test-ulps: Update.
49044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49045
49046 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49047
49048         * benchtests/Makefile: Mention files in which fast and slow
49049         paths of math functions are implemented.
49050
49051 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49052
49053         * sysdeps/posix/timespec_get.c: New file.
49054
49055 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49056
49057         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49058         POWER.
49059         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49060         for POWER.
49061         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49062         powerpc/power5/fpu folders.
49063         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49064         * benchtests/Makefile: Add modf testcase.
49065         * benchtests/bench-modf.c: New file: Benchmark test for mo
49066
49067 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49068
49069         [BZ #14888]
49070         * time/Makefile (tests): Add tst-strptime-whitespace.
49071         * time/strptime_l.c (get_number): Use ISSPACE.
49072         (__strptime_internal): Likewise.
49073         * time/tst-strptime-whitespace.c: New test case.
49074
49075 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49076
49077         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49078         member.
49079         (_nss_files_init): Set it here.
49080
49081 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49082
49083         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49084         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49085         unsigned.
49086
49087 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49088
49089         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49090
49091 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49092
49093         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49094         size just once.
49095
49096 2013-04-21  David S. Miller  <davem@davemloft.net>
49097
49098         * po/ru.po: Update Russion translation from translation project.
49099
49100 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49101
49102         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49103         and setfsgid.
49104
49105 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49106
49107         * configure.in: Remove i386 configure warning. Remove i386 case.
49108         * configure: Regenerate.
49109         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49110         Add example to error message.
49111         * sysdeps/i386/configure: Regenerate.
49112
49113 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49114
49115         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49116         slowtan.
49117         * benchtests/cos-inputs: New file.
49118         * benchtests/slowcos-inputs: New file.
49119         * benchtests/slowcos.c: New file.
49120         * benchtests/slowtan-inputs: New file.
49121         * benchtests/slowtan.c: New file.
49122         * benchtests/tan-inputs: New file.
49123
49124 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49125
49126         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49127         considered kosher.
49128
49129 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49130
49131         * benchtests/Makefile: Include cppflags-iterator.mk to add
49132         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49133
49134         * Makefile.in (bench-clean): New target.
49135         * benchtests/Makefile (bench-clean): Likewise.
49136
49137 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49138
49139         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49140
49141 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49142
49143         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49144
49145 2013-04-15  Andreas Schwab  <schwab@suse.de>
49146
49147         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49148         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49149         * nscd/pwdcache.c (cache_addpw): Likewise.
49150         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49151         more than recsize.
49152
49153 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49154
49155         * benchtests/Makefile (bench): Write all output to
49156         bench-out.tmp together.
49157
49158 2013-04-15  Andreas Schwab  <schwab@suse.de>
49159
49160         * nscd/nscd.c (main): Don't fork again after closing files.
49161
49162 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49163
49164         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49165
49166         * benchtests/Rules (bench-deps): Collect dependencies into a
49167         single variable.  Add Makefile to dependencies.
49168         ($(objpfx)bench-%.c): Depend on bench-deps.
49169
49170 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49171             Xavier Roche  <roche+kml2@exalead.com>
49172
49173         [BZ #15361]
49174         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49175         just that it's a file descriptor.
49176         * manual/llio.texi (Synchronizing AIO Operations): Update description
49177         for EBADF error from aio_fsync.
49178
49179 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49180
49181         * Rules (bench): Move target definition...
49182         * benchtests/Makefile: ... here.
49183
49184 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49185
49186         * math/libm-test.inc (cos_test): Fix PI/2 test.
49187         (sincos_test): Likewise.
49188         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49189         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49190
49191 2013-04-11  Andreas Schwab  <schwab@suse.de>
49192
49193         [BZ #13988]
49194         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49195         accept exponent character only when digits were seen.
49196         * stdio-common/Makefile (tests): Add bug26.
49197         * stdio-common/bug26.c: New file.
49198
49199         [BZ #14293]
49200         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49201         non-freeable.
49202
49203 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49204
49205         * Makeconfig (rtld-prefix): Define built linker prefix.
49206         * Rules (run-bench): Use it.
49207         * math/Makefile (run-regen-ulps): Likewise.
49208
49209         * Rules (bench): Remove eval.
49210
49211 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49212             Roland McGrath  <roland@hack.frob.com>
49213             Ondrej Bilka  <neleai@seznam.cz>
49214
49215         [BZ #15346]
49216         * time/getdate.c: Include ctype.h and alloca.h.
49217         (__getdate_r): Trim leading and trailing spaces of input.
49218         * time/tst-getdate.c (tests): Add tests with leading and
49219         trailing spaces.
49220
49221 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49222
49223         [BZ #14280]
49224         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49225         when computing value.
49226
49227 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49228
49229         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49230         Use testrun.sh to run libm tests.
49231
49232         [BZ #15309]
49233         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49234
49235 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49236
49237         [BZ #15264]
49238         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49239
49240 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49241
49242         * Makefile.in (regen-ulps): New target.
49243         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49244         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49245         [ifneq (no,$(PERL)] (regen-ulps): New target.
49246         [ifeq (no,$(PERL)] (regen-ulps): New target.
49247         * math/libm-test.inc (ulps_file_name): Define.
49248         (output_dir): New variable.
49249         (options): Add "output-dir" option.
49250         (parse_opt): Handle 'o' case.
49251         (main): If output_dir is non-NULL use it as a prefix
49252         otherwise use "".
49253         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49254
49255 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49256
49257         [BZ #10060, #10062]
49258         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49259         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49260         fail configure if __sync_val_compare_and_swap is not inlined.
49261         * sysdeps/i386/configure: Regenerate.
49262         * configure.in: Build for i686 when configured for i386.
49263         * configure: Regenerate.
49264         * README: Remove i386 reference.
49265
49266 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49267
49268         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49269         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49270
49271 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49272
49273         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49274         (lmsnanval): New variables.
49275         (F): Add conversion tests.
49276         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49277         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49278
49279         * stdio-common/tstdiomisc.c (F): Properly collect individual
49280         tests' results.
49281
49282         [BZ #14686, #15336]
49283         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49284         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49285         Instead, use input NaN values or generate a qNaN by arithmetic
49286         operation.  Also fix bugs to comply with the standard.
49287         * math/libm-test.inc (remainder_test): Add more tests.
49288
49289         [BZ #15335, #15342]
49290         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49291         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49292         input NaN values or generate a qNaN by arithmetic operation.
49293
49294         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49295         unreachable code.
49296
49297         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49298         definitions.
49299
49300 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49301
49302         [BZ #14478]
49303         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49304         underflowed result.
49305         * math/s_cexpf.c (__cexpf): Likewise.
49306         * math/s_cexpl.c (__cexpl): Likewise.
49307         * math/libm-test.inc (cexp_test): Add more tests.
49308
49309 2013-04-03  Andreas Schwab  <schwab@suse.de>
49310
49311         [BZ #15330]
49312         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49313         order arrays from heap if bigger than alloca cutoff.
49314
49315 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49316
49317         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49318         (SNAN_TESTS_double): Refer to GCC PR56831.
49319         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49320         GCC PR56828.
49321
49322 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49323
49324         * Rules (bench): Move bench.out after the run is complete.
49325
49326         * Rules (bench): Echo currently running benchmark.
49327
49328         * benchtests/Makefile (bench): Add atan and slowatan.
49329         * benchtests/atan-inputs: New file.
49330         * benchtests/slowatan-inputs: New file.
49331         * benchtests/slowatan.c: New file.
49332
49333         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49334         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49335         its value.
49336
49337         [BZ #15305]
49338         * sysdeps/unix/sysv/linux/kernel-features.h
49339         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49340         __ASSUME_XFS_RESTRICTED_CHOWN.
49341         * sysdeps/unix/sysv/linux/pathconf.c
49342         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49343         Save and restore errno.
49344
49345 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49346
49347         [BZ #15327]
49348         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49349         arguments using __kernel_casinh.
49350         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49351         arguments using __kernel_casinhf.
49352         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49353         arguments using __kernel_casinhl.
49354         * math/libm-test.inc (cacosh_test): Add more tests.
49355         * sysdeps/i386/fpu/libm-test-ulps: Update.
49356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49357
49358 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49359
49360         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49361         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49362
49363         * bench/Makefile (bench): Add sin and slowsin.
49364         * benchtests/sin-inputs: New file.
49365         * benchtests/slowsin-inputs: New file.
49366         * benchtests/slowsin.c: New file.
49367
49368         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49369         (bench): Add slowexp and slowpow.
49370         (exp-ITER): Increase iterations.
49371         (pow-ITER): Likewise.
49372         * benchtests/exp-inputs: Change input.
49373         * benchtests/pow-inputs: Likewise.
49374         * benchtests/slowexp-inputs: New file.
49375         * benchtests/slowexp.c: New file.
49376         * benchtests/slowpow-inputs: New file.
49377         * benchtests/slowpow.c: New file.
49378
49379 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49380
49381         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49382         instructions.
49383         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49384         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49385         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49386         * benchtests/Makefile: Add rint benchtest.
49387         * benchtests/rint-inputs: Input for rint benchtest.
49388
49389 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49390
49391         * Versions.def (libm): Add GLIBC_2.18.
49392         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49393         hidden libm prototypes.
49394         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49395         * math/Makefile (libm-calls): Add s_issignaling.
49396         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49397         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49398         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49399         declaration.
49400         * math/math.h [__USE_GNU] (issignaling): New macro.
49401         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49402         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49403         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49404         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49405         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49406         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49407         * manual/arith.texi (issignaling): New section.
49408         * manual/libm-err-tab.pl (@all_functions): Update comment.
49409         * math/gen-libm-test.pl (parse_args): Apply special handling for
49410         issignaling.
49411         * math/libm-test.inc (print_float, issignaling_test): New
49412         functions.
49413         (check_float_internal): Add issignaling checks.
49414         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49415         default definition.
49416         * sysdeps/powerpc/math-tests.h: New file.
49417         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49418         tests.
49419         * math/test-snan.c (TEST_FUNC): Likewise.
49420
49421 2013-03-30  David S. Miller  <davem@davemloft.net>
49422
49423         * po/de.po: Update from translation team.
49424
49425 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49426
49427         [BZ #10357]
49428         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49429         imaginary part less than 1.0 and real part less than 0.5
49430         specially.
49431         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49432         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49433         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49434         (cacos_test): Add more tests.
49435         (casin_test): Likewise.
49436         (casinh_test): Likewise.
49437         * sysdeps/i386/fpu/libm-test-ulps: Update.
49438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49439
49440 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49441
49442         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49443         ONE with its value.
49444
49445         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49446         (__pow_mp): Replace ONE and MONE with their values.
49447         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49448         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49449         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49450         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49451         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49452         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49453
49454         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49455
49456         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49457         (__pow_mp): Replace ZERO and MZERO with their values.
49458         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49459         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49460         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49461         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49462         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49463         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49464         (__sqr): Likewise.
49465
49466         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49467
49468         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49469
49470 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49471
49472         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49473         Declare with __attribute__ ((weak)).
49474         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49475         Call __call_tls_dtors only if it's not NULL.
49476
49477 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49478
49479         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49480         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49481         magic __ehdr_start linker symbol if it's defined.
49482         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49483         them up here if it was already done.
49484
49485         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49486         (_dl_aux_init): Use const in cast when setting it.
49487         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49488         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49489         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49490
49491         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49492         Declare them here.
49493         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49494         * csu/libc-tls.c: Nor here.
49495         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49496
49497         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49498         (__libc_message): Never call vsyslog.
49499
49500 2013-03-28  Alan Modra  <amodra@gmail.com>
49501
49502         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49503         Define as empty.
49504         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49505         Likewise.
49506
49507 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49508
49509         [BZ #15214]
49510         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49511         underflow.
49512         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49513
49514 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49515
49516         [BZ #15304]
49517         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49518         Don't add gid passed as argument.
49519
49520         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49521
49522 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49523
49524         [BZ #15307]
49525         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49526         imaginary part between 1.0 and 1.5 and real part less than 0.5
49527         specially.
49528         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49529         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49530         * math/libm-test.inc (cacos_test): Add more tests.
49531         (casin_test): Likewise.
49532         (casinh_test): Likewise.
49533         * sysdeps/i386/fpu/libm-test-ulps: Update.
49534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49535
49536 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49537
49538         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49539         constants.
49540         (norm): Likewise.
49541         (denorm): Likewise.
49542         (__dbl_mp): Likewise.
49543         (add_magnitudes): Likewise.
49544         (sub_magnitudes): Likewise.
49545         (__add): Likewise.
49546         (__sub): Likewise.
49547         (__mul): Likewise.
49548         (__sqr): Likewise.
49549         (__inv): Likewise.
49550         (__dvd): Likewise.
49551
49552         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49553         commented code.
49554         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49555         (__dubcos): Likewise.
49556         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49557         (__ieee754_acos): Likewise.
49558         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49559         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49560         (__exp1): Likewise.
49561         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49562         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49563         (log1): Likewise.
49564         (my_log2): Likewise.
49565         (checkint): Likewise.
49566         * sysdeps/ieee754/dbl-64/e_remainder.c
49567         (__ieee754_remainder): Likewise.
49568         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49569         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49570         (bsloww): Likewise.
49571         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49572
49573         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49574         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49575         MANTISSA_STORE_T to store computations on mantissa.  Use
49576         macros for rounding and division.
49577         (denorm): Likewise.
49578         (__dbl_mp): Likewise.
49579         (add_magnitudes): Likewise.
49580         (sub_magnitudes): Likewise.
49581         (__mul): Likewise.
49582         (__sqr): Likewise.
49583         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49584         powers of two in terms of TWOPOW macro.
49585         (mp_no): Make type of mantissa as MANTISSA_T.
49586         [!RADIXI]: Define RADIXI.
49587         [!TWO52]: Define TWO52.
49588         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49589
49590 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49591
49592         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49593         llroundl symbol when building for PPC32.
49594
49595 2013-03-24  Mark H Weaver  <mhw@netris.org>
49596
49597         * manual/arith.texi (Normalization Functions): Fix prototypes for
49598         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49599
49600 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49601
49602         [BZ #13889]
49603         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49604         high value to check if expl overflow.
49605         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49606         to check for underflow and overflow.
49607         * math/libm-test.inc: Add exp test.
49608
49609 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49610
49611         [BZ #11120]
49612         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49613         with NOT_IN_libc.
49614
49615 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49616
49617         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49618         symbol.
49619
49620 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49621
49622         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49623         wrap blocks consisting of several statements.
49624
49625         * sysdeps/generic/math-tests.h: New file.
49626         * sysdeps/i386/fpu/math-tests.h: Likewise.
49627         * math/test-snan.c: Include it.
49628         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49629
49630 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49631
49632         [BZ #15285]
49633         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49634         (__ieee754_j0l): Do not improve calculations using cos of twice
49635         input for inputs above LDBL_MAX / 2.0L.
49636         (__ieee754_y0l): Likewise.
49637         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49638         (__ieee754_j1l): Do not improve calculations using cos of twice
49639         input for inputs above LDBL_MAX / 2.0L.
49640         (__ieee754_y1l): Likewise.
49641         * math/libm-test.inc (j0_test): Add another test.
49642         (j1_test): Likewise.
49643         (y0_test): Likewise.
49644         (y1_test): Likewise.
49645         * sysdeps/i386/fpu/libm-test-ulps: Update.
49646
49647 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49648
49649         * Rules ($(objpfx)bench-%.c): Include code from a C source
49650         file.
49651
49652 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49653
49654         [BZ #15287]
49655         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49656         imaginary part 1.0 and real part less than 0.5 specially.
49657         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49658         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49659         * math/libm-test.inc (cacos_test): Add more tests.
49660         (casin_test): Likewise.
49661         (casinh_test): Likewise.
49662         * sysdeps/i386/fpu/libm-test-ulps: Update.
49663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49664
49665 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49666
49667         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49668         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49669
49670 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49671
49672         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49673         * config.make.in (config-cflags-sse4): Remove variable.
49674         (config-cflags-avx): Likewise.
49675         (config-cflags-sse2avx): Likewise.
49676         (config-cflags-novzeroupper): Likewise.
49677         (config-asflags-i686): Likewise.
49678         (have-mfma4): Likewise.
49679         (have-as-vis3): Likewise.
49680         (MIG): Likewise.
49681         * configure.in (MIG): Do not AC_SUBST.
49682         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49683         (libc_cv_cc_sse4): Do not AC_SUBST.
49684         (libc_cv_cc_avx): Likewise.
49685         (libc_cv_cc_sse2avx): Likewise.
49686         (libc_cv_cc_novzeroupper): Likewise.
49687         (libc_cv_cc_fma4): Likewise.
49688         (libc_cv_as_i686): Likewise.
49689         (libc_cv_sparc_as_vis3): Likewise.
49690         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49691         LIBC_CONFIG_VAR.
49692         (config-asflags-i686): Likewise.
49693         (config-cflags-avx): Likewise.
49694         (config-cflags-sse2avx): Likewise.
49695         (have-mfma4): Likewise.
49696         (config-cflags-novzeroupper): Likewise.
49697         * sysdeps/mach/configure.in (MIG): Likewise.
49698         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49699         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49700         LIBC_CONFIG_VAR.
49701         (config-cflags-avx): Likewise.
49702         (config-cflags-sse2avx): Likewise.
49703         (have-mfma4): Likewise.
49704         (config-cflags-novzeroupper): Likewise.
49705         * configure: Regenerated.
49706         * sysdeps/i386/configure: Likewise.
49707         * sysdeps/mach/configure: Likewise.
49708         * sysdeps/sparc/configure: Likewise.
49709         * sysdeps/x86_64/configure: Likewise.
49710
49711 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49712
49713         [BZ #14812]
49714         * locale/programs/localedef.c (options): Put N_ translation marker
49715         on argument names, not just descriptions.
49716
49717 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49718
49719         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49720
49721 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49722
49723         [BZ #14176]
49724         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49725
49726 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49727
49728         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49729         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49730         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49731         [!BEFORE_ABORT] (before_abort): New function.
49732         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49733         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49734         (writev_for_fatal): New function.
49735         (WRITEV_FOR_FATAL): New macro; call that.
49736         (backtrace_and_maps): New function.
49737         (BEFORE_ABORT): New macro; call that.
49738         (struct str_list): Type removed.
49739         (__libc_message, __libc_fatal): Functions removed.
49740         Include <sysdeps/posix/libc_fatal.c> instead.
49741
49742 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49743
49744         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49745         constants.
49746         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49747         double constants.
49748
49749 2013-03-19  Andreas Schwab  <schwab@suse.de>
49750
49751         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49752         * sysdeps/gnu/configure: Regenerate.
49753
49754         * configure.in: Substitute libc_cv_rtlddir.
49755         * configure: Regenerate.
49756         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49757         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49758         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49759         * elf/Makefile (install-others, CFLAGS-interp.c)
49760         (ldso_install, common-ldd-rewrite): Likewise.
49761         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49762         $(inst_slibdir)/$(rtld-installed-name).
49763         * scripts/rellns-sh: Add -p option.
49764         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49765         for source.
49766
49767 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49768
49769         * manual/nptl.texi: Renamed to ...
49770         * manual/threads.texi: ... this.
49771         * manual/Makefile (chapters): Update.
49772
49773 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49774
49775         [BZ #14812]
49776         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49777         on argument names, not just descriptions.
49778         * malloc/memusagestat.c (options): Likewise.
49779         * nss/getent.c (options): Likewise.
49780
49781 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49782
49783         [BZ #14812]
49784         * iconv/iconv_prog.c (options): Put N_ translation marker
49785         on argument names, not just descriptions.
49786         * iconv/iconvconfig.c (options): Likewise.
49787
49788 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49789
49790         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49791         implementation which is faster on all x86_64 architectures.
49792         Tested on AMD, Intel Nehalem, SNB, IVB.
49793         * sysdeps/x86_64/strnlen.S: Likewise.
49794
49795         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49796         Remove all multiarch strlen and strnlen versions.
49797         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49798         Remove strlen and strnlen related parts.
49799
49800         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49801         Inline strlen part.
49802         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49803
49804         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49805         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49806         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49807         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49808         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49809         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49810
49811 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49812
49813         * manual/memory.texi (Malloc Tunable Parameters):
49814         Sort parameters alphabetically. Add comments for missing entries.
49815
49816 2013-03-17  David S. Miller  <davem@davemloft.net>
49817
49818         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49819
49820 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49821
49822         [BZ #15283]
49823         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49824         for arguments at most half maximum finite value.
49825         * math/libm-test.inc (j0_test): Add more tests.
49826         (j1_test): Likewise.
49827         (y0_test): Likewise.
49828         (y1_test): Likewise.
49829         * sysdeps/i386/fpu/libm-test-ulps: Update.
49830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49831
49832         [BZ #14155]
49833         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49834         1 / x and functions P and Q for arguments above 0x1p256L.
49835         (__ieee754_y0l): Likewise.
49836         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49837         (__ieee754_y1l): Likewise.
49838         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49839         (j1_test): Likewise.
49840         (y0_test): Likewise.
49841         (y1_test): Likewise.
49842
49843 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49844
49845         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49846         variable.
49847
49848 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49849
49850         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49851         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49852         zero since it's initialized to EXEC_PAGESIZE.
49853
49854         * sysdeps/unix/sysv/linux/ldsodefs.h
49855         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49856         * sysdeps/generic/ldsodefs.h: ... here.
49857
49858 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49859
49860         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49861
49862         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49863         math/test-snan.c.
49864         * math/test-snan.c: Renamed from
49865         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49866         * math/Makefile (tests): Add test-snan.
49867         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49868         test-powerpc-snan.
49869
49870         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49871         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49872         functions.
49873         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49874         __builtin_nan family of functions.
49875         * math/libm-test.inc (initialize): Initialize qnan_value with
49876         __builtin_nan family of functions.
49877         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49878         Remove variables.
49879         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49880         Remove functions.
49881         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49882         storage class.  Initialize qNaN_var and sNaN_var with
49883         __builtin_nan and __builtin_nans families of functions,
49884         respectively.
49885
49886         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49887         (sqrt_test): Remove duplicate test with qNaN input.
49888         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49889         (round_test, signbit_test, significand_test): Note missing +/-Inf
49890         as well as qNaN tests.
49891
49892         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49893         qNaN_var.  Fix a few strings, too.
49894         * math/libm-test.inc (nan_value): Rename to qnan_value.
49895         * math/gen-libm-test.pl (%beautify): Adjust to that.
49896         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49897         * math/test-misc.c (main): Likewise.
49898         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49899         to __qnan_bytes, and __qnan_union, respectively.
49900         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49901         Likewise.
49902         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49903         and lqnanval, respectively.
49904         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49905         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49906         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49907         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49908
49909         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49910         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49911         doubles.
49912
49913         * math/test-misc.c (main): Fix copy'n'pastos.
49914         * misc/tst-efgcvt.c (special): Likewise.
49915
49916         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49917         Remove declarations.
49918
49919 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49920
49921         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49922         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49923         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49924         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49925
49926 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49927
49928         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49929         macro to return vdso values correctly in IFUNC implementations.
49930         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49931         Optimization by using IFUNC.
49932
49933 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49934             Richard Henderson  <rth@redhat.com>
49935             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49936
49937         * Makefile.in (bench): New target.
49938         * NEWS: Mention the benchmark framework.
49939         * Rules (bench): Likewise.
49940         (binaries-bench): Generate binaries for functions to
49941         benchmark.
49942         * benchtests/Makefile: New makefile for benchmark tests.
49943         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49944         programs.
49945         * benchtests/exp-inputs: New input file for EXP function.
49946         * benchtests/pow-inputs: New input file for POW function.
49947         * scripts/bench.pl: New script to generate source files for
49948         benchmark programs.
49949
49950 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49951
49952         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49953         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49954         computations on mantissa.  Use macros for rounding and
49955         division.
49956         (denorm): Likewise.
49957         (__dbl_mp): Likewise.
49958         (add_magnitudes): Likewise.
49959         (sub_magnitudes): Likewise.
49960         (__mul): Likewise.
49961         (__sqr): Likewise.
49962         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49963         powers of two in terms of TWOPOW macro.
49964         (mp_no): Make type of mantissa as MANTISSA_T.
49965         [!RADIXI]: Define RADIXI.
49966         [!TWO52]: Define TWO52.
49967         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49968
49969         * manual/nptl.texi (cindex): Modify threads to pthreads.
49970
49971 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49972
49973         * sysdeps/x86_64/preconfigure: Regenerated.
49974
49975 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49976
49977         [BZ #14155]
49978         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49979         0x1p28 and above.
49980         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49981         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49982         0x1p28 and above.
49983         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49984         * math/libm-test.inc (j0_test): Do not allow one spurious
49985         underflow exception.
49986         (y1_test): Likewise.
49987
49988 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49989
49990         * manual/Makefile (chapters): Add nptl.
49991         * manual/debug.texi (Debugging Support): Add link to Threads
49992         chapter.
49993         * manual/nptl.texi: New file.
49994
49995         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49996
49997 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49998
49999         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50000         for non-NULL pointer before the memory validity test. Pointed
50001         out by Holger Brunck <holger.brunck@keymile.com>.
50002
50003 2013-03-13  Andreas Schwab  <schwab@suse.de>
50004
50005         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50006         instead of .os.
50007
50008 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50009
50010         * timezone/zic.c: Update from tzcode 2013b.
50011
50012 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50013
50014         * manual/install.texi (Configuring and compiling):
50015         Mention i686 and i586.
50016         * INSTALL: Regenerate.
50017
50018 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50019
50020         * sysdeps/init_array/elf-init.c: New file.
50021         * csu/elf-init.c
50022         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50023         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50024
50025         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50026         __gmon_start__ as global, but as static with a .preinit_array pointer.
50027         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50028         * sysdeps/init_array/crti.S: New file, empty except for comments.
50029         * sysdeps/init_array/crtn.S: Likewise.
50030
50031 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50032
50033         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50034         definining bcopy.
50035         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50036         Remove Prefer_SSE_for_memop.
50037         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50038         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50039         HAS_PREFER_SSE_FOR_MEMOP.
50040         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50041         memset-x86-64.
50042         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50043         Remove bzero, memset ifunc support.
50044         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50045         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50046         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50047         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50048
50049 2013-03-11  Andreas Schwab  <schwab@suse.de>
50050
50051         [BZ #15234]
50052         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50053         by SHLIB_COMPAT.
50054         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50055         (GLIBC_2.16): Remove pthread_atfork.
50056
50057 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50058
50059         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50060         (ptestcases.h): Likewise.
50061
50062 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50063
50064         * Makeconfig ($(common-objpfx)config.status): Depend on
50065         sysdeps/*/preconfigure{,.in} too.
50066
50067 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50068
50069         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50070         (__free_hook): Use void * instead of __malloc_ptr_t.
50071         (__malloc_hook): Likewise.
50072         (__realloc_hook): Likewise.
50073         (__memalign_hook): Likewise.
50074         (__after_morecore_hook): Likewise.
50075         * malloc/arena.c (save_malloc_hook): Likewise.
50076         (save_free_hook): Likewise.
50077         * malloc/hooks.c (malloc_hook_ini): Likewise.
50078         (realloc_hook_ini): Likewise.
50079         (memalign_hook_ini): Likewise.
50080         * malloc/malloc.c (malloc_hook_ini): Likewise.
50081         (realloc_hook_ini): Likewise.
50082         (memalign_hook_ini): Likewise.
50083         (__free_hook): Likewise.
50084         (__malloc_hook): Likewise.
50085         (__realloc_hook): Likewise.
50086         (__memalign_hook): Likewise.
50087         (__libc_malloc): Likewise.
50088         (__libc_free): Likewise.
50089         (__libc_realloc): Likewise.
50090         (__libc_memalign): Likewise.
50091         (__libc_valloc): Likewise.
50092         (__libc_pvalloc): Likewise.
50093         (__libc_calloc): Likewise.
50094         (__posix_memalign): Likewise.
50095         * malloc/morecore.c (__sbrk): Likewise.
50096         (__default_morecore): Likewise.
50097
50098         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50099
50100         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50101         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50102         __malloc_ptrdiff_t.
50103
50104         * malloc/malloc.h (__malloc_size_t): Remove macro.
50105         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50106         __malloc_size_t.
50107         (old_memalign_hook): Likewise.
50108         (old_realloc_hook): Likewise.
50109         (struct hdr): Likewise.
50110         (flood): Likewise.
50111         (mallochook): Likewise.
50112         (memalignhook): Likewise.
50113         (reallochook): Likewise.
50114         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50115         (tr_old_realloc_hook): Likewise.
50116         (tr_old_memalign_hook): Likewise.
50117         (tr_mallochook): Likewise.
50118         (tr_reallochook): Likewise.
50119         (tr_memalignhook): Likewise.
50120
50121 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50122
50123         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50124         default_ldbl_pack and using as default implementation.
50125         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50126         implementation.
50127         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50128         redundant definition.
50129         (ldbl_insert_mantissa): Likewise.
50130         (ldbl_canonicalize): Likewise.
50131         (ldbl_nearbyint): Likewise.
50132         (ldbl_pack): Rename to ldbl_pack_ppc.
50133         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50134         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50135         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50136
50137 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50138
50139         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50140         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50141         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50142         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50143         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50144         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50145         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50146         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50147
50148 2013-03-07  Andreas Jaeger  <aj@suse.de>
50149
50150         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50151         bits/mman-linux.h.
50152
50153 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50154
50155         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50156         Include mpa.h and declare __MPEXP.
50157         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50158         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50159         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50160         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50161         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50162         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50163         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50164
50165         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50166         (__slowpow): Use long double EXPL and LOGL functions to
50167         compute POW.
50168         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50169         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50170         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50171         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50172         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50173         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50174
50175         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50176         intermediate variable to calculate exponent.
50177         (__sqr): Likewise.
50178         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50179         Likewise.
50180         (__sqr): Likewise.
50181
50182         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50183         [!NO__SQR]: Define __sqr.
50184         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50185         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50186         sysdeps/ieee754/dbl-64/mpa.c.
50187         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50188
50189         [BZ #12723]
50190         * posix/Makefile (tests): Add tst-pathconf.
50191         * posix/tst-pathconf.c: New test case.
50192         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50193         _PC_PIPE_BUF.
50194         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50195
50196 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50197
50198         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50199
50200 2013-03-06  Andreas Jaeger  <aj@suse.de>
50201
50202         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50203         definition via __MAP_ANONYMOUS.
50204
50205         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50206         it's not part of Linux headers.
50207
50208         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50209         (MAP_HUGE_MASK): Define.
50210
50211         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50212         Define.
50213         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50214         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50215         Define.
50216         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50217         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50218         Define.
50219         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50220         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50221         Define.
50222         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50223
50224         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50225         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50226         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50227         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50228         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50229         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50230
50231         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50232         Handle f2fs.
50233
50234         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50235         Handle f2fs and efivarfs.
50236
50237         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50238         f2fs.
50239
50240         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50241         (EFIVARFS_MAGIC): Add.
50242         (F2FS_LINK_MAX): Add.
50243
50244 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50245
50246         * stdio-common/vfprintf.c: Replace __builtin_expect with
50247         __glibc_unlikely.
50248
50249 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50250
50251         [BZ #13550]
50252         * sysdeps/generic/bp-sym.h: Remove file.
50253         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50254         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50255         <bp-sym.h> and <bp-asm.h>.
50256         (__longjmp): Don't use BP_SYM.
50257         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50258         and <bp-asm.h>.
50259         (memcpy): Don't use BP_SYM.
50260         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50261         <bp-sym.h> and <bp-asm.h>.
50262         (memcpy): Don't use BP_SYM.
50263         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50264         <bp-asm.h>.
50265         (memcpy): Don't use BP_SYM.
50266         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50267         <bp-asm.h>.
50268         (memset): Don't use BP_SYM.
50269         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50270         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50271         (__bzero): Don't use BP_SYM.
50272         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50273         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50274         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50275         <bp-sym.h> and <bp-asm.h>.
50276         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50277         pointers.
50278         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50279         <bp-sym.h> and <bp-asm.h>.
50280         (memcpy): Don't use BP_SYM.
50281         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50282         <bp-sym.h> and <bp-asm.h>.
50283         (memset): Don't use BP_SYM.
50284         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50285         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50286         (__bzero): Don't use BP_SYM.
50287         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50288         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50289         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50290         <bp-sym.h> and <bp-asm.h>.
50291         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50292         pointers.
50293         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50294         <bp-sym.h> and <bp-asm.h>.
50295         (memcpy): Don't use BP_SYM.
50296         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50297         <bp-sym.h> and <bp-asm.h>.
50298         (memset): Don't use BP_SYM.
50299         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50300         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50301         (__bzero): Don't use BP_SYM.
50302         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50303         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50304         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50305         <bp-sym.h> and <bp-asm.h>.
50306         (__memchr): Don't use BP_SYM.
50307         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50308         <bp-sym.h> and <bp-asm.h>.
50309         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50310         pointers.
50311         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50312         <bp-sym.h> and <bp-asm.h>.
50313         (memcpy): Don't use BP_SYM.
50314         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50315         <bp-sym.h> and <bp-asm.h>.
50316         (__mempcpy): Don't use BP_SYM.
50317         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50318         <bp-sym.h> and <bp-asm.h>.
50319         (__memrchr): Don't use BP_SYM.
50320         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50321         <bp-sym.h> and <bp-asm.h>.
50322         (memset): Don't use BP_SYM.
50323         (__bzero): Likewise.
50324         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50325         <bp-sym.h> and <bp-asm.h>.
50326         (__rawmemchr): Don't use BP_SYM.
50327         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50328         <bp-sym.h> and <bp-asm.h>.
50329         (__STRCMP): Don't use BP_SYM.
50330         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50331         <bp-sym.h> and <bp-asm.h>.
50332         (strchr): Don't use BP_SYM.
50333         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50334         <bp-sym.h> and <bp-asm.h>.
50335         (__strchrnul): Don't use BP_SYM.
50336         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50337         <bp-sym.h> and <bp-asm.h>.
50338         (strlen): Don't use BP_SYM.
50339         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50340         <bp-sym.h> and <bp-asm.h>.
50341         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50342         pointers.
50343         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50344         <bp-sym.h> and <bp-asm.h>.
50345         (__strnlen): Don't use BP_SYM.
50346         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50347         <bp-sym.h> and <bp-asm.h>.
50348         (__GI__setjmp): Don't use BP_SYM.
50349         (_setjmp): Likewise.
50350         (__sigsetjmp): Likewise.
50351         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50352         (L(start_addresses)): Don't use BP_SYM.
50353         (_start): Likewise.
50354         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50355         <bp-asm.h>.
50356         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50357         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50358         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50359         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50360         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50361         <bp-asm.h>.
50362         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50363         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50364         about bounded pointers.
50365         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50366         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50367         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50368         <bp-asm.h>.
50369         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50370         about bounded pointers.  Remove GKM FIXME comments.
50371         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50372         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50373         <bp-asm.h>.
50374         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50375         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50376         Remove GKM FIXME comments.
50377         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50378         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50379         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50380         <bp-asm.h>.
50381         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50382         about bounded pointers.  Remove GKM FIXME comment.
50383         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50384         and <bp-asm.h>.
50385         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50386         pointers.
50387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50388         <bp-sym.h> and <bp-asm.h>.
50389         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50391         <bp-sym.h> and <bp-asm.h>.
50392         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50393         comment.
50394
50395 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50396
50397         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50398         call free(NULL).
50399
50400 2013-03-05  David S. Miller  <davem@davemloft.net>
50401
50402         * po/es.po: Update from translation team.
50403
50404 2013-03-05  Andreas Jaeger  <aj@suse.de>
50405
50406         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50407         <bits/mman-linux.h>.
50408         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50409         is fine.
50410         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50411         <bits/mman-linux.h> to end of file.
50412         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50413         is fine.
50414         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50415         <bits/mman-linux.h> to end of file.
50416         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50417         is fine.
50418         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50419         <bits/mman-linux.h> to end of file.
50420
50421         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50422         (MCL_CURRENT, MCL_FUTURE): Define here.
50423
50424 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50425
50426         [BZ #15232]
50427         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50428         attribute_hidden.
50429         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50430
50431 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50432
50433         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50434         fourth parameter needed for rt_sigprocmask syscall.
50435         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50436         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50437         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50438         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50439         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50440         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50441
50442 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50443
50444         [BZ #13550]
50445         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50446         comment about bounded pointers.
50447         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50448         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50449
50450 2013-03-04  Andreas Jaeger  <aj@suse.de>
50451
50452         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50453         common definitions.
50454
50455         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50456         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50457         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50458         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50459         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50460         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50461
50462 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50463
50464         [BZ #15055]
50465         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50466         __ieee754_sqrl instead of __sqrl.
50467
50468 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50469
50470         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50471         * sysdeps/powerpc/fpu_control.h: ... here.
50472         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50473         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50474         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50475         * sysdeps/powerpc/bits/mathinline.h: ... here.
50476
50477 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50478
50479         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50480         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50481         to just [NEED_DL_SYSINFO_DSO].
50482         * elf/dl-support.c: Likewise.
50483         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50484         * elf/rtld.c (dl_main): Likewise.
50485         * elf/setup-vdso.h (setup_vdso): Likewise.
50486         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50487         * sysdeps/unix/sysv/linux/dl-sysdep.c
50488         (_dl_discover_osversion): Likewise.
50489
50490 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50491
50492         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50493         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50494
50495 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50496
50497         * NEWS: Mention libm performance improvements and non-x86 PI
50498         futex support.
50499
50500         * csu/libc-start.c (__pthread_initialize_minimal): Change
50501         function arguments.
50502         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50503
50504 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50505
50506         [BZ #13550]
50507         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50508         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50509         <bp-sym.h> and <bp-asm.h>.
50510         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50511         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50512         and <bp-asm.h>.
50513         (memcpy): Don't use BP_SYM.
50514         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50515         <bp-asm.h>.
50516         (__mpn_add_n): Don't use BP_SYM.
50517         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50518         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50519         and <bp-asm.h>.
50520         (__mpn_addmul_1): Don't use BP_SYM.
50521         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50522         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50523         <bp-sym.h>.
50524         (_setjmp): Don't use BP_SYM.
50525         (__novmx_setjmp): Likewise.
50526         (__GI__setjmp): Likewise.
50527         (__vmx_setjmp): Likewise.
50528         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50529         <bp-sym.h>.
50530         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50531         (__bzero): Don't use BP_SYM.
50532         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50533         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50534         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50535         <bp-sym.h> and <bp-asm.h>.
50536         (memcpy): Don't use BP_SYM.
50537         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50538         <bp-sym.h> and <bp-asm.h>.
50539         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50540         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50541         <bp-sym.h> and <bp-asm.h>.
50542         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50543         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50544         <bp-asm.h>.
50545         (__mpn_lshift): Don't use BP_SYM.
50546         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50547         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50548         <bp-asm.h>.
50549         (memset): Don't use BP_SYM.
50550         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50551         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50552         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50553         <bp-asm.h>.
50554         (__mpn_mul_1): Don't use BP_SYM.
50555         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50556         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50557         <bp-sym.h> and <bp-asm.h>.
50558         (memcmp): Don't use BP_SYM.
50559         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50560         <bp-sym.h> and <bp-asm.h>.
50561         (memcpy): Don't use BP_SYM.
50562         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50563         <bp-sym.h> and <bp-asm.h>.
50564         (memset): Don't use BP_SYM.
50565         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50566         <bp-sym.h> and <bp-asm.h>.
50567         (strncmp): Don't use BP_SYM.
50568         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50569         <bp-sym.h> and <bp-asm.h>.
50570         (memcpy): Don't use BP_SYM.
50571         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50572         <bp-sym.h> and <bp-asm.h>.
50573         (memset): Don't use BP_SYM.
50574         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50575         <bp-sym.h> and <bp-asm.h>.
50576         (__memchr): Don't use BP_SYM.
50577         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50578         <bp-sym.h> and <bp-asm.h>.
50579         (memcmp): Don't use BP_SYM.
50580         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50581         <bp-sym.h> and <bp-asm.h>.
50582         (memcpy): Don't use BP_SYM.
50583         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50584         <bp-sym.h> and <bp-asm.h>.
50585         (__mempcpy): Don't use BP_SYM.
50586         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50587         <bp-sym.h> and <bp-asm.h>.
50588         (__memrchr): Don't use BP_SYM.
50589         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50590         <bp-sym.h> and <bp-asm.h>.
50591         (memset): Don't use BP_SYM.
50592         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50593         <bp-sym.h> and <bp-asm.h>.
50594         (__rawmemchr): Don't use BP_SYM.
50595         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50596         <bp-sym.h> and <bp-asm.h>.
50597         (__STRCMP): Don't use BP_SYM.
50598         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50599         <bp-sym.h> and <bp-asm.h>.
50600         (strchr): Don't use BP_SYM.
50601         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50602         <bp-sym.h> and <bp-asm.h>.
50603         (__strchrnul): Don't use BP_SYM.
50604         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50605         <bp-sym.h> and <bp-asm.h>.
50606         (strlen): Don't use BP_SYM.
50607         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50608         <bp-sym.h> and <bp-asm.h>.
50609         (strncmp): Don't use BP_SYM.
50610         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50611         <bp-sym.h> and <bp-asm.h>.
50612         (__strnlen): Don't use BP_SYM.
50613         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50614         <bp-asm.h>.
50615         (__mpn_rshift): Don't use BP_SYM.
50616         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50617         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50618         <bp-sym.h> and <bp-asm.h>.
50619         (__sigsetjmp): Don't use BP_SYM.
50620         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50621         (L(start_addresses)): Don't use BP_SYM.
50622         (_start): Likewise.
50623         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50624         <bp-asm.h>.
50625         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50626         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50627         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50628         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50629         <bp-asm.h>.
50630         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50631         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50632         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50633         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50634         <bp-asm.h>.
50635         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50636         comments.
50637         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50638         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50639         <bp-asm.h>.
50640         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50641         FIXME comments.
50642         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50643         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50644         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50645         <bp-asm.h>.
50646         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50647         comment.
50648         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50649         and <bp-asm.h>.
50650         (strncmp): Don't use BP_SYM,
50651         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50652         <bp-asm.h>.
50653         (__mpn_sub_n): Don't use BP_SYM.
50654         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50655         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50656         and <bp-asm.h>.
50657         (__mpn_submul_1): Don't use BP_SYM.
50658         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50660         <bp-sym.h> and <bp-asm.h>.
50661         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50663         <bp-sym.h> and <bp-asm.h>.
50664         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50665         comment.
50666
50667 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50668
50669         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50670         Use ZK to minimize writes to Z.
50671         (sub_magnitudes): Simplify code a bit.
50672         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50673         Use ZK to minimize writes to Z.
50674         (sub_magnitudes): Simplify code a bit.
50675
50676 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50677
50678         * csu/gmon-start.c: Add special exception to license text.
50679
50680 2013-02-27  Richard Henderson  <rth@redhat.com>
50681
50682         * scripts/config.guess: Update from config.git.
50683         * scripts/config.sub: Likewise.
50684
50685 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50686
50687         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50688
50689         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50690
50691         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50692
50693         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50694
50695         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50696
50697 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50698
50699         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50700         [$(build-shared = yes].
50701
50702 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50703
50704         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50705         (__mul): Reduce iterations for calculating mantissa.
50706
50707         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50708         MPTWO.
50709         (__mpranred): Likewise.
50710
50711         [BZ #15160]
50712         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50713         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50714
50715 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50716
50717         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50718         Define __attribute__.
50719
50720 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50721
50722         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50723         unused.
50724         * posix/regex_internal.h (__attribute): Remove.
50725         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50726         (re_string_context_at): Likewise.
50727         (bitset_not): Use __attribute__ and mark function as possibly
50728         unused.
50729         (bitset_merge): Likewise.
50730         (bitset_mask): Likewise.
50731         (re_string_char_size_at): Likewise.
50732         (re_string_wchar_at): Likewise.
50733         (re_string_elem_size_at): Likewise.
50734
50735 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50736
50737         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50738         code.
50739         (cc32): Likewise.
50740
50741         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50742         (__acr): Likewise.
50743         (__cpy): Likewise.
50744         (norm): Likewise.
50745         (denorm): Likewise.
50746         (__dbl_mp): Likewise.
50747         (add_magnitudes): Likewise.
50748         (sub_magnitudes): Likewise.
50749         (__mul): Likewise.
50750         (__inv): Likewise.
50751
50752         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50753         style.
50754
50755         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50756         style.
50757
50758         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50759         code.
50760
50761         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50762         up changes with default code.
50763         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50764         Likewise.
50765
50766 2013-02-24  Allan McRae  <allan@archlinux.org>
50767
50768         * manual/socket.texi (The Internet Namespace): Order menu items
50769         to match that in the file.
50770
50771         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50772         node listing of the info page menu.
50773
50774 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50775
50776         [BZ #13550]
50777         * sysdeps/i386/bp-asm.h: Remove file.
50778         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50779         (PARMS): Do not use macros from bp-asm.h.
50780         (S1): Likewise.
50781         (S2): Likewise.
50782         (SIZE): Likewise.
50783         (__mpn_add_n): Do not use BP_SYM
50784         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50785         "bp-asm.h".
50786         (PARMS): Do not use macros from bp-asm.h.
50787         (S1): Likewise.
50788         (SIZE): Likewise.
50789         (__mpn_addmul_1): Do not use BP_SYM
50790         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50791         "bp-asm.h".
50792         (PARMS): Do not use macros from bp-asm.h.
50793         (SIGMSK): Likewise.
50794         (_setjmp): Likewise.  Do not use BP_SYM.
50795         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50796         "bp-asm.h".
50797         (PARMS): Do not use macros from bp-asm.h.
50798         (SIGMSK): Likewise.
50799         (setjmp): Likewise.  Do not use BP_SYM.
50800         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50801         "bp-asm.h".
50802         (PARMS): Do not use macros from bp-asm.h.
50803         (__frexp): Do not use BP_SYM.
50804         (frexp): Likewise.
50805         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50806         "bp-asm.h".
50807         (PARMS): Do not use macros from bp-asm.h.
50808         (__frexpf): Do not use BP_SYM.
50809         (frexpf): Likewise.
50810         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50811         "bp-asm.h".
50812         (PARMS): Do not use macros from bp-asm.h.
50813         (__frexpl): Do not use BP_SYM.
50814         (frexpl): Likewise.
50815         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50816         "bp-asm.h".
50817         (PARMS): Do not use macros from bp-asm.h.
50818         (__remquo): Do not use BP_SYM.
50819         (remquo): Likewise.
50820         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50821         "bp-asm.h".
50822         (PARMS): Do not use macros from bp-asm.h.
50823         (__remquof): Do not use BP_SYM.
50824         (remquof): Likewise.
50825         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50826         "bp-asm.h".
50827         (PARMS): Do not use macros from bp-asm.h.
50828         (__remquol): Do not use BP_SYM.
50829         (remquol): Likewise.
50830         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50831         "bp-asm.h".
50832         (PARMS): Do not use macros from bp-asm.h.
50833         (DEST): Likewise.
50834         (SRC): Likewise.
50835         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50836         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50837         "bp-asm.h".
50838         (PARMS): Do not use macros from bp-asm.h.
50839         (strlen): Do not use BP_SYM.
50840         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50841         "bp-asm.h".
50842         (PARMS): Do not use macros from bp-asm.h.
50843         (S1): Likewise.
50844         (S2): Likewise.
50845         (SIZE): Likewise.
50846         (__mpn_add_n): Do not use BP_SYM.
50847         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50848         "bp-asm.h".
50849         (PARMS): Do not use macros from bp-asm.h.
50850         (S1): Likewise.
50851         (SIZE): Likewise.
50852         (__mpn_addmul_1): Do not use BP_SYM.
50853         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50854         weak_alias.
50855         (bzero): Likewise.
50856         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50857         "bp-asm.h".
50858         (PARMS): Do not use macros from bp-asm.h.
50859         (S): Likewise.
50860         (SIZE): Likewise.
50861         (__mpn_lshift): Do not use BP_SYM.
50862         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50863         "bp-asm.h".
50864         (PARMS): Do not use macros from bp-asm.h.
50865         (DEST): Likewise.
50866         (SRC): Likewise.
50867         (LEN): Likewise.
50868         (memcpy): Likewise.  Do not use BP_SYM.
50869         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50870         libc_hidden_def and weak_alias.
50871         (mempcpy): Do not use BP_SYM in weak_alias.
50872         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50873         "bp-asm.h".
50874         (PARMS): Do not use macros from bp-asm.h.
50875         (DEST): Likewise.
50876         (LEN): Likewise.
50877         [!BZERO_P] (CHR): Likewise.
50878         (memset): Likewise.  Do not use BP_SYM.
50879         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50880         "bp-asm.h".
50881         (PARMS): Do not use macros from bp-asm.h.
50882         (S1): Likewise.
50883         (SIZE): Likewise.
50884         (__mpn_mul_1): Do not use BP_SYM.
50885         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50886         "bp-asm.h".
50887         (PARMS): Do not use macros from bp-asm.h.
50888         (S): Likewise.
50889         (SIZE): Likewise.
50890         (__mpn_rshift): Do not use BP_SYM.
50891         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50892         "bp-asm.h".
50893         (PARMS): Do not use macros from bp-asm.h.
50894         (STR): Likewise.
50895         (CHR): Likewise.
50896         (strchr): Likewise.  Do not use BP_SYM.
50897         (index): Do not use BP_SYM in weak_alias.
50898         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50899         "bp-asm.h".
50900         (PARMS): Do not use macros from bp-asm.h.
50901         (DEST): Likewise.
50902         (SRC): Likewise.
50903         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50904         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50905         "bp-asm.h".
50906         (PARMS): Do not use macros from bp-asm.h.
50907         (strlen): Do not use BP_SYM.
50908         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50909         "bp-asm.h".
50910         (PARMS): Do not use macros from bp-asm.h.
50911         (S1): Likewise.
50912         (S2): Likewise.
50913         (SIZE): Likewise.
50914         (__mpn_sub_n): Do not use BP_SYM.
50915         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50916         "bp-asm.h".
50917         (PARMS): Do not use macros from bp-asm.h.
50918         (S1): Likewise.
50919         (SIZE): Likewise.
50920         (__mpn_submul_1): Do not use BP_SYM.
50921         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50922         "bp-asm.h".
50923         (PARMS): Do not use macros from bp-asm.h.
50924         (S1): Likewise.
50925         (S2): Likewise.
50926         (SIZE): Likewise.
50927         (__mpn_add_n): Do not use BP_SYM.
50928         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50929         weak_alias.
50930         (bzero): Likewise.
50931         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50932         "bp-asm.h".
50933         (PARMS): Do not use macros from bp-asm.h.
50934         (BLK2): Likewise.
50935         (LEN): Likewise.
50936         (memcmp): Do not use BP_SYM.
50937         (bcmp): Do not use BP_SYM in weak_alias.
50938         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50939         "bp-asm.h".
50940         (PARMS): Do not use macros from bp-asm.h.
50941         (DEST): Likewise.
50942         (SRC): Likewise.
50943         (LEN): Likewise.
50944         (memcpy): Likewise.  Do not use BP_SYM.
50945         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50946         "bp-asm.h".
50947         (PARMS): Do not use macros from bp-asm.h.
50948         (DEST): Likewise.
50949         (SRC): Likewise.
50950         (LEN): Likewise.
50951         (memmove): Likewise.  Do not use BP_SYM.
50952         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50953         "bp-asm.h".
50954         (PARMS): Do not use macros from bp-asm.h.
50955         (DEST): Likewise.
50956         (SRC): Likewise.
50957         (LEN): Likewise.
50958         (__mempcpy): Likewise.  Do not use BP_SYM.
50959         (mempcpy): Do not use BP_SYM in weak_alias.
50960         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50961         "bp-asm.h".
50962         (PARMS): Do not use macros from bp-asm.h.
50963         (DEST): Likewise.
50964         (LEN): Likewise.
50965         [!BZERO_P] (CHR): Likewise.
50966         (memset): Likewise.  Do not use BP_SYM.
50967         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50968         "bp-asm.h".
50969         (PARMS): Do not use macros from bp-asm.h.
50970         (STR2): Likewise.
50971         (strcmp): Do not use BP_SYM.
50972         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50973         "bp-asm.h".
50974         (PARMS): Do not use macros from bp-asm.h.
50975         (STR): Likewise.
50976         (DELIM): Likewise.
50977         [USE_AS_STRTOK_R] (SAVE): Likewise.
50978         (FUNCTION): Likewise.  Do not use BP_SYM.
50979         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50980         aliases.
50981         (strtok_r): Likewise.
50982         (__GI___strtok_r): Likewise.
50983         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50984         (PARMS): Do not use macros from bp-asm.h.
50985         (S): Likewise.
50986         (SIZE): Likewise.
50987         (__mpn_lshift): Do not use BP_SYM.
50988         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50989         (PARMS): Do not use macros from bp-asm.h.
50990         (STR): Likewise.
50991         (CHR): Likewise.
50992         (__memchr): Do not use BP_SYM.
50993         (memchr): Do not use BP_SYM in weak_alias.
50994         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50995         (PARMS): Do not use macros from bp-asm.h.
50996         (BLK2): Likewise.
50997         (LEN): Likewise.
50998         (memcmp): Do not use BP_SYM.
50999         (bcmp): Do not use BP_SYM in weak_alias.
51000         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51001         (PARMS): Do not use macros from bp-asm.h.
51002         (S1): Likewise.
51003         (SIZE): Likewise.
51004         (__mpn_mul_1): Do not use BP_SYM.
51005         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51006         "bp-asm.h".
51007         (PARMS): Do not use macros from bp-asm.h.
51008         (STR): Likewise.
51009         (CHR): Likewise.
51010         (__rawmemchr): Do not use BP_SYM.
51011         (rawmemchr): Do not use BP_SYM in weak_alias.
51012         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51013         (PARMS): Do not use macros from bp-asm.h.
51014         (S): Likewise.
51015         (SIZE): Likewise.
51016         (__mpn_rshift): Do not use BP_SYM.
51017         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51018         (PARMS): Do not use macros from bp-asm.h.
51019         (SIGMSK): Likewise.
51020         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51021         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51022         (_start): Do not use BP_SYM.
51023         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51024         (PARMS): Do not use macros from bp-asm.h.
51025         (DEST): Likewise.
51026         (SRC): Likewise.
51027         (__stpcpy): Likewise.  Do not use BP_SYM.
51028         (stpcpy): Do not use BP_SYM in weak_alias.
51029         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51030         "bp-asm.h".
51031         (PARMS): Do not use macros from bp-asm.h.
51032         (DEST): Likewise.
51033         (SRC): Likewise.
51034         (LEN): Likewise.
51035         (__stpncpy): Likewise.  Do not use BP_SYM.
51036         (stpncpy): Do not use BP_SYM in weak_alias.
51037         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51038         (PARMS): Do not use macros from bp-asm.h.
51039         (STR): Likewise.
51040         (CHR): Likewise.
51041         (strchr): Likewise.  Do not use BP_SYM.
51042         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51043         "bp-asm.h".
51044         (PARMS): Do not use macros from bp-asm.h.
51045         (STR): Likewise.
51046         (CHR): Likewise.
51047         (__strchrnul): Likewise.  Do not use BP_SYM.
51048         (strchrnul): Do not use BP_SYM in weak_alias.
51049         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51050         "bp-asm.h".
51051         (PARMS): Do not use macros from bp-asm.h.
51052         (STOP): Likewise.
51053         (strcspn): Do not use BP_SYM.
51054         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51055         "bp-asm.h".
51056         (PARMS): Do not use macros from bp-asm.h.
51057         (STR): Likewise.
51058         (STOP): Likewise.
51059         (strpbrk): Likewise.  Do not use BP_SYM.
51060         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51061         "bp-asm.h".
51062         (PARMS): Do not use macros from bp-asm.h.
51063         (STR): Likewise.
51064         (CHR): Likewise.
51065         (strrchr): Likewise.  Do not use BP_SYM.
51066         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51067         (PARMS): Do not use macros from bp-asm.h.
51068         (SKIP): Likewise.
51069         (strspn): Do not use BP_SYM.
51070         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51071         (PARMS): Do not use macros from bp-asm.h.
51072         (STR): Likewise.
51073         (DELIM): Likewise.
51074         (SAVE): Likewise.
51075         (FUNCTION): Likewise.  Do not use BP_SYM.
51076         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51077         aliases.
51078         (strtok_r): Likewise.
51079         (__GI___strtok_r): Likewise.
51080         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51081         (PARMS): Do not use macros from bp-asm.h.
51082         (S1): Likewise.
51083         (S2): Likewise.
51084         (SIZE): Likewise.
51085         (__mpn_sub_n): Do not use BP_SYM.
51086         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51087         "bp-asm.h".
51088         (PARMS): Do not use macros from bp-asm.h.
51089         (S1): Likewise.
51090         (SIZE): Likewise.
51091         (__mpn_submul_1): Do not use BP_SYM.
51092         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51093         <bp-sym.h>.
51094         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51095         and <bp-asm.h>.
51096         (PARMS): Do not use macros from bp-asm.h.
51097         (FLAGS): Likewise.
51098         (PTID): Likewise.
51099         (TLS): Likewise.
51100         (CTID): Likewise.
51101         (__clone): Do not use BP_SYM.
51102         (clone): Do not use BP_SYM in weak_alias.
51103         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51104         and <bp-asm.h>.
51105         (PARMS): Do not use macros from bp-asm.h.
51106         (LEN): Likewise.
51107         (__mmap64): Do not use BP_SYM.
51108         (mmap64): Do not use BP_SYM in weak_alias.
51109         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51110         <bp-sym.h> and <bp-asm.h>.
51111         (PARMS): Do not use macros from bp-asm.h.
51112         (__posix_fadvise64_l64): Do not use BP_SYM.
51113         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51114         (PARMS): Do not use macros from bp-asm.h.
51115         (NSOPS): Likewise.
51116         (semtimedop): Do not use BP_SYM.
51117         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51118         and <bp-asm.h>.
51119
51120 2013-02-21  Allan McRae  <allan@archlinux.org>
51121
51122         * manual/message.texi (Charset conversion in gettext):
51123         Move @end statement to beginning of line.
51124
51125 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51126
51127         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51128         static.
51129         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51130         Likewise.
51131
51132         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51133         (denorm): Likewise.
51134         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51135         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51136
51137 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51138
51139         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51140         tail-call to the resolved function if pltexit isn't needed.
51141
51142 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51143
51144         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51145         or Y being zero as being unlikely.
51146         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51147         Likewise.
51148
51149 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51150
51151         * manual/nss.texi (System Databases and Name Service Switch):
51152         Remove frobnicate @pxref.
51153
51154 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51155
51156         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51157         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51158
51159 2013-02-20  Petr Machata  <pmachata@redhat.com>
51160
51161         * elf/elf.h (R_ARM_TARGET1): New macro.
51162         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51163         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51164         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51165         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51166         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51167         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51168         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51169         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51170         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51171         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51172         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51173         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51174         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51175         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51176         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51177         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51178         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51179         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51180         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51181         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51182         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51183         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51184         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51185         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51186         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51187         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51188         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51189         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51190         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51191         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51192         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51193         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51194         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51195         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51196         (R_ARM_THM_GOT_BREL12): Likewise.
51197         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51198         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51199         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51200         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51201         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51202         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51203         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51204         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51205         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51206
51207 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51208
51209         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51210         __attribute_used__ to __attribute__ ((unused)).
51211
51212 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51213
51214         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51215         powerpc mpa.c.
51216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51217         comment formatting.
51218         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51219
51220 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51221
51222         [BZ #13550]
51223         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51224         Remove macro.
51225         (ENTER): Remove both macro definitions.
51226         (LEAVE): Likewise.
51227         (CHECK_BOUNDS_LOW): Likewise.
51228         (CHECK_BOUNDS_HIGH): Likewise.
51229         (CHECK_BOUNDS_BOTH): Likewise.
51230         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51231         (RETURN_BOUNDED_POINTER): Likewise.
51232         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51233         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51234         (POP_ERRNO_LOCATION_RETURN): Likewise.
51235         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51236         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51237         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51238         macros.
51239         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51240         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51241         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51242         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51243         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51244         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51245         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51246         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51247         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51248         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51249         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51250         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51251         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51252         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51253         removed macros.
51254         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51255         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51256         macros.
51257         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51258         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51259         * sysdeps/i386/i586/memset.S (memset): Likewise.
51260         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51261         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51262         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51263         macros.
51264         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51265         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51266         Change uses of L(2) to L(out).
51267         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51268         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51269         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51270         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51271         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51272         removed macros.
51273         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51274         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51275         macros.
51276         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51277         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51278         (RETURN): Do not use macro LEAVE.
51279         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51280         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51281         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51282         * sysdeps/i386/i686/memset.S (memset): Likewise.
51283         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51284         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51285         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51286         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51287         Likewise.
51288         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51289         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51290         L(1_2) and L(1_3) into L(1).
51291         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51292         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51293         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51294         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51295         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51296         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51297         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51298         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51299         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51300         macros.
51301         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51302         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51303         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51304         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51305         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51306         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51307         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51308         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51309         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51310         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51311         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51312         * sysdeps/i386/strspn.S (strspn): Likewise.
51313         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51314         conditional code.
51315         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51316         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51317         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51318         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51319         L(1_3) into L(1_1).
51320         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51321         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51322         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51323         macros.
51324         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51325
51326 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51327
51328         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51329         macro.
51330
51331 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51332
51333         * math/atest-exp.c (exp_mpn): Remove ROUND.
51334         * math/atest-exp2.c (exp_mpn): Likewise.
51335         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51336
51337         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51338         * stdlib/tst-tls-atexit-lib.c: Likewise.
51339         * stdlib/tst-tls-atexit.c: Likewise.
51340
51341 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51342
51343         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51344         and __attribute_alloc_size__.
51345
51346 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51347
51348         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51349         __attribute_alloc_size__.
51350         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51351         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51352
51353 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51354
51355         * include/programs/xmalloc.h: New file.
51356         * catgets/gencat.c: Include it.
51357         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51358         * elf/pldd.c: Likewise.
51359         * iconv/iconv_charmap.c: Likewise.
51360         * iconv/iconvconfig.c: Likewise.
51361         * iconv/strtab.c: Likewise.
51362         * locale/programs/locale.c: Likewise.
51363         * locale/programs/localedef.h: Likewise.
51364         * locale/programs/simple-hash.c: Likewise.
51365         * nscd/nscd.h: Likewise.
51366         * nss/makedb.c: Likewise.
51367         * sysdeps/generic/ldconfig.h: Likewise.
51368
51369 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51370
51371         * Versions.def: Add GLIBC_2.18.
51372         * include/link.h (struct link_map): New member l_tls_dtor_count.
51373         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51374         (__call_tls_dtors): Likewise.
51375         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51376         __cxa_thread_atexit_impl.
51377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51378         Likewise.
51379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51380         Likewise.
51381         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51382         Likewise.
51383         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51384         Likewise.
51385         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51386         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51387         Likewise.
51388         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51389         Likewise.
51390         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51391         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51392         Likewise.
51393         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51394         (tests): Add test case tst-tls-atexit.
51395         (modules-names): Add shared library for tst-tls-atexit.
51396         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51397         (GLIBC_PRIVATE): Add __call_tls_dtors.
51398         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51399         for libstdc++.
51400         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51401         * stdlib/tst-tls-atexit.c: New test case.
51402         * stdlib/tst-tls-atexit-lib.c: New test case.
51403
51404         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51405
51406         * elf/Versions (ld): Add _dl_find_dso_for_object.
51407         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51408         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51409         (dl_open_worker): Use _dl_find_dso_for_object.
51410         * elf/dl-sym.c (do_sym): Likewise.
51411         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51412
51413 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51414
51415         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51416         Syntactic changes only.
51417         (_dl_runtime_profile): Do a tail-call to the resolved function.
51418
51419 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51420
51421         [BZ #13550]
51422         * sysdeps/x86_64/bp-asm.h: Remove file.
51423         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51424         <bp-sym.h> and <bp-asm.h>.
51425         (__clone): Do not use BP_SYM.
51426         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51427         <bp-sym.h> and <bp-asm.h>.
51428         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51429         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51430         "bp-asm.h".
51431         (_setjmp): Do not use BP_SYM.
51432         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51433         "bp-asm.h".
51434         (setjmp): Do not use BP_SYM.
51435         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51436         libc_hidden_def.
51437         (mempcpy): Do not use BP_SYM in weak_alias.
51438         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51439         "bp-asm.h".
51440         (strchr): Do not use BP_SYM.
51441         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51442         "bp-asm.h".
51443         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51444         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51445         (_start): Do not use BP_SYM.
51446         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51447         "bp-asm.h".
51448         (strcat): Do not use BP_SYM.
51449         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51450         "bp-asm.h".
51451         (STRCMP): Do not use BP_SYM.
51452         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51453         "bp-asm.h".
51454         (STRCPY): Do not use BP_SYM.
51455         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51456         "bp-asm.h".
51457         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51458         "bp-asm.h".
51459         (FUNCTION): Do not use BP_SYM.
51460         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51461         weak_alias.
51462         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51463
51464 2013-02-17  Andreas Jaeger  <aj@suse.de>
51465
51466         * time/Versions: Sort entries.
51467         * string/Versions: Likewise.
51468         * resolv/Versions: Likewise.
51469         * posix/Versions: Likewise.
51470         * iconv/Versions: Likewise.
51471         * elf/Versions: Likewise.
51472         * wcsmbs/Versions: Likewise.
51473
51474 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51475
51476         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51477         loop termination condition.
51478
51479         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51480         variable to calculate EZ.
51481         (__sqr): Likewise.
51482
51483         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51484         the lower precision input.
51485
51486 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51487
51488         [BZ #13550]
51489         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51490         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51491         (run-via-rtld-prefix): Do not handle %-bp tests.
51492         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51493         (all-object-suffixes): Remove .ob.
51494         (bppfx): Remove variable.
51495         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51496         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51497         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51498         [$(build-bounded) = yes] (libtype.ob): Likewise.
51499         * Makerules (elide-routines.ob): Remove variable.
51500         (do-tests-clean): Do not handle *-bp.out.
51501         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51502         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51503         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51504         (tests): Do not include $(tests-bp.out).
51505         (xtests): Do not include $(xtests-bp.out).
51506         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51507         [$(build-bounded) = yes] ($(addprefix
51508         $(objpfx),$(binaries-bounded))): Remove rule.
51509         ($(objpfx)%-bp.out): Remove rule.
51510         * config.make.in (build-bounded): Remove variable.
51511         * crypt/Makefile [$(build-bounded) = yes]
51512         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51513         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51514         append to variable.
51515         [$(build-bounded) = yes] (install-lib): Likewise.
51516         [$(build-bounded) = yes] (generated): Likewise.
51517         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51518         Remove rule.
51519         * intl/Makefile [$(build-bounded) = yes]
51520         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51521         * math/Makefile [$(build-bounded) = yes]
51522         ($(tests:%=$(objpfx)%-bp): Likewise.
51523         * misc/Makefile [$(build-bounded) = yes]
51524         ($(objpfx)tst-tsearch-bp): Likewise.
51525         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51526         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51527         Remove dependency.
51528         * string/Makefile (o-objects.ob): Remove variable.
51529         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51530         (CFLAGS-.ob): Remove variable.
51531         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51532         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51533         both definitions of variable.
51534         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51535         (ASFLAGS-.ob): Remove variable.
51536
51537 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51538
51539         [BZ #13550]
51540         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51541         Remove __BOUNDED_POINTERS__ from condition.
51542         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51543         * string/bits/string2.h [!__NO_STRING_INLINES &&
51544         !__BOUNDED_POINTERS__]: Likewise.
51545         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51546         Likewise.
51547         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51548         Remove conditional code.
51549         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51550         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51551         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51552         condition.
51553
51554         [BZ #13550]
51555         * csu/libc-start.c: Do not include <bp-sym.h>.
51556         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51557         * elf/dl-open.c: Do not include <bp-sym.h>.
51558         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51559         * math/fegetenv.c: Do not include <bp-sym.h>.
51560         (fegetenv): Do not use BP_SYM in versioned symbols.
51561         * nptl/sysdeps/pthread/bits/libc-lockP.h
51562         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51563         <bp-sym.h>.
51564         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51565         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51566         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51567         (__pthread_mutex_destroy): Likewise.
51568         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51569         (__pthread_mutex_lock): Likewise.
51570         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51571         (__pthread_mutex_trylock): Likewise.
51572         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51573         (__pthread_mutex_unlock): Likewise.
51574         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51575         (__pthread_mutexattr_init): Likewise.
51576         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51577         (__pthread_mutexattr_destroy): Likewise.
51578         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51579         (__pthread_mutexattr_settype): Likewise.
51580         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51581         (__pthread_rwlock_init): Likewise.
51582         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51583         (__pthread_rwlock_destroy): Likewise.
51584         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51585         (__pthread_rwlock_rdlock): Likewise.
51586         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51587         (__pthread_rwlock_tryrdlock): Likewise.
51588         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51589         (__pthread_rwlock_wrlock): Likewise.
51590         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51591         (__pthread_rwlock_trywrlock): Likewise.
51592         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51593         (__pthread_rwlock_unlock): Likewise.
51594         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51595         (__pthread_key_create): Likewise.
51596         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51597         (__pthread_setspecific): Likewise.
51598         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51599         (__pthread_getspecific): Likewise.
51600         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51601         Likewise.
51602         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51603         (_pthread_cleanup_push_defer): Likewise.
51604         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51605         (_pthread_cleanup_pop_restore): Likewise.
51606         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51607         (pthread_setcancelstate): Likewise.
51608         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51609         <bp-sym.h>.
51610         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51611         (memchr): Do not use BP_SYM in weak_alias.
51612         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51613         (fegetenv): Do not use BP_SYM in versioned symbols.
51614         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51615         (fesetenv): Do not use BP_SYM in versioned symbols.
51616         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51617         (feupdateenv): Do not use BP_SYM in versioned symbols.
51618         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51619         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51620         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51621         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51622         (open64): Do not use BP_SYM in weak_alias.
51623         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51624         (fegetenv): Do not use BP_SYM in versioned symbols.
51625         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51626         (fesetenv): Do not use BP_SYM in versioned symbols.
51627         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51628         (feupdateenv): Do not use BP_SYM in versioned symbols.
51629         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51630         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51631         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51632         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51633         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51634         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51635         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51636         <bp-sym.h>.
51637         (__libc_start_main): Do not use BP_SYM.
51638
51639 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51640
51641         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51642         redundant return line.
51643         (norm): Likewise.
51644         (denorm): Likewise.
51645         (dbl_mp): Likewise.
51646         (sub_magnitudes): Likewise.
51647         (__add): Likewise.
51648         (__sub): Likewise.
51649         (__mul): Likewise.
51650         (__inv): Likewise.
51651         (__dvd): Likewise.
51652         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51653         (norm): Likewise.
51654         (denorm): Likewise.
51655         (dbl_mp): Likewise.
51656         (sub_magnitudes): Likewise.
51657         (__add): Likewise.
51658         (__sub): Likewise.
51659         (__mul): Likewise.
51660         (__inv): Likewise.
51661         (__dvd): Likewise.
51662
51663         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51664         instead of __mul.
51665         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51666         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51667         (cc32): Likewise.
51668
51669         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51670         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51671         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51672         of __mul for squares.
51673         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51674         function
51675         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51676         Likewise.
51677         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51678         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51679
51680 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51681
51682         [BZ #13550]
51683         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51684         code.
51685         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51686         prototype or function definition.  Rename ubp_* variables and
51687         parameters.  Remove argv definitions conditional on
51688         [__BOUNDED_POINTERS__].
51689         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51690         * elf/dl-runtime.c (_dl_fixup): Likewise.
51691         * include/set-hooks.h (RUN_HOOK): Likewise.
51692         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51693         definition.
51694         * string/strcpy.c (strcpy): Do not use __unbounded.
51695         * sysdeps/generic/frame.h (struct layout): Likewise.
51696         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51697         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51698         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51699         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51700         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51701         (__backtrace): Likewise.
51702         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51703         use __ptrvalue.
51704         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51705         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51706         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51707         Likewise.
51708         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51709         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51710         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51711         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51712         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51713         Do not use __unbounded.
51714         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51715         Rename __unboundedrlimits parameter to rlimits in prototype.
51716         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51717         Do not use __unbounded.
51718         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51719         not use __ptrvalue.
51720         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51721         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51722         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51723         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51724         __ptrvalue or __unbounded.
51725         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51726         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51727         use __unbounded.
51728         (__new_msgctl): Do not use __ptrvalue.
51729         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51730         __unbounded.
51731         (__libc_msgrcv): Do not use __ptrvalue.
51732         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51733         startup_info): Do not use __unbounded.
51734         (__libc_start_main): Likewise.  Rename ubp_* variables and
51735         parameters.  Remove argv definitions conditional on
51736         [__BOUNDED_POINTERS__].
51737         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51738         __ptrvalue.
51739         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51740         use __unbounded.
51741         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51742         or __ptrvalue.
51743         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51744         use __unbounded.
51745         (__new_shmctl): Do not use __ptrvalue.
51746         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51747         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51748         Likewise.
51749         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51750         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51751         (__libc_sigaction): Likewise.
51752         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51753         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51754         Likewise.
51755         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51756
51757 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51758
51759         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51760
51761         * string/mempcpy.c: Implement by calling memcpy.
51762
51763 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51764
51765         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51766
51767         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51768         evaluation.
51769
51770         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51771         values in the mantissa.
51772
51773         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51774         minimize writes to Z.
51775         (sub_magnitudes): Simplify code a bit.
51776
51777 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51778
51779         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51780         from the message.  The linker prefixes all warnings with that already.
51781
51782 2013-02-12  Andreas Schwab  <schwab@suse.de>
51783
51784         [BZ #15078]
51785         * posix/regexec.c (extend_buffers): Add parameter min_len.
51786         (check_matching): Pass minimum needed length.
51787         (clean_state_log_if_needed): Likewise.
51788         (get_subexp): Likewise.
51789         * posix/Makefile (tests): Add bug-regex34.
51790         (bug-regex34-ENV): Define.
51791         * posix/bug-regex34.c: New file.
51792
51793         [BZ #11561]
51794         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51795         elements compare against the byte sequence of it, not its name.
51796         * posix/Makefile (tests): Add bug-regex35.
51797         (bug-regex35-ENV): Define.
51798         * posix/bug-regex35.c: New file.
51799
51800 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51801
51802         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51803         comment.
51804         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51805         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51806         (CHECK_EOL): Add undef.
51807
51808 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51809
51810         * bits/stdlib-bsearch.h: New file.
51811         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51812         * stdlib/stdlib.h: Likewise.
51813
51814 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51815
51816         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51817         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51818         declaration.
51819         * manual/search.texi (Array Search Function): Add missing const in
51820         lfind prototype.
51821         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51822         declaration to use rlim_t.
51823         (Basic Scheduling Functions): Remove erroneous const from
51824         sched_getparam prototype.  Remove erroneous * from
51825         sched_get_priority_max and sched_get_priority_min prototypes.
51826         (Resource Usage): Fix summary @comment on vtimes to refer to
51827         sys/vtimes.h rather than vtimes.h.
51828         Add missing *s in vtimes prototype.
51829         (Limits on Resources): Fix ulimit prototype to return long int.
51830         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51831         prototypes to use long int rather than double.
51832         (BSD Random): Fix initstate and setstate to use char *, not void *.
51833         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51834         prototype to make second argument 'struct aiocb64 *const[]'.
51835         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51836         (Status of AIO Operations): Remove erroneous const in aio_return and
51837         aio_return64 prototypes.
51838         (Synchronizing I/O): Fix sync prototype to return void.
51839         * manual/startup.texi (Suboptions): Remove an erroneous const in
51840         getsubopt prototype.
51841         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51842         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51843         use size_t rather than int.
51844         (Scanning All Users): Likewise for getpwent_r.
51845         (Setting Groups): Add missing const to setgroups prototype.
51846         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51847         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51848         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51849         'const void *' rather than 'const char *'.
51850         (Host Address Functions): Likewise for inet_ntop.
51851         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51852         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51853         ssize_t for return value.
51854         (Sending Data): Likewise for send, sendto, sendmsg.
51855         (Socket Option Functions): Add a missing const in setsockopt prototype.
51856         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51857         use wchar_t for the argument.
51858         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51859         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51860         take no arguments.
51861         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51862         double/float/long double for second argument.
51863         Fix return types of significand, significandf, significandl.
51864         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51865         argument in fchmod prototype.
51866         (File Owner): Use uid_t and gid_t in fchown prototype.
51867         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51868         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51869         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51870         use 'const struct dirent **' as argument types to CMP function pointer
51871         argument.
51872         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51873         (File Times): Fix summary magic @comment for struct utimbuf and utime
51874         to refer to utime.h, not time.h.
51875         * manual/string.texi (Argz Functions): Add missing const in
51876         argz_extract and argz_next prototypes.
51877         (Finding Tokens in a String): Likewise for basename.
51878         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51879         (Copying and Concatenation): Fix typo in wmemmove prototype.
51880         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51881         (Signal Stack): Remove erroneous const in sigstack prototype.
51882         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51883         prototype.
51884         (Simple Calendar Time): Likewise for stime.
51885         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51886         prototype.
51887         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51888         say sys/sysctl.h instead.
51889         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51890         and vsyslog prototypes.
51891
51892 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51893
51894         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51895         Remove.
51896
51897 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51898
51899         * misc/sys/mman.h: Fix typo in mremap comment.
51900
51901 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51902
51903         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51904         the '\0' terminator.
51905
51906 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51907
51908         [BZ #13550]
51909         * debug/segfault.c: Don't include <bp-checks.h>.
51910         * sysdeps/generic/bp-checks.h: Remove file.
51911         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51912         (__GETDENTS): Don't use CHECK_N.
51913         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51914         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51915         (__getgroups): Don't use CHECK_N.
51916         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51917         (setgroups): Don't use CHECK_N.
51918         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51919         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51920         (__libc_msgrcv): Don't use CHECK_N.
51921         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51922         (__libc_msgsnd): Don't use CHECK_N.
51923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51924         <bp-checks.h>.
51925         (__libc_pread): Don't use CHECK_N.
51926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51927         include <bp-checks.h>.
51928         (__libc_pread64): Don't use CHECK_N.
51929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51930         include <bp-checks.h>.
51931         (__libc_pwrite): Don't use CHECK_N.
51932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51933         include <bp-checks.h>.
51934         (__libc_pwrite64): Don't use CHECK_N.
51935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51936         <bp-checks.h>.
51937         (__libc_pread): Don't use CHECK_N.
51938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51939         include <bp-checks.h>.
51940         (__libc_pread64): Don't use CHECK_N.
51941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51942         include <bp-checks.h>.
51943         (__libc_pwrite): Don't use CHECK_N.
51944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51945         include <bp-checks.h>.
51946         (__libc_pwrite64): Don't use CHECK_N.
51947         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51948         (do_pread): Don't use CHECK_N.
51949         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51950         (do_pread64): Don't use CHECK_N.
51951         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51952         (do_pwrite): Don't use CHECK_N.
51953         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51954         (do_pwrite64): Don't use CHECK_N.
51955         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51956         (__libc_readv): Don't use CHECK_N.
51957         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51958         (semop): Don't use CHECK_N.
51959         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51960         <bp-checks.h>.
51961         (semtimedop): Don't use CHECK_N.
51962         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51963         (__libc_pread): Don't use CHECK_N.
51964         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51965         <bp-checks.h>.
51966         (__libc_pread64): Don't use CHECK_N.
51967         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51968         <bp-checks.h>.
51969         (__libc_pwrite): Don't use CHECK_N.
51970         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51971         <bp-checks.h>.
51972         (__libc_pwrite64): Don't use CHECK_N.
51973         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51974         <bp-checks.h>.
51975         (__libc_msgrcv): Don't use CHECK_N.
51976         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51977         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51978         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51979         (__libc_writev): Don't use CHECK_N.
51980
51981 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51982
51983         * string/strcpy.c: Removed unused variable.
51984
51985         * Makeconfig (+sysdep-includes): Define with := rather than =.
51986         Use an existing include/ subdir of each sysdeps dir before it.
51987
51988 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51989
51990         * nscd/connection.c (register_traced_file): Comment function.
51991         [HAVE_INOTIFY] (union __inev): Define.
51992         [HAVE_INOTIFY] (inotify_check_files): New function.
51993         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51994         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51995         clear_db_cache.
51996         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51997
51998 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51999
52000         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52001         loaded if not already and that a failure is permanent.
52002
52003 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52004
52005         [BZ #15006]
52006         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52007         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52008
52009 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52010
52011         [BZ #13550]
52012         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52013         (CHECK_1_NULL_OK): Likewise.
52014         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52015         (__fxstat): Do not use CHECK_1.
52016         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52017         <bp-checks.h>.
52018         (___fxstat64): Do not use CHECK_1.
52019         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52020         <bp-checks.h>.
52021         (__fxstatat): Do not use CHECK_1.
52022         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52023         <bp-checks.h>.
52024         (__fxstatat64): Do not use CHECK_1.
52025         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52026         <bp-checks.h>.
52027         (__fxstat): Do not use CHECK_1.
52028         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52029         <bp-checks.h>.
52030         (__fxstatat): Do not use CHECK_1.
52031         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52032         <bp-checks.h>.
52033         (__getresgid): Do not use CHECK_1.
52034         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52035         <bp-checks.h>.
52036         (__getresuid): Do not use CHECK_1.
52037         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52038         <bp-checks.h>.
52039         (__lxstat): Do not use CHECK_1.
52040         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52041         <bp-checks.h>.
52042         (__old_msgctl): Do not use CHECK_1.
52043         (__new_msgctl): Likewise.
52044         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52045         <bp-checks.h>.
52046         (__new_setrlimit): Do not use CHECK_1.
52047         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52048         <bp-checks.h>.
52049         (__old_shmctl): Do not use CHECK_1.
52050         (__new_shmctl): Likewise.
52051         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52052         <bp-checks.h>.
52053         (__xstat): Do not use CHECK_1.
52054         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52055         (__lxstat): Do not use CHECK_1.
52056         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52057         <bp-checks.h>.
52058         (___lxstat64): Do not use CHECK_1.
52059         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52060         (__old_msgctl): Do not use CHECK_1.
52061         (__new_msgctl): Likewise.
52062         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52063         <bp-checks.h>.
52064         (__gettimeofday): Do not use CHECK_1.
52065         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52066         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52067         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52068         <bp-checks.h>.
52069         (__gettimeofday): Do not use CHECK_1.
52070         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52071         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52072         (__new_shmctl): Do not use CHECK_1.
52073         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52074         <bp-checks.h>.
52075         (do_sigtimedwait): Do not use CHECK_1.
52076         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52077         <bp-checks.h>.
52078         (do_sigwaitinfo): Do not use CHECK_1.
52079         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52080         <bp-checks.h>.
52081         (msgctl): Do not use CHECK_1.
52082         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52083         <bp-checks.h>.
52084         (shmctl): Do not use CHECK_1.
52085         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52086         (ustat): Do not use CHECK_1.
52087         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52088         <bp-checks.h>.
52089         (__fxstat): Do not use CHECK_1.
52090         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52091         <bp-checks.h>.
52092         (__fxstatat): Do not use CHECK_1.
52093         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52094         <bp-checks.h>.
52095         (__lxstat): Do not use CHECK_1.
52096         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52097         <bp-checks.h>.
52098         (__xstat): Do not use CHECK_1.
52099         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52100         (__xstat): Do not use CHECK_1.
52101         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52102         (___xstat64): Do not use CHECK_1.
52103
52104         [BZ #13550]
52105         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52106         definitions.
52107         (CHECK_BOUNDS_HIGH): Likewise.
52108         * string/strcpy.c: Do not include <bp-checks.h>.
52109         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52110
52111 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52112
52113         * nscd/nscd-client.h (__nscd_drop_map_ref):
52114         Add __attribute__ ((unused)).
52115         * nis/nss-nisplus.h (niserr2nss): Likewise.
52116
52117         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52118         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52119
52120         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52121         Remove inline keyword.
52122         * include/rounding-mode.h (round_away): Likewise.
52123         * libio/wfileops.c (adjust_wide_data): Likewise.
52124         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52125         (__m128i_strloadu_tolower): Likewise.
52126         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52127         (__m128i_strloadu_tolower): Likewise.
52128         * time/mktime.c (ydhms_diff): Likewise.
52129         * locale/elem-hash.h (elem_hash): Likewise.
52130         * locale/setlocale.c (setdata): Likewise.
52131         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52132         (re_string_wchar_at): Likewise.
52133         (bitset_not, bitset_merge, bitset_mask): Likewise.
52134         [!(__GNUC__ > 3)] (inline): Remove macro.
52135         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52136         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52137         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52138         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52139         * string/memcmp.c (memcmp_bytes): Likewise.
52140         * locale/programs/locarchive.c (compute_hashval): Likewise.
52141         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52142         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52143         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52144         * nss/getent.c (print_rpc, print_protocols): Likewise.
52145         (print_passwd, print_group, print_aliases): Likewise.
52146         * nis/nss-nisplus.h (niserr2nss): Likewise.
52147         * nscd/connections.c (restart_p): Likewise.
52148         Change return type to bool.
52149
52150 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52151
52152         * Makeconfig (all-Depend-files): Add existing
52153         $(sorted-subdirs:=/Depend) files.
52154         (all-subdirs): Remove nss.
52155         * sysdeps/unix/inet/Subdirs: Add it here instead.
52156         * hesiod/Depend: New file.
52157
52158         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52159         instead of calling alloca.
52160
52161         * io/lseek.c (__lseek): Rename to __libc_lseek.
52162         Define __lseek as an alias.
52163
52164         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52165
52166 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52167
52168         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52169         else clause and remove check for non-standard endianness.
52170
52171 2013-02-04  David S. Miller  <davem@davemloft.net>
52172
52173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52174
52175 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52176
52177         [BZ #13550]
52178         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52179         (__ubp_memchr): Remove prototype.
52180         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52181         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52182         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52183         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52184         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52185         Remove alias.
52186         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52187         (__ubp_memchr): Likewise.
52188         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52189         (__ubp_memchr): Likewise.
52190         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52191         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52192         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52193         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52194         CHECK_STRING.
52195         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52196         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52197         (__getcwd): Do not use CHECK_STRING.
52198         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52199         <bp-checks.h>.
52200         (__real_chown): Do not use CHECK_STRING.
52201         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52202         <bp-checks.h>.
52203         (fchownat): Do not use CHECK_STRING.
52204         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52205         CHECK_STRING.
52206         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52207         <bp-checks.h>.
52208         (__lchown): Do not use CHECK_STRING.
52209         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52210         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52211         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52212         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52214         include <bp-checks.h>.
52215         (truncate64): Do not use CHECK_STRING.
52216         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52217         <bp-checks.h>.
52218         (__real_chown): Do not use CHECK_STRING.
52219         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52220         <bp-checks.h>.
52221         (__lchown): Do not use CHECK_STRING.
52222         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52223         <bp-checks.h>.
52224         (__chown): Do not use CHECK_STRING.
52225         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52226         <bp-checks.h>.
52227         (truncate64): Do not use CHECK_STRING.
52228         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52229         Likewise.
52230         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52231         (__xmknod): Do not use CHECK_STRING.
52232         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52233         <bp-checks.h>.
52234         (__xmknodat): Do not use CHECK_STRING.
52235         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52236         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52237
52238 2013-02-04  Andreas Schwab  <schwab@suse.de>
52239
52240         [BZ #14142]
52241         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52242         * include/netdb.h: Likewise for h_errno.
52243         * elf/tst-stackguard1.c: Include <tls.h>.
52244
52245 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52246
52247         * elf/link.h (struct link_map): Extend the l_addr comment.
52248         * include/link.h (struct link_map): Likewise.
52249
52250 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52251
52252         [BZ #13550]
52253         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52254         (BOUNDED_1): Remove macro.
52255         * debug/backtrace.c: Don't include <bp-checks.h>.
52256         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52257         (__backtrace): Likewise.
52258         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52259         <bp-checks.h>.
52260         (__backtrace): Don't use BOUNDED_1.
52261         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52262         <bp-checks.h>.
52263         (__backtrace): Don't use BOUNDED_1.
52264         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52265         (__backtrace): Don't use BOUNDED_1.
52266         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52267         (shmat): Don't use BOUNDED_N.
52268
52269 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52270
52271         [BZ #13550]
52272         * sysdeps/generic/bp-start.h: Remove file.
52273         * csu/libc-start.c: Don't include <bp-start.h>.
52274         (LIBC_START_MAIN): Set up __environ directly instead of using
52275         INIT_ARGV_and_ENVIRON.
52276         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52277         <bp-start.h>.
52278
52279         [BZ #13550]
52280         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52281         definitions.
52282         (CHECK_FCNTL): Likewise.
52283         (CHECK_N_PAGES): Likewise.
52284
52285         [BZ #13550]
52286         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52287         definitions.
52288         (CHECK_SIGSET_NULL_OK): Likewise.
52289         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52290         <bp-checks.h>.
52291         (sigpending): Don't use CHECK_SIGSET.
52292         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52293         <bp-checks.h>.
52294         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52295         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52296         <bp-checks.h>.
52297         (do_sigsuspend): Don't use CHECK_SIGSET.
52298         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52299         use CHECK_SIGSET.
52300         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52301         (do_sigwait): Don't use CHECK_SIGSET.
52302         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52303         use CHECK_SIGSET.
52304         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52305         include <bp-checks.h>.
52306         (sigpending): Don't use CHECK_SIGSET.
52307         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52308         include <bp-checks.h>.
52309         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52310         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52311         <bp-checks.h>.
52312         (sigpending): Don't use CHECK_SIGSET.
52313         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52314         <bp-checks.h>.
52315         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52316
52317         [BZ #13550]
52318         * sysdeps/generic/bp-semctl.h: Remove file.
52319         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52320         <bp-checks.h> and <bp-semctl.h>.
52321         (__old_semctl): Don't use CHECK_SEMCTL.
52322         (__new_semctl): Likewise.
52323         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52324         and <bp-semctl.h>.
52325         (__old_semctl): Don't use CHECK_SEMCTL.
52326         (__new_semctl): Likewise.
52327         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52328         <bp-checks.h> and <bp-semctl.h>.
52329         (__old_semctl): Don't use CHECK_SEMCTL.
52330         (__new_semctl): Likewise.
52331         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52332         <bp-checks.h> and <bp-semctl.h>.
52333         (semctl): Don't use CHECK_SEMCTL.
52334
52335         [BZ #13550]
52336         * Makerules (elide-bp-thunks): Remove variable.
52337         (elide-routines.oS): Don't use $(elide-bp-thunks).
52338         (elide-routines.os): Likewise.
52339         (elide-routines.o): Likewise.
52340         (elide-routines.op): Likewise.
52341         (elide-routines.og): Likewise.
52342         (objects): Don't use $(bp-thunks).
52343         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52344         include.
52345         (common-generated): Do not add s-proto-bp.d.
52346         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52347         (int): Likewise.
52348         (typ): Likewise.
52349         Do not generate makefile rules for bounded-pointer thunks.
52350         * sysdeps/generic/bp-thunks.h: Remove file.
52351         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52352         * sysdeps/unix/s-proto-bp.S: Likewise.
52353
52354         [BZ #15062]
52355         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52356         parts of result separately when argument is not close to line from
52357         -i to i and one part of argument is small.
52358         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52359         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52360         * math/libm-test.inc (cacos_test): Add more tests.
52361         (casin_test): Likewise.
52362         (casinh_test): Likewise.
52363         * sysdeps/i386/fpu/libm-test-ulps: Update.
52364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52365
52366 2013-01-31  David S. Miller  <davem@davemloft.net>
52367
52368         * po/de.po: Update from translation team.
52369
52370 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52371
52372         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52373
52374 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52375
52376         * configure.in (_AC_PROG_CC_C89): New definition.
52377         * configure: Regenerate.
52378
52379         * configure.in (AC_PROG_CPP): New definition.
52380         * configure: Regenerate.
52381
52382 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52383
52384         * debug/tst-backtrace.h: New file.
52385         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52386         (ret): Remove variable.
52387         (x): Likewise.
52388         (FAIL): Remove macro.
52389         (NO_INLINE): Likewise.
52390         (fn1): Use match function instead of strstr.
52391         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52392         (ret): Remove variable.
52393         (x): Likewise.
52394         (FAIL): Remove macro.
52395         (NO_INLINE): Likewise.
52396         (fn): Use match function instead of strstr.
52397         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52398         (ret): Remove variable.
52399         (x): Likewise.
52400         (FAIL): Remove macro.
52401         (NO_INLINE): Likewise.
52402         (handle_signal): Use match function instead of strstr.
52403         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52404         (ret): Remove variable.
52405         (x): Likewise.
52406         (FAIL): Remove macro.
52407         (NO_INLINE): Likewise.
52408         (handle_signal): Use match function instead of strstr.
52409
52410 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52411
52412         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52413
52414 2013-01-23  David S. Miller  <davem@davemloft.net>
52415
52416         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52417         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52418         argument of CAS if possible.
52419         * sysdeps/sparc/sparc64/bits/atomic.h
52420         (__arch_compare_and_exchange_val_32_acq): Likewise.
52421         (__arch_compare_and_exchange_val_64_acq): Likewise.
52422
52423 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52424
52425         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52426         * sysdeps/posix/ulimit.c: ... this.
52427         Include <limits.h>.
52428         * sysdeps/unix/bsd/ulimit.c: Remove file.
52429
52430 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52431
52432         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52433         (LDFLAGS-tst-array5): Likewise.
52434
52435 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52436
52437         [BZ #15036]
52438         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52439         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52440         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52441         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52442
52443 2013-01-21  David S. Miller  <davem@davemloft.net>
52444
52445         * sysdeps/sparc/backtrace.c: New file.
52446         * sysdeps/sparc/sparc32/backtrace.h: New file.
52447         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52448         * sysdeps/sparc/sparc64/backtrace.h: New file.
52449         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52450         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52451         -funwind-tables.
52452
52453 2013-01-21  Andreas Schwab  <schwab@suse.de>
52454
52455         [BZ #15020]
52456         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52457         closed its stdout.
52458
52459 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52460
52461         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52462         "mpa2.h".
52463         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52464
52465 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52466             Mark Mitchell  <mark@codesourcery.com>
52467             Tom de Vries  <tom@codesourcery.com>
52468             Paul Pluzhnikov  <ppluzhnikov@google.com>
52469
52470         * debug/tst-backtrace2.c: New file.
52471         * debug/tst-backtrace3.c: Likewise.
52472         * debug/tst-backtrace4.c: Likewise.
52473         * debug/tst-backtrace5.c: Likewise.
52474         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52475         (CFLAGS-tst-backtrace3.c): Likewise.
52476         (CFLAGS-tst-backtrace4.c): Likewise.
52477         (CFLAGS-tst-backtrace5.c): Likewise.
52478         (LDFLAGS-tst-backtrace2): Likewise.
52479         (LDFLAGS-tst-backtrace3): Likewise.
52480         (LDFLAGS-tst-backtrace4): Likewise.
52481         (LDFLAGS-tst-backtrace5): Likewise.
52482         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52483         tst-backtrace4 and tst-backtrace5.
52484
52485 2013-01-18  Anton Blanchard  <anton@samba.org>
52486             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52487
52488         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52489         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52490         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52491         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52493         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52494         "+r" and remove output regs list as redundant.  Add explicit inline
52495         asm to specify register of return val to work around compiler codegen
52496         bug.  Remove (int) cast on return value.  Add return type parameter to
52497         use in macro so that this macro does not truncate return value for
52498         64-bit values.
52499         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52500         pass to INTERNAL_VSYSCALL_NCS.
52501         (INLINE_VSYSCALL): Add 'long int' as return type to
52502         INTERNAL_VSYSCALL_NCS macro invocation.
52503         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52504         INTERNAL_VSYSCALL_NCS macro invocation.
52505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52506
52507 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52508
52509         [BZ #14496]
52510         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52511         Fix application of SIMD FP exception mask.
52512
52513         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52514         mp_no from a power of two.
52515         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52516         __mpexp_twomm1.  Use __pow_mp.
52517
52518         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52519         multiplication.
52520
52521 2013-01-17  David S. Miller  <davem@davemloft.net>
52522
52523         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52524
52525 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52526
52527         [BZ #15023]
52528         * include/complex.h: Condition contents on [!_COMPLEX_H].
52529         (__kernel_casinhf): New prototype.
52530         (__kernel_casinh): Likewise.
52531         (__kernel_casinhl): Likewise.
52532         * math/Makefile (libm_calls): Add k_casinh.
52533         * math/k_casinh.c: New file.
52534         * math/k_casinhf.c: Likewise.
52535         * math/k_casinhl.c: Likewise.
52536         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52537         finite nonzero arguments.
52538         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52539         finite nonzero arguments.
52540         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52541         finite nonzero arguments.
52542         * math/s_casinh.c: Do not include <float.h>.
52543         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52544         * math/s_casinhf.c: Do not include <float.h>.
52545         (__casinhf): Move code for finite nonzero arguments to
52546         k_casinhf.c.
52547         * math/s_casinhl.c: Do not include <float.h>.
52548         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52549         redefine.
52550         (__casinhl): Move code for finite nonzero arguments to
52551         k_casinhl.c.
52552         * math/libm-test.inc (cacos_test): Add more tests.
52553         * sysdeps/i386/fpu/libm-test-ulps: Update.
52554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52555
52556 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52557
52558         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52559         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52560         [!HAVE_MREMAP]: Remove [defined linux] case.
52561         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52562
52563 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52564
52565         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52566
52567 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52568
52569         * elf/elf.h (R_386_SIZE32): New relocation.
52570         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52571         R_386_SIZE32.
52572         (elf_machine_rela): Likewise.
52573         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52574         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52575
52576 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52577
52578         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52579         (FP_FAST_FMA): Do not define.
52580         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52581         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52582         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52583         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52584         !_SOFT_FLOAT]: Likewise.
52585         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52586         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52587         value.
52588         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52589         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52590         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52591         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52592         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52593         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52594         file.
52595
52596 2013-01-16  Andreas Schwab  <schwab@suse.de>
52597
52598         [BZ #14327]
52599         * include/stdlib.h (__mktemp): Add declaration.
52600         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52601         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52602
52603 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52604
52605         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52606         definitions.
52607         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52608         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52609         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52610         definitions here.
52611         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52612         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52613         definitions.
52614         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52615         and ONE.
52616         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52617         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52618         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52619         definitions.
52620         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52621         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52622         definitions.
52623         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52624
52625         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52626
52627 2013-01-15  David S. Miller  <davem@davemloft.net>
52628
52629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52630         trunc{,f} to libm-sysdep_routes.
52631         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52633         file.
52634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52636         file.
52637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52638         file.
52639         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52640         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52641         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52642         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52643         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52644         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52645         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52646         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52647
52648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52649         nearbyint{,f} to libm-sysdep_routes.
52650         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52652         New file.
52653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52654         file.
52655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52656         New file.
52657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52658         file.
52659         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52660         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52661         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52662         file.
52663         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52664         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52665         file.
52666         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52667         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52668         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52669
52670         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52671         libc_feholdexcept and libc_fesetenv.
52672
52673 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52674
52675         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52676
52677 2013-01-14  David S. Miller  <davem@davemloft.net>
52678
52679         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52680         (SPARC_ASM_VIS2_IFUNC): Likewise.
52681         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52683         use of 'siam' instruction.
52684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52685         Likewise.
52686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52687         Likewise.
52688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52689         Likewise.
52690         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52691         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52692         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52693         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52695         file.
52696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52697         file.
52698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52699         file.
52700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52701         file.
52702         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52703         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52704         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52705         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52707         new VIS2 routines.
52708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52711         Likewise.
52712         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52713         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52714         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52715         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52717         routines to libm-sysdep_routines.
52718         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52719
52720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52721         fdim/fdimf to libm-sysdep_routines.
52722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52723         file.
52724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52726         file.
52727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52728         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52729         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52730         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52731         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52732         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52733         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52734
52735 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52736
52737         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52738         to optimize copies.
52739
52740         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52741         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52742         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52743
52744         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52745         local variable MPTWO.
52746         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52747         Likewise.
52748
52749 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52750
52751         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52752         GLOB_NOESCAPE.
52753
52754 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52755
52756         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52757
52758 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52759
52760         * manual/pattern.texi (glob_t): Document gl_flags.
52761         (glob64_t): Likewise.
52762
52763 2013-01-11  David S. Miller  <davem@davemloft.net>
52764
52765         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52766         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52767         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52768         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52769         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52770         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52771         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52772         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52773         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52774         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52775         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52776         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52777         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52778
52779         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52780         sparc V9 rather than using V8 code.
52781         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52782         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52783
52784         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52785         Move to...
52786         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52787         Here.
52788
52789 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52790
52791         [BZ #14941]
52792         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52793         not in the main loop.
52794         * configure: Regenerated.
52795
52796 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52797
52798         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52799         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52800         to just #else.
52801         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52802         [!__GLIBC_HAVE_LONG_LONG] case.
52803         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52804         condition to just #else.
52805         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52806         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52807         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52808         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52809         unconditional.
52810         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52811         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52812         #elif condition to just #else.
52813         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52814         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52815         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52816         #elif condition to just #else.
52817
52818 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52819
52820         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52821         (EF_MIPS_ARCH_64): Fix value.
52822         (EF_MIPS_ARCH_32R2): New.
52823         (EF_MIPS_ARCH_64R2): New.
52824
52825 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52826
52827         * Makeconfig (+link-pie-before-libc): New.
52828         (+link-pie-after-libc): Likewise.
52829         (+link-pie-tests): Likewise.
52830         (+link-pie): Rewritten.
52831         (link-before-libc): Remove $(config-LDFLAGS).
52832         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52833         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52834         (config-LDFLAGS): Renamed to ...
52835         (rtld-LDFLAGS): This.
52836         (rtld-tests-LDFLAGS): New macro.
52837         (link-libc-rpath-link): Likewise.
52838         (link-libc-tests-rpath-link): Likewise.
52839         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52840         (link-libc): Prepand $(link-libc-rpath-link).
52841         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52842         (test-program-prefix): New macro.
52843         (test-via-rtld-prefix): Likewise.
52844         (test-program-cmd): Likewise.
52845         (host-test-program-cmd): Likewise.
52846         * Makefile ($(common-objpfx)testrun.sh): Replace
52847         $(run-program-prefix) with $(test-program-prefix).
52848         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52849         $(rtld-LDFLAGS).
52850         ($(common-objpfx)shlib.lds): Likewise.
52851         (build-module-helper): Likewise.
52852         ($(common-objpfx)format.lds): Likewise.
52853         * Rules (binaries-pie-tests): New.
52854         (binaries-pie-notests): Likewise.
52855         (binaries-pie): Rewritten.
52856         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52857         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52858         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52859         (make-test-out): Replace $(host-built-program-cmd) with
52860         $(host-test-program-cmd).
52861         * config.make.in (build-hardcoded-path-in-tests): New variable.
52862         * configure.in (--enable-hardcoded-path-in-tests): New configure
52863         option.
52864         (hardcoded_path_in_tests): New AC_SUBST.
52865         * configure: Regenerated.
52866         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52867         $(built-program-cmd) with $(test-program-cmd).
52868         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52869         (test_program_cmd): This.
52870         * elf/Makefile ($(objpfx)order.out): Run test with
52871         $(test-program-prefix).
52872         ($(objpfx)order2.out): Likewise.
52873         ($(objpfx)tst-initorder.out): Likewise.
52874         ($(objpfx)tst-initorder2.out): Likewise.
52875         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52876         $(test-program-cmd).
52877         ($(objpfx)tst-array1-static.out): Likewise.
52878         ($(objpfx)tst-array2.out): Likewise.
52879         ($(objpfx)tst-array3.out): Likewise.
52880         ($(objpfx)tst-array4.out): Likewise.
52881         ($(objpfx)tst-array5.out): Likewise.
52882         ($(objpfx)tst-array5-static.out): Likewise.
52883         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52884         $(test-program-cmd).
52885         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52886         $(run-program-prefix) with $(test-program-prefix).
52887         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52888         (test_program_prefix): This.
52889         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52890         $(run-program-prefix) with $(test-program-prefix).
52891         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52892         (test_program_prefix): This.
52893         * iconvdata/tst-tables.sh: Likewise.
52894         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52895         $(run-program-prefix) with $(test-program-prefix).
52896         ($(objpfx)tst-translit.out): Likewise.
52897         ($(objpfx)tst-gettext2.out): Likewise.
52898         ($(objpfx)tst-gettext4.out): Likewise.
52899         ($(objpfx)tst-gettext6.out): Likewise.
52900         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52901         (test_program_prefix): This.
52902         * intl/tst-gettext2.sh: Likewise.
52903         * intl/tst-gettext4.sh  Likewise.
52904         * intl/tst-gettext6.sh: Likewise.
52905         * intl/tst-translit.sh: Likewise.
52906         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52907         with $(test-program-cmd).
52908         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52909         $(run-program-prefix) with $(test-program-prefix).
52910         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52911         (test_program_prefix): This.
52912         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52913         $(run-program-prefix) with $(test-program-prefix).
52914         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52915         (test_program_prefix): This.
52916         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52917         * posix/Makefile ($(objpfx)globtest.out): Replace
52918         $(run-via-rtld-prefix) and $(test-wrapper) with
52919         $(test-program-prefix) and $(test-via-rtld-prefix).
52920         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52921         $(test-program-prefix).
52922         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52923         $(host-test-program-cmd).
52924         (tst-spawn-ARGS): Likewise.
52925         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52926         $(test-program-prefix).
52927         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52928         (test_via_rtld_prefix): This.
52929         (test_wrapper): Renamed to ...
52930         (test_program_prefix): This.
52931         (run_program_prefix): Replaced by test_program_prefix.
52932         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52933         (test_program_prefix): This.
52934         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52935         with $(host-test-program-cmd).
52936         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52937         $(run-program-prefix) with $(test-program-prefix).
52938         ($(objpfx)tst-printf.out): Likewise.
52939         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52940         $(test-program-cmd).
52941         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52942         (test_program_prefix): This.
52943         * stdio-common/tst-unbputc.sh: Likewise.
52944         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52945         $(run-program-prefix) with $(test-program-prefix).
52946         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52947         (test_program_prefix): This.
52948         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52949         $(built-program-cmd) with $(test-program-cmd).
52950
52951 2013-01-11  Andreas Jaeger  <aj@suse.de>
52952
52953         [BZ #15003]
52954         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52955         value. Sync with Linux 3.7.
52956
52957 2013-01-10  David S. Miller  <davem@davemloft.net>
52958
52959         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52960         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52961         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52962
52963 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52964
52965         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52966         never set.
52967         * configure: Regenerated.
52968
52969 2013-01-10  David S. Miller  <davem@davemloft.net>
52970
52971         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52972         sparc V9 rather than using V8 code.
52973         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52974         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52975
52976 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52977
52978         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52979         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52980         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52981         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52982         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52983         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52984         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52985         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52986         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52987         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52988         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52989         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52990         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52991         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52992         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52993         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52994         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52995         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52996         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52997         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52998         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52999         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53000         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53001         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53002         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53003         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53004         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53005
53006 2013-01-10  David S. Miller  <davem@davemloft.net>
53007
53008         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53009
53010 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53011
53012         * posix/Makefile (tests-static): New variable.
53013         (tests): Add $(tests-static).
53014         (tst-exec-static-ARGS): New variable.
53015         (tst-spawn-static-ARGS): Likewise.
53016         * posix/tst-exec-static.c: New file.
53017         * posix/tst-spawn-static.c: Likewise.
53018         * posix/tst-exec.c: Support run directly.
53019         * posix/tst-spawn.c: Likewise.
53020
53021 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53022
53023         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53024         long.
53025         * math/bits/mathcalls.h (llrint): Likewise.
53026         (llround): Likewise.
53027         * stdlib/stdlib.h (struct drand48_data): Likewise.
53028         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53029         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53030         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53031         Likewise.
53032         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53033         Likewise.
53034         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53035         (elf_greg_t): Likewise.
53036         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53037         (__jmp_buf): Likewise.
53038         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53039         definitions.
53040         (llrint): Likewise, for all definitions.
53041         (llrintl): Likewise.
53042
53043         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53044         Remove [__GNUC__] condition.
53045         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53046         condition to just [__USE_ISOC99].
53047         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53048
53049 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53050
53051         [BZ #14200]
53052         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53053         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53054         defined.
53055         (_POSIX_V6_ILP32_OFF32): Likewise.
53056         (_XBS5_ILP32_OFF32): Likewise.
53057         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53058         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53059
53060 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53061
53062         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53063
53064         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53065         doubles __mpexp_twomm1.  Adjust usage.
53066         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53067         Remove.
53068
53069 2013-01-10  Andreas Schwab  <schwab@suse.de>
53070
53071         [BZ #14964]
53072         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53073         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53074
53075 2013-01-09  David S. Miller  <davem@davemloft.net>
53076
53077         [BZ #15003]
53078         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53079         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53080         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53081         (TCP_FASTOPEN): Define.
53082         (tcp_repair_opt): New structure.
53083         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53084         enum values.
53085         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53086         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53087         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53088         (tcp_cookie_transactions): New structure.
53089
53090 2013-01-09  Anton Blanchard  <anton@samba.org>
53091
53092         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53093         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53094         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53095         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53096
53097 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53098
53099         * include/features.h (__USE_ANSI): Remove.
53100
53101 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53102
53103         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53104
53105         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53106
53107 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53108
53109         * sysdeps/s390/fpu/libm-test-ulps: Update.
53110
53111         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53112
53113         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53114         (__acr): Likewise.
53115         (__cpy): Likewise.
53116         (norm): Likewise.
53117         (denorm): Likewise.
53118         (__mp_dbl): Likewise.
53119         (__dbl_mp): Likewise.
53120         (add_magnitudes): Likewise.
53121         (sub_magnitudes): Likewise.
53122         (__add): Likewise.
53123         (__sub): Likewise.
53124         (__mul): Likewise.
53125         (__inv): Likewise.
53126         (__dvd): Likewise.
53127         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53128         (__acr): Likewise.
53129         (__cpy): Likewise.
53130         (norm): Likewise.
53131         (denorm): Likewise.
53132         (__mp_dbl): Likewise.
53133         (__dbl_mp): Likewise.
53134         (add_magnitudes): Likewise.
53135         (sub_magnitudes): Likewise.
53136         (__add): Likewise.
53137         (__sub): Likewise.
53138         (__mul): Likewise.
53139         (__inv): Likewise.
53140         (__dvd): Likewise.
53141         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53142         (__acr): Likewise.
53143         (__cpy): Likewise.
53144         (norm): Likewise.
53145         (denorm): Likewise.
53146         (__mp_dbl): Likewise.
53147         (__dbl_mp): Likewise.
53148         (add_magnitudes): Likewise.
53149         (sub_magnitudes): Likewise.
53150         (__add): Likewise.
53151         (__sub): Likewise.
53152         (__mul): Likewise.
53153         (__inv): Likewise.
53154         (__dvd): Likewise.
53155
53156 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53157
53158         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53159         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53160         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53161         2 && __USE_EXTERN_INLINES]: Likewise.
53162
53163 2013-01-08  Andreas Jaeger  <aj@suse.de>
53164
53165         [BZ# 14985]
53166         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53167         Remove.
53168         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53169         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53170
53171 2013-01-07  Anton Blanchard  <anton@samba.org>
53172
53173         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53174         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53175         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53176         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53177         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53178         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53179         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53180         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53181         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53182         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53183         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53184         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53185         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53186         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53187         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53188         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53189         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53190         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53191         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53192         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53193         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53194         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53195         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53196         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53197         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53198         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53199         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53200         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53201         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53202         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53203         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53204         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53205         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53206         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53207         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53208         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53209         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53210         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53211         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53212         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53213         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53214         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53215         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53216
53217 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53218
53219         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53220         (__MALLOC_PMT): Likewise.
53221         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53222         [__GNUC__], only on [_LIBC].
53223         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53224         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53225         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53226         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53227         forward declaration.
53228         (realloc_hook_ini): Likewise.
53229         (memalign_hook_ini): Likewise.
53230         (__libc_memalign): Do not use __MALLOC_PMT in variable
53231         declaration.
53232         (__libc_valloc): Likewise.
53233         (__libc_pvalloc): Likewise.
53234         (__libc_calloc): Likewise.
53235         (__posix_memalign): Likewise.
53236
53237         [BZ #14996]
53238         * math/s_casinh.c: Include <float.h>.
53239         (__casinh): Do not do computation with squaring and square root
53240         for large arguments.
53241         * math/s_casinhf.c: Include <float.h>.
53242         (__casinhf): Do not do computation with squaring and square root
53243         for large arguments.
53244         * math/s_casinhl.c: Include <float.h>.
53245         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53246         (__casinhl): Do not do computation with squaring and square root
53247         for large arguments.
53248         * math/libm-test.inc (casin_test): Add more tests.
53249         (casinh_test): Likewise.
53250         * sysdeps/i386/fpu/libm-test-ulps: Update.
53251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53252
53253 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53254
53255         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53256         (__x86_64_raw_data_cache_size): Likewise.
53257         (__x86_64_data_cache_size_half): Likewise.
53258         (__x86_64_raw_data_cache_size_half): Likewise.
53259         (__x86_64_shared_cache_size): Likewise.
53260         (__x86_64_raw_shared_cache_size): Likewise.
53261         (__x86_64_shared_cache_size_half): Likewise.
53262         (__x86_64_raw_shared_cache_size_half): Likewise.
53263         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53264         to ...
53265         (__x86_data_cache_size): This.
53266         (__x86_64_raw_data_cache_size): Renamed to ...
53267         (__x86_raw_data_cache_size): This.
53268         (__x86_64_data_cache_size_half): Renamed to ...
53269         (__x86_data_cache_size_half): This.
53270         (__x86_64_raw_data_cache_size_half): Renamed to ...
53271         (__x86_raw_data_cache_size_half): This.
53272         (__x86_64_shared_cache_size): Renamed to ...
53273         (__x86_shared_cache_size): This.
53274         (__x86_64_raw_shared_cache_size): Renamed to ...
53275         (__x86_raw_shared_cache_size): This.
53276         (__x86_64_shared_cache_size_half): Renamed to ...
53277         (__x86_shared_cache_size_half): This.
53278         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53279         (__x86_raw_shared_cache_size_half): This.
53280         * sysdeps/x86_64/memcpy.S: Updated.
53281         * sysdeps/x86_64/memset.S: Likewise.
53282         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53283         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53284         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53285
53286 2013-01-04  David S. Miller  <davem@davemloft.net>
53287
53288         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53289
53290 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53291
53292         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53293         1 to avoid redefinition warning.
53294         (__USE_GNU): Don't define.
53295         (init_signaling_nan): Protoize.
53296
53297         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53298
53299 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53300
53301         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53302         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53303         (__cpymn): Likewise.
53304         (norm): Remove commented code.
53305         (denorm): Likewise.
53306         (__mp_dbl): Likewise.
53307         (__inv): Likewise.
53308         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53309         (__cpymn): Likewise.
53310         (norm): Remove commented code.
53311         (denorm): Likewise.
53312         (__mp_dbl): Likewise.
53313         (__inv): Likewise.
53314
53315         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53316         mp_no value for 1.0 and 2.0.
53317         (norm): Use RADIXI instead of radixi.d.
53318         (denorm): Likewise.
53319         (__mul): Use 0.0 instead of zero.d.
53320         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53321         mp_no value for 1.0 and 2.0.
53322         (norm): Use RADIXI instead of radixi.d.
53323         (denorm): Likewise.
53324         (__mul): Use 0.0 instead of zero.d.
53325
53326 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53327
53328         [BZ #14994]
53329         * math/s_casinh.c (__casinh): Reduce finite argument to first
53330         quadrant then set signs of results at the end.
53331         * math/s_casinhf.c (__casinhf): Likewise.
53332         * math/s_casinhl.c (__casinhl): Likewise.
53333         * math/libm-test.inc (casin_test): Add more tests.
53334         (casinh_test): Likewise.
53335         * sysdeps/i386/fpu/libm-test-ulps: Update.
53336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53337
53338 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53339
53340         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53341
53342         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53343
53344         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53345         declarations.
53346         (denorm): Likewise.
53347         (__mp_dbl): Likewise.
53348         (__inv): Likewise.
53349
53350         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53351         and adjust the header comment.
53352
53353         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53354         variable name from declaration.
53355
53356 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53357
53358         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53359         Initialize COMMON_CPUID_INDEX_7 element.
53360         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53361         (CPUID_RTM): Likewise.
53362         (HAS_RTM): Likewise.
53363         (COMMON_CPUID_INDEX_7): New enum.
53364
53365 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53366
53367         [BZ #14981]
53368         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53369         size is zero, record memory as freed.
53370
53371 2013-01-03  Andreas Jaeger  <aj@suse.de>
53372
53373         * po/ia.po: Add new Interlingua translation.
53374
53375 2012-01-03  Allan McRae  <allan@archlinux.org>
53376
53377         * locale/programs/localedef.c: Fix description of '--posix' flag.
53378
53379 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53380
53381         * NEWS: Update dates in second copyright notice.
53382         * README: Update copyright dates in example.
53383         * manual/libc.texinfo: Update copyright dates.
53384         * scripts/test-installation.pl: Update copyright date in --version
53385         output.
53386
53387         * hurd/ctty-input.c: Fix copyright notice formatting.
53388         * hurd/ctty-output.c: Likewise.
53389         * hurd/dtable.c: Likewise.
53390         * hurd/hurd-raise.c: Likewise.
53391         * hurd/hurdprio.c: Likewise.
53392         * hurd/msgportdemux.c: Likewise.
53393         * misc/sys/file.h: Likewise.
53394         * misc/sys/ioctl.h: Likewise.
53395         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53396         * sysdeps/mach/hurd/chdir.c: Likewise.
53397         * sysdeps/mach/hurd/fchdir.c: Likewise.
53398         * sysdeps/mach/hurd/rename.c: Likewise.
53399         * sysdeps/mach/hurd/rmdir.c: Likewise.
53400         * sysdeps/mach/hurd/seekdir.c: Likewise.
53401         * sysdeps/mach/hurd/setsid.c: Likewise.
53402         * sysdeps/posix/wait3.c: Likewise.
53403
53404         * All files with FSF copyright notices: Update copyright dates
53405         using scripts/update-copyrights.
53406         * intl/plural.c: Regenerated.
53407         * locale/programs/charmap-kw.h: Likewise.
53408         * locale/programs/locfile-kw.h: Likewise.
53409
53410 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53411
53412         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53413         four values.
53414
53415         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53416         calculation loop and add branch prediction.
53417
53418         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53419         check access beyond bounds of m1np.
53420
53421         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53422         MPTWO.
53423         (__inv): Remove local variable MPTWO to use the global
53424         constant.
53425         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53426         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53427         variable MPTWO.
53428         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53429         MP3HALFS static const.
53430
53431 2013-01-01  David S. Miller  <davem@davemloft.net>
53432
53433         * po/ca.po: Update from translation team.
53434
53435 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53436
53437         * scripts/update-copyrights: New file.
53438         * Makeconfig: Reformat copyright notice.
53439         * ctype/ctype.h: Likewise.
53440         * debug/swprintf_chk.c: Likewise.
53441         * elf/dl-cache.c: Likewise.
53442         * elf/dl-debug.c: Likewise.
53443         * elf/dl-object.c: Likewise.
53444         * grp/initgroups.c: Likewise.
53445         * hurd/Makefile: Likewise.
53446         * hurd/hurd/signal.h: Likewise.
53447         * hurd/hurdfault.c: Likewise.
53448         * hurd/hurdioctl.c: Likewise.
53449         * hurd/hurdlookup.c: Likewise.
53450         * hurd/intr-msg.c: Likewise.
53451         * iconv/gconv_open.c: Likewise.
53452         * libio/swprintf.c: Likewise.
53453         * locale/lc-ctype.c: Likewise.
53454         * locale/nl_langinfo.c: Likewise.
53455         * mach/Machrules: Likewise.
53456         * mach/Makefile: Likewise.
53457         * malloc/obstack.h: Likewise.
53458         * manual/Makefile: Likewise.
53459         * manual/tsort.awk: Likewise.
53460         * misc/bits/stab.def: Likewise.
53461         * nis/nis_print_group_entry.c: Likewise.
53462         * nis/nis_table.c: Likewise.
53463         * nis/nss_compat/compat-pwd.c: Likewise.
53464         * nis/nss_compat/compat-spwd.c: Likewise.
53465         * po/Makefile: Likewise.
53466         * posix/fnmatch.c: Likewise.
53467         * posix/regex.h: Likewise.
53468         * resolv/Makefile: Likewise.
53469         * resolv/nss_dns/dns-network.c: Likewise.
53470         * resolv/res_hconf.c: Likewise.
53471         * scripts/gen-sorted.awk: Likewise.
53472         * soft-fp/soft-fp.h: Likewise.
53473         * stdio-common/printf.h: Likewise.
53474         * stdlib/monetary.h: Likewise.
53475         * stdlib/random.c: Likewise.
53476         * stdlib/random_r.c: Likewise.
53477         * sysdeps/generic/Makefile: Likewise.
53478         * sysdeps/gnu/Makefile: Likewise.
53479         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53480         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53481         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53482         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53483         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53484         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53485         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53486         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53487         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53488         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53489         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53490         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53491         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53492         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53493         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53494         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53495         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53496         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53497         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53498         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53499         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53500         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53501         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53502         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53503         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53504         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53505         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53506         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53507         * sysdeps/mach/hurd/errnos.awk: Likewise.
53508         * sysdeps/mach/hurd/fork.c: Likewise.
53509         * sysdeps/mach/hurd/getcwd.c: Likewise.
53510         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53511         * sysdeps/mach/hurd/mmap.c: Likewise.
53512         * sysdeps/mach/hurd/utimes.c: Likewise.
53513         * sysdeps/mach/hurd/xmknod.c: Likewise.
53514         * sysdeps/posix/profil.c: Likewise.
53515         * sysdeps/posix/readdir_r.c: Likewise.
53516         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53517         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53518         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53519         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53520         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53521         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53522         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53523         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53524         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53525         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53526         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53527         * sysdeps/pthread/lio_listio.c: Likewise.
53528         * sysdeps/sparc/dl-procinfo.h: Likewise.
53529         * sysdeps/unix/i386/sysdep.S: Likewise.
53530         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53531         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53532         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53533         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53535         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53536         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53537         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53538         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53539         * sysdeps/wordsize-32/divdi3.c: Likewise.
53540         * time/sys/time.h: Likewise.
53541         * wcsmbs/Makefile: Likewise.
53542
53543 2013-01-01  David S. Miller  <davem@davemloft.net>
53544
53545         * po/fr.po: Update from translation team.
53546
53547         * catgets/gencat.c: Update copyright year.
53548         * csu/version.c: Likewise.
53549         * debug/catchsegv.sh: Likewise.
53550         * debug/pcprofiledump.c: Likewise.
53551         * debug/xtrace.sh: Likewise.
53552         * elf/ldconfig.c: Likewise.
53553         * elf/ldd.bash.in: Likewise.
53554         * elf/pldd.c: Likewise.
53555         * elf/sotruss.ksh: Likewise.
53556         * elf/sprof.c: Likewise.
53557         * iconv/iconv_prog.c: Likewise.
53558         * iconv/iconvconfig.c: Likewise.
53559         * locale/programs/locale.c: Likewise.
53560         * locale/programs/localedef.c: Likewise.
53561         * login/programs/pt_chown.c: Likewise.
53562         * malloc/memusage.sh: Likewise.
53563         * malloc/memusagestat.c: Likewise.
53564         * malloc/mtrace.pl: Likewise.
53565         * nscd/nscd.c: Likewise.
53566         * nss/getent.c: Likewise.
53567         * nss/makedb.c: Likewise.
53568         * posix/getconf.c: Likewise.
53569
53570 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53571
53572         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53573         numbers.
53574
53575 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53576
53577         * math/bits/mathcalls.h (modf): Use __nonnull.
53578
53579 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53580
53581         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53582         (split): Use macro CN instead of the bare value.
53583         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53584         could be used.
53585         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53586         instead of the bare value.
53587         (power1): Likewise.
53588
53589 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53590
53591         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53592         __ATAN_TWOM.
53593         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53594
53595         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53596         their values.
53597         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53598         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53599         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53600         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53601
53602 2012-12-28  Andreas Jaeger  <aj@suse.de>
53603
53604         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53605         values are from Linux 3.7.
53606
53607         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53608         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53609
53610 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53611
53612         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53613         TRUE case.
53614
53615         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53616         (norm): Likewise.
53617         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53618         variables with preprocessor constants.
53619         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53620         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53621         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53622
53623 2012-12-27  Bruno Haible  <bruno@clisp.org>
53624
53625         [BZ #14317]
53626         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53627         only if needed.
53628
53629 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53630
53631         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53632         and use variable directly.
53633         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53634
53635         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53636         MPONE.
53637         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53638         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53639         variable MPONE.
53640         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53641         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53642         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53643         include directive.  Remove local variable MPONE.
53644         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53645         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53646         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53647
53648 2012-12-25  David S. Miller  <davem@davemloft.net>
53649
53650         * version.h (RELEASE): Set to "development".
53651         (VERSION): Set to "2.17.90".
53652         * NEWS: Add 2.18 section.
53653
53654 2012-12-21  David S. Miller  <davem@davemloft.net>
53655
53656         * po/hr.po: Update from translation team.
53657
53658 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53659
53660         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53661
53662 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53663
53664         * NEWS:  Mention new memcpy for MIPS.
53665
53666 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53667
53668         * manual/contrib.texi (Contributors): Spelling correction.
53669
53670 2012-12-15  David S. Miller  <davem@davemloft.net>
53671
53672         * po/ru.po: Update from translation team.
53673
53674 2012-12-13  David S. Miller  <davem@davemloft.net>
53675
53676         * NEWS: Mention IFUNC testsuite enhancements.
53677
53678         * po/pl.po: Update from translation team.
53679         * po/bg.po: Likewise.
53680
53681         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53682         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53683
53684 2012-12-11  David S. Miller  <davem@davemloft.net>
53685
53686         * po/sv.po: Update from translation team.
53687
53688         * po/vi.po: Update from translation team.
53689
53690         * po/cs.po: Update from translation team.
53691
53692         * po/de.po: Update from translation team.
53693         * po/eo.po: Likewise.
53694         * po/nl.po: Likewise.
53695
53696 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53697
53698         [BZ #14246]
53699         * manual/argp.texi (Argp Helper Functions): Move node to follow
53700         Argp Parsing State.
53701
53702         [BZ #14872]
53703         * manual/conf.texi (Limits on File System Capacity): Mention if
53704         terminating null is included in the max size.
53705
53706 2012-12-10  Andreas Jaeger  <aj@suse.de>
53707
53708         * po/cs.po: Update from translation team.
53709
53710 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53711
53712         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53713         void pointer and cast to uintptr_t.
53714         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53715         path.
53716         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53717         * sysdeps/s390/s390-64/memset.S: Likewise.
53718
53719 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53720
53721         [BZ #14833]
53722         * menual/message.texi (Message Translation): Fix typos.
53723         (Helper programs for gettext): Likewise.
53724
53725 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53726
53727         [BZ #14898]
53728         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53729         Change to -1.
53730
53731 2012-12-07  David S. Miller  <davem@davemloft.net>
53732
53733         * po/libc.pot: Update.
53734
53735 2012-12-07  Richard Henderson  <rth@redhat.com>
53736
53737         [BZ #10114]
53738         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53739         normal/normal case to before the switch.
53740         (_FP_DIV): Likewise.
53741
53742 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53743             Mike Frysinger  <vapier@gentoo.org>
53744
53745         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53746         check for __NR_fadvise64_64.
53747
53748 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53749
53750         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53751         0, not just to plain "0" as a statement.
53752         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53753         with cw.
53754
53755 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53756
53757         * NEWS: Use sourceware.org in Bugzilla URL.
53758
53759 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53760
53761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53762         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53763
53764         * stdio-common/tst-put-error.c (do_test): Add newline to the
53765         padded test to ensure flush.
53766
53767 2012-12-05  Jeff Law  <law@redhat.com>
53768
53769         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53770
53771 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53772
53773         * README: Don't refer to ports add-on as distributed separately.
53774         Mention AArch64 in list of systems supported in the ports add-on.
53775
53776         * LICENSES: Add more non-FSF copyright and license notices.
53777
53778         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53779         ((unused)).
53780
53781         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53782
53783         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53784         10000 as width of padded output.
53785
53786 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53787
53788         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53789
53790         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53791         variable LX with __attribute__ ((unused)).
53792         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53793         Likewise.
53794         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53795         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53796         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53797         with __attribute__ ((unused)).
53798
53799 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53800
53801         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53802
53803 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53804
53805         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53806         (CFLAGS-nldbl-acos.c): New variable.
53807         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53808         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53809         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53810         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53811         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53812         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53813         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53814         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53815         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53816         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53817         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53818         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53819         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53820         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53821         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53822         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53823         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53824         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53825         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53826         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53827         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53828         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53829         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53830         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53831         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53832         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53833         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53834         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53835         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53836         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53837         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53838         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53839         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53840         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53841         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53842         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53843         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53844         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53845         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53846         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53847         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53848         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53849         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53850         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53851         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53852         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53853         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53854         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53855         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53856         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53857         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53858         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53859         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53860         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53861         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53862         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53863         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53864         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53865         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53866         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53867         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53868         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53869         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53870         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53871         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53872         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53873         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53874         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53875         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53876         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53877         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53878         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53879         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53880         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53881         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53882         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53883         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53884         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53885         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53886         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53887         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53888         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53889         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53890         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53891         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53892         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53893         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53894         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53895         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53896         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53897         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53898         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53899         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53900         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53901         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53902         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53903         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53904
53905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53906         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53907
53908         [BZ #14914]
53909         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53910         whole low double instead of just low 47 bits when splitting values
53911         into two parts.
53912
53913 2012-12-03  Allan McRae  <allan@archlinux.org>
53914
53915         * manual/stdio.texi (Predefined Printf Handlers): Remove
53916         @hsep and @vsep usage.
53917
53918 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53919
53920         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53921         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53922
53923 2012-12-03  Jeff Law  <law@redhat.com>
53924
53925         * time/sys/time.h (settimeofday): Do not mark TV argument
53926         as __nonnull.
53927
53928 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53929
53930         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53931         when currently writing and seek to current position when not.
53932         * libio/Makefile (tests): Remove bug-fclose1.
53933         * libio/bug-fclose1.c: Delete.
53934
53935 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53936
53937         * manual/arith.texi (feenableexcept): Fix typo.
53938         (fedisableexcept): Likewise.
53939
53940 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53941
53942         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53943         second, differently-typed declaration, rather than a cast.
53944
53945 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53946
53947         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53948         * include/rpc/svc.h: ... here.
53949
53950 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53951
53952         [BZ #13013]
53953         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53954         depending n and resplen2 to catch cases where answer
53955         equals answerp2.
53956
53957 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53958
53959         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53960         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53961
53962 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53963
53964         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53965
53966 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53967
53968         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53969
53970 2012-11-28  Jeff Law  <law@redhat.com>
53971
53972         [BZ #13761]
53973         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53974         dataset_temporary.  Track alloca usage into alloca_used.
53975         If dataset is large allocate and release it via malloc/free.
53976
53977 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53978
53979         [BZ #14197]
53980         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53981
53982 2012-11-28  David S. Miller  <davem@davemloft.net>
53983
53984         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53985
53986 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53987
53988         [BZ #14803]
53989         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53990         of pi/2 rounded to nearest to 64 bits.
53991         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53992         nearest to 64 bits.
53993         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53994         bits.
53995
53996 2012-11-28  Jeff Law <law@redhat.com>
53997             Martin Osvald <mosvald@redhat.com>
53998
53999         [BZ #14889]
54000         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54001         * sunrpc/svc.c: Include time.h.
54002         (__svc_accept_failed): New function.
54003         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54004         any reason other than EINTR, call __svc_accept_failed.
54005         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54006         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54007
54008 2012-11-28  Andreas Schwab  <schwab@suse.de>
54009
54010         * scripts/abilist.awk: Also handle indirect functions in .opd
54011         section.
54012
54013 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54014
54015         [BZ #13881]
54016         * sysdeps/x86/fpu/powl_helper.c: New file.
54017         * sysdeps/x86/fpu/Makefile: Likewise.
54018         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54019         (p3): New object.
54020         (__ieee754_powl): Use __powl_helper for finite arguments except
54021         integer exponents below 8.
54022         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54023         (p3): New object.
54024         (__ieee754_powl): Use __powl_helper for finite arguments except
54025         integer exponents below 8.
54026         * math/libm-test.inc (pow_test): Add more tests and enable some
54027         previously disabled tests.
54028         * sysdeps/i386/fpu/libm-test-ulps: Update.
54029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54030
54031 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54032             Carlos O'Donell  <carlos_odonell@mentor.com>
54033
54034         * nss/makedb.c (is_prime): Assert that input is odd and greater
54035         than 4.  Note that fact in a comment too.
54036         (next_prime): Add 4 to input.
54037
54038 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54039
54040         [BZ #11741]
54041         * libio/Makefile (tests): Add test case tst-fwrite-error.
54042         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54043         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54044         * libio/tst-fwrite-error.c: New test case.
54045
54046 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54047
54048         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54049         before casting to void *.
54050         * include/libc-internal.h (__pointer_type): New macro.
54051         (__integer_if_pointer_type_sub): Likewise.
54052         (__integer_if_pointer_type): Likewise.
54053         (cast_to_integer): Likewise.
54054         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54055         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54056         before casting to atomic64_t.
54057         (atomic_exchange_acq): Likewise.
54058         (__arch_exchange_and_add_body): Likewise.
54059         (__arch_add_body): Likewise.
54060         (atomic_add_negative): Likewise.
54061         (atomic_add_zero): Likewise.
54062
54063 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54064
54065         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54066         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54067         (add_fdes): Likewise.
54068         (linear_search_fdes): Likewise.
54069         (binary_search_unencoded_fdes): Likewise.
54070
54071 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54072
54073         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54074
54075 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54076
54077         * configure.in: Autodetect C++ header directories.
54078         * configure: Regenerated.
54079
54080 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54081
54082         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54083
54084 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54085
54086         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54087
54088 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54089
54090         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54091         LDBL_MANT_DIG == 106]: Disable some tests.
54092         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54093         Likewise.
54094         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54095         Likewise.
54096
54097         [BZ #14871]
54098         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54099         input for small inputs.  Return +/- pi/2 for large inputs.
54100         * math/libm-test.inc (atan_test): Add more tests.
54101
54102         * sysdeps/generic/unwind-dw2-fde-glibc.c
54103         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54104         __attribute__ ((unused)).
54105
54106         [BZ #14645]
54107         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54108         x * y if x and y are nonzero and z is zero.
54109
54110         [BZ #14811]
54111         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54112         nonzero exponents with absolute value below 0x1p-117 to +/-
54113         0x1p-117.
54114
54115         [BZ #14869]
54116         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54117         up arguments below 2**-450, not just those below 2**-500.
54118         * math/libm-test.inc (hypot_test): Add another test.
54119
54120         [BZ #14868]
54121         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54122         Return a+b for ratio over 2**120, not 2**60.
54123         * math/libm-test.inc (hypot_test): Add another test.
54124
54125         * math/libm-test.inc (clog_test): Use
54126         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54127         (clog10_test): Likewise.
54128
54129         [BZ #6778]
54130         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54131
54132 2012-11-22  Andreas Schwab  <schwab@suse.de>
54133
54134         * sysdeps/i386/fpu/libm-test-ulps: Update.
54135
54136 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54137
54138         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54139         printf output with newline.
54140
54141 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54142
54143         [BZ #14865]
54144         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54145         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54146         -z nodlopen, -z initfirst and -z execstack support.
54147         * configure: Regenerated.
54148
54149         * elf/elf.h (DF_1_NODIRECT): New macro.
54150         (DF_1_IGNMULDEF): Likewise.
54151         (DF_1_NOKSYMS): Likewise.
54152         (DF_1_NOHDR): Likewise.
54153         (DF_1_EDITED): Likewise.
54154         (DF_1_NORELOC): Likewise.
54155         (DF_1_SYMINTPOSE): Likewise.
54156         (DF_1_GLOBAUDIT): Likewise.
54157         (DF_1_SINGLETON): Likewise.
54158         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54159         DT_1_SUPPORTED_MASK bits.
54160         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54161
54162 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54163
54164         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54165
54166 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54167
54168         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54169         macro.
54170
54171         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54172         (sendmmsg): Move declarations...
54173         * socket/sys/socket.h: ... here.
54174         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54175         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54176         include it from...
54177         * socket/recvmmsg.c: ... this new file.
54178         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54179         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54180         definition of __sendmmsg hidden.
54181         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54182         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54183         Move ENOSYS stub into and include it from...
54184         * socket/sendmmsg.c: ... this new file.
54185         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54186         (sysdep_routines): Move recvmmsg and sendmmsg...
54187         * socket/Makefile (routines): ... here.
54188         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54189         (GLIBC_PRIVATE): Add __sendmmsg.
54190         * include/sys/socket.h (__sendmmsg): Add declarations.
54191         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54192         sendmmsg.
54193
54194 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54195
54196         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54197         variable I1 with __attribute__ ((unused)).
54198         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54199
54200 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54201
54202         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54203         DUMMY variables with __attribute__ ((unused)).
54204
54205         * bits/byteswap.h: Include <bits/types.h>.
54206         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54207
54208 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54209
54210         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54211         string_t.  Do not manually set errno.
54212         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54213         length with __strnlen.  Make sure to both set errno and return it on
54214         failure.
54215
54216 2012-11-19  David S. Miller  <davem@davemloft.net>
54217
54218         With help from Joseph Myers.
54219         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54220         very large arguments properly.
54221         * math/libm-test.inc (atan_test): New tests.
54222         (atan2_test): New tests.
54223         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54224         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54225
54226 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54227
54228         [BZ #14856]
54229         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54230         Define to 3.
54231
54232         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54233         [POSIX] (EADDRNOTAVAIL): Likewise.
54234         [POSIX] (EAFNOSUPPORT): Likewise.
54235         [POSIX] (EALREADY): Likewise.
54236         [POSIX] (ECONNABORTED): Likewise.
54237         [POSIX] (ECONNREFUSED): Likewise.
54238         [POSIX] (ECONNRESET): Likewise.
54239         [POSIX] (EDESTADDRREQ): Likewise.
54240         [POSIX] (EDQUOT): Likewise.
54241         [POSIX] (EHOSTUNREACH): Likewise.
54242         [POSIX] (EIDRM): Likewise.
54243         [POSIX] (EISCONN): Likewise.
54244         [POSIX] (ELOOP): Likewise.
54245         [POSIX] (EMULTIHOP): Likewise.
54246         [POSIX] (ENETDOWN): Likewise.
54247         [POSIX] (ENETUNREACH): Likewise.
54248         [POSIX] (ENOBUFS): Likewise.
54249         [POSIX] (ENODATA): Likewise.
54250         [POSIX] (ENOLINK): Likewise.
54251         [POSIX] (ENOMSG): Likewise.
54252         [POSIX] (ENOPROTOOPT): Likewise.
54253         [POSIX] (ENOSR): Likewise.
54254         [POSIX] (ENOSTR): Likewise.
54255         [POSIX] (ENOTCONN): Likewise.
54256         [POSIX] (ENOTSOCK): Likewise.
54257         [POSIX] (EOPNOTSUPP): Likewise.
54258         [POSIX] (EOVERFLOW): Likewise.
54259         [POSIX] (EPROTO): Likewise.
54260         [POSIX] (EPROTONOSUPPORT): Likewise.
54261         [POSIX] (EPROTOTYPE): Likewise.
54262         [POSIX] (ESTALE): Likewise.
54263         [POSIX] (ETIME): Likewise.
54264         [POSIX] (ETXTBSY): Likewise.
54265         [POSIX] (EWOULDBLOCK): Likewise.
54266         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54267         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54268         [POSIX] (SEEK_CUR): Likewise.
54269         [POSIX] (SEEK_END): Likewise.
54270         [POSIX || UNIX98] (mode_t): Do not require.
54271         [POSIX] (off_t): Likewise.
54272         [POSIX] (pid_t): Likewise.
54273         [POSIX] (sys/stat.h): Do not allow header.
54274         [POSIX] (unistd.h): Likewise.
54275         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54276         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54277         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54278         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54279         require.
54280         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54281         sigevent): Specify elements.
54282         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54283         entry.
54284         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54285         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54286
54287         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54288         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54289         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54290         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54291         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54292         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54293         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54294         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54295         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54296         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54297         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54298         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54299         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54300         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54301         Likewise.
54302         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54303         Likewise.
54304         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54305         Likewise.
54306         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54307         Likewise.
54308         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54309         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54310         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54311         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54312         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54313         Specify lower bound on value.
54314         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54315         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54316         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54317         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54318         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54319         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54320         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54321         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54322         value.
54323         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54324         as optional.
54325         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54326         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54327         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54328         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54329         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54330         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54331         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54332         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54333         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54334         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54335         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54336         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54337         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54338         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54339         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54340         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54341         entry.
54342         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54343         optional.
54344         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54345         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54346         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54347         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54348         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54349         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54350         Likewise.
54351         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54352         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54353         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54354         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54355         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54356         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54357         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54358         as optional.
54359         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54360         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54361         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54362         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54363         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54364         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54365         specify as optional.
54366         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54367         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54368         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54369         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54370         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54371         [XPG3] (NL_LANGMAX): Likewise.
54372         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54373         [POSIX || XPG3] (NL_NMAX): Likewise.
54374         [POSIX || XPG3] (NL_SETMAX): Likewise.
54375         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54376         [XPG3] (NZERO): Likewise.
54377         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54378         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54379         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54380         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54381         (REG_ERANGE): Expect.
54382         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54383         optional-constant.
54384         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54385         Use (void) in prototype.
54386         [POSIX] (*_t): Allow.
54387         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54388         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54389         (WRDE_BADVAL): Expect.
54390
54391         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54392         expect.
54393         [XPG3 || XPG4] (O_RSYNC): Likewise.
54394         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54395         Likewise.
54396         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54397         [XPG3 || XPG4] (sigqueue): Likewise.
54398         [XPG3 || XPG4] (sigtimedwait): Likewise.
54399         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54400         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54401         [XPG3 || XPG4] (vsnprintf): Likewise.
54402         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54403         Likewise.
54404         [XPG3 || XPG4] (blksize_t): Likewise.
54405         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54406         Likewise.
54407         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54408         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54409         [XPG3 || XPG4] (struct itimerspec): Likewise.
54410         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54411         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54412         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54413         [XPG3 || XPG4] (clockid_t): Likewise.
54414         [XPG3 || XPG4] (timer_t): Likewise.
54415         [XPG3 || XPG4] (clock_getres): Likewise.
54416         [XPG3 || XPG4] (clock_gettime): Likewise.
54417         [XPG3 || XPG4] (clock_settime): Likewise.
54418         [XPG3 || XPG4] (nanosleep): Likewise.
54419         [XPG3 || XPG4] (timer_create): Likewise.
54420         [XPG3 || XPG4] (timer_delete): Likewise.
54421         [XPG3 || XPG4] (timer_gettime): Likewise.
54422         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54423         [XPG3 || XPG4] (timer_settime): Likewise.
54424         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54425         [XPG3 || XPG4] (getlogin_r): Likewise.
54426         [XPG3 || XPG4] (pread): Likewise.
54427         [XPG3 || XPG4] (pthread_atfork): Likewise.
54428         [XPG3 || XPG4] (pwrite): Likewise.
54429
54430         [BZ #14835]
54431         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54432         <bits/siginfo.h>.
54433
54434 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54435
54436         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54437         finalizing MALLSTREAM.
54438
54439         * sysdeps/mach/hurd/syncfs.c: New file.
54440
54441 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54442
54443         [BZ #14719]
54444         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54445         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54446         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54447         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54448         (_nss_dns_gethostbyname4_r): Likewise.
54449         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54450         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54451
54452 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54453
54454         [BZ #13763]
54455         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54456
54457 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54458
54459         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54460         * elf/cache.c (print_entry): Print ",AArch64" for
54461         FLAG_AARCH64_LIB64
54462
54463         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54464         * elf/cache.c (print_entry): Print ",hard-float" for
54465         FLAG_ARM_LIBHF.
54466
54467 2012-11-18  David S. Miller  <davem@davemloft.net>
54468
54469         With help from Joseph Myers.
54470         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54471         cutoff to 2**-13.
54472         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54473         cutoff to 2**-25.
54474         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54475         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54476         small.
54477         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54478         * math/libm-test.inc (y0_test): New tests.
54479         (y1_test): New tests.
54480         * sysdeps/i386/fpu/libm-test-ulps: Update.
54481         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54482         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54483
54484 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54485
54486         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54487         64-bit targets.
54488         * configure: Regenerated.
54489
54490 2012-11-17  David S. Miller  <davem@davemloft.net>
54491
54492         [BZ #14811]
54493         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54494         nonzero exponents with absolute value below 0x1p-128 to +/-
54495         0x1p-128.
54496
54497 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54498
54499         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54500
54501         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54502
54503         * posix/getconf-speclist.c: New file.
54504         * posix/posix-envs.def: Likewise.
54505         * posix/confstr.c (START_ENV_GROUP): New macro.
54506         (END_ENV_GROUP): Likewise.
54507         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54508         (KNOWN_PRESENT_ENV_STRING): Likewise.
54509         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54510         (UNKNOWN_ENVIRONMENT): Likewise.
54511         (confstr): Include posix-envs.def instead of handling
54512         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54513         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54514         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54515         (END_ENV_GROUP): Likewise.
54516         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54517         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54518         (UNKNOWN_ENVIRONMENT): Likewise.
54519         (__sysconf): Include posix-envs.def instead of handling associated
54520         cases directly here.
54521         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54522         preprocessing getconf-speclist.c rather than running getconf or
54523         generating empty file.
54524
54525 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54526
54527         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54528
54529 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54530
54531         [BZ #14672]
54532         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54533
54534 2012-11-16  David S. Miller  <davem@davemloft.net>
54535
54536         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54537         smaller than LDBL_EPSILON/2.0L, just return xm1.
54538
54539 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54540
54541         * elf/tst-array1.c (init): Set constructor priority to 1000.
54542         (fini): Set destructor priority to 1000.
54543         * elf/tst-array2dep.c: Likewise.
54544
54545 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54546
54547         [BZ #11741]
54548         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54549         (_IO_new_file_xsputn): Also return EOF if none of the input
54550         data was written when overflow failed.
54551         * libio/iopadn.c (_IO_padn): Likewise.
54552         * libio/iowpadn.c (_IO_wpadn): Likewise.
54553         * stdio-common/tst-put-error.c: Add copyright notice.
54554         (do_test): Add case for printing padded string.
54555         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54556         _IO_padn returned error.
54557         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54558         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54559         return EOF.
54560
54561 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54562
54563         * libio/libioP.h: Add comment note that the references to C++
54564         bits are now obsolete.
54565
54566 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54567
54568         * math/libm-test.inc (check_complex): Use asprintf.
54569
54570 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54571
54572         * debug/pcprofiledump.c (print_version): Update copyright year.
54573         * malloc/memusagestat.c (print_version): Likewise.
54574
54575 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54576
54577         [BZ #14831]
54578         * elf/Makefile (tests): Add tst-audit8.
54579         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54580         ($(objpfx)tst-audit8.out): New target.
54581         (tst-audit8-ENV): New variable.
54582         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54583         audit if l_reloc_result is NULL.
54584         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54585         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54586         * elf/tst-audit8.c: New file.
54587
54588 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54589
54590         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54591         * misc/Makefile (CFLAGS-select.c): Define.
54592         * posix/Makefile (CFLAGS-pause.c): Define.
54593
54594 2012-11-13  David S. Miller  <davem@davemloft.net>
54595
54596         * crypt/Makefile: Move test targets after toplevel Rules
54597         inclusion.  Grab any necessary sysdep routines when linking.
54598         * crypt/md5.c (md5_process_block): Remove define, we will always
54599         name it __md5_process_block.
54600         (md5_finish_ctx): Update md5_process_block call.
54601         (md5_stream): Likewise.
54602         (md5_process_bytes): Likewise.
54603         (md5_process_block): Rename to __md5_process_block and move to ...
54604         * crypt/md5-block.c: ... here.
54605         * crypt/sha256.c (sha256_process_block): Move to ...
54606         * crypt/sha256-block.c: ... here.
54607         * crypt/sha512.c (sha512_process_block): Move to ...
54608         * crypt/sha512-block.c: ... here.
54609         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54610         path.
54611         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54612         * sysdeps/sparc/sparc64/multiarch/Makefile
54613         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54614         crypt subdir.
54615         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54616         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54617         multiarch changes.
54618         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54619         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54620         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54621         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54622         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54623         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54624         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54625         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54626         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54627         file.
54628         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54629         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54630         file.
54631         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54632
54633 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54634
54635         * timezone/tzselect.ksh: Update from tzcode git revision
54636         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54637         * timezone/zdump.c: Likewise.
54638         * timezone/zic.c: Likewise.
54639         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54640         in TZVERSION setting, not $(PKGVERSION).
54641         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54642         REPORT_BUGS_TO settings.
54643
54644         [BZ #14838]
54645         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54646         macro.
54647
54648 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54649
54650         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54651         detection to immediately after _FP_ROUND().
54652         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54653         bits are 0.
54654
54655 2012-11-11  David S. Miller  <davem@davemloft.net>
54656
54657         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54658         inttypes.h
54659         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54660         __close rather than their public counterparts.
54661
54662 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54663
54664         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54665         file.
54666         [UNIX98] (sem_timedwait): Do not expect.
54667         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54668         [XPG4 || UNIX98] (sockatmark): Do not expect.
54669         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54670         (clock_getcpuclockid): Do not expect.
54671         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54672         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54673         Do not expect.
54674         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54675         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54676         [UNIX98] (vwscanf): Likewise.
54677         [UNIX98] (vswscanf): Likewise.
54678
54679 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54680
54681         * timezone/version.h: Remove file.
54682         * timezone/README: Do not refer to version.h.
54683         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54684         $(objpfx)version.h.
54685         ($(objpfx)zdump.o): Likewise.
54686         ($(objpfx)version.h): New target.
54687
54688         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54689         2012i.
54690         * timezone/README: Don't mention modification to tzselect.ksh.
54691         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54692         work on unmodified tzselect.ksh.  Substitute version numbers in
54693         tzselect.ksh.
54694
54695         * Makefile (format-me): Remove.
54696         (INSTALL): Adjust indentation.  Use commands directly instead of
54697         using $(format-me).
54698
54699         * aclocal.m4 (ACX_PKGVERSION): New macro.
54700         (ACX_BUGURL): Likewise.
54701         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54702         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54703         (REPORT_BUGS_TO): Likewise.
54704         * configure: Regenerated.
54705         * config.h.in (PKGVERSION): New macro.
54706         (REPORT_BUGS_TO): Likewise.
54707         * config.make.in (PKGVERSION): New variable.
54708         (PKGVERSION_TEXI): Likewise.
54709         (REPORT_BUGS_TO): Likewise.
54710         (REPORT_BUGS_TEXI): Likewise.
54711         * Makefile (format-me): Use -I$(common-objpfx)manual.
54712         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54713         ($(common-objpfx)manual/%): New target.
54714         (manual/%): Remove target.
54715         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54716         (print_version): Use PKGVERSION.
54717         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54718         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54719         and REPORT_BUGS_TO.
54720         ($(objpfx)xtrace): Likewise.
54721         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54722         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54723         (print_version): Use PKGVERSION.
54724         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54725         (do_version): Use PKGVERSION.
54726         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54727         REPORT_BUGS_TO.
54728         (common-ldd-rewrite): Likewise.
54729         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54730         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54731         (print_version): Use PKGVERSION.
54732         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54733         * elf/pldd.c (argp_program_bug_address): Remove variable.
54734         (more_help): New function.
54735         (argp): Use more_help.
54736         (print_version): Use PKGVERSION.
54737         * elf/sln.c (main): Use PKGVERSION.
54738         (usage): Use REPORT_BUGS_TO.
54739         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54740         (top level): Use PKGVERSION.
54741         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54742         (print_version): Use PKGVERSION.
54743         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54744         (print_version): Use PKGVERSION.
54745         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54746         (print_version): Use PKGVERSION.
54747         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54748         (print_version): Use PKGVERSION.
54749         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54750         (print_version): Use PKGVERSION.
54751         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54752         (print_version): Use PKGVERSION.
54753         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54754         and BUGURL.
54755         ($(objpfx)memusage): Likewise.
54756         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54757         (do_version): Use PKGVERSION.
54758         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54759         (print_version): Use PKGVERSION.
54760         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54761         ($PKGVERSION): New variable.
54762         ($REPORT_BUGS_TO): Likewise.
54763         (usage): Use $REPORT_BUGS_TO.
54764         (top level): Use $PKGVERSION.
54765         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54766         ($(objpfx)pkgvers.texi): New rule.
54767         ($(objpfx)stamp-pkgvers): Likewise.
54768         * manual/install.texi: Include pkgvers.texi.
54769         (--with-pkgversion): Document new configure option.
54770         (--with-bugurl): Likewise.
54771         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54772         than necessarily for this particular distribution.  Use
54773         REPORT_BUGS_TO for where to report bugs.
54774         * INSTALL: Regenerated.
54775         * manual/libc.texinfo: Include pkgvers.texi.
54776         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54777         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54778         (print_version): Use PKGVERSION.
54779         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54780         (print_version): Use PKGVERSION.
54781         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54782         (print_version): Use PKGVERSION.
54783         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54784         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54785         macro.
54786         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54787         (print_version): Use PKGVERSION.
54788         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54789         (print_version): Use PKGVERSION.
54790         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54791         and PKGVERSION.
54792
54793         * timezone/checktab.awk: Update from tzcode 2012i.
54794         * timezone/ialloc.c: Likewise.
54795         * timezone/private.h: Likewise.
54796         * timezone/scheck.c: Likewise.
54797         * timezone/tzfile.h: Likewise.
54798         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54799         (TZVERSION): Hardcode tzcode version number.
54800         * timezone/zdump.c: Update from tzcode 2012i.
54801         * timezone/zic.c: Likewise.
54802         * timezone/version.h: New file.
54803         * timezone/README: Describe version.h.  Update upstream location.
54804
54805         [BZ #14824]
54806         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54807         (mktemp): Enable declaration.
54808         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54809         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54810         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54811         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54812         Likewise.
54813         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54814         Likewise.
54815         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54816         Likewise.
54817         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54818         Likewise.
54819         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54820         Likewise.
54821         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54822         Likewise.
54823
54824         [BZ #14821]
54825         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54826         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54827         for copies of such integer values.
54828         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54829         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54830
54831 2012-11-09  Andreas Jaeger  <aj@suse.de>
54832
54833         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54834         definitions and declarations that are provided by
54835         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54836
54837 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54838
54839         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54840         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54841         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54842         definition.
54843
54844 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54845
54846         * elf/elf.h: Update comment before AArch64 relocations.
54847
54848 2012-11-07  David S. Miller  <davem@davemloft.net>
54849
54850         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54851         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54852         (__start_context): Declare.
54853         (__makecontext_ret): Delete.
54854         (__makecontext): Hook up __start_context instead of
54855         __makecontext_ret.
54856         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54857         (sysdep_routines): Add __start_context when in stdlib.
54858
54859 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54860
54861         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54862         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54863         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54864         hardcoded "nm".
54865         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54866         (READELF): New variable.  Use it instead of hardcoded "readelf".
54867
54868 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54869
54870         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54871         * sysdeps/x86/Makefile: Here.
54872         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54873         * sysdeps/x86/tst-xmmymm.sh: This.
54874
54875 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54876
54877         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54878         expectations.
54879         [UNIX98] (pthread_barrier_t): Do not expect.
54880         [UNIX98] (pthread_barrierattr_t): Likewise.
54881         [UNIX98] (pthread_spinlock_t): Likewise.
54882         [UNIX98] (pthread_barrier_destroy): Likewise.
54883         [UNIX98] (pthread_barrier_init): Likewise.
54884         [UNIX98] (pthread_barrier_wait): Likewise.
54885         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54886         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54887         [UNIX98] (pthread_barrierattr_init): Likewise.
54888         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54889         [UNIX98] (pthread_getcpuclockid): Likewise.
54890         [UNIX98] (pthread_mutex_timedlock): Likewise.
54891         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54892         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54893         [UNIX98] (pthread_sigmask): Likewise.
54894         [UNIX98] (pthread_spin_destroy): Likewise.
54895         [UNIX98] (pthread_spin_init): Likewise.
54896         [UNIX98] (pthread_spin_lock): Likewise.
54897         [UNIX98] (pthread_spin_trylock): Likewise.
54898         [UNIX98] (pthread_spin_unlock): Likewise.
54899         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54900         Do not expect.
54901         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54902         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54903         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54904         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54905         [XPG3 || XPG4] (pthread_key_t): Likewise.
54906         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54907         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54908         [XPG3 || XPG4] (pthread_once_t): Likewise.
54909         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54910         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54911         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54912         [XPG3 || XPG4] (pthread_t): Likewise.
54913
54914         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54915         not expect.
54916         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54917
54918         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54919         Change function return type to int.
54920
54921         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54922         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54923         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54924         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54925         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54926         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54927         [!POSIX] (posix_madvise): Likewise.
54928         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54929         && !UNIX98].
54930         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54931         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54932         (mode_t): Likewise.
54933         (posix_mem_offset): Likewise.
54934         (posix_typed_mem_get_info): Likewise.
54935         (posix_typed_mem_open): Likewise.
54936
54937         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54938         Change condition to [XOPEN2K8].
54939
54940         * conform/conformtest.pl: Preprocess allow-header data with -x c
54941         instead of from stdin.
54942         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54943         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54944         [C99-based standards] (cerfc): Likewise.
54945         [C99-based standards] (cexp2): Likewise.
54946         [C99-based standards] (cexpm1): Likewise.
54947         [C99-based standards] (clog10): Likewise.
54948         [C99-based standards] (clog1p): Likewise.
54949         [C99-based standards] (clog2): Likewise.
54950         [C99-based standards] (clgamma): Likewise.
54951         [C99-based standards] (ctgamma): Likewise.
54952         [C99-based standards] (cerff): Likewise.
54953         [C99-based standards] (cerfcf): Likewise.
54954         [C99-based standards] (cexp2f): Likewise.
54955         [C99-based standards] (cexpm1f): Likewise.
54956         [C99-based standards] (clog10f): Likewise.
54957         [C99-based standards] (clog1pf): Likewise.
54958         [C99-based standards] (clog2f): Likewise.
54959         [C99-based standards] (clgammaf): Likewise.
54960         [C99-based standards] (ctgammaf): Likewise.
54961         [C99-based standards] (cerfl): Likewise.
54962         [C99-based standards] (cerfcl): Likewise.
54963         [C99-based standards] (cexp2l): Likewise.
54964         [C99-based standards] (cexpm1l): Likewise.
54965         [C99-based standards] (clog10l): Likewise.
54966         [C99-based standards] (clog1pl): Likewise.
54967         [C99-based standards] (clog2l): Likewise.
54968         [C99-based standards] (clgammal): Likewise.
54969         [C99-based standards] (ctgammal): Likewise.
54970         * conform/data/inttypes.h-data [C99-based standards]: Include
54971         stdint.h-data.  Remove all expectations for stdint.h contents.
54972         [C99-based standards] (PRI*): Do not allow.
54973         [C99-based standards] (SCN*): Likewise.
54974         [C99-based standards] (*_t): Likewise.
54975         [C99-based-standards] (PRId8): Expect macro.
54976         [C99-based-standards] (PRIi8): Likewise.
54977         [C99-based-standards] (PRIo8): Likewise.
54978         [C99-based-standards] (PRIu8): Likewise.
54979         [C99-based-standards] (PRIx8): Likewise.
54980         [C99-based-standards] (PRIX8): Likewise.
54981         [C99-based-standards] (SCNd8): Likewise.
54982         [C99-based-standards] (SCNi8): Likewise.
54983         [C99-based-standards] (SCNo8): Likewise.
54984         [C99-based-standards] (SCNu8): Likewise.
54985         [C99-based-standards] (SCNx8): Likewise.
54986         [C99-based-standards] (PRIdLEAST8): Likewise.
54987         [C99-based-standards] (PRIiLEAST8): Likewise.
54988         [C99-based-standards] (PRIoLEAST8): Likewise.
54989         [C99-based-standards] (PRIuLEAST8): Likewise.
54990         [C99-based-standards] (PRIxLEAST8): Likewise.
54991         [C99-based-standards] (PRIXLEAST8): Likewise.
54992         [C99-based-standards] (SCNdLEAST8): Likewise.
54993         [C99-based-standards] (SCNiLEAST8): Likewise.
54994         [C99-based-standards] (SCNoLEAST8): Likewise.
54995         [C99-based-standards] (SCNuLEAST8): Likewise.
54996         [C99-based-standards] (SCNxLEAST8): Likewise.
54997         [C99-based-standards] (PRIdFAST8): Likewise.
54998         [C99-based-standards] (PRIiFAST8): Likewise.
54999         [C99-based-standards] (PRIoFAST8): Likewise.
55000         [C99-based-standards] (PRIuFAST8): Likewise.
55001         [C99-based-standards] (PRIxFAST8): Likewise.
55002         [C99-based-standards] (PRIXFAST8): Likewise.
55003         [C99-based-standards] (SCNdFAST8): Likewise.
55004         [C99-based-standards] (SCNiFAST8): Likewise.
55005         [C99-based-standards] (SCNoFAST8): Likewise.
55006         [C99-based-standards] (SCNuFAST8): Likewise.
55007         [C99-based-standards] (SCNxFAST8): Likewise.
55008         [C99-based-standards] (PRId16): Likewise.
55009         [C99-based-standards] (PRIi16): Likewise.
55010         [C99-based-standards] (PRIo16): Likewise.
55011         [C99-based-standards] (PRIu16): Likewise.
55012         [C99-based-standards] (PRIx16): Likewise.
55013         [C99-based-standards] (PRIX16): Likewise.
55014         [C99-based-standards] (SCNd16): Likewise.
55015         [C99-based-standards] (SCNi16): Likewise.
55016         [C99-based-standards] (SCNo16): Likewise.
55017         [C99-based-standards] (SCNu16): Likewise.
55018         [C99-based-standards] (SCNx16): Likewise.
55019         [C99-based-standards] (PRIdLEAST16): Likewise.
55020         [C99-based-standards] (PRIiLEAST16): Likewise.
55021         [C99-based-standards] (PRIoLEAST16): Likewise.
55022         [C99-based-standards] (PRIuLEAST16): Likewise.
55023         [C99-based-standards] (PRIxLEAST16): Likewise.
55024         [C99-based-standards] (PRIXLEAST16): Likewise.
55025         [C99-based-standards] (SCNdLEAST16): Likewise.
55026         [C99-based-standards] (SCNiLEAST16): Likewise.
55027         [C99-based-standards] (SCNoLEAST16): Likewise.
55028         [C99-based-standards] (SCNuLEAST16): Likewise.
55029         [C99-based-standards] (SCNxLEAST16): Likewise.
55030         [C99-based-standards] (PRIdFAST16): Likewise.
55031         [C99-based-standards] (PRIiFAST16): Likewise.
55032         [C99-based-standards] (PRIoFAST16): Likewise.
55033         [C99-based-standards] (PRIuFAST16): Likewise.
55034         [C99-based-standards] (PRIxFAST16): Likewise.
55035         [C99-based-standards] (PRIXFAST16): Likewise.
55036         [C99-based-standards] (SCNdFAST16): Likewise.
55037         [C99-based-standards] (SCNiFAST16): Likewise.
55038         [C99-based-standards] (SCNoFAST16): Likewise.
55039         [C99-based-standards] (SCNuFAST16): Likewise.
55040         [C99-based-standards] (SCNxFAST16): Likewise.
55041         [C99-based-standards] (PRId32): Likewise.
55042         [C99-based-standards] (PRIi32): Likewise.
55043         [C99-based-standards] (PRIo32): Likewise.
55044         [C99-based-standards] (PRIu32): Likewise.
55045         [C99-based-standards] (PRIx32): Likewise.
55046         [C99-based-standards] (PRIX32): Likewise.
55047         [C99-based-standards] (SCNd32): Likewise.
55048         [C99-based-standards] (SCNi32): Likewise.
55049         [C99-based-standards] (SCNo32): Likewise.
55050         [C99-based-standards] (SCNu32): Likewise.
55051         [C99-based-standards] (SCNx32): Likewise.
55052         [C99-based-standards] (PRIdLEAST32): Likewise.
55053         [C99-based-standards] (PRIiLEAST32): Likewise.
55054         [C99-based-standards] (PRIoLEAST32): Likewise.
55055         [C99-based-standards] (PRIuLEAST32): Likewise.
55056         [C99-based-standards] (PRIxLEAST32): Likewise.
55057         [C99-based-standards] (PRIXLEAST32): Likewise.
55058         [C99-based-standards] (SCNdLEAST32): Likewise.
55059         [C99-based-standards] (SCNiLEAST32): Likewise.
55060         [C99-based-standards] (SCNoLEAST32): Likewise.
55061         [C99-based-standards] (SCNuLEAST32): Likewise.
55062         [C99-based-standards] (SCNxLEAST32): Likewise.
55063         [C99-based-standards] (PRIdFAST32): Likewise.
55064         [C99-based-standards] (PRIiFAST32): Likewise.
55065         [C99-based-standards] (PRIoFAST32): Likewise.
55066         [C99-based-standards] (PRIuFAST32): Likewise.
55067         [C99-based-standards] (PRIxFAST32): Likewise.
55068         [C99-based-standards] (PRIXFAST32): Likewise.
55069         [C99-based-standards] (SCNdFAST32): Likewise.
55070         [C99-based-standards] (SCNiFAST32): Likewise.
55071         [C99-based-standards] (SCNoFAST32): Likewise.
55072         [C99-based-standards] (SCNuFAST32): Likewise.
55073         [C99-based-standards] (SCNxFAST32): Likewise.
55074         [C99-based-standards] (PRId64): Likewise.
55075         [C99-based-standards] (PRIi64): Likewise.
55076         [C99-based-standards] (PRIo64): Likewise.
55077         [C99-based-standards] (PRIu64): Likewise.
55078         [C99-based-standards] (PRIx64): Likewise.
55079         [C99-based-standards] (PRIX64): Likewise.
55080         [C99-based-standards] (SCNd64): Likewise.
55081         [C99-based-standards] (SCNi64): Likewise.
55082         [C99-based-standards] (SCNo64): Likewise.
55083         [C99-based-standards] (SCNu64): Likewise.
55084         [C99-based-standards] (SCNx64): Likewise.
55085         [C99-based-standards] (PRIdLEAST64): Likewise.
55086         [C99-based-standards] (PRIiLEAST64): Likewise.
55087         [C99-based-standards] (PRIoLEAST64): Likewise.
55088         [C99-based-standards] (PRIuLEAST64): Likewise.
55089         [C99-based-standards] (PRIxLEAST64): Likewise.
55090         [C99-based-standards] (PRIXLEAST64): Likewise.
55091         [C99-based-standards] (SCNdLEAST64): Likewise.
55092         [C99-based-standards] (SCNiLEAST64): Likewise.
55093         [C99-based-standards] (SCNoLEAST64): Likewise.
55094         [C99-based-standards] (SCNuLEAST64): Likewise.
55095         [C99-based-standards] (SCNxLEAST64): Likewise.
55096         [C99-based-standards] (PRIdFAST64): Likewise.
55097         [C99-based-standards] (PRIiFAST64): Likewise.
55098         [C99-based-standards] (PRIoFAST64): Likewise.
55099         [C99-based-standards] (PRIuFAST64): Likewise.
55100         [C99-based-standards] (PRIxFAST64): Likewise.
55101         [C99-based-standards] (PRIXFAST64): Likewise.
55102         [C99-based-standards] (SCNdFAST64): Likewise.
55103         [C99-based-standards] (SCNiFAST64): Likewise.
55104         [C99-based-standards] (SCNoFAST64): Likewise.
55105         [C99-based-standards] (SCNuFAST64): Likewise.
55106         [C99-based-standards] (SCNxFAST64): Likewise.
55107         [C99-based-standards] (PRIdMAX): Likewise.
55108         [C99-based-standards] (PRIiMAX): Likewise.
55109         [C99-based-standards] (PRIoMAX): Likewise.
55110         [C99-based-standards] (PRIuMAX): Likewise.
55111         [C99-based-standards] (PRIxMAX): Likewise.
55112         [C99-based-standards] (PRIXMAX): Likewise.
55113         [C99-based-standards] (SCNdMAX): Likewise.
55114         [C99-based-standards] (SCNiMAX): Likewise.
55115         [C99-based-standards] (SCNoMAX): Likewise.
55116         [C99-based-standards] (SCNuMAX): Likewise.
55117         [C99-based-standards] (SCNxMAX): Likewise.
55118         [C99-based-standards] (PRIdPTR): Likewise.
55119         [C99-based-standards] (PRIiPTR): Likewise.
55120         [C99-based-standards] (PRIoPTR): Likewise.
55121         [C99-based-standards] (PRIuPTR): Likewise.
55122         [C99-based-standards] (PRIxPTR): Likewise.
55123         [C99-based-standards] (PRIXPTR): Likewise.
55124         [C99-based-standards] (SCNdPTR): Likewise.
55125         [C99-based-standards] (SCNiPTR): Likewise.
55126         [C99-based-standards] (SCNoPTR): Likewise.
55127         [C99-based-standards] (SCNuPTR): Likewise.
55128         [C99-based-standards] (SCNxPTR): Likewise.
55129         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55130         allow.
55131         * conform/data/stdint.h-data: Update comments to clarify
55132         requirements.
55133         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55134         type.
55135         [C99-based standards] (INT8_MAX): Likewise.
55136         [C99-based standards] (INT16_MIN): Likewise.
55137         [C99-based standards] (INT16_MAX): Likewise.
55138         [C99-based standards] (INT32_MIN): Likewise.
55139         [C99-based standards] (INT32_MAX): Likewise.
55140         [C99-based standards] (INT64_MIN): Likewise.
55141         [C99-based standards] (INT64_MAX): Likewise.
55142         [C99-based standards] (UINT8_MAX): Likewise.
55143         [C99-based standards] (UINT16_MAX): Likewise.
55144         [C99-based standards] (UINT32_MAX): Likewise.
55145         [C99-based standards] (UINT64_MAX): Likewise.
55146         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55147         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55148         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55149         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55150         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55151         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55152         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55153         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55154         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55155         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55156         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55157         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55158         [C99-based standards] (INT_FAST8_MIN): Likewise.
55159         [C99-based standards] (INT_FAST8_MAX): Likewise.
55160         [C99-based standards] (INT_FAST16_MIN): Likewise.
55161         [C99-based standards] (INT_FAST16_MAX): Likewise.
55162         [C99-based standards] (INT_FAST32_MIN): Likewise.
55163         [C99-based standards] (INT_FAST32_MAX): Likewise.
55164         [C99-based standards] (INT_FAST64_MIN): Likewise.
55165         [C99-based standards] (INT_FAST64_MAX): Likewise.
55166         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55167         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55168         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55169         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55170         [C99-based standards] (INTPTR_MIN): Likewise.
55171         [C99-based standards] (INTPTR_MAX): Likewise.
55172         [C99-based standards] (UINTPTR_MAX): Likewise.
55173         [C99-based standards] (INTMAX_MIN): Likewise.
55174         [C99-based standards] (INTMAX_MAX): Likewise.
55175         [C99-based standards] (UINTMAX_MAX): Likewise.
55176         [C99-based standards] (PTRDIFF_MIN): Likewise.
55177         [C99-based standards] (PTRDIFF_MAX): Likewise.
55178         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55179         [C99-based standards] (SIZE_MAX): Likewise.
55180         [C99-based standards] (WCHAR_MAX): Likewise.
55181         [C99-based standards] (WINT_MAX): Likewise.
55182         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55183         constraint on value.
55184         [C99-based standards] (WCHAR_MIN): Likewise.
55185         [C99-based standards] (WINT_MIN): Likewise.
55186         [C99-based standards] (*_t): Allow.
55187         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55188         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55189         Include math.h-data and complex.h-data.  Remove all expectations
55190         of math.h and complex.h contents.
55191         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55192         at end of line.
55193         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55194         (struct tm): Expect tag.
55195         [C99-based-standards] (wcstof): Expect function.
55196         [C99-based-standards] (wcstold): Likewise.
55197         [C99-based-standards] (wcstoll): Likewise.
55198         [C99-based-standards] (wcstoull): Likewise.
55199         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55200         macro-int-constant.  Specify type.
55201         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55202         constraint on value.
55203         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55204         Specify type.
55205         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55206         Specify value.
55207         [ISO C standards]: Do not allow headers.
55208         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55209         wcs[abcdefghijklmnopqrstuvwxyz]*.
55210         [ISO C standards] (*_t): Do not allow.
55211         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55212         Expect function.
55213         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55214         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55215         Specify type.
55216         [ISO C standards]: Do not allow headers.
55217         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55218         is[abcdefghijklmnopqrstuvwxyz]*.
55219         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55220         to[abcdefghijklmnopqrstuvwxyz]*.
55221         [ISO C standards] (*_t): Do not allow.
55222         * conform/data/stdalign.h-data: New file.
55223         * conform/data/stdbool.h-data: Likewise.
55224         * conform/data/stdnoreturn.h-data: Likewise.
55225
55226 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55227
55228         [BZ #14815]
55229         * manual/filesys.texi (Directory Entries): Typo fix.
55230         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55231
55232 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55233
55234         * elf/elf.h (EM_AARCH64): New macro.
55235         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55236         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55237         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55238         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55239         (R_AARCH64_TLSDESC): Likewise.
55240         (NT_ARM_TLS): Likewise.
55241         (NT_ARM_HW_BREAK): Likewise.
55242         (NT_ARM_HW_WATCH): Likewise.
55243
55244 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55245
55246         [BZ #14811]
55247         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55248         (__ieee754_powl): Saturate nonzero exponents with absolute value
55249         below 0x1p-79 to +/- 0x1p-79.
55250         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55251         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55252         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55253         nonzero exponents with absolute value below 0x1p-32 to +/-
55254         0x1p-32.
55255         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55256         (__ieee754_powl): Saturate nonzero exponents with absolute value
55257         below 0x1p-79 to +/- 0x1p-79.
55258         * math/libm-test.inc (pow_test): Add more tests.
55259
55260 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55261
55262         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55263         _dl_s390_cap_flags with kernel. Increase string length.
55264         (_dl_s390_platforms): Add z196 and zEC12.
55265
55266 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55267
55268         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55269         Change XOPEN21K to XOPEN2K.
55270
55271 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55272
55273         * string/memmove.c: Use memcpy when possible.
55274
55275 2012-11-06  Andreas Jaeger  <aj@suse.de>
55276
55277         * po/eo.po: Update from translation team.
55278
55279 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55280
55281         [BZ #14793]
55282         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55283         exponent and small x and y exponents, scale x or y up.  Increase
55284         by 2 the exponent used in scaling up.
55285         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55286         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55287         * math/libm-test.inc (fma_test): Add more tests.
55288         (fma_test_towardzero): Likewise.
55289         (fma_test_downward): Likewise.
55290         (fma_test_upward): Likewise.
55291
55292 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55293
55294         [BZ #14805]
55295         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55296         fenv_t *.
55297
55298         [BZ #14801]
55299         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55300         namespace for names of struct fields.
55301         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55302         fenv_t fields.
55303         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55304         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55305
55306 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55307
55308         [BZ #3665]
55309         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55310
55311 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55312
55313         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55314         PTR_DEMANGLE.
55315
55316         [BZ #5246]
55317         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55318         PTR_DEMANGLE.
55319
55320 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55321
55322         [BZ #14797]
55323         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55324         definitely overflow as x * y not x * y + z.
55325         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55326         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55327         * math/libm-test.inc (fma_test): Add more tests.
55328         (fma_test_towardzero): Likewise.
55329         (fma_test_downward): Likewise.
55330         (fma_test_upward): Likewise.
55331
55332 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55333
55334         [BZ #157]
55335
55336         * include/stub-tag.h: Remove file.
55337         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55338         '#include' of it.
55339         * manual/maint.texi (Porting): Don't reference it.
55340         * Makerules ($(objpfx)stubs): Likewise.
55341         * dirent/closedir.c: Don't include <stub-tag.h>.
55342         * dirent/dirfd.c: Likewise.
55343         * dirent/fdopendir.c: Likewise.
55344         * dirent/getdents.c: Likewise.
55345         * dirent/getdents64.c: Likewise.
55346         * dirent/opendir.c: Likewise.
55347         * dirent/readdir.c: Likewise.
55348         * dirent/readdir64.c: Likewise.
55349         * dirent/readdir64_r.c: Likewise.
55350         * dirent/readdir_r.c: Likewise.
55351         * dirent/rewinddir.c: Likewise.
55352         * dirent/seekdir.c: Likewise.
55353         * dirent/telldir.c: Likewise.
55354         * gmon/profil.c: Likewise.
55355         * grp/setgroups.c: Likewise.
55356         * inet/if_index.c: Likewise.
55357         * io/access.c: Likewise.
55358         * io/chdir.c: Likewise.
55359         * io/chmod.c: Likewise.
55360         * io/chown.c: Likewise.
55361         * io/close.c: Likewise.
55362         * io/dup.c: Likewise.
55363         * io/dup2.c: Likewise.
55364         * io/dup3.c: Likewise.
55365         * io/euidaccess.c: Likewise.
55366         * io/faccessat.c: Likewise.
55367         * io/fchdir.c: Likewise.
55368         * io/fchmod.c: Likewise.
55369         * io/fchmodat.c: Likewise.
55370         * io/fchown.c: Likewise.
55371         * io/fchownat.c: Likewise.
55372         * io/fcntl.c: Likewise.
55373         * io/flock.c: Likewise.
55374         * io/fstatfs.c: Likewise.
55375         * io/fstatfs64.c: Likewise.
55376         * io/fstatvfs.c: Likewise.
55377         * io/fstatvfs64.c: Likewise.
55378         * io/futimens.c: Likewise.
55379         * io/fxstat.c: Likewise.
55380         * io/fxstat64.c: Likewise.
55381         * io/fxstatat.c: Likewise.
55382         * io/fxstatat64.c: Likewise.
55383         * io/getcwd.c: Likewise.
55384         * io/isatty.c: Likewise.
55385         * io/lchmod.c: Likewise.
55386         * io/lchown.c: Likewise.
55387         * io/link.c: Likewise.
55388         * io/linkat.c: Likewise.
55389         * io/lseek.c: Likewise.
55390         * io/lseek64.c: Likewise.
55391         * io/lxstat64.c: Likewise.
55392         * io/mkdir.c: Likewise.
55393         * io/mkdirat.c: Likewise.
55394         * io/mkfifo.c: Likewise.
55395         * io/mkfifoat.c: Likewise.
55396         * io/open.c: Likewise.
55397         * io/open64.c: Likewise.
55398         * io/openat.c: Likewise.
55399         * io/openat64.c: Likewise.
55400         * io/pipe.c: Likewise.
55401         * io/pipe2.c: Likewise.
55402         * io/poll.c: Likewise.
55403         * io/posix_fadvise.c: Likewise.
55404         * io/posix_fadvise64.c: Likewise.
55405         * io/posix_fallocate.c: Likewise.
55406         * io/posix_fallocate64.c: Likewise.
55407         * io/read.c: Likewise.
55408         * io/readlink.c: Likewise.
55409         * io/readlinkat.c: Likewise.
55410         * io/rmdir.c: Likewise.
55411         * io/sendfile.c: Likewise.
55412         * io/sendfile64.c: Likewise.
55413         * io/statfs.c: Likewise.
55414         * io/statfs64.c: Likewise.
55415         * io/statvfs.c: Likewise.
55416         * io/statvfs64.c: Likewise.
55417         * io/symlink.c: Likewise.
55418         * io/symlinkat.c: Likewise.
55419         * io/ttyname.c: Likewise.
55420         * io/ttyname_r.c: Likewise.
55421         * io/umask.c: Likewise.
55422         * io/unlink.c: Likewise.
55423         * io/unlinkat.c: Likewise.
55424         * io/utime.c: Likewise.
55425         * io/utimensat.c: Likewise.
55426         * io/write.c: Likewise.
55427         * io/xmknod.c: Likewise.
55428         * io/xmknodat.c: Likewise.
55429         * io/xstat.c: Likewise.
55430         * io/xstat64.c: Likewise.
55431         * login/getpt.c: Likewise.
55432         * login/grantpt.c: Likewise.
55433         * login/unlockpt.c: Likewise.
55434         * math/e_acoshl.c: Likewise.
55435         * math/e_acosl.c: Likewise.
55436         * math/e_asinl.c: Likewise.
55437         * math/e_atan2l.c: Likewise.
55438         * math/e_atanhl.c: Likewise.
55439         * math/e_coshl.c: Likewise.
55440         * math/e_expl.c: Likewise.
55441         * math/e_fmodl.c: Likewise.
55442         * math/e_gammal_r.c: Likewise.
55443         * math/e_hypotl.c: Likewise.
55444         * math/e_j0l.c: Likewise.
55445         * math/e_j1l.c: Likewise.
55446         * math/e_jnl.c: Likewise.
55447         * math/e_lgammal_r.c: Likewise.
55448         * math/e_log10l.c: Likewise.
55449         * math/e_log2l.c: Likewise.
55450         * math/e_logl.c: Likewise.
55451         * math/e_powl.c: Likewise.
55452         * math/e_rem_pio2l.c: Likewise.
55453         * math/e_sinhl.c: Likewise.
55454         * math/e_sqrtl.c: Likewise.
55455         * math/fclrexcpt.c: Likewise.
55456         * math/fedisblxcpt.c: Likewise.
55457         * math/feenablxcpt.c: Likewise.
55458         * math/fegetenv.c: Likewise.
55459         * math/fegetexcept.c: Likewise.
55460         * math/fegetround.c: Likewise.
55461         * math/feholdexcpt.c: Likewise.
55462         * math/fesetenv.c: Likewise.
55463         * math/fesetround.c: Likewise.
55464         * math/feupdateenv.c: Likewise.
55465         * math/fgetexcptflg.c: Likewise.
55466         * math/fraiseexcpt.c: Likewise.
55467         * math/fsetexcptflg.c: Likewise.
55468         * math/ftestexcept.c: Likewise.
55469         * math/k_cosl.c: Likewise.
55470         * math/k_rem_pio2l.c: Likewise.
55471         * math/k_sinl.c: Likewise.
55472         * math/k_tanl.c: Likewise.
55473         * math/s_asinhl.c: Likewise.
55474         * math/s_atanl.c: Likewise.
55475         * math/s_cbrtl.c: Likewise.
55476         * math/s_erfl.c: Likewise.
55477         * math/s_expm1l.c: Likewise.
55478         * math/s_log1pl.c: Likewise.
55479         * math/s_tanhl.c: Likewise.
55480         * misc/acct.c: Likewise.
55481         * misc/brk.c: Likewise.
55482         * misc/chflags.c: Likewise.
55483         * misc/chroot.c: Likewise.
55484         * misc/fchflags.c: Likewise.
55485         * misc/fgetxattr.c: Likewise.
55486         * misc/flistxattr.c: Likewise.
55487         * misc/fremovexattr.c: Likewise.
55488         * misc/fsetxattr.c: Likewise.
55489         * misc/fsync.c: Likewise.
55490         * misc/ftruncate.c: Likewise.
55491         * misc/futimes.c: Likewise.
55492         * misc/futimesat.c: Likewise.
55493         * misc/getdomain.c: Likewise.
55494         * misc/getdtsz.c: Likewise.
55495         * misc/gethostid.c: Likewise.
55496         * misc/gethostname.c: Likewise.
55497         * misc/getloadavg.c: Likewise.
55498         * misc/getpagesize.c: Likewise.
55499         * misc/getsysstats.c: Likewise.
55500         * misc/getxattr.c: Likewise.
55501         * misc/gtty.c: Likewise.
55502         * misc/ioctl.c: Likewise.
55503         * misc/lgetxattr.c: Likewise.
55504         * misc/listxattr.c: Likewise.
55505         * misc/llistxattr.c: Likewise.
55506         * misc/lremovexattr.c: Likewise.
55507         * misc/lsetxattr.c: Likewise.
55508         * misc/lutimes.c: Likewise.
55509         * misc/madvise.c: Likewise.
55510         * misc/mincore.c: Likewise.
55511         * misc/mlock.c: Likewise.
55512         * misc/mlockall.c: Likewise.
55513         * misc/mmap.c: Likewise.
55514         * misc/mprotect.c: Likewise.
55515         * misc/msync.c: Likewise.
55516         * misc/munlock.c: Likewise.
55517         * misc/munlockall.c: Likewise.
55518         * misc/munmap.c: Likewise.
55519         * misc/preadv.c: Likewise.
55520         * misc/preadv64.c: Likewise.
55521         * misc/ptrace.c: Likewise.
55522         * misc/pwritev.c: Likewise.
55523         * misc/pwritev64.c: Likewise.
55524         * misc/readv.c: Likewise.
55525         * misc/reboot.c: Likewise.
55526         * misc/remap_file_pages.c: Likewise.
55527         * misc/removexattr.c: Likewise.
55528         * misc/revoke.c: Likewise.
55529         * misc/select.c: Likewise.
55530         * misc/setdomain.c: Likewise.
55531         * misc/setegid.c: Likewise.
55532         * misc/seteuid.c: Likewise.
55533         * misc/sethostid.c: Likewise.
55534         * misc/sethostname.c: Likewise.
55535         * misc/setregid.c: Likewise.
55536         * misc/setreuid.c: Likewise.
55537         * misc/setxattr.c: Likewise.
55538         * misc/sstk.c: Likewise.
55539         * misc/stty.c: Likewise.
55540         * misc/swapoff.c: Likewise.
55541         * misc/swapon.c: Likewise.
55542         * misc/sync.c: Likewise.
55543         * misc/syncfs.c: Likewise.
55544         * misc/syscall.c: Likewise.
55545         * misc/truncate.c: Likewise.
55546         * misc/ualarm.c: Likewise.
55547         * misc/usleep.c: Likewise.
55548         * misc/ustat.c: Likewise.
55549         * misc/utimes.c: Likewise.
55550         * misc/vhangup.c: Likewise.
55551         * misc/writev.c: Likewise.
55552         * posix/_exit.c: Likewise.
55553         * posix/alarm.c: Likewise.
55554         * posix/execve.c: Likewise.
55555         * posix/fexecve.c: Likewise.
55556         * posix/fork.c: Likewise.
55557         * posix/fpathconf.c: Likewise.
55558         * posix/getaddrinfo.c: Likewise.
55559         * posix/getegid.c: Likewise.
55560         * posix/geteuid.c: Likewise.
55561         * posix/getgid.c: Likewise.
55562         * posix/getgroups.c: Likewise.
55563         * posix/getlogin.c: Likewise.
55564         * posix/getlogin_r.c: Likewise.
55565         * posix/getpgid.c: Likewise.
55566         * posix/getpid.c: Likewise.
55567         * posix/getppid.c: Likewise.
55568         * posix/getresgid.c: Likewise.
55569         * posix/getresuid.c: Likewise.
55570         * posix/getsid.c: Likewise.
55571         * posix/getuid.c: Likewise.
55572         * posix/glob64.c: Likewise.
55573         * posix/nanosleep.c: Likewise.
55574         * posix/pathconf.c: Likewise.
55575         * posix/pause.c: Likewise.
55576         * posix/posix_madvise.c: Likewise.
55577         * posix/pread.c: Likewise.
55578         * posix/pread64.c: Likewise.
55579         * posix/pwrite.c: Likewise.
55580         * posix/pwrite64.c: Likewise.
55581         * posix/sched_getaffinity.c: Likewise.
55582         * posix/sched_getp.c: Likewise.
55583         * posix/sched_gets.c: Likewise.
55584         * posix/sched_primax.c: Likewise.
55585         * posix/sched_primin.c: Likewise.
55586         * posix/sched_rr_gi.c: Likewise.
55587         * posix/sched_setaffinity.c: Likewise.
55588         * posix/sched_setp.c: Likewise.
55589         * posix/sched_sets.c: Likewise.
55590         * posix/sched_yield.c: Likewise.
55591         * posix/setgid.c: Likewise.
55592         * posix/setlogin.c: Likewise.
55593         * posix/setpgid.c: Likewise.
55594         * posix/setresgid.c: Likewise.
55595         * posix/setresuid.c: Likewise.
55596         * posix/setsid.c: Likewise.
55597         * posix/setuid.c: Likewise.
55598         * posix/sleep.c: Likewise.
55599         * posix/spawni.c: Likewise.
55600         * posix/sysconf.c: Likewise.
55601         * posix/times.c: Likewise.
55602         * posix/wait.c: Likewise.
55603         * posix/wait3.c: Likewise.
55604         * posix/wait4.c: Likewise.
55605         * posix/waitpid.c: Likewise.
55606         * resolv/gai_sigqueue.c: Likewise.
55607         * resource/getpriority.c: Likewise.
55608         * resource/getrlimit.c: Likewise.
55609         * resource/getrusage.c: Likewise.
55610         * resource/nice.c: Likewise.
55611         * resource/setpriority.c: Likewise.
55612         * resource/setrlimit.c: Likewise.
55613         * resource/ulimit.c: Likewise.
55614         * rt/aio_cancel.c: Likewise.
55615         * rt/aio_fsync.c: Likewise.
55616         * rt/aio_read.c: Likewise.
55617         * rt/aio_sigqueue.c: Likewise.
55618         * rt/aio_suspend.c: Likewise.
55619         * rt/aio_write.c: Likewise.
55620         * rt/clock_getres.c: Likewise.
55621         * rt/clock_gettime.c: Likewise.
55622         * rt/clock_nanosleep.c: Likewise.
55623         * rt/clock_settime.c: Likewise.
55624         * rt/lio_listio.c: Likewise.
55625         * rt/mq_close.c: Likewise.
55626         * rt/mq_getattr.c: Likewise.
55627         * rt/mq_notify.c: Likewise.
55628         * rt/mq_open.c: Likewise.
55629         * rt/mq_receive.c: Likewise.
55630         * rt/mq_send.c: Likewise.
55631         * rt/mq_setattr.c: Likewise.
55632         * rt/mq_timedreceive.c: Likewise.
55633         * rt/mq_timedsend.c: Likewise.
55634         * rt/mq_unlink.c: Likewise.
55635         * rt/shm_open.c: Likewise.
55636         * rt/shm_unlink.c: Likewise.
55637         * rt/timer_create.c: Likewise.
55638         * rt/timer_delete.c: Likewise.
55639         * rt/timer_getoverr.c: Likewise.
55640         * rt/timer_gettime.c: Likewise.
55641         * rt/timer_settime.c: Likewise.
55642         * setjmp/__longjmp.c: Likewise.
55643         * setjmp/setjmp.c: Likewise.
55644         * signal/kill.c: Likewise.
55645         * signal/killpg.c: Likewise.
55646         * signal/raise.c: Likewise.
55647         * signal/sigaction.c: Likewise.
55648         * signal/sigaltstack.c: Likewise.
55649         * signal/sigblock.c: Likewise.
55650         * signal/sigignore.c: Likewise.
55651         * signal/sigintr.c: Likewise.
55652         * signal/signal.c: Likewise.
55653         * signal/sigpause.c: Likewise.
55654         * signal/sigpending.c: Likewise.
55655         * signal/sigqueue.c: Likewise.
55656         * signal/sigreturn.c: Likewise.
55657         * signal/sigset.c: Likewise.
55658         * signal/sigsetmask.c: Likewise.
55659         * signal/sigstack.c: Likewise.
55660         * signal/sigsuspend.c: Likewise.
55661         * signal/sigtimedwait.c: Likewise.
55662         * signal/sigvec.c: Likewise.
55663         * signal/sigwait.c: Likewise.
55664         * signal/sigwaitinfo.c: Likewise.
55665         * signal/sysv_signal.c: Likewise.
55666         * socket/accept.c: Likewise.
55667         * socket/accept4.c: Likewise.
55668         * socket/bind.c: Likewise.
55669         * socket/connect.c: Likewise.
55670         * socket/getpeername.c: Likewise.
55671         * socket/getsockname.c: Likewise.
55672         * socket/getsockopt.c: Likewise.
55673         * socket/isfdtype.c: Likewise.
55674         * socket/listen.c: Likewise.
55675         * socket/recv.c: Likewise.
55676         * socket/recvfrom.c: Likewise.
55677         * socket/recvmsg.c: Likewise.
55678         * socket/send.c: Likewise.
55679         * socket/sendmsg.c: Likewise.
55680         * socket/sendto.c: Likewise.
55681         * socket/setsockopt.c: Likewise.
55682         * socket/shutdown.c: Likewise.
55683         * socket/sockatmark.c: Likewise.
55684         * socket/socket.c: Likewise.
55685         * socket/socketpair.c: Likewise.
55686         * stdio-common/ctermid.c: Likewise.
55687         * stdio-common/cuserid.c: Likewise.
55688         * stdio-common/remove.c: Likewise.
55689         * stdio-common/rename.c: Likewise.
55690         * stdio-common/renameat.c: Likewise.
55691         * stdio-common/tempname.c: Likewise.
55692         * stdlib/getcontext.c: Likewise.
55693         * stdlib/makecontext.c: Likewise.
55694         * stdlib/setcontext.c: Likewise.
55695         * stdlib/swapcontext.c: Likewise.
55696         * stdlib/system.c: Likewise.
55697         * streams/fattach.c: Likewise.
55698         * streams/fdetach.c: Likewise.
55699         * streams/getmsg.c: Likewise.
55700         * streams/getpmsg.c: Likewise.
55701         * streams/putmsg.c: Likewise.
55702         * streams/putpmsg.c: Likewise.
55703         * sysdeps/unix/bsd/getpt.c: Likewise.
55704         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55705         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55706         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55708         Likewise.
55709         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55710         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55711         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55712         * sysvipc/msgctl.c: Likewise.
55713         * sysvipc/msgget.c: Likewise.
55714         * sysvipc/msgrcv.c: Likewise.
55715         * sysvipc/msgsnd.c: Likewise.
55716         * sysvipc/semctl.c: Likewise.
55717         * sysvipc/semget.c: Likewise.
55718         * sysvipc/semop.c: Likewise.
55719         * sysvipc/semtimedop.c: Likewise.
55720         * sysvipc/shmat.c: Likewise.
55721         * sysvipc/shmctl.c: Likewise.
55722         * sysvipc/shmdt.c: Likewise.
55723         * sysvipc/shmget.c: Likewise.
55724         * termios/tcdrain.c: Likewise.
55725         * termios/tcflow.c: Likewise.
55726         * termios/tcflush.c: Likewise.
55727         * termios/tcgetattr.c: Likewise.
55728         * termios/tcgetpgrp.c: Likewise.
55729         * termios/tcsendbrk.c: Likewise.
55730         * termios/tcsetattr.c: Likewise.
55731         * termios/tcsetpgrp.c: Likewise.
55732         * time/adjtime.c: Likewise.
55733         * time/clock.c: Likewise.
55734         * time/getitimer.c: Likewise.
55735         * time/gettimeofday.c: Likewise.
55736         * time/setitimer.c: Likewise.
55737         * time/settimeofday.c: Likewise.
55738         * time/stime.c: Likewise.
55739         * time/time.c: Likewise.
55740
55741 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55742
55743         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55744         /usr/old/bin.
55745
55746         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55747         instead of spaces.
55748         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55749
55750 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55751
55752         [BZ #14796]
55753         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55754         FE_TONEAREST before applying Dekker multiplication and Knuth
55755         addition.  Clear inexact exceptions and check for exact zero
55756         results afterwards.
55757         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55758         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55759         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55760         * math/libm-test.inc (fma_test): Add more tests.
55761         (fma_test_towardzero): Likewise.
55762         (fma_test_downward): Likewise.
55763         (fma_test_upward): Likewise.
55764         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55765         function.
55766         (libc_fesetround): New macro.
55767         (libc_fesetroundf): Likewise.
55768         (libc_fesetroundl): Likewise.
55769         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55770         function.
55771         (libc_fesetround_387): Likewise.
55772         (libc_fesetroundf): New macro.
55773         (libc_fesetround): Likewise.
55774         (libc_fesetroundl): Likewise.
55775         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55776         function.
55777         (libc_fesetroundf): New macro.
55778         (libc_fesetround): Likewise.
55779         (libc_fesetroundl): Likewise.
55780         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55781         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55782         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55783         libm_hidden_ver.
55784         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55785         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55786         libm_hidden_def.
55787         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55788         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55789         libm_hidden_ver.
55790         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55791         libm_hidden_def.
55792
55793         [BZ #3439]
55794         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55795         integer constant usable in #if and use that to give value to enum
55796         constant.
55797         (FE_DIVBYZERO): Likewise.
55798         (FE_UNDERFLOW): Likewise.
55799         (FE_OVERFLOW): Likewise.
55800         (FE_INVALID): Likewise.
55801         (FE_INVALID_SNAN): Likewise.
55802         (FE_INVALID_ISI): Likewise.
55803         (FE_INVALID_IDI): Likewise.
55804         (FE_INVALID_ZDZ): Likewise.
55805         (FE_INVALID_IMZ): Likewise.
55806         (FE_INVALID_COMPARE): Likewise.
55807         (FE_INVALID_SOFTWARE): Likewise.
55808         (FE_INVALID_SQRT): Likewise.
55809         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55810         (FE_TONEAREST): Likewise.
55811         (FE_TOWARDZERO): Likewise.
55812         (FE_UPWARD): Likewise.
55813         (FE_DOWNWARD): Likewise.
55814         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55815         (FE_DIVBYZERO): Likewise.
55816         (FE_OVERFLOW): Likewise.
55817         (FE_UNDERFLOW): Likewise.
55818         (FE_INEXACT): Likewise.
55819         (FE_TONEAREST): Likewise.
55820         (FE_DOWNWARD): Likewise.
55821         (FE_UPWARD): Likewise.
55822         (FE_TOWARDZERO): Likewise.
55823         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55824         (FE_UNDERFLOW): Likewise.
55825         (FE_OVERFLOW): Likewise.
55826         (FE_DIVBYZERO): Likewise.
55827         (FE_INVALID): Likewise.
55828         (FE_TONEAREST): Likewise.
55829         (FE_TOWARDZERO): Likewise.
55830         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55831         (FE_OVERFLOW): Likewise.
55832         (FE_UNDERFLOW): Likewise.
55833         (FE_DIVBYZERO): Likewise.
55834         (FE_INEXACT): Likewise.
55835         (FE_TONEAREST): Likewise.
55836         (FE_TOWARDZERO): Likewise.
55837         (FE_UPWARD): Likewise.
55838         (FE_DOWNWARD): Likewise.
55839         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55840         (FE_DIVBYZERO): Likewise.
55841         (FE_OVERFLOW): Likewise.
55842         (FE_UNDERFLOW): Likewise.
55843         (FE_INEXACT): Likewise.
55844         (FE_TONEAREST): Likewise.
55845         (FE_DOWNWARD): Likewise.
55846         (FE_UPWARD): Likewise.
55847         (FE_TOWARDZERO): Likewise.
55848
55849 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55850
55851         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55852
55853 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55854
55855         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55856         commands.  Quote $PWD.
55857         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55858         -x" by "export".
55859         (remove_newlines): Remove.
55860
55861 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55862
55863         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55864         * stdlib/stdlib.h (atof): Moved to ...
55865         * include/bits/stdlib-float.h: Here.  New file.
55866         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55867         * stdlib/bits/stdlib-float.h: New file.
55868         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55869         -mno-sse -mno-mmx.
55870         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55871         <xmmintrin.h>.
55872
55873 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55874
55875         * conform/conformtest.pl (@headers): Add fenv.h.
55876         * conform/data/fenv.h-data: New file.
55877         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55878         include of <math/fenv.h>.
55879
55880         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55881         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55882         && !UNIX98].  Enables tests for XOPEN2K8.
55883         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55884         POSIX2008]: Likewise.
55885
55886         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55887         (struct rusage): Do not expect type or its members.
55888
55889         [BZ #3439]
55890         * math/math.h (FP_NAN): Define macro to integer constant usable in
55891         #if and use that to give value to enum constant.
55892         (FP_INFINITE): Likewise.
55893         (FP_ZERO): Likewise.
55894         (FP_SUBNORMAL): Likewise.
55895         (FP_NORMAL): Likewise.
55896
55897 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55898
55899         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55900         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55901         arguments.
55902
55903 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55904
55905         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55906         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55907         autoconf-time if not.
55908         * configure.in: Remove AC_PREREQ.
55909
55910 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55911
55912         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55913         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55914         of the internal implementation.
55915
55916 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55917
55918         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55919         except include of <misc/sys/syslog.h>.
55920
55921 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55922
55923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55924         function returns with a NULL context exit with zero.
55925
55926 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55927
55928         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55929
55930 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55931
55932         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55933         (run_program_cmd): This.
55934         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55935         (tst_langinfo): New variable.  Use it.
55936
55937 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55938
55939         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55940         floating point opcodes.
55941
55942 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55943
55944         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55945         variable.
55946
55947         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55948
55949         * sysdeps/mach/hurd/powerpc: Remove directory.
55950         * sysdeps/mach/powerpc: Likewise.
55951
55952 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55953
55954         * scripts/check-local-headers.sh: Ignore c++ headers.
55955
55956 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55957
55958         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55959         __libc_cleanup_region_start argument.
55960
55961 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55962
55963         [BZ #14784]
55964         [BZ #14785]
55965         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55966         x * y using scaling, not as x * y + z.
55967         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55968         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55969         * math/libm-test.inc (fma_test): Add more tests.
55970         (fma_test_towardzero): Likewise.
55971         (fma_test_downward): Likewise.
55972         (fma_test_upward): Likewise.
55973
55974 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55975
55976         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55977
55978 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55979
55980         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55981         New variable.
55982
55983 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55984
55985         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55986
55987 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55988
55989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55990         Fix sort order.
55991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55992         Likewise.
55993
55994 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55995
55996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55997         Fix the order of the list for glibc 2.17.
55998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55999         Likewise.
56000
56001 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56002
56003         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56004
56005 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56006
56007         [BZ #14610]
56008         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56009         for low part of x being zero before using __atanl (y).
56010         * math/libm-test.inc (atan2_test): Add another test.
56011
56012         * manual/install.texi (Configuring and compiling): Document
56013         general use of test-wrapper and test-wrapper-env.
56014         * INSTALL: Regenerated.
56015
56016         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56017         (__fma): Do not extract and scale down low bits on after-rounding
56018         systems when result rounded to normal precision would have normal
56019         exponent.
56020         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56021         (__fmal): Do not extract and scale down low bits on after-rounding
56022         systems when result rounded to normal precision would have normal
56023         exponent.
56024         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56025         (__fmal): Do not extract and scale down low bits on after-rounding
56026         systems when result rounded to normal precision would have normal
56027         exponent.
56028         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56029         macro.
56030         (fma_test): Add more tests.
56031         (fma_test_towardzero): Likewise.
56032         (fma_test_downward): Likewise.
56033         (fma_test_upward): Likewise.
56034
56035 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56036
56037         * sysdeps/i386/tininess.h: Renamed to ...
56038         * sysdeps/x86/tininess.h: This.
56039         * sysdeps/x86_64/tininess.h: Removed.
56040
56041 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56042
56043         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56044         input.  Use $(build-program-cmd).
56045         ($(objpfx)tst-array1-static.out): Likewise.
56046         ($(objpfx)tst-array2.out): Likewise.
56047         ($(objpfx)tst-array3.out): Likewise.
56048         ($(objpfx)tst-array4.out): Likewise.
56049         ($(objpfx)tst-array5.out): Likewise.
56050         ($(objpfx)tst-array5-static.out): Likewise.
56051
56052 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56053
56054         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56055         if defined.
56056
56057         * nss/nsswitch.h (nss_interface_function): Provide new
56058         macro for use with NSS functions.
56059         * grp/initgroups.c: Use new macro.
56060         * nss/getXXbyYY.c: Likewise.
56061         * nss/getXXbyYY_r.c: Likewise.
56062         * nss/getXXent.c: Likewise.
56063         * nss/getXXent_r.c: Likewise.
56064         * sysdeps/posix/getaddrinfo.c: Likewise.
56065
56066 2012-10-30  Andreas Jaeger  <aj@suse.de>
56067
56068         * po/ru.po: Update Russion translation from translation project.
56069
56070 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56071
56072         [BZ #14152]
56073         [BZ #14783]
56074         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56075         result and shift together with sticky bit instead of replicating
56076         round-to-nearest rounding.
56077         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56078         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56079         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56080         missing underflow exceptions.
56081         (fma_test_towardzero): Add more tests.
56082         (fma_test_downward): Likewise.
56083         (fma_test_upward): Likewise.
56084
56085         [BZ #14047]
56086         * sysdeps/generic/tininess.h: New file.
56087         * sysdeps/i386/tininess.h: Likewise.
56088         * sysdeps/sh/tininess.h: Likewise.
56089         * sysdeps/x86_64/tininess.h: Likewise.
56090         * stdlib/tst-strtod-underflow.c: Likewise.
56091         * stdlib/tst-tininess.c: Likewise.
56092         * stdlib/strtod_l.c: Include <tininess.h>.
56093         (round_and_return): Do not set errno for exact underflow cases.
56094         Force an underflow exception when setting errno for underflow.
56095         Determine underflow based on rounding to normal precision if
56096         TININESS_AFTER_ROUNDING.
56097         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56098         ERANGE for exact underflow cases.
56099         * stdlib/Makefile (tests): Add tst-tininess and
56100         tst-strtod-underflow.
56101         ($(objpfx)tst-tininess): Use $(link-libm).
56102         ($(objpfx)tst-strtod-underflow): Likewise.
56103
56104 2012-10-30  Andreas Jaeger  <aj@suse.de>
56105
56106         [BZ#14767]
56107         * elf/Makefile (tests): Remove conditional for have-initfini-array
56108         since this is now always required and the variable does not exist
56109         anymore.
56110         (tests-static): Likewise.
56111         (modules-names): Likewise.
56112
56113         * po/eo.po: Add Esperanto translation from translation project.
56114
56115         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56116         merged with constructor/destructor.
56117         (init_array): Likewise.
56118         * elf/tst-array2dep.c (fini_array): Likewise.
56119         (init_array): Likewise.
56120
56121 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56122
56123         * manual/message.texi: Delete @cartouche tags.
56124
56125 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56126
56127         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56128         EOPNOTSUPP.
56129         * sysdeps/mach/hurd/fsync.c: Likewise.
56130
56131         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56132         [_POSIX_REALTIME_SIGNALS]: Change condition to
56133         [_POSIX_REALTIME_SIGNALS > 0].
56134
56135 2012-10-27  Andreas Jaeger  <aj@suse.de>
56136
56137         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56138         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56139         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56140         [__WORDSIZE != 64]: Likewise.
56141
56142 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56143
56144         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56145         *  iconvdata/tst-tables.sh: Likewise.
56146
56147 2012-10-25  David S. Miller  <davem@davemloft.net>
56148
56149         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56150         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56151         of strtoull.
56152
56153         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56154         ifunc-impl-list.c
56155         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56156         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56157         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56158         file.
56159
56160 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56161
56162         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56163         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56164         __getdirentries.
56165
56166 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56167             Jim Blandy  <jimb@codesourcery.com>
56168
56169         * scripts/cross-test-ssh.sh: New file.
56170         * manual/install.texi (Configuring and compiling): Document use of
56171         cross-test-ssh.sh.
56172         * INSTALL: Regenerated.
56173
56174 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56175
56176         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56177         EOPNOTSUPP.
56178
56179 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56180
56181         * Makeconfig (run-program-prefix): Fix comment.
56182
56183 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56184             Jim Blandy  <jimb@codesourcery.com>
56185
56186         * Makeconfig (test-wrapper): New variable,
56187         (test-wrapper-env): Likewise.
56188         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56189         (run-built-tests): Define to yes.
56190         (run-program-prefix): Use $(test-wrapper).
56191         (built-program-cmd): Likewise.
56192         * Rules (make-test-out): Use $(test-wrapper-env) and
56193         $(host-built-program-cmd).
56194         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56195         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56196         tst-pathopt.sh.
56197         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56198         $(test-wrapper-env) to tst-rtld-load-self.sh.
56199         ($(objpfx)order2.out): Use $(test-wrapper).
56200         ($(objpfx)tst-initorder.out): Likewise.
56201         ($(objpfx)tst-initorder2.out): Likewise.
56202         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56203         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56204         (test_wrapper_env): New variable.  Use it to run ld.so.
56205         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56206         Use it to run ld.so.
56207         (test_wrapper_env): Likewise.
56208         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56209         $(test-wrapper) to run-iconv-test.sh.
56210         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56211         (ICONV): Use $test_wrapper.
56212         * posix/Makefile ($(objpfx)globtest.out): Pass
56213         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56214         globtest.sh, not $(run-program-prefix).
56215         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56216         (test_wrapper): Likewise.
56217         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56218         set together with run_via_rtld_prefix.
56219         (run_program_prefix): Define in terms of test_wrapper and
56220         run_via_rtld_prefix.
56221
56222 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56223
56224         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56225         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56226         Targets removed.
56227
56228         [BZ #14743]
56229         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56230         Declare __clock_getres, __clock_gettime, __clock_settime,
56231         __clock_nanosleep, and __clock_getcpuclockid.
56232         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56233         Remove librt_hidden_def (clock_gettime).
56234         * sysdeps/unix/clock_gettime.c: Likewise.
56235         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56236         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56237         * rt/clock_getres.c: Define __clock_getres as an alias.
56238         * sysdeps/posix/clock_getres.c: Likewise.
56239         * rt/clock_settime.c: Define __clock_settime as an alias.
56240         * sysdeps/unix/clock_settime.c: Likewise.
56241         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56242         * sysdeps/unix/clock_nanosleep.c: Likewise.
56243         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56244         * rt/clock-compat.c: New file.
56245         * rt/Makefile (librt-routines): Add clock-compat and move
56246         $(clock-routines) to ...
56247         (routines): ... here, new variable.
56248         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56249         Don't add get_clockfreq here.
56250         * rt/Versions (libc: GLIBC_2.17): New version set.
56251         Add clock_* symbols here.
56252         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56253         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56254         (GLIBC_2.17): Add clock_* symbols.
56255         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56256         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56257         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56259         Likewise.
56260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56261         Likewise.
56262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56263         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56264         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56266         * NEWS: Mention the move.
56267
56268         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56269         Use __open, __read, __close rather than their public counterparts.
56270         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56271         (__get_clockfreq_via_cpuinfo): Likewise.
56272         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56273         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56274
56275         * config.h.in (HAVE_IFUNC): New #undef.
56276         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56277         was successful.
56278         * configure: Regenerated.
56279
56280 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56281
56282         * configure.in: Move READELF check to start of file.
56283         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56284         libc_cv_asm_gnu_indirect_function in the process.
56285         * configure: Regenerated.
56286
56287 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56288
56289         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56290         send the output to /dev/null.
56291         (libc_cv_cc_with_libunwind): Likewise.
56292         (libc_cv_as_noexecstack): Likewise.
56293         * configure: Regenerate.
56294
56295 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56296
56297         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56298
56299         * posix/globtest.sh (TMPDIR): Do not set.
56300         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56301         (testout): Likewise.
56302
56303 2012-10-24  Andreas Jaeger  <aj@suse.de>
56304
56305         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56306         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56307         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56308         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56309         posix_fadvise64, posix_fallocate64.
56310
56311         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56312         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56313         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56314         Likewise.
56315         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56316         Likewise.
56317         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56318
56319         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56320         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56321         <bits/fcntl-linux.h>.
56322         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56323
56324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56325         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56326         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56327         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56328         [__WORDSIZE != 64]: Likewise.
56329
56330 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56331
56332         * Makeconfig (run-built-tests): New variable.
56333         * Rules [$(cross-compiling) = yes]: Change condition to
56334         [$(run-built-tests) = no].
56335         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56336         to [$(run-built-tests) = yes].
56337         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56338         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56339         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56340         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56341         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56342         * io/Makefile [$(cross-compiling) = no]: Likewise.
56343         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56344         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56345         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56346         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56347         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56348         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56349         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56350         * string/Makefile [$(cross-compiling) = no]: Likewise.
56351
56352         * posix/Makefile ($(objpfx)globtest.out): Pass
56353         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56354         $(rtld-installed-name).
56355         * posix/globtest.sh (elf_objpfx): Remove variable.
56356         (rtld_installed_name): Likewise.
56357         (library_path): Likewise.
56358         (run_program_prefix): New variable.  Use for running globtest
56359         binary.
56360
56361 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56362             Joseph Myers  <joseph@codesourcery.com>
56363
56364         * Makeconfig (host-built-program-cmd): New variable.
56365         * elf/Makefile (tst-stackguard1-ARGS): Use
56366         $(host-built-program-cmd).
56367         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56368         (tst-spawn-ARGS): Likewise.
56369         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56370
56371 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56372             Jim Blandy  <jimb@codesourcery.com>
56373
56374         * Makeconfig (run-via-rtld-prefix): New variable.
56375         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56376         (built-program-cmd): Likewise.
56377
56378 2012-10-22  Andreas Jaeger  <aj@suse.de>
56379
56380         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56381         __O_RSYNC if it exists, otherwise to O_SYNC.
56382
56383 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56384             Joseph Myers  <joseph@codesourcery.com>
56385
56386         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56387         /dev/null.
56388         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56389         from /dev/null
56390         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56391         /dev/null.
56392
56393 2012-10-22  Andreas Jaeger  <aj@suse.de>
56394
56395         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56396         Define always.
56397         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56398
56399         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56400         bits/fcntl-linux.h.
56401
56402         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56403         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56404
56405         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56406         to __O_LARGEFILE.
56407         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56408         to __O_LARGEFILE.
56409
56410 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56411             Joseph Myers  <joseph@codesourcery.com>
56412
56413         * config.make.in (NM): New variable.
56414
56415 2012-10-21  Andreas Jaeger  <aj@suse.de>
56416
56417         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56418         definitions and declarations that are provided by
56419         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56420
56421 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56422
56423         [BZ #14683]
56424         * elf/Makefile (tests-static): Add tst-leaks1-static.
56425         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56426         ($(objpfx)tst-leaks1-static): New rule.
56427         ($(objpfx)tst-leaks1-static-mem): Likewise.
56428         (tst-leaks1-static-ENV): New macro.
56429         * elf/dl-open.c (dl_open_worker): Check the main application
56430         only if SHARED is defined.
56431         * elf/tst-leaks1-static.c: New file.
56432
56433 2012-10-20  Andreas Jaeger  <aj@suse.de>
56434
56435         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56436         generic values for Linux.
56437         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56438         and declarations that are provided by <bits/fcntl-linux.h> and
56439         include <bits/fcntl-linux.h>.
56440         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56441         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56442
56443 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56444
56445         * io/fcntl.h: Move include of <bits/types.h> to the top and
56446         include it unconditionally.
56447
56448 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56449
56450         * wcsmbs/Makefile (tests-ifunc): New variable.
56451         (tests): Add $(tests-ifunc).
56452         * wcsmbs/test-wcschr-ifunc.c: New file.
56453         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56454         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56455         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56456         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56457         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56458
56459         * string/Makefile (tests-ifunc): New variable.
56460         (tests): Add $(tests-ifunc).
56461         * string/test-memccpy.c (TEST_NAME): New macro.
56462         * string/test-memchr.c (TEST_NAME): Likewise.
56463         * string/test-memcmp.c (TEST_NAME): Likewise.
56464         * string/test-memcpy.c (TEST_NAME): Likewise.
56465         * string/test-memmem.c (TEST_NAME): Likewise.
56466         * string/test-memmove.c (TEST_NAME): Likewise.
56467         * string/test-memset.c (TEST_NAME): Likewise.
56468         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56469         * string/test-stpcpy.c (TEST_NAME): Likewise.
56470         * string/test-stpncpy.c (TEST_NAME): Likewise.
56471         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56472         * string/test-strcasestr.c (TEST_NAME): Likewise.
56473         * string/test-strcat.c (TEST_NAME): Likewise.
56474         * string/test-strchr.c (TEST_NAME): Likewise.
56475         * string/test-strcmp.c(TEST_NAME): Likewise.
56476         * string/test-strcpy.c (TEST_NAME): Likewise.
56477         * string/test-strcspn.c (TEST_NAME): Likewise.
56478         * string/test-strlen.c (TEST_NAME): Likewise.
56479         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56480         * string/test-strncmp.c (TEST_NAME): Likewise.
56481         * string/test-strncpy.c (TEST_NAME): Likewise.
56482         * string/test-strnlen.c (TEST_NAME): Likewise.
56483         * string/test-strpbrk.c (TEST_NAME): Likewise.
56484         * string/test-strrchr.c (TEST_NAME): Likewise.
56485         * string/test-strspn.c (TEST_NAME): Likewise.
56486         * string/test-strstr.c (TEST_NAME): Likewise.
56487         * string/test-bcopy-ifunc.c: New file.
56488         * string/test-bzero-ifunc.c: Likewise.
56489         * string/test-memccpy-ifunc.c: Likewise.
56490         * string/test-memchr-ifunc.c: Likewise.
56491         * string/test-memcmp-ifunc.c: Likewise.
56492         * string/test-memcpy-ifunc.c: Likewise.
56493         * string/test-memmem-ifunc.c: Likewise.
56494         * string/test-memmove-ifunc.c: Likewise.
56495         * string/test-mempcpy-ifunc.c: Likewise.
56496         * string/test-memset-ifunc.c: Likewise.
56497         * string/test-rawmemchr-ifunc.c: Likewise.
56498         * string/test-stpcpy-ifunc.c: Likewise.
56499         * string/test-stpncpy-ifunc.c: Likewise.
56500         * string/test-strcasecmp-ifunc.c: Likewise.
56501         * string/test-strcasestr-ifunc.c: Likewise.
56502         * string/test-strcat-ifunc.c: Likewise.
56503         * string/test-strchr-ifunc.c: Likewise.
56504         * string/test-strchrnul-ifunc.c: Likewise.
56505         * string/test-strcmp-ifunc.c: Likewise.
56506         * string/test-strcpy-ifunc.c: Likewise.
56507         * string/test-strcspn-ifunc.c: Likewise.
56508         * string/test-strlen-ifunc.c: Likewise.
56509         * string/test-strncasecmp-ifunc.c: Likewise.
56510         * string/test-strncat-ifunc.c: Likewise.
56511         * string/test-strncmp-ifunc.c: Likewise.
56512         * string/test-strncpy-ifunc.c: Likewise.
56513         * string/test-strnlen-ifunc.c: Likewise.
56514         * string/test-strpbrk-ifunc.c: Likewise.
56515         * string/test-strrchr-ifunc.c: Likewise.
56516         * string/test-strspn-ifunc.c: Likewise.
56517         * string/test-strstr-ifunc.c: Likewise.
56518
56519         * debug/Makefile (tests-ifunc): New variable.
56520         (tests): Add $(tests-ifunc).
56521         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56522         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56523         * debug/test-stpcpy_chk-ifunc.c: New file.
56524         * debug/test-strcpy_chk-ifunc.c: Likewise.
56525
56526 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56527
56528         [BZ #13601]
56529         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56530         header is not read in.
56531
56532 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56533
56534         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56535         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56536         directly.  Pass built executable to script as
56537         $(built-program-cmd).
56538         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56539         $testprogram without using LD_LIBRARY_PATH and $ldso.
56540
56541         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56542         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56543         $(rtld-installed-name).
56544         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56545         (rtld_installed_name): Likewise.
56546         (library_path): Likewise.
56547         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56548         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56549         $(run-program-prefix) to tst-tables.sh.
56550         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56551         it to run tst-table-from and tst-table-to.
56552         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56553         Pass it to tst-table.sh.
56554         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56555         $(run-program-prefix) to tst-gettext.sh.
56556         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56557         tst-translit.sh.
56558         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56559         tst-gettext2.sh.
56560         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56561         to run tst-gettext.
56562         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56563         to run tst-gettext2.
56564         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56565         to run tst-translit.
56566         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56567         $(run-program-prefix) to tst-mtrace.sh.
56568         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56569         to run tst-mtrace.
56570         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56571         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56572         $(rtld-installed-name).
56573         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56574         (rtld_installed_name): Likewise.
56575         (run_program_prefix): New variable.  Use it to run wordexp-test.
56576
56577         * Makeconfig (ARCH): Remove all definitions.
56578         (machine): Likewise.
56579         [ARCH]: Remove conditional code.
56580         [!objdir]: Give error.
56581         [!objdir] (objpfx): Remove.
56582         [!objdir] (common-objpfx): Likewise.
56583         [!objdir] (common-objdir): Likewise.
56584         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56585         AC_CONFIG_FILES call.
56586         * configure: Regenerated.
56587
56588         [BZ #13888]
56589         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56590         or TMPDIR.
56591         (testout): Likewise.
56592
56593         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56594         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56595         $(rtld-installed-name).
56596         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56597         (rtld_installed_name): Likwise.
56598         (runit): Remove function.
56599         (run_getconf): New variable,  Use it for running getconf binary.
56600
56601 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56602
56603         [BZ #14716]
56604         * string/test-memmem.c (check_result): New function.
56605         (do_one_test): Use it.
56606         (check1): New function.
56607         (test_main): Use it.
56608
56609 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56610
56611         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56612
56613 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56614
56615         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56616         (_G_LSEEK64): Likewise.
56617         (_G_MMAP64): Likewise.
56618         (_G_FSTAT64): Likewise.
56619         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56620         (_G_LSEEK64): Likewise.
56621         (_G_MMAP64): Likewise.
56622         (_G_FSTAT64): Likewise.
56623         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56624         unconditional.  Call __mmap64 directly.
56625         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56626         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56627         __lseek64 directly.
56628         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56629         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56630         __mmap64 directly.
56631         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56632         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56633         __lseek64 directly.
56634         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56635         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56636         __lseek64 directly.
56637         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56638         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56639         __lseek64 directly.
56640         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56641         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56642         __fxstat64 directly.
56643         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56644         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56645         unconditional.
56646         (freopen64) [!_G_OPEN64]: Remove conditional code.
56647         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56648         unconditional.
56649         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56650         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56651         unconditional.
56652         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56653         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56654         unconditional.
56655         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56656         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56657         unconditional.
56658         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56659         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56660         unconditional.
56661         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56662         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56663         unconditional.
56664         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56665         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56666         unconditional.
56667         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56668
56669 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56670
56671         [BZ #12140]
56672         * manual/memory.texi (Malloc Tunable Parameters): Add note
56673         about free list pointers overwriting some perturb bytes.
56674         Wording suggested by Roland McGrath.
56675
56676 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56677
56678         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56679         (lgamma_test): Likewise.
56680         (tgamma_test): Likewise.
56681
56682 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56683
56684         [BZ #14700]
56685         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56686         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56687
56688 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56689
56690         * NEWS: Mention BZ #14716.
56691         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56692         when removing AVAILABLE1_USES_J macro.
56693
56694 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56695
56696         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56697         (__bswap_64): __uint64_t for unsigned 64-bit int.
56698
56699 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56700
56701         * include/string.h (memmem): Declare libc hidden alias.
56702         * string/memmem.c (memmem): Define libc hidden alias.
56703         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56704         __read, __close instead of open, read, close.
56705
56706 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56707
56708         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56709         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56710         global and hidden.
56711         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56712         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56713         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56714         Likewise.
56715         (__rawmemchr_sse2): Likewise.
56716         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56717         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56718         (__strchr_sse2): Likewise.
56719         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56720         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56721         (__strcasecmp_sse2): Likewise.
56722         (__strncasecmp_sse2): Likewise.
56723         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56724         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56725         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56726         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56727         (__strrchr_sse2): Likewise.
56728         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56729         ifunc-impl-list.c.
56730         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56731         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56732         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56733         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56734         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56735         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56736         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56737         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56738         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56739         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56740         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56741         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56742         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56743         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56744         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56745         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56746         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56747         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56748         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56749         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56750         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56751         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56752         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56753         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56754         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56755         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56756         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56757         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56758         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56759         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56760
56761         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56762         global and hidden.
56763         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56764         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56765         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56766         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56767         Likewise.
56768         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56769         Likewise.
56770         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56771         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56772         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56773         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56774         ifunc-impl-list.c.
56775         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56776         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56777         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56778         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56779         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56780         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56781         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56782         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56783         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56784         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56785         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56786         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56787         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56788         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56789         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56790         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56791         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56792         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56793         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56794         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56795         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56796         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56797         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56798         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56799         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56800         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56801         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56802         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56803         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56804         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56805         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56806         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56807         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56808         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56809         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56810         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56811         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56812         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56813         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56814         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56815         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56816
56817         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56818         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56819         * include/ifunc-impl-list.h: New file.
56820         * misc/ifunc-impl-list.c: Likewise.
56821         * misc/Makefile (routines): Add ifunc-impl-list.
56822         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56823         * string/test-string.h: Include <ifunc-impl-list.h>.
56824         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56825         TEST_NAME]: New variables.
56826         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56827         are defined.
56828         (test_init): Call __libc_ifunc_impl_list to initialize
56829         func_list if TEST_IFUNC and TEST_NAME are defined.
56830
56831         * string/Makefile (strop-tests): Add bcopy and bzero.
56832         * string/test-bcopy.c: New file.
56833         * string/test-bzero.c: Likewise.
56834         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56835         defined.
56836         * string/test-memset.c: Support bzero test if TEST_BZERO is
56837         defined.
56838         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56839         __libc_memmove.
56840         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56841         __libc_memset.
56842         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56843         of memset.
56844
56845 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56846
56847         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56848         * configure: Regenerated.
56849
56850         * Makeconfig (+link-static-before-libc): Don't include
56851         $(link-static-libc).
56852
56853         * libio/libio.h (_IO_pos_t): Remove.
56854
56855 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56856
56857         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56858         McGrath.
56859
56860 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56861
56862         * crypt/crypt-entry.c: Include fips-private.h.
56863         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56864         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56865         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56866         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56867
56868 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56869
56870         * crypt/crypt-private.h: Include stdbool.h.
56871         (_ufc_setup_salt_r): Return bool.
56872         * crypt/crypt-entry.c: Include errno.h.
56873         (__crypt_r): Return NULL with EINVAL for bad salt.
56874         * crypt/crypt_util.c (bad_for_salt): New.
56875         (_ufc_setup_salt_r): Check that salt is long enough and within
56876         the specified alphabet.
56877         * crypt/badsalttest.c: New file.
56878         * crypt/Makefile (tests): Add it.
56879         ($(objpfx)badsalttest): New.
56880
56881 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56882
56883         * NEWS: Add entry for BZ #14602.
56884
56885 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56886
56887         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56888         type-generic.
56889         * math/libm-test.inc: Update comment listing what functions and
56890         macros are tested.
56891         (isgreater_test): New function.
56892         (isgreaterequal_test): Likewise.
56893         (isless_test): Likewise.
56894         (islessequal_test): Likewise.
56895         (islessgreater_test): Likewise.
56896         (isunordered_test): Likewise.
56897         (main): Call the new functions.
56898
56899 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56900
56901         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56902         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56903         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56904         * sysdeps/i386/configure: Regenerated.
56905         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56906         * sysdeps/mach/configure: Regenerated.
56907         * sysdeps/mach/hurd/configure: Regenerated.
56908         * sysdeps/powerpc/configure: Regenerated.
56909         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56910         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56911         * sysdeps/s390/s390-32/configure: Regenerated.
56912         * sysdeps/s390/s390-64/configure: Regenerated.
56913         * sysdeps/sh/configure: Regenerated.
56914         * sysdeps/sparc/configure: Regenerated.
56915         * sysdeps/unix/sysv/linux/configure: Regenerated.
56916         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56917         * sysdeps/x86_64/configure: Regenerated.
56918
56919         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56920         defined.  Don't check if MAP is NULL.
56921
56922 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56923
56924         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56925         (_G_stat64): Likewise.
56926         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56927         (_G_stat64): Likewise.
56928         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56929         instead of struct _G_stat64.
56930         * libio/fileops.c (mmap_remap_check): Likewise.
56931         (decide_maybe_mmap): Likewise.
56932         (_IO_new_file_seekoff): Likewise.
56933         (_IO_file_stat): Likewise.
56934         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56935         _G_off64_t.
56936         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56937         instead of struct _G_stat64.
56938         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56939
56940 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56941
56942         [BZ #14602]
56943         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56944         Replace with ...
56945         (CHECK_EOL): New macro.
56946         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56947         CHECK_EOL.
56948         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56949         Replace with CHECK_EOL.
56950         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56951         Replace with CHECK_EOL.
56952
56953 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56954
56955         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56956         type-generic.
56957         * math/libm-test.inc: Update comment listing what functions and
56958         macros are tested.
56959         (finite_test): New function.
56960         (isinf_test): Likewise.
56961         (isnan_test): Likewise.
56962         (fpclassify_test): Test subnormal input.
56963         (isfinite_test): Likewise.
56964         (isnormal_test): Likewise.
56965         (main): Call the new functions.
56966
56967 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56968
56969         [BZ #14660]
56970         * Makerules (%.dynsym): Force C locale when running
56971         $(OBJDUMP) --dynamic-syms.
56972
56973 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56974
56975         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56976         <stdint.h>.
56977
56978 2012-10-06  David S. Miller  <davem@davemloft.net>
56979
56980         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56981         upper 32-bits of the length value in %o2 since we use branch-on-register
56982         tests which consider the entire 64-bit register.
56983
56984 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56985
56986         * string/test-strstr.c (check2): Add a test for page boundary.
56987
56988 2012-10-05  David S. Miller  <davem@davemloft.net>
56989
56990         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56991         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56992         file.
56993         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56994         sysdep_routines.
56995         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56996         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56997         and bzero when HWCAP_SPARC_CRYPTO is present.
56998
56999 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57000
57001         [BZ #14602]
57002         * string/test-strstr.c (check2): New function.
57003         (test_main): Call check2.
57004
57005         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57006         and bug-strchr1.
57007         * string/bug-strcasestr1.c (do_test): Moved to ...
57008         * string/test-strcasestr.c (check1): Here.  New function.
57009         (do_one_test): Break out result checking code into ...
57010         (check_result): This.  New function.
57011         (do_one_test): Call check_result.
57012         (test_main): Call check1.
57013         * string/bug-strchr1.c (do_test): Moved to ...
57014         * string/test-strchr.c (check1): Here.  New function.
57015         (do_one_test): Break out result checking code into ...
57016         (check_result): This.  New function.
57017         (do_one_test): Call check_result.
57018         (test_main): Call check1.
57019         * string/bug-strstr1.c (main): Moved to ...
57020         * string/test-strstr.c (check1): Here.  New function.
57021         (do_one_test): Break out result checking code into ...
57022         (check_result): This.  New function.
57023         (do_one_test): Call check_result.
57024         (test_main): Call check1.
57025         * string/bug-strcasestr1.c: Removed.
57026         * string/bug-strchr1.c: Likewise.
57027         * string/bug-strstr1.c: Likewise.
57028
57029         * elf/Makefile (dl-routines): Add hwcaps.
57030         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57031         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57032         (_dl_important_hwcaps): Moved to ...
57033         * elf/dl-hwcaps.c: Here.  New file.
57034         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57035
57036         [BZ #14557]
57037         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57038         if IS_IN_rtld isn't defined.
57039
57040         * elf/dl-support.c (_dl_sysinfo_map): New.
57041         Include "get-dynamic-info.h" and "setup-vdso.h".
57042         (_dl_non_dynamic_init): Call setup_vdso.
57043         * elf/dynamic-link.h: Don't include <assert.h>.
57044         (elf_get_dynamic_info): Moved to ...
57045         * elf/get-dynamic-info.h: Here.  New file.
57046         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57047         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57048         * elf/setup-vdso.h: Here.  New file.
57049         * elf/rtld.c: Include "setup-vdso.h".
57050         (dl_main): Call setup_vdso.
57051
57052 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57053
57054         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57055         creal in comment listing functions tested.  List finite, isinf,
57056         isnan, isless, islessequal, isgreater, isgreaterequal,
57057         islessgreater, isunordered, lgamma_r and pow10 as functions and
57058         macros not tested.  Mention which functions not tested are aliases
57059         for other functions.  Fix typo.  Note that signs of NaNs are not
57060         tested.
57061
57062         * scripts/config.guess: Update from config.git.
57063         * scripts/config.sub: Likewise.
57064
57065 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57066
57067         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57068         * misc/madvise.c (madvise): Renamed to __madvise.
57069         Make madvise a weak alias.
57070         * include/sys/mman.h: Declare __madvise.
57071         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57072         * sysdeps/unix/syscalls.list
57073         (madvise): Make __madvise the strong name, and madvise a weak alias.
57074         * sysdeps/unix/sysv/linux/syscalls.list
57075         (madvise, mmap): Remove redundant entries.
57076         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57077         * malloc/malloc.c (mtrim): Likewise.
57078         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57079
57080 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57081
57082         * sysdeps/mach/hurd/dl-cache.c: File removed.
57083         * config.h.in (USE_LDCONFIG): New #undef.
57084         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57085         * configure: Regenerated.
57086         * elf/Makefile (dl-routines): Add dl-cache only under
57087         [$(use-ldconfig) = yes].
57088         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57089         cache on [USE_LDCONFIG].
57090         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57091         [USE_LDCONFIG].
57092         * elf/rtld.c (dl_main): Likewise.
57093
57094 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57095
57096         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57097         _SC_LEVEL4_CACHE_LINESIZE.
57098
57099 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57100
57101         * sysdeps/unix/bsd/confstr.h: File removed.
57102
57103 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57104
57105         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57106         sys/sdt-config.h.
57107
57108 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57109
57110         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57111         Make 'mapoff' field ElfW(Off) rather than off_t.
57112
57113 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57114
57115         * nscd/Makefile: Remove nscd-cflags and all its users.
57116         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57117         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57118
57119         [BZ #10631]
57120         * malloc.c (malloc_printerr): Clarify error message.
57121
57122 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57123
57124         [BZ #14648]
57125         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57126         Set bit_FMA_Usable if FMA is supported.
57127         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57128         macro.
57129         (bit_FMA4_Usable): Updated.
57130         (index_FMA_Usable): New macro.
57131         (CPUID_FMA): Likewise.
57132         (HAS_FMA): Defined with bit_FMA_Usable.
57133
57134 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57135
57136         * bits/types.h (__swblk_t): Type removed.
57137         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57138         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57139         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57140         (__SWBLK_T_TYPE): Likewise.
57141         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57142         (__SWBLK_T_TYPE): Likewise.
57143         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57144         (__SWBLK_T_TYPE): Likewise.
57145         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57146         (__SWBLK_T_TYPE): Likewise.
57147
57148 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57149             Honza Horak <hhorak@redhat.com>
57150
57151         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57152         (xdr_mapname): Use YPMAXMAP as maxsize.
57153         (xdr_peername): Use YPMAXPEER as maxsize.
57154         (xdr_keydat): Use YPAXRECORD as maxsize.
57155         (xdr_valdat): Use YPMAXRECORD as maxsize.
57156
57157 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57158
57159         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57160
57161         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57162         * csu/init-first.c: ... here.
57163         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57164         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57165         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57166         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57167         * sysdeps/i386/init-first.c: File removed.
57168         * sysdeps/sh/init-first.c: File removed.
57169
57170 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57171
57172         [BZ #14645]
57173         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57174         if x * y might underflow to zero and z is zero.
57175         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57176         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57177         * math/libm-test.inc (min_subnorm_value): New variable.
57178         (fma_test): Add more tests.
57179         (fma_test_towardzero): Likewise.
57180         (fma_test_downward): Likewise.
57181         (fma_test_upward): Likewise.
57182         (initialize): Set min_subnorm_value.
57183
57184 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57185
57186         [BZ #14638]
57187         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57188         0 + 0.
57189         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57190         mode for addition resulting in exact zero.
57191         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57192         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57193         exact 0 + 0.
57194         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57195         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57196         * math/libm-test.inc (fma_test): Add more tests.
57197         (fma_test_towardzero): New function.
57198         (fma_test_downward): Likewise.
57199         (fma_test_upward): Likewise.
57200         (main): Call the new functions.
57201
57202 2012-09-28  David S. Miller  <davem@davemloft.net>
57203
57204         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57205
57206 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57207
57208         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57209         instead of SIGALRM.
57210
57211         * sysdeps/gnu/_G_config.h: Moved to ...
57212         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57213         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57214         * sysdeps/generic/_G_config.h: ... here.
57215
57216         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57217
57218         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57219
57220         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57221         Conditionalize target on [libnss_test1.so-version].
57222
57223         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57224
57225         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57226         (elfobjdir): Move out of conditionals.
57227
57228         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57229         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57230         (__nss_lookup_function): Conditionalize label remove_from_tree on
57231         [!DO_STATIC_NSS || SHARED], matching its only use.
57232
57233 2012-09-28  David S. Miller  <davem@davemloft.net>
57234
57235         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57236         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57237         file.
57238         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57239         sysdep_routines.
57240         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57241         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57242         when HWCAP_SPARC_CRYPTO is present.
57243
57244 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57245
57246         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57247
57248 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57249
57250         [BZ #6530]
57251         * stdio-common/vfprintf.c (process_string_arg): Revert
57252         2000-07-22 change.
57253
57254 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57255
57256         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57257         for testcase.
57258         * stdio-common/tst-sprintf.c: Include <locale.h>
57259         (main): Test sprintf's handling of incomplete multibyte
57260         characters.
57261
57262 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57263
57264         * elf/dl-runtime.c (VERSYMIDX): Removed.
57265         * elf/dl-version.c (VERSYMIDX): Likewise.
57266         * elf/do-rel.h (VERSYMIDX): Likewise.
57267         (VALIDX): Likewise.
57268         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57269         * elf/rtld.c (VALIDX): Likewise.
57270         (ADDRIDX): Likewise.
57271         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57272         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57273         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57274         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57275         (VALIDX): Likewise.
57276         (ADDRIDX): Likewise.
57277
57278 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57279
57280         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57281
57282 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57283
57284         [BZ #11438]
57285         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57286         to global scope.
57287         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57288         addresses are in the same scope as 192.0.2/24.
57289         * posix/gai.conf: Document new scope table defaults.
57290
57291 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57292
57293         [BZ #5298]
57294         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57295         for ftell.  Compute offsets from write pointers instead.
57296         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57297
57298 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57299
57300         [BZ #14543]
57301         * libio/Makefile (tests): New test case tst-fseek.
57302         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57303         combination works in wide mode.
57304         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57305         state when the external buffer state changes.
57306
57307 2012-09-27  David S. Miller  <davem@davemloft.net>
57308
57309         [BZ #14376]
57310         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57311         pass reloc->r_addend in as the 'high' argument to
57312         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57313
57314         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57315
57316 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57317
57318         * rt/tst-aio2.c: Include <pthread.h>.
57319         * rt/tst-aio3.c: Likewise.
57320
57321 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57322
57323         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57324
57325 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57326
57327         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57328         contents on [SHARED].
57329
57330 2012-09-26  Marek Polacek  <polacek@redhat.com>
57331
57332         [BZ #14530]
57333         [BZ #13741]
57334         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57335         for C++ and GCC <4.3 as well as for non GCC compilers.
57336
57337 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57338
57339         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57340
57341 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57342
57343         * Makefile.in (all, install): Declare with .PHONY.
57344         Reported by Michael Hope <michael.hope@linaro.org>.
57345
57346 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57347
57348         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57349         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57350         system header.
57351         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57352         Likewise.
57353         (sydep_routines): Add the new and the internal functions.
57354         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57355         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57357         (GLIBC_2.17): Add the new function.
57358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57359         (GLIBC_2.17): Likewise.
57360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57361         (GLIBC_2.17): Likewise.
57362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57363         (GLIBC_2.17): Likewise.
57364         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57365
57366 2012-09-25  Alan Modra  <amodra@gmail.com>
57367
57368         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57369         Add release barrier before setting once_control to say
57370         initialisation is done.  Add hints on lwarx.  Use macro in
57371         place of isync.
57372         (clear_once_control): Add release barrier.
57373
57374 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57375
57376         [BZ #13629]
57377         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57378         specially.
57379         * math/s_clog10.c (__clog10): Likewise.
57380         * math/s_clog10f.c (__clog10f): Likewise.
57381         * math/s_clog10l.c (__clog10l): Likewise.
57382         * math/s_clogf.c (__clogf): Likewise.
57383         * math/s_clogl.c (__clogl): Likewise.
57384         * math/Makefile (libm-calls): Add x2y2m1.
57385         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57386         (__x2y2m1): Likewise.
57387         (__x2y2m1l): Likewise.
57388         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57389         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57390         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57391         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57392         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57393         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57394         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57395         * sysdeps/i386/fpu/libm-test-ulps: Update.
57396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57397
57398         [BZ #14621]
57399         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57400         int as type of variable DEPTH.
57401         (glob): Use size_t instead of int as type of variables NEWCOUNT
57402         and OLD_PATHC.
57403
57404 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57405
57406         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57407         Add s_sincosf-sse2.
57408         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57409         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57410         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57411         macros for using routine as __sincosf_ia32.
57412         Use macro for function declaration and weak_alias.
57413         * sysdeps/i386/fpu/libm-test-ulps: Update.
57414
57415         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57416         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57417
57418         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57419         subnormal argument.
57420         * math/s_cexpf.c (__cexpf): Likewise.
57421         * math/s_csinf.c (__csinf): Likewise.
57422         * math/s_csinhf.c (__csinhf): Likewise.
57423         * math/s_ctanf.c (__ctanf): Likewise.
57424         * math/s_ctanhf.c (__ctanhf): Likewise.
57425         * math/s_ccosh.c (__ccoshf): Likewise.
57426         * math/s_cexp.c (__cexpl): Likewise.
57427         * math/s_csin.c (__csin): Likewise.
57428         * math/s_csinh.c (__csinh): Likewise.
57429         * math/s_ctan.c (__ctan): Likewise.
57430         * math/s_ctanh.c (ctanh): Likewise.
57431         * math/s_ccoshl.c (__ccoshl): Likewise.
57432         * math/s_cexpl.c (__cexpl): Likewise.
57433         * math/s_csinl.c (__csinl): Likewise.
57434         * math/s_csinhl.c (__csinhl): Likewise.
57435         * math/s_ctanl.c (__ctanl): Likewise.
57436         * math/s_ctanhl.c (__ctanhl): Likewise.
57437
57438 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57439
57440         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57441         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57442         (_IO_off_t): Define to __off_t, not _G_off_t.
57443         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57444         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57445         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57446         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57447         type of __dummy and __dummy2 fields.
57448         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57449         (_G_ssize_t): Likewise.
57450         (_G_off_t): Likewise.
57451         (_G_pid_t): Likewise.
57452         (_G_uid_t): Likewise.
57453         (_G_wchar_t): Likewise.
57454         (_G_wint_t): Likewise.
57455         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57456         (_G_ssize_t): Likewise.
57457         (_G_off_t): Likewise.
57458         (_G_pid_t): Likewise.
57459         (_G_uid_t): Likewise.
57460         (_G_wchar_t): Likewise.
57461         (_G_wint_t): Likewise.
57462         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57463         (_G_ssize_t): Likewise.
57464         (_G_off_t): Likewise.
57465         (_G_pid_t): Likewise.
57466         (_G_uid_t): Likewise.
57467         (_G_wchar_t): Likewise.
57468         (_G_wint_t): Likewise.
57469
57470 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57471
57472         * malloc/arena.c: Include malloc-sysdep.h.
57473         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57474         is sufficient to shrink the heap or an unmap is needed.
57475         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57476         new function check_may_shrink_heap.
57477         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57478         new function check_may_shrink_heap.
57479
57480 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57481
57482         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57483         comments.
57484
57485 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57486
57487         * catgets/test-gencat.sh: Add "set -e".
57488         * elf/tst-pathopt.sh: Likewise.
57489         * grp/tst_fgetgrent.sh: Likewise.
57490         * iconvdata/run-iconv-test.sh: Likewise.
57491         * intl/tst-gettext.sh: Likewise.
57492         * intl/tst-gettext2.sh: Likewise.
57493         * intl/tst-gettext4.sh: Likewise.
57494         * intl/tst-gettext6.sh: Likewise.
57495         * intl/tst-translit.sh: Likewise.
57496         * io/ftwtest-sh: Likewise.
57497         * libio/test-freopen.sh: Likewise.
57498         * malloc/tst-mtrace.sh: Likewise.
57499         * posix/globtest.sh: Likewise.
57500         * posix/tst-getconf.sh: Likewise.
57501         * posix/wordexp-tst.sh: Likewise.
57502         * stdio-common/tst-printf.sh: Likewise.
57503         * stdio-common/tst-unbputc.sh: Likewise.
57504         * stdlib/tst-fmtmsg.sh: Likewise.
57505         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57506         * catgets/Makefile: Do not specify -e option when running
57507         testsuite shell scripts.
57508         * elf/Makefile: Likewise.
57509         * grp/Makefile: Likewise.
57510         * iconvdata/Makefile: Likewise.
57511         * intl/Makefile: Likewise.
57512         * io/Makefile: Likewise.
57513         * libio/Makefile: Likewise.
57514         * malloc/Makefile: Likewise.
57515         * posix/Makefile: Likewise.
57516         * stdio-common/Makefile: Likewise.
57517         * stdlib/Makefile: Likewise.
57518         * sysdeps/x86_64/Makefile: Likewise.
57519
57520         * io/ftwtest-sh: Add copyright header.
57521         * posix/globtest.sh: Likewise.
57522         * posix/tst-getconf.sh: Likewise.
57523         * posix/wordexp-tst.sh: Likewise.
57524         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57525
57526 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57527
57528         [BZ #13679]
57529         * Makeconfig (+link): Defined as $(+link-static) if
57530         $(build-shared) isn't yes.
57531         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57532         isn't yes.
57533         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57534
57535         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57536
57537         [BZ #14562]
57538         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57539         new chunk size with MALLOC_ALIGN_MASK.
57540
57541 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57542
57543         [BZ #5044]
57544         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57545         <rounding-mode.h>.
57546         (__printf_fphex): Determine rounding using get_rounding_mode and
57547         round_away.
57548         * stdio-common/tst-printf-round.c (struct hex_test): New
57549         structure.
57550         (hex_tests): New variable.
57551         (test_hex_in_one_mode): New function.
57552         (do_test): Also run tests for hex float output.
57553
57554 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57555
57556         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57557         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57558         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57559         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57560         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57561         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57562         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57563         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57564
57565 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57566
57567         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57568         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57569         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57570         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57571
57572 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57573
57574         [BZ #14579]
57575         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57576         mode only.
57577         * elf/tst-rtld-load-self.sh: New test.
57578         * elf/Makefile: Run it.
57579
57580 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57581
57582         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57583         (tst-writev-ENV): Remove.
57584         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57585
57586 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57587
57588         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57589
57590 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57591
57592         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57593         unconditional.
57594         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57595         Likewise.
57596         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57597         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57598         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57599         Likewise.
57600
57601 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57602
57603         [BZ #14587]
57604         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57605         * config.make.in (have-cpp-asm-debuginfo): Removed.
57606         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57607         * configure: Regenerated.
57608
57609 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57610
57611         [BZ #5044]
57612         * stdio-common/printf_fp.c: Include <stdbool.h> and
57613         <rounding-mode.h>.
57614         (___printf_fp): Determine rounding using get_rounding_mode and
57615         round_away.
57616         * stdio-common/tst-printf-round.c: New file.
57617         * stdio-common/Makefile (tests): Add tst-printf-round.
57618         (link-libm): New variable.
57619         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57620
57621 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57622
57623         [BZ #14576]
57624         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57625         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57626         Likewise.
57627         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57628         Likewise.
57629
57630 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57631
57632         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57633         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57634         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57635         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57636
57637 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57638
57639         [BZ #14518]
57640         * include/rounding-mode.h: New file.
57641         * sysdeps/generic/get-rounding-mode.h: Likewise.
57642         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57643         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57644         (MAX_VALUE): New macro.
57645         (MIN_VALUE): Likewise.
57646         (overflow_value): New function.
57647         (underflow_value): Likewise.
57648         (round_and_return): Use overflow_value and underflow_value to
57649         determine return values in overflow and underflow cases.  Use
57650         round_away to determine rounding depending on rounding mode.
57651         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57652         determine return values in overflow and underflow cases.
57653         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57654         (struct test_results): New structure.
57655         (struct test): Use struct test_results to store expected results
57656         for all rounding modes.
57657         (TEST): Include expected results for all rounding modes.
57658         (test_in_one_mode): New function.
57659         (do_test): Use test_in_one_mode to compute and check results.
57660         Check results for all rounding modes.
57661         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57662         $(link-libm).
57663
57664 2012-12-09  Allan McRae  <allan@archlinux.org>
57665
57666         * sysdeps/i386/fpu/libm-test-ulps: Update
57667
57668 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57669
57670         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57671         (_G_int32_t): Likewise.
57672         (_G_uint16_t): Likewise.
57673         (_G_uint32_t): Likewise.
57674         (_G_HAVE_BOOL): Likewise.
57675         (_G_HAVE_ATEXIT): Likewise.
57676         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57677         (_G_HAVE_IO_FILE_OPEN): Likewise.
57678         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57679         (_G_int32_t): Likewise.
57680         (_G_uint16_t): Likewise.
57681         (_G_uint32_t): Likewise.
57682         (_G_HAVE_BOOL): Likewise.
57683         (_G_HAVE_ATEXIT): Likewise.
57684         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57685         (_G_HAVE_IO_FILE_OPEN): Likewise.
57686         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57687         (_G_int32_t): Likewise.
57688         (_G_uint16_t): Likewise.
57689         (_G_uint32_t): Likewise.
57690         (_G_HAVE_BOOL): Likewise.
57691         (_G_HAVE_ATEXIT): Likewise.
57692         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57693         (_G_HAVE_IO_FILE_OPEN): Likewise.
57694
57695 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57696
57697         * csu/libc-tls.c: Update copyright years.
57698
57699 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57700
57701         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57702         [!_G_USING_THUNKS]: Remove conditional code.
57703         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57704         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57705
57706         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57707         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57708         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57709         (_G_VTABLE_LABEL_PREFIX): Likewise.
57710         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57711         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57712         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57713         (_G_VTABLE_LABEL_PREFIX): Likewise.
57714         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57715         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57716         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57717         (_G_VTABLE_LABEL_PREFIX): Likewise.
57718         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57719
57720 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57721
57722         * libio/Makefile: Include ../Makeconfig before tests.
57723         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57724         only if $(build-shared) is yes.
57725
57726         * iconv/gconv_db.c: Update copyright years.
57727
57728 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57729
57730         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57731         unwind info if defined PIC. Fix special cases description.
57732         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57733
57734         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57735         DP_HI_MASK entry.
57736         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57737
57738 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57739
57740         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57741
57742         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57743         is NULL.
57744
57745         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57746         (LDLIBS-tst-chk4): This.
57747         (LDFLAGS-tst-chk5): Renamed to ...
57748         (LDLIBS-tst-chk5): This.
57749         (LDFLAGS-tst-chk6): Renamed to ...
57750         (LDLIBS-tst-chk6): This.
57751         (LDFLAGS-tst-lfschk4): Renamed to ...
57752         (LDLIBS-tst-lfschk4): This.
57753         (LDFLAGS-tst-lfschk5): Renamed to ...
57754         (LDLIBS-tst-lfschk5): This.
57755         (LDFLAGS-tst-lfschk6): Renamed to ...
57756         (LDLIBS-tst-lfschk6): This.
57757
57758         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57759         on $(common-objpfx)soversions.mk.
57760
57761 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57762
57763         [BZ #10014]
57764         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57765         example host name.
57766
57767 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57768
57769         * malloc/arena.c (arena_get_retry): New function that gets
57770         another arena for the caller to try its request on.
57771         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57772         current arena cannot fulfill the request.
57773         (__libc_memalign): Likewise.
57774         (__libc_memalign): Likewise.
57775         (__libc_pvalloc): Likewise.
57776         (__libc_calloc): Likewise.
57777
57778 2012-09-05  John Tobey  <john.tobey@gmail.com>
57779
57780         [BZ #13542]
57781         * manual/arith.texi (Operations on Complex): Fix description
57782         of carg branch cut.
57783
57784 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57785
57786         [BZ #10014]
57787         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57788         host name.
57789
57790         [BZ #10038]
57791         * manual/memory.texi (Memory): Make order of menu items match
57792         order of sections.
57793
57794 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57795
57796         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57797         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57798         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57799
57800 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57801
57802         * csu/libc-tls.c (static_dtv): Renamed to ...
57803         (_dl_static_dtv): This.  Make it global.
57804         (_dl_initial_dtv): Removed.
57805         (__libc_setup_tls): Updated.
57806         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57807         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57808         DL_INITIAL_DTV.
57809
57810 2012-09-06  Petr Machata  <pmachata@redhat.com>
57811
57812         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57813         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57814         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57815         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57816
57817 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57818
57819         [BZ #14545]
57820         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57821         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57822         freeing dtv[-1].
57823
57824 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57825
57826         [BZ #14544]
57827         * Makeconfig (link-static-before-libc): Replace $(+prector)
57828         with $(+prectorT).
57829         (link-static-after-libc): Replace $(+postctor) with
57830         $(+postctorT).
57831         (link-bounded): Replace $(+prector)/$(+postctor) with
57832         $(+prectorT)/$(+postctorT).
57833         (+prectorT): New macro.
57834         (+postctorT): Likewise.
57835
57836 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57837
57838         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57839         (round_str): Handle values above the maximum for IBM long double
57840         as inexact.
57841         * stdlib/tst-strtod-round.c (tests): Regenerated.
57842
57843 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57844
57845         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57846         assembler flag.
57847         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57848         zarch_nohighgprs around the zarch optimized routines.
57849         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57850         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57851         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57852         for zarch.
57853
57854 2012-09-05  David S. Miller  <davem@davemloft.net>
57855
57856         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57857
57858         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57859         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57860         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57861         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57862         entries.
57863
57864 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57865
57866         * malloc/arena.c: Fold copyright years.
57867         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57868
57869 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57870
57871         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57872
57873 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57874
57875         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57876
57877 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57878
57879         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57880         change internal state upon failure.
57881
57882 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57883
57884         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57885         * malloc/memusage.c (mmap): Likewise.
57886         (mmap64, mremap): Likewise.  Adjust name in comment.
57887
57888 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57889
57890         * libio/fileops.c: Fix typos in comments.
57891         * libio/oldfileops.c: Likewise.
57892         * libio/wfileops.c: Likewise.
57893
57894 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57895
57896         [BZ #1349]
57897         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57898         (tst-malloc-usable-ENV): Set environment for test case.
57899         * malloc/hooks.c (malloc_check_get_size): New function to get
57900         requested size.
57901         * malloc/malloc.c (musable): Use malloc_check_get_size.
57902         * malloc/tst-malloc-usable.c: New test case.
57903
57904 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57905
57906         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57907
57908 2012-09-05  Allan McRae  <allan@archlinux.org>
57909
57910         [BZ #13966]
57911         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57912         determine header location.
57913         * configure: Regenerated.
57914
57915 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57916
57917         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57918         float format.
57919         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57920         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57921         format.
57922         (test): Regenerate.
57923
57924 2012-09-04  David S. Miller  <davem@davemloft.net>
57925
57926         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57927         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57928         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57929
57930 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57931
57932         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57933         failures.
57934
57935         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57936
57937 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57938
57939         [BZ #9914]
57940         * libio/iogetdelim.c: Include <limits.h>.
57941         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57942         + len + 1 would overflow.
57943
57944 2012-09-03  Andreas Jaeger  <aj@suse.de>
57945
57946         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57947         * sysdeps/i386/fpu/libm-test-ulps: Update.
57948
57949 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57950
57951         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57952         Add s_sinf-sse2, s_conf-sse2.
57953
57954         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57955         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57956         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57957         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57958
57959         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57960         for using routine as __sinf_ia32.
57961         Use macro for function declaration and weak_alias.
57962         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57963         for using routine as __cosf_ia32.
57964         Use macro for function declaration and weak_alias.
57965
57966         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57967         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57968
57969         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57970         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57971         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57972
57973         * math/libm-test.inc (cos_test): Add more test cases.
57974         (sin_test): Likewise.
57975         (sincos_test): Likewise.
57976
57977 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57978
57979         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57980         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57981         hidden.
57982         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57983
57984 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57985
57986         [BZ #14538]
57987         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57988         first element of the GOT.
57989         (elf_machine_load_address): Return the difference between
57990         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57991
57992 2012-09-01  Allan McRae  <allan@archlinux.org>
57993
57994         [BZ #13412]
57995         * configure.in (AWK): Require gawk version 3.0 or later.
57996         * configure: Regenerated.
57997
57998 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57999
58000         * sysdeps/unix/sysv/linux/kernel-features.h
58001         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58002         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58003         [__NR_clock_getres]: Make code unconditional.
58004         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58005         (clock_getcpuclockid): Remove code left unreachable by removal of
58006         conditionals.
58007         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58008         code unconditional.
58009         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58010         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58011         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58012         Make code unconditional.
58013         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58014         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58015         * sysdeps/unix/sysv/linux/clock_settime.c
58016         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58017         conditional code.
58018         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58019         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58020
58021 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58022
58023         [BZ #14476]
58024         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58025         scripts/test-installation.pl.
58026
58027         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58028         and $ld_so_version if it is set.
58029
58030 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58031
58032         [BZ #14516]
58033         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58034         failure if reading from procfs failed.
58035         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58036
58037 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58038
58039         * sysdeps/unix/sysv/linux/kernel-features.h
58040         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58041         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58042         Remove conditional code.
58043         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58044         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58045         Remove conditional code.
58046         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58047         * sysdeps/unix/sysv/linux/i386/fxstat.c
58048         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58049         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58050         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58051         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58052         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58053         * sysdeps/unix/sysv/linux/i386/lxstat.c
58054         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58055         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58056         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58057         Remove conditional code.
58058         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58059         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58060         Remove conditional code.
58061         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58062         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58063         <kernel-features.h>.
58064         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58065         Remove.
58066         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58067         Remove conditional code.
58068         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58069         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58070         Remove conditional.
58071
58072 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58073
58074         [BZ #5400]
58075         * NEWS: Add fixed bug number.
58076
58077 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58078
58079         [BZ #14519]
58080         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58081         underflowing exponent in case of negative sign.
58082         * stdlib/tst-strtod-round-data: Add more tests.
58083         * stdlib/tst-strtod-round.c (tests): Regenerated.
58084
58085         [BZ #3479]
58086         * stdlib/strtod_l.c (NDIG): Remove.
58087         (HEXNDIG): Likewise.
58088         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58089         smallest representable value.
58090         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58091         lie within an exact representation of 1/2 ulp of the result.
58092         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58093         unconditionally.
58094         (TENS_P9_IDX): Define unconditionally.
58095         (TENS_P9_SIZE): Likewise.
58096         (TENS_P10_IDX): Likewise.
58097         (TENS_P10_SIZE): Likewise.
58098         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58099         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58100         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58101         entries for 10^2^13 and 10^2^14.
58102         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58103         (TENS_P13_IDX): Define.
58104         (TENS_P13_SIZE): Likewise.
58105         (TENS_P14_IDX): Likewise.
58106         (TENS_P14_SIZE): Likewise.
58107         (_fpioconst_pow10): Change array size to
58108         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58109         unconditional.
58110         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58111         1024]: Add entries for 10^2^13 and 10^2^14.
58112         [LAST_POW10 > _LAST_POW10]: Remove #error.
58113         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58114         (_fpioconst_pow10): Change array size to
58115         FPIOCONST_POW10_ARRAY_SIZE.
58116         * stdlib/gen-fpioconst.c: New file.
58117         * stdlib/gen-tst-strtod-round.c: Likewise.
58118         * stdlib/tst-strtod-round-data: Likewise.
58119         * stdlib/tst-strtod-round.c: Likewise.
58120         * stdlib/Makefile (tests): Add tst-strtod-round.
58121
58122         [BZ #14459]
58123         * stdlib/strtod_l.c: Include <stdint.h>.
58124         (NDEBUG): Do not define.
58125         (round_and_return): Change EXPONENT parameter to type intmax_t.
58126         Rearrange calculations to avoid internal overflow possibilities.
58127         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58128         Rearrange calculations to avoid internal overflow possibilities.
58129         Assert that number fits inside MPNSIZE limbs.
58130         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58131         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58132         calculations and add assertions to avoid internal overflow
58133         possibilities.  Add casts to avoid signed/unsigned operations.
58134         * stdlib/tst-strtod-overflow.c: New file.
58135         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58136
58137 2012-08-25  Marek Polacek  <polacek@redhat.com>
58138
58139         * time/time.h: Fix some typos in comments.
58140
58141 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58142
58143         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58144         * posix/tst-rfc3484-2.c: Likewise.
58145         * posix/tst-rfc3484-3.c: Likewise.
58146
58147 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58148
58149         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58150         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58151
58152 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58153
58154         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58155         #include of fxstatat64.c.
58156
58157 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58158
58159         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58160         * shadow/getspent_r.c: Likewise.
58161         * shadow/getspnam.c: Likewise.
58162         * shadow/getspnam_r.c: Likewise.
58163         * gshadow/getsgent.c: Likewise.
58164         * gshadow/getsgent_r.c: Likewise.
58165         * gshadow/getsgnam.c: Likewise.
58166         * gshadow/getsgnam_r.c: Likewise.
58167         * inet/getnetbyad.c: Likewise.
58168         * inet/getnetbyad_r.c: Likewise.
58169         * inet/getnetbynm.c: Likewise.
58170         * inet/getnetbynm_r.c: Likewise.
58171         * inet/getnetent.c: Likewise.
58172         * inet/getnetent_r.c: Likewise.
58173         * inet/getproto.c: Likewise.
58174         * inet/getproto_r.c: Likewise.
58175         * inet/getprtent.c: Likewise.
58176         * inet/getprtent_r.c: Likewise.
58177         * inet/getprtname.c: Likewise.
58178         * inet/getprtname_r.c: Likewise.
58179         * inet/getrpcbyname.c: Likewise.
58180         * inet/getrpcbyname_r.c: Likewise.
58181         * inet/getrpcbynumber.c: Likewise.
58182         * inet/getrpcbynumber_r.c: Likewise.
58183         * inet/getrpcent.c: Likewise.
58184         * inet/getrpcent_r.c: Likewise.
58185         * inet/getaliasent.c: Likewise.
58186         * inet/getaliasent_r.c: Likewise.
58187         * inet/getaliasname.c: Likewise.
58188         * inet/getaliasname_r.c: Likewise.
58189         * nscd/getgrgid_r.c: Likewise.
58190         * nscd/getgrnam_r.c: Likewise.
58191         * nscd/gethstbyad_r.c: Likewise.
58192         * nscd/gethstbynm3_r.c: Likewise.
58193         * nscd/getpwnam_r.c: Likewise.
58194         * nscd/getpwuid_r.c: Likewise.
58195         * nscd/getsrvbynm_r.c: Likewise.
58196         * nscd/getsrvbypt_r.c: Likewise.
58197         * nscd/gai.c: Likewise.
58198
58199         * configure.in (build_nscd): New substituted variable, set
58200         by --disable-build-nscd and defaults to $use_nscd.
58201         * configure: Regenerated.
58202         * config.make.in (build-nscd): New substituted variable.
58203         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58204         Change conditional to require [$(build-nscd) = yes] as well.
58205         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58206
58207         [BZ# 13696]
58208         * configure.in (use_nscd): New substituted variable, set by
58209         --disable-nscd.  If enabled, define USE_NSCD.
58210         * configure: Regenerated.
58211         * config.h.in: Add USE_NSCD.
58212         * config.make.in (use-nscd): New substituted variable.
58213         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58214         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58215         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58216         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58217         (CFLAGS-getgrnam_r.c): Likewise.
58218         (CFLAGS-initgroups.c): Likewise.
58219         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58220         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58221         Variables removed.
58222         * inet/getnetgrent_r.c
58223         (nscd_setnetgrent): New function, broken out of ...
58224         (setnetgrent): ... here.  Call it.
58225         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58226         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58227         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58228         * nscd/Makefile (routines, aux): Move definitions after include of
58229         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58230         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58231         Conditionalize on [USE_NSCD].
58232         (is_nscd, nscd_init_cb): Likewise.
58233         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58234         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58235         * nss/nss_db/db-init.c: Likewise.
58236         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58237         [USE_NSCD].
58238         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58239         (make_request): Use it.
58240         (cache_valid_p): New function.
58241         (__check_pf): Use it.
58242         * NEWS: Add item for --disable-nscd.
58243
58244 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58245
58246         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58247         to support sed >= 4.2.1-20-ga9bf076.
58248         * configure: Regenerated.
58249
58250 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58251
58252         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58253         Conditionalize whole body on [IREL].
58254
58255 2012-08-22  Jeff Law <law@redhat.com>
58256
58257         [BZ #14505]
58258         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58259         if the family is PF_UNSPEC.
58260
58261 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58262
58263         * Makerules (lib-version): Rename from V.
58264         (install-lib-nosubdir): Change V to lib-version.
58265
58266 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58267
58268         [BZ #14252]
58269         * powerpc32/power6/wcschr.c: New file.
58270         * powerpc32/power6/wcscpy.c: New file.
58271         * powerpc32/power6/wcsrchr.c: New file.
58272         * powerpc64/power6/wcschr.c: New file.
58273         * powerpc64/power6/wcscpy.c: New file.
58274         * powerpc64/power6/wcsrchr.c: New file.
58275
58276 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58277
58278         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58279         (two_way_short_needle): Use it.
58280         * string/strstr.c (AVAILABLE1_USES_J): Define.
58281         * string/strcasestr.c: Likewise.
58282
58283         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58284         array references.
58285         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58286
58287         [BZ #11607]
58288         * NEWS: Add an entry.
58289         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58290         define their defaults.
58291         (two_way_short_needle): Detect end-of-string on-the-fly.
58292         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58293         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58294         * string/bug-strcasestr1.c: New test.
58295         * string/Makefile: Run it.
58296
58297 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58298
58299         [BZ #11607]
58300         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58301         the first character.
58302
58303 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58304
58305         * csu/elf-init.c (__libc_csu_irel): Function removed.
58306         * csu/libc-start.c (apply_irel): New function.
58307         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58308
58309 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58310
58311         * sysdeps/unix/sysv/linux/kernel-features.h
58312         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58313         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58314         <kernel-features.h>.
58315         [__NR_fadvise64_64]: Make code unconditional.
58316         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58317         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58318         !__NR_fadvise64_64)]: Likewise.
58319         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58320         !__NR_fadvise64_64))]: Likewise.
58321         [__NR_fadvise64]: Make code unconditional.
58322         [!__NR_fadvise64]: Remove conditional code.
58323         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58324         <kernel-features.h>.
58325         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58326         unconditional.
58327         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58328         conditional code.
58329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58330         not include <kernel-features.h>.
58331         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58332         unconditional.
58333         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58334         conditional code.
58335         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58336         include <kernel-features.h>.
58337         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58338         unconditional.
58339         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58340         conditional code.
58341
58342 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58343
58344         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58345         slight instruction rearrangements per scrollpipe analysis.
58346         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58347
58348 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58349
58350         * manual/syslog.texi (syslog; vsyslog, closelog):
58351         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58352         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58353
58354         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58355         DSOCAPS to match condition on defining it.
58356
58357 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58358
58359         * sysdeps/unix/sysv/linux/kernel-features.h
58360         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58362         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58363         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58365         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58366         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58368         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58369         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58370
58371         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58372         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58373
58374         * sysdeps/unix/sysv/linux/kernel-features.h
58375         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58376         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58377         unconditional.
58378         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58379         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58380         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58381         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58382         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58383         Make code unconditional.
58384         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58385         (__mmap64) [!__NR_mmap2]: Likewise.
58386         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58387         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58388         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58389         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58390         [__NR_mmap2]: Make code unconditional.
58391         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58392         (__mmap64) [!__NR_mmap2]: Likewise.
58393
58394 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58395
58396         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58397
58398 2012-08-18  Andreas Jaeger  <aj@suse.de>
58399
58400         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58401
58402 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58403
58404         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58405         * include/unistd.h (__have_sock_cloexec): Likewise.
58406         (__have_pipe2): Likewise.
58407         (__have_dup3): Likewise.
58408
58409 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58410
58411         [BZ #9685]
58412         * include/unistd.h (__have_pipe2): Change define into an extern int.
58413         (__have_dup3): Likewise.
58414         * socket/have_sock_cloexec.c: Include fcntl.h.
58415         (__have_pipe2): New variable.
58416         (__have_dup3): Likewise.
58417
58418 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58419
58420         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58421
58422 2012-08-17  Marek Polacek  <polacek@redhat.com>
58423
58424         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58425         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58426
58427 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58428
58429         * configure.in: Add AC_SUBST for sysheaders.
58430         * configure: Regenerated.
58431         * config.make.in (sysheaders): New substituted variable.
58432
58433         * sysdeps/unix/mkfifo.c: Moved ...
58434         * sysdeps/posix/mkfifo.c: ... here.
58435         * sysdeps/unix/mkfifoat.c: Moved ...
58436         * sysdeps/posix/mkfifoat.c: ... here.
58437
58438         * sysdeps/unix/utime.c: Moved ...
58439         * sysdeps/posix/utime.c: ... here.
58440
58441         * sysdeps/unix/time.c: Moved ...
58442         * sysdeps/posix/time.c: ... here.
58443         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58444         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58445
58446         * sysdeps/unix/nice.c: Moved ...
58447         * sysdeps/posix/nice.c: ... here.
58448
58449         * sysdeps/unix/alarm.c: Moved ...
58450         * sysdeps/posix/alarm.c: ... here.
58451
58452         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58453
58454 2012-08-17  Jeff Law <law@redhat.com>
58455
58456         * intl/Makefile (codeset_mo): New variable.
58457         ($(codeset_mo)): New target.
58458         (tst-codeset.out): Depend on that.  Remove explicit rule.
58459         (tst-gettext3.out, tst-gettext5.out): Likewise.
58460         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58461         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58462         * intl/tst-codeset.sh: Remove.
58463         * intl/tst-gettext3.sh: Likewise.
58464         * intl/tst-gettext5.sh: Likewise.
58465
58466 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58467
58468         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58469         * sysdeps/unix/syscalls.list: ... here.
58470
58471         * sysdeps/posix/getaddrinfo.c
58472         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58473         (gaiconf_init, gaiconf_reload): Use them.
58474         [!_STATBUF_ST_NSEC]
58475         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58476         Define using time_t rather than struct timespec.
58477
58478         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58479         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58480         Macros removed.
58481         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58482         [!NO_THREADS].
58483         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58484         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58485         Likewise.
58486
58487         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58488         __libc_cleanup_push argument.
58489
58490         * bits/param.h: New file.
58491         * misc/sys/param.h: New file.
58492         * include/sys/param.h: New file.
58493         * misc/Makefile (headers): Add bits/param.h.
58494         * sysdeps/generic/sys/param.h: File removed.
58495         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58496         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58497         * sysdeps/mach/hurd/bits/param.h: New file.
58498         * sysdeps/mach/hurd/sys/param.h: File removed.
58499
58500         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58501         last change.
58502
58503         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58504         [_IO_MTSAFE_IO].
58505         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58506         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58507         New macros.
58508
58509         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58510         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58511         rather than -D_IO_MTSAFE_IO conditionally.
58512         * stdio-common/Makefile (CPPFLAGS): Likewise.
58513         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58514         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58515         Use $(libio-mtsafe).
58516         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58517         of -D_IO_MTSAFE_IO.
58518         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58519         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58520         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58521         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58522         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58523         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58524         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58525         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58526         (CFLAGS-fread_u_chk.c): Likewise.
58527         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58528         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58529         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58530         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58531         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58532         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58533         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58534         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58535         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58536
58537         * libio/Makefile: Test [$(libc-reentrant) = yes]
58538         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58539
58540         * Makeconfig
58541         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58542         * sysdeps/pthread/configure: File removed.
58543         * sysdeps/pthread/Makeconfig: New file.
58544         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58545         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58546
58547 2012-08-16  Gary Benson  <gbenson@redhat.com>
58548
58549         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58550         unmapping the first object in a namespace.
58551
58552 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58553
58554         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58555         (__internal_setnetgrent): ... this.  Add internal_function to
58556         definition.  Add libc_hidden_def.
58557         (setnetgrent): Update caller.
58558         (internal_endnetgrent): Renamed to ...
58559         (__internal_endnetgrent): ... this.  Add internal_function to
58560         definition.  Add libc_hidden_def.
58561         (endnetgrent): Update caller.
58562         (internal_getnetgrent_r): Renamed to ...
58563         (__internal_getnetgrent_r): ... this.  Add internal_function to
58564         definition.  Add libc_hidden_def.
58565         (__getnetgrent_r): Update caller.
58566         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58567
58568 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58569
58570         * stdlib/longlong.h: Update from GCC.
58571
58572 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58573
58574         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58575         on _QL, which is set by umul_ppmm but never used.
58576         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58577         variables, which are set by GMP macros but never used.
58578         * stdio-common/_itowa.c (_itowa): Likewise.
58579         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58580         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58581
58582 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58583
58584         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58585         struct La_sh_regs is not constant.
58586         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58587         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58588         and struct La_sparc64_regs are not constant.
58589
58590 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58591
58592         * sysdeps/unix/sysv/linux/kernel-features.h
58593         (__ASSUME_POSIX_TIMERS): Remove.
58594         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58595         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58596         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58597         Make code unconditional.
58598         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58599         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58600         Make code unconditional.
58601         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58602         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58603         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58604         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58605         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58606         Make code unconditional.
58607         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58608         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58609         (__libc_missing_posix_timers): Remove.
58610
58611 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58612
58613         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58614         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58615
58616         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58617
58618         * elf/dl-sym.c: Include <stdlib.h>.
58619
58620         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58621         constants, which avoids warnings in 32-bit builds.
58622
58623         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58624         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58625
58626         * misc/lseek.c: File moved to ...
58627         * io/lseek.c: ... here.
58628
58629         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58630
58631         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58632         shifting LEN more than 31 bits at once.
58633
58634 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58635
58636         [BZ #14195]
58637         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58638         segmentation fault for a case of two empty input strings.
58639         * string/test-strncasecmp.c (check1): Renamed to...
58640         (bz12205): ...this.
58641         (bz14195): Add new testcase for two empty input strings and N > 0.
58642         (test_main): Call new testcase, adapt for renamed function.
58643
58644 2012-08-15  Andreas Jaeger  <aj@suse.de>
58645
58646         [BZ #14090]
58647         * crypt/md5test2.c: New test, based on test supplied by Serge
58648         Belyshev <belyshev@depni.sinp.msu.ru>.
58649         * crypt/Makefile (xtests): Add md5test-giant..
58650         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58651
58652 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58653
58654         [BZ #14090]
58655         * crypt/md5.c (md5_process_block): Don't assume the buffer
58656         length is less than 2**32.
58657         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58658         length is less than 2**64.
58659
58660 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58661
58662         * string/str-two-way.h: Include <sys/param.h>.
58663         (MAX): Macro removed.
58664
58665         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58666         Move #define and #undef of memmove to just before and after
58667         including <string.h>.
58668
58669         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58670         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58671         and after including <string.h>.  Move declarations of
58672         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58673         to before #include "string/memmove.c".
58674
58675         * include/dirent.h: Declare __getdirentries.
58676
58677         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58678         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58679
58680 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58681
58682         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58683         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58684         * sysdeps/i386/configure: Regenerated.
58685         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58686         STABS_CURRENT_FILE, and STABS_FUN.
58687         (END): Remove call to STABS_FUN_END.
58688         (STABS_CURRENT_FILE1): Delete.
58689         (STABS_CURRENT_FILE): Likewise.
58690         (STABS_FUN): Likewise.
58691         (STABS_FUN_END): Likewise.
58692         (STABS_FUN2): Likewise.
58693         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58694         * sysdeps/x86_64/configure: Regenerated.
58695
58696 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58697
58698         * elf/dl-open.c: Include <atomic.h>.
58699         * elf/dl-lookup.c: Likewise.
58700
58701 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58702
58703         * sysdeps/unix/sysv/linux/kernel-features.h
58704         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58705         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58706         unconditionally.
58707         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58708         unconditionally.
58709         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58710         condition on __ASSUME_CLONE_THREAD_FLAGS.
58711
58712 2012-08-14  Andreas Jaeger  <aj@suse.de>
58713
58714         * sysdeps/i386/fpu/libm-test-ulps: Update.
58715
58716 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58717
58718         * include/atomic.h (atomic_exchange_and_add): Split into ...
58719         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58720         New atomic macros.
58721
58722 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58723
58724         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58725
58726 2012-08-13  Jeff Law <law@redhat.com>
58727
58728         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58729         null byte in the output string.
58730
58731 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58732
58733         * sysdeps/unix/sysv/linux/kernel-features.h
58734         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58735         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58736         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58737         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58738         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58739         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58740         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58741
58742 2012-08-09  Jeff Law <law@redhat.com>
58743
58744         [BZ #13939]
58745         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58746         When avoid_arena is set, don't retry in the that arena.  Pick the
58747         next one, whatever it might be.
58748         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58749         (arena_lock): Pass in new parameter to arena_get2.
58750         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58751         arena_get2.
58752         (__libc_malloc): Unify retrying after main arena failure with
58753         __libc_memalign version.
58754         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58755
58756 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58757
58758         [BZ #14166]
58759         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58760         to __redirect_strstr.
58761         (__strstr_sse42): Use typeof __redirect_strstr.
58762         (__strstr_ia32): Likewise.
58763         (__libc_strstr): New prototype.
58764         (strstr): Renamed to ...
58765         (__libc_strstr): This.
58766         (strstr): New strong alias of __libc_strstr.
58767         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58768         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58769         __redirect_time.
58770         Include <time.h>.
58771         (__libc_time): New prototype.
58772         (time_ifunc): Replace time with __libc_time.
58773         (time): New strong alias and hidden definition of __libc_time.
58774         (__GI_time): Remove strong alias.
58775         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58776         Include <stddef.h>.
58777         (memmove): Redefined to __redirect_memmove.
58778         (__memmove_sse2): Use typeof __redirect_memmove.
58779         (__memmove_ssse3): Likewise.
58780         (__memmove_ssse3_back): Likewise.
58781         (__libc_memmove): New prototype.
58782         (memmove): Renamed to ...
58783         (__libc_memmove): This.
58784         (memmove): New strong alias of __libc_memmove.
58785
58786 2012-08-08  Mark Salter  <msalter@redhat.com>
58787
58788         * elf/elf.h
58789         (R_MN10300_TLS_GD): Define.
58790         (R_MN10300_TLS_LD): Likewise.
58791         (R_MN10300_TLS_LDO): Likewise.
58792         (R_MN10300_TLS_GOTIE): Likewise.
58793         (R_MN10300_TLS_IE): Likewise.
58794         (R_MN10300_TLS_LE): Likewise.
58795         (R_MN10300_TLS_DTPMOD): Likewise.
58796         (R_MN10300_TLS_DTPOFF): Likewise.
58797         (R_MN10300_TLS_TPOFF): Likewise.
58798         (R_MN10300_SYM_DIFF): Likewise.
58799         (R_MN10300_ALIGN): Likewise.
58800         (R_MN10300_NUM): Update.
58801
58802 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58803
58804         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58805         Remove.
58806
58807 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58808
58809         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58810
58811         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58812         sysdeps/unix -> sysdeps/posix move.
58813         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58814
58815 2012-08-07      Allan McRae     <allan@archlinux.org>
58816
58817         [BZ #14303]
58818         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58819         (SUNOS_CPP): Likewise.
58820         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58821         not found.
58822         (open_input): Call CPP using execvp.
58823
58824 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58825
58826         * sysdeps/unix/sysv/linux/kernel-features.h
58827         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58828         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58829         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58830         (__ASSUME_WAITID_SYSCALL): Likewise.
58831         * sysdeps/unix/sysv/linux/dl-execstack.c
58832         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58833         code unconditional.
58834         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58835         conditional code.
58836         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58837         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58838         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58839         code.
58840         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58841         unconditional.
58842         [__ASSUME_WAITID_SYSCALL]: Likewise.
58843         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58844
58845 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58846
58847         * sysdeps/unix/closedir.c: Renamed to ...
58848         * sysdeps/posix/closedir.c: ... here.
58849         * sysdeps/unix/dirfd.c: Renamed to ...
58850         * sysdeps/posix/dirfd.c: ... here.
58851         * sysdeps/unix/dirstream.h: Renamed to ...
58852         * sysdeps/posix/dirstream.h: ... here.
58853         * sysdeps/unix/fdopendir.c: Renamed to ...
58854         * sysdeps/posix/fdopendir.c: ... here.
58855         * sysdeps/unix/opendir.c: Renamed to ...
58856         * sysdeps/posix/opendir.c: ... here.
58857         * sysdeps/unix/readdir.c: Renamed to ...
58858         * sysdeps/posix/readdir.c: ... here.
58859         * sysdeps/unix/readdir_r.c: Renamed to ...
58860         * sysdeps/posix/readdir_r.c: ... here.
58861         * sysdeps/unix/rewinddir.c: Renamed to ...
58862         * sysdeps/posix/rewinddir.c: ... here.
58863         * sysdeps/unix/seekdir.c: Renamed to ...
58864         * sysdeps/posix/seekdir.c: ... here.
58865         * sysdeps/unix/telldir.c: Renamed to ...
58866         * sysdeps/posix/telldir.c: ... here.
58867         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58868         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58869         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58870         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58871
58872         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58873         * bits/fcntl.h: ... here.
58874
58875         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58876         not 0.
58877         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58878         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58879         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58880         (struct flock): Move l_start, l_len to the beginning.
58881         Use __pid_t for l_pid.
58882         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58883         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58884         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58885         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58886         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58887         [__USE_LARGEFILE64] (struct flock64): New type.
58888         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58889
58890         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58891         * bits/dirent.h: ... here.
58892
58893         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58894         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58895
58896 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58897
58898         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58899         Change from 2.6.0 to 2.6.16.
58900         * sysdeps/unix/sysv/linux/configure: Regenerated.
58901         * sysdeps/unix/sysv/linux/kernel-features.h
58902         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58903         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58904         version.
58905         (__ASSUME_UTIMES): Likewise.
58906         (__ASSUME_CLONE_STOPPED): Remove.
58907         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58908         architectures, not kernel version.
58909         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58910         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58911         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58912         (__ASSUME_WAITID_SYSCALL): Likewise.
58913         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58914         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58915         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58916         refer to older versions.
58917
58918 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58919
58920         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58921         Define alphasort64 as an alias.
58922         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58923         Define versionsort64 as an alias.
58924         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58925         Define scandir64 as an alias.
58926         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58927         Define scandirat64 as an alias.
58928         * dirent/alphasort64.c (alphasort64):
58929         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58930         * dirent/versionsort64.c: Likewise.
58931         * dirent/scandir64.c: Likewise.
58932         * dirent/scandirat64.c: Likewise.
58933         * sysdeps/wordsize-64/alphasort.c: File removed.
58934         * sysdeps/wordsize-64/alphasort64.c: File removed.
58935         * sysdeps/wordsize-64/scandir.c: File removed.
58936         * sysdeps/wordsize-64/scandir64.c: File removed.
58937         * sysdeps/wordsize-64/scandirat.c: File removed.
58938         * sysdeps/wordsize-64/scandirat64.c: File removed.
58939         * sysdeps/wordsize-64/versionsort.c: File removed.
58940         * sysdeps/wordsize-64/versionsort64.c: File removed.
58941         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58942         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58943         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58944         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58945         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58946         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58947         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58948         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58949
58950         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58951         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58952         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58953         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58954         [defined __arch64__ || defined __sparcv9]
58955         (__INO_T_MATCHES_INO64_T): New macro.
58956         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58957         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58958         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58959         * sysdeps/unix/sysv/linux/bits/dirent.h
58960         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58961         (_DIRENT_MATCHES_DIRENT64): New macro.
58962
58963         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58964         Define lockf64 as an alias.
58965         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58966         Define fseeko64 as an alias.
58967         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58968         Define ftello64 as an alias.
58969         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58970         Define _IO_fgetpos64 and fgetpos64 as aliases.
58971         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58972         Define _IO_fsetpos64 and fsetpos64 as aliases.
58973         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58974         Conditionalize body on this.
58975         * libio/fseeko64.c: Likewise.
58976         * libio/ftello64.c: Likewise.
58977         * libio/iofgetpos64.c: Likewise.
58978         * libio/iofsetpos64.c: Likewise.
58979         * sysdeps/wordsize-64/lockf.c: File removed.
58980         * sysdeps/wordsize-64/lockf64.c: File removed.
58981         * sysdeps/wordsize-64/fseeko.c: File removed.
58982         * sysdeps/wordsize-64/fseeko64.c: File removed.
58983         * sysdeps/wordsize-64/ftello.c: File removed.
58984         * sysdeps/wordsize-64/ftello64.c: File removed.
58985         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58986         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58987         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58988         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58989         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58990         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58991         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58992         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58993         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58994         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58995         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58996         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58997         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58998         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58999
59000         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59001         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59002         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59003         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59004         [defined __arch64__ || defined __sparcv9]
59005         (__OFF_T_MATCHES_OFF64_T): New macro.
59006         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59007         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59008         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59009         (__OFF_T_MATCHES_OFF64_T): New macro.
59010
59011 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59012
59013         * stdlib/secure-getenv.c (__secure_getenv): Replace
59014         GLIBC_2_16 with GLIBC_2_17.
59015
59016 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59017
59018         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59019         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59020
59021 2012-08-03  David S. Miller  <davem@davemloft.net>
59022
59023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59024
59025 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59026
59027         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59028         Remove.
59029         (__ASSUME_CORRECT_SI_PID): Likewise.
59030         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59031         (__ASSUME_TMPFS_NAME): Likewise.
59032         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59033         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59034         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59035         (HAVE_AUX_SECURE): Make definition unconditional.
59036         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59037         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59038
59039 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59040
59041         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59042         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59043         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59044         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59045         __eloop_threshold instead of SYMLOOP_MAX.
59046
59047         * sysdeps/generic/eloop-threshold.h: New file.
59048         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59049         of MAXSYMLINKS.
59050         * elf/chroot_canon.c (chroot_canon): Likewise.
59051
59052 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59053
59054         [BZ #13717]
59055         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59056         Change to 2.6.0 everywhere.
59057         * sysdeps/unix/sysv/linux/configure: Regenerated.
59058         * sysdeps/unix/sysv/linux/kernel-features.h
59059         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59060         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59061         kernel versions.
59062         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59063         (__ASSUME_FUTEX_REQUEUE): Remove.
59064         (__ASSUME_STATFS64): Define unconditionally.
59065         (__ASSUME_AT_SECURE): Likewise.
59066         (__ASSUME_CORRECT_SI_PID): Likewise.
59067         (__ASSUME_TGKILL): Define without depending on kernel version for
59068         i386.
59069         (__ASSUME_UTIMES): Likewise.
59070         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59071         kernel version.
59072         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59073         (__ASSUME_TMPFS_NAME): Likewise.
59074         * README: Update reference to Linux kernel versions.
59075
59076 2012-08-02  Marek Polacek  <polacek@redhat.com>
59077
59078         [BZ# 14150]
59079         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59080         libc_cv_asm_type_prefix with %.
59081         * configure: Regenerated.
59082         * include/libc-symbols.h: Remove comment about
59083         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59084         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59085         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59086         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59087         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59088         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59089         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59090         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59091         * elf/tst-unique2mod1.c: Likewise.
59092         * elf/tst-unique1mod2.c: Likewise.
59093         * elf/tst-unique1mod1.c: Likewise.
59094         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59095         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59096         Replace ASM_TYPE_DIRECTIVE with .type.
59097         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59098         * sysdeps/i386/sysdep.h: Likewise.
59099         * sysdeps/x86_64/sysdep.h: Likewise.
59100         * sysdeps/sh/sysdep.h: Likewise.
59101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59102         Do not define ASM_TYPE_DIRECTIVE.
59103         * sysdeps/powerpc/sysdep.h: Likewise.
59104         * sysdeps/powerpc/powerpc32/sysdep.h:
59105         Replace ASM_TYPE_DIRECTIVE with .type.
59106         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59107         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59108         * sysdeps/i386/fpu/e_powf.S: Likewise.
59109         * sysdeps/i386/fpu/e_expl.S: Likewise.
59110         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59111         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59112         * sysdeps/i386/fpu/e_pow.S: Likewise.
59113         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59114         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59115         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59116         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59117         * sysdeps/i386/fpu/e_log2.S: Likewise.
59118         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59119         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59120         * sysdeps/i386/fpu/e_powl.S: Likewise.
59121         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59122         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59123         * sysdeps/i386/fpu/e_logl.S: Likewise.
59124         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59125         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59126         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59127         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59128         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59129         * sysdeps/i386/fpu/e_log.S: Likewise.
59130         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59131         * sysdeps/i386/fpu/e_logf.S: Likewise.
59132         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59133         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59134         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59135         * sysdeps/i386/fpu/e_log10.S: Likewise.
59136         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59137         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59138         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59139         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59140         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59141         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59142         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59143         * sysdeps/i386/i686/strtok.S: Likewise.
59144         * sysdeps/i386/i386-mcount.S: Likewise.
59145         * sysdeps/i386/strtok.S: Likewise.
59146         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59147         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59148         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59149         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59150         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59151         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59152         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59153         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59154         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59155         * sysdeps/x86_64/_mcount.S: Likewise.
59156         * sysdeps/x86_64/strtok.S: Likewise.
59157         * sysdeps/sh/_mcount.S: Likewise.
59158
59159 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59160
59161         * libio/iofopen.c: Include <fcntl.h>.
59162         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59163         (_IO_fopen64, fopen64): Define as aliases.
59164         * libio/iofopen64.c: Include <fcntl.h>.
59165         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59166         Conditionalize body on this.
59167         * sysdeps/wordsize-64/iofopen.c: File removed.
59168         * sysdeps/wordsize-64/iofopen64.c: File removed.
59169
59170 2012-08-01  Marek Polacek  <polacek@redhat.com>
59171
59172         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59173         Use dlfcn directly instead of a variable.
59174         (binfmt-subdir): Do not define.
59175         (dlfcn): Likewise.
59176
59177 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59178
59179         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59180         Remove all definitions.
59181         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59182         <kernel-features.h>.
59183         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59184         (miss_F_GETOWN_EX): Remove all definitions.
59185         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59186         macro definition.
59187         [!__ASSUME_FCNTL64]: Remove conditional code.
59188         [__ASSUME_FCNTL64]: Make code unconditional.
59189         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59190         <kernel-features.h>.
59191         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59192         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59193         (lockf64) [__NR_fcntl64]: Make code unconditional.
59194         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59195
59196         * sysdeps/unix/sysv/linux/kernel-features.h
59197         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59198         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59199         Make code unconditional.
59200         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59201         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59203         [__NR_vfork]: Make code unconditional.
59204         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59205         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59207         [__NR_vfork]: Make code unconditional.
59208         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59209         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59210
59211 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59212
59213         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59214         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59215
59216         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59217         Define mkstemp64 as an alias.
59218         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59219         Define mkstemps64 as an alias.
59220         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59221         Define mkostemp64 as an alias.
59222         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59223         Define mkostemps64 as an alias.
59224         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59225         Conditionalize body on this.
59226         * misc/mkostemp64.c: Likewise.
59227         * misc/mkostemps64.c: Likewise.
59228         * misc/mkstemps64.c: Likewise.
59229         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59230         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59231         * sysdeps/wordsize-64/mkostemp.c: File removed.
59232         * sysdeps/wordsize-64/mkstemp.c: File removed.
59233         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59234         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59235         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59236         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59237
59238         [BZ #14138]
59239         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59240         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59241         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59242         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59243
59244         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59245         compat_symbol macros from <shlib-compat.h> rather than the underlying
59246         default_symbol_version and symbol_version macros, so that DEFAULT
59247         lines in shlib-versions are respected.
59248         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59249
59250 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59251
59252         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59253         Declare with warn_unused_result.
59254         (setgid, setregid, setegid, setresgid): Likewise.
59255         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59256         Likewise.
59257         * WUR-REPORT: Remove set*id functions.
59258
59259 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59260
59261         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59262
59263 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59264
59265         [BZ #10191]
59266         * include/sys/socket.h (__libc_accept, __libc_accept4):
59267         Add attribute_hidden.
59268         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59269
59270         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59271         use of PTR_MANGLE.
59272         * inet/getnetgrent_r.c (setup): Likewise.
59273
59274         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59275
59276 2012-07-31  David S. Miller  <davem@davemloft.net>
59277
59278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59279
59280 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59281
59282         [BZ #13629]
59283         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59284         value between 1.0 and 2.0 and smaller part has absolute value less
59285         than 1.0.
59286         * math/s_clog10.c (__clog10): Likewise.
59287         * math/s_clog10f.c (__clog10f): Likewise.
59288         * math/s_clog10l.c (__clog10l): Likewise.
59289         * math/s_clogf.c (__clogf): Likewise.
59290         * math/s_clogl.c (__clogl): Likewise.
59291         * math/libm-test.inc (clog_test): Add more tests.
59292         (clog10_test): Likewise.
59293         * sysdeps/i386/fpu/libm-test-ulps: Update.
59294         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59295
59296 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59297
59298         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59299         Exit with zero in case no suitable GID is found, and write a
59300         message to standard error.
59301
59302 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59303
59304         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59305         rather than to 1.
59306         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59307         (MAXPATHLEN): Removed.
59308         (NOGROUP, NODEV): New macros.
59309         (setbit, clrbit, isset, isclr): New macros.
59310         (howmany, roundup, powerof2): New macros.
59311         (DEV_BSIZE): New macro.
59312
59313         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59314         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59315
59316         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59317         definition on [!__NO_LONG_DOUBLE_MATH].
59318
59319         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59320         PTR_MANGLE and PTR_DEMANGLE.
59321
59322         * socket/accept4.c (accept4): Rename to __libc_accept4.
59323         Define accept4 as a weak alias.
59324
59325         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59326         on [_DIRENT_HAVE_D_TYPE].
59327         * io/ftw.c (ftw_dir): Likewise.
59328
59329         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59330
59331         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59332
59333         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59334         Use the BSD numbers rather than the arbitrary ones we had.
59335         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59336         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59337         (SIGXCPU, SIGXFSZ): New macros.
59338         (_NSIG): Now 32.
59339
59340         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59341         initializer on [_LIBC_REENTRANT].
59342
59343         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59344         definitions inside [_POSIX_MAPPED_FILES].
59345
59346         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59347
59348         * dirent/opendir.c: Include <fcntl.h>.
59349
59350         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59351         (__libc_getspecific): Likewise.
59352         (__libc_key_create): Likewise.
59353
59354         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59355         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59356         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59357         (tmpfile64): Define as alias.
59358         * sysdeps/wordsize-64/tmpfile.c: File removed.
59359         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59360         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59361         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59362
59363         * stdio-common/vfscanf.c: Include <stdbool.h>.
59364         * nss/makedb.c: Likewise.
59365         * stdio-common/_i18n_number.h: Likewise.
59366         * argp/argp-help.c: Likewise.
59367         * posix/wordexp.c: Likewise.
59368         * sysdeps/posix/spawni.c: Likewise.
59369         * nss/nss_files/files-initgroups.c: Likewise.
59370         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59371         * nss/nss_files/files-initgroups.c: Likewise.
59372         * nss/nss_db/db-netgrp.c: Likewise.
59373         * nss/nss_db/db-initgroups.c: Likewise.
59374         * io/fchmodat.c: Include <sys/stat.h>.
59375
59376         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59377         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59378
59379         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59380         [HAVE_MMAP].
59381
59382         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59383         Add multiple inclusion protection.
59384
59385 2012-07-27  David S. Miller  <davem@davemloft.net>
59386
59387         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59388
59389 2012-07-27  Gary Benson  <gbenson@redhat.com>
59390
59391         [BZ #14298]
59392         * elf/rtld.c: Include <stap-probe.h>.
59393         (dl_main): Added static probes "init_start" and "init_complete".
59394         * elf/dl-load.c: Include <stap-probe.h>.
59395         (lose): Take new parameter "nsid".
59396         Added static probe "map_failed".
59397         (_dl_map_object_from_fd): Pass namespace id to lose.
59398         Added static probe "map_start".
59399         (open_verify): Pass namespace id to lose.
59400         * elf/dl-open.c: Include <stap-probe.h>.
59401         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59402         and "reloc_complete".
59403         * elf/dl-close.c: Include <stap-probe.h>.
59404         (_dl_close_worker): Added static probes "unmap_start" and
59405         "unmap_complete".
59406         * elf/rtld-debugger-interface.txt: New file documenting the above.
59407
59408 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59409
59410         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59411         rather than a string variable.
59412         * sunrpc/rpc_main.c (h_output): Likewise.
59413         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59414
59415 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59416
59417         * inet/check_native.c: New file.
59418
59419 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59420
59421         [BZ #13629]
59422         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59423         if larger part has absolute value 1.0.
59424         * math/s_clog10.c (__clog10): Likewise.
59425         * math/s_clog10f.c (__clog10f): Likewise.
59426         * math/s_clog10l.c (__clog10l): Likewise.
59427         * math/s_clogf.c (__clogf): Likewise.
59428         * math/s_clogl.c (__clogl): Likewise.
59429         * math/libm-test.inc (clog_test): Add more tests.
59430         (clog10_test): Likewise.
59431         * sysdeps/i386/fpu/libm-test-ulps: Update.
59432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59433
59434         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59435         (pltexit): Likewise.
59436         (La_regs): Likewise.
59437         (La_retval): Likewise.
59438         (int_retval): Likewise.
59439         Update #error for removed macros to refer only to definitions in
59440         tst-audit.h.
59441         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59442         macro.
59443         (pltexit): Likewise.
59444         (La_regs): Likewise.
59445         (La_retval): Likewise.
59446         (int_retval): Likewise.
59447         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59448         macro.
59449         (pltexit): Likewise.
59450         (La_regs): Likewise.
59451         (La_retval): Likewise.
59452         (int_retval): Likewise.
59453         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59454         macro.
59455         (pltexit): Likewise.
59456         (La_regs): Likewise.
59457         (La_retval): Likewise.
59458         (int_retval): Likewise.
59459         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59460         macro.
59461         (pltexit): Likewise.
59462         (La_regs): Likewise.
59463         (La_retval): Likewise.
59464         (int_retval): Likewise.
59465         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59466         macro.
59467         (pltexit): Likewise.
59468         (La_regs): Likewise.
59469         (La_retval): Likewise.
59470         (int_retval): Likewise.
59471         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59472         macro.
59473         (pltexit): Likewise.
59474         (La_regs): Likewise.
59475         (La_retval): Likewise.
59476         (int_retval): Likewise.
59477         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59478         macro definitions in tst-audit.h.
59479         * sysdeps/i386/tst-audit.h: New file.
59480         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59481         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59482         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59483         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59484         * sysdeps/sh/tst-audit.h: Likewise.
59485         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59486         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59487         * sysdeps/x86_64/tst-audit.h: Likewise.
59488
59489 2012-07-26  Andreas Jaeger  <aj@suse.de>
59490
59491         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59492         ptrace.
59493
59494         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59495         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59496         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59497         PTRACE_O_MASK.
59498         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59499         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59500         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59501
59502         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59503         value.
59504
59505         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59506         _sigsys.
59507         (si_call_addr, si_syscall, si_arch): Define new macro.
59508         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59509         _sigsys.
59510         (si_call_addr, si_syscall, si_arch): Define new marcro.
59511         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59512         _sigsys.
59513         (si_call_addr, si_syscall, si_arch): Define new macro.
59514         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59515         _sigsys.
59516         (si_call_addr, si_syscall, si_arch): Define new macro.
59517
59518 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59519
59520         [BZ #13717]
59521         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59522         Change to 2.4.21 where previously 2.4.1.
59523         * sysdeps/unix/sysv/linux/configure: Regenerated.
59524         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59525         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59526         Linux kernel version.
59527         (__ASSUME_STD_AUXV): Remove.
59528         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59529         kernel version.
59530         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59531         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59532         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59533         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59534         (__ASSUME_NETLINK_SUPPORT): Likewise.
59535         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59536         (__no_netlink_support): Remove conditional definition.
59537         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59538         Remove.
59539         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59540         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59541         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59542         (if_nameindex_ioctl): Remove.
59543         (if_nameindex_netlink): Do not handle __no_netlink_support.
59544         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59545         code.
59546         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59547         Remove conditional code.
59548         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59549         code.
59550         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59551         unconditional.
59552         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59553         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59554         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59555         Remove.
59556         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59557         [!__ASSUME_STD_AUXV]: Remove conditional code.
59558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59559         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59560         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59562         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59563         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59564         code.
59565         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59567         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59568         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59569         conditional code.
59570         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59572         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59573         code.
59574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59575         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59576         conditional code.
59577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59578         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59579         code unconditional.
59580         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59581         conditional code.
59582         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59583         unconditional.
59584         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59585         conditional code.
59586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59587         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59588         unconditional.
59589         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59590         conditional code.
59591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59592         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59593         code unconditional.
59594         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59595         conditional code.
59596         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59597         unconditional.
59598         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59599         conditional code.
59600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59601         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59602         code unconditional.
59603         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59604         conditional code.
59605         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59606         unconditional.
59607         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59608         conditional code.
59609
59610 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59611
59612         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59613         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59614         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59615         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59616         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59617         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59618         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59619         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59620         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59621         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59622         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59623         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59624         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59625         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59626         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59627         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59628         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59629         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59630         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59631         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59632         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59633         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59634         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59635
59636 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59637
59638         * Versions.def: Add GLIBC_2.17.
59639         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59640         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59641         Introduce __libc_secure_getenv.
59642         * stdlib/Versions (2.17): Add secure_getenv
59643         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59644         * stdlib/secure-getenv.c: Rename __secure_getenv to
59645         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59646         symbol __secure_getenv for GLIBC_2.0.
59647         * stdlib/tst-secure-getenv.c: New.
59648         * stdlib/Makefile (tests): Add testcase.
59649         * manual/startup.texi (Environment Access): Document
59650         secure_getenv.
59651         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59652         __libc_secure_getenv.
59653         * inet/ruserpass.c (ruserpass): Likewise.
59654         * malloc/mtrace.c (mtrace): Likewise.
59655         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59656         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59657         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59658         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59659         HAVE_SECURE_GETENV.
59660         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59661         __secure_getenv to __libc_secure_getenv.
59662         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59664         Likewise.
59665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59666         Likewise.
59667         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59668         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59669         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59670         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59673         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59674
59675 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59676
59677         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59678         (struct La_i86_retval): Likewise.
59679         (struct La_x86_64_regs): Likewise.
59680         (struct La_x86_64_retval): Likewise.
59681         (struct La_x32_regs): Likewise.
59682         (struct La_x32_retval): Likewise.
59683         (struct La_ppc32_regs): Likewise.
59684         (struct La_ppc32_retval): Likewise.
59685         (struct La_ppc64_regs): Likewise.
59686         (struct La_ppc64_retval): Likewise.
59687         (struct La_sh_regs): Likewise.
59688         (struct La_sh_retval): Likewise.
59689         (struct La_s390_32_regs): Likewise.
59690         (struct La_s390_32_retval): Likewise.
59691         (struct La_s390_64_regs): Likewise.
59692         (struct La_s390_64_retval): Likewise.
59693         (struct La_sparc32_regs): Likewise.
59694         (struct La_sparc32_retval): Likewise.
59695         (struct La_sparc64_regs): Likewise.
59696         (struct La_sparc64_retval): Likewise.
59697         (struct audit_ifaces): Remove architecture-specific pltenter and
59698         pltexit members.
59699         * sysdeps/i386/ldsodefs.h: New file.
59700         * sysdeps/powerpc/ldsodefs.h: Likewise.
59701         * sysdeps/s390/ldsodefs.h: Likewise.
59702         * sysdeps/sh/ldsodefs.h: Likewise.
59703         * sysdeps/sparc/ldsodefs.h: Likewise.
59704         * sysdeps/x86_64/ldsodefs.h: Likewise.
59705
59706 2012-07-25  Marek Polacek  <polacek@redhat.com>
59707
59708         [BZ #6808]
59709         * math/libm-test.inc (yn_test): Add another test.
59710         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59711         to ERANGE when the result is +-Inf.
59712         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59713         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59714         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59715         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59716
59717 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59718
59719         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59720         equal to 0.
59721         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59722         clock_t.
59723         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59724
59725 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59726
59727         * configure.in <sysdeps resolving>: Correct printing
59728         Implies_before.
59729         * configure: Regenerate.
59730
59731 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59732
59733         * math/w_ilogb.c: Include <limits.h>.
59734         * math/w_ilogbl.c: Likewise.
59735
59736 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59737
59738         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59739         va_copy.  Document allowing for unavailable va_copy only as
59740         pre-C99 compatibility.
59741         * manual/string.texi (Copying and Concatenation): Use va_copy
59742         instead of __va_copy in concat example.
59743
59744 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59745
59746         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59747         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59748         it if not null.
59749
59750         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59751         with O_NOLINK passed to __file_name_lookup.
59752
59753         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59754         with O_NOLINK passed to __file_name_lookup.
59755
59756         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59757         negative N or less than NGIDS.
59758
59759         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59760         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59761         enough.  Use memcpy instead of strncpy.
59762
59763 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59764
59765         * elf/Makefile (check-data): Remove.
59766         (localplt.data): New vpath directive.
59767         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59768         instead of $(check-data).
59769         * scripts/data/localplt-generic.data: Move to ...
59770         * sysdeps/generic/localplt.data: ... here.
59771         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59772         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59773         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59775         ... here.
59776         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59778         ... here.
59779         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59780         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59781         ... here.
59782         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59784         ... here.
59785         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59786         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59787         ... here.
59788         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59789         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59790         ... here.
59791
59792 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59793
59794         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59795         PPC32 and PPC64 files.
59796         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59797         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59798
59799 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59800
59801         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59802         __makecontext_ret to ...
59803         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59804         ... here and call exit if uc_link is NULL.  New file.
59805         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59806         __makecontext_ret.S.
59807         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59808         __makecontext_ret to ...
59809         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59810         ... here and call exit if uc_link is NULL.  New file.
59811         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59812         __makecontext_ret.S.
59813
59814 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59815
59816         * elf/elf.h (R_390_IRELATIVE): New definition.
59817         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59818         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59819         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59820         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59821         (elf_machine_lazy_rel): Likewise.
59822         * sysdeps/s390/dl-irel.h: New file.
59823         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59824         * sysdeps/s390/s390-64/memset.S: New asm code.
59825         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59826         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59827         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59828         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59829         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59830         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59831         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59832         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59833         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59834         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59835         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59836         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59837         * sysdeps/s390/s390-32/memset.S: New asm code.
59838         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59839
59840 2012-07-17  Marek Polacek  <polacek@redhat.com>
59841
59842         [BZ #14349]
59843         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59844         * sysdeps/s390/s390-64/configure.in: Likewise.
59845         * sysdeps/sparc/configure.in: Likewise.
59846         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59847         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59848         * sysdeps/i386/configure.in: Likewise.
59849         * sysdeps/x86_64/configure.in: Likewise.
59850         * sysdeps/sh/configure.in: Likewise.
59851         * sysdeps/s390/s390-32/configure: Regenerated.
59852         * sysdeps/s390/s390-64/configure: Likewise.
59853         * sysdeps/x86_64/configure: Likewise.
59854         * sysdeps/sh/configure: Likewise.
59855         * sysdeps/powerpc/powerpc64/configure: Likewise.
59856         * sysdeps/powerpc/powerpc32/configure: Likewise.
59857         * sysdeps/sparc/configure: Likwise.
59858         * sysdeps/i386/configure: Likewise.
59859
59860         * elf/dl-open.c: Comment fixes.
59861
59862 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59863
59864         * Makefile [CXX] (check-data): Remove.
59865         [CXX] (c++-types.data): New vpath directive.
59866         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59867         vpath.  Do not allow for C++ type data being missing.
59868         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59869         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59870         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59871         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59872         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59873         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59874         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59876         ... here.
59877         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59879         ... here.
59880         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59881         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59882         ... here.
59883         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59884         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59885         ... here.
59886         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59887         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59888         ... here.
59889         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59891         ... here.
59892         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59893         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59894         ... here.
59895         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59896         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59897
59898         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59899         definitions to architecture-specific files.
59900         (TLS_IE): Likewise.
59901         (TLS_LD): Likewise.
59902         (TLS_GD): Likewise.
59903         * sysdeps/i386/tls-macros.h: New file.
59904         * sysdeps/powerpc/tls-macros.h: Likewise.
59905         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59906         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59907         * sysdeps/sh/tls-macros.h: Likewise.
59908         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59909         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59910         * sysdeps/x86_64/tls-macros.h: Likewise.
59911
59912 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59913
59914         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59915         zero value for regular exit case.
59916
59917         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59918         (__start_context): Preserve zero value for regular exit case.
59919
59920 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59921             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59922
59923         * manual/setjmp.texi (setcontext): Clarify normal process
59924         termination when uc_link is the null pointer.
59925         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59926         exit call.
59927
59928 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59929
59930         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59931         preprocessor.  Test for each exception mask separately.
59932
59933 2012-07-16  Andreas Jaeger  <aj@suse.de>
59934
59935         * po/ru.po: Update from translation team.
59936
59937 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59938
59939         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59940         equal to 0.
59941         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59942         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59943         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59944         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59945         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59946
59947 2012-07-13  Andreas Jaeger  <aj@suse.de>
59948
59949         * po/fr.po: Update from translation team.
59950
59951 2012-07-12  Marek Polacek  <polacek@redhat.com>
59952
59953         [BZ #14173]
59954         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59955         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59956         loop condition.
59957
59958 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59959
59960         [BZ #13717]
59961         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59962         Change to 2.4.1 where previously 2.4.0.
59963         * sysdeps/unix/sysv/linux/configure: Regenerated.
59964         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59965         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59966         version.
59967         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59968         (__ASSUME_AT_CLKTCK): Remove.
59969         (__ASSUME_AT_PAGESIZE): Likewise.
59970         (__ASSUME_AT_XID): Likewise.
59971         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59972         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59973         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59974         unconditionally.
59975         (HAVE_AUX_PAGESIZE): Likewise.
59976         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59977         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59978         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59979
59980 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59981
59982         [BZ #14307]
59983         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59984         the temporary buffer used to invoke __gethostbyname2_r,
59985         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59986         host_data / struct gaih_addrtuple.
59987         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59988         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59989         header file nss/nsswitch.h.
59990         * nss/nsswitch.h (global scope): Add definition of implementation
59991         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59992         resolv/nss_dns/dns-host.c).
59993
59994 2012-07-11  Andreas Jaeger  <aj@suse.de>
59995
59996         * po/fr.po: Update from translation team.
59997
59998         * po/sv.po: Update from translation team
59999         * po/fr.po: Another update from translation team.
60000
60001 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60002
60003         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60004         for subnormals or multiply small sinh result by itself.
60005         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60006         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60007
60008 2012-07-11  David S. Miller  <davem@davemloft.net>
60009
60010         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60011
60012 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60013
60014         [BZ #14347]
60015         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60016         (INTERNAL_MARK): Shift it here.
60017
60018 2012-07-10  Marek Polacek  <polacek@redhat.com>
60019
60020         [BZ #14151]
60021         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60022         libc_cv_asm_global_directive with .globl.
60023         * configure: Regenerated.
60024         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60025         with .globl.
60026         * sysdeps/i386/configure: Regenerated.
60027         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60028         with .globl.
60029         * sysdeps/x86_64/configure: Regenerated.
60030         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60031         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60032         * elf/tst-unique2mod2.c: Likewise.
60033         * elf/tst-unique2mod1.c: Likewise.
60034         * elf/tst-unique1mod2.c: Likewise.
60035         * elf/tst-unique1mod1.c: Likewise.
60036         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60037         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60038         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60039         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60040         * sysdeps/mach/sysdep.h: Likewise.
60041         * sysdeps/i386/sysdep.h: Likewise.
60042         * sysdeps/i386/i386-mcount.S: Likewise.
60043         * sysdeps/x86_64/_mcount.S: Likewise.
60044         * sysdeps/x86_64/sysdep.h: Likewise.
60045         * sysdeps/sh/_mcount.S: Likewise.
60046         * sysdeps/sh/sysdep.h: Likewise.
60047         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60048         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60049         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60050         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60051         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60052         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60053         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60054         * locale/localeinfo.h: Likewise.
60055         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60056         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60057
60058 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60059
60060         [BZ #14336]
60061         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60062         system".
60063         * manual/message.texi (The Uniforum approach): Likewise.
60064         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60065         (glibc iconv Implementation): Likewise.
60066
60067 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60068
60069         [BZ #14337]
60070         * math/s_clog.c (__clog): Avoid scaling a value down where that
60071         could result in underflow.
60072         * math/s_clog10.c (__clog10): Likewise.
60073         * math/s_clog10f.c (__clog10f): Likewise.
60074         * math/s_clog10l.c (__clog10l): Likewise.
60075         * math/s_clogf.c (__clogf): Likewise.
60076         * math/s_clogl.c (__clogl): Likewise.
60077         * math/libm-test.inc (clog_test): Add more tests.
60078         (clog10_test): Likewise.
60079         * sysdeps/i386/fpu/libm-test-ulps: Update.
60080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60081
60082 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60083
60084         [BZ #14283]
60085         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60086         by 7 not 8 to examine high bit of fractional part.
60087
60088         [BZ #14042]
60089         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60090         for call to __mcount_internal.
60091         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60092         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60093         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60094
60095 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60096
60097         [BZ #14154]
60098         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60099         approximation for values within 0x1p-13f of an odd multiple of
60100         pi/4.
60101         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60102         exception.  Add more tests.
60103         * sysdeps/i386/fpu/libm-test-ulps: Update.
60104
60105         [BZ #6778]
60106         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60107         inputs and return -1 for them.  Do not check for +Inf in case not
60108         reachable for +Inf.
60109         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60110         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60111         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60112         and return -1 for them.  Do not check for +Inf in case not
60113         reachable for +Inf.
60114         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60115         define.
60116         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60117         and return -1 for them.  Do not check for +Inf in case not
60118         reachable for +Inf.
60119         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60120         spurious underflow.
60121         * sysdeps/i386/fpu/libm-test-ulps: Update.
60122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60123
60124 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60125
60126         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60127
60128 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60129
60130         [BZ #14157]
60131         [BZ #14331]
60132         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60133         could result in spurious underflow.  Scale down values above
60134         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60135         * math/s_csqrtf.c (__csqrtf): Likewise.
60136         * math/s_csqrtl.c (__csqrtl): Likewise.
60137         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60138         spurious underflow.
60139         * sysdeps/i386/fpu/libm-test-ulps: Update.
60140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60141
60142 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60143
60144         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60145         xopen-msg.sed.
60146         * catgets/xopen-msg.awk: New file.
60147         * catgets/xopen-msg.sed: Removed.
60148
60149         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60150         po2text.sed.
60151         * intl/po2test.awk: New file.
60152         * intl/po2test.sed: Removed.
60153
60154 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60155
60156         [BZ #14328]
60157         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60158         or multiply small sinh result by itself.
60159         * math/s_ctanf.c (__ctanf): Likewise.
60160         * math/s_ctanh.c (__ctanh): Likewise.
60161         * math/s_ctanhf.c (__ctanhf): Likewise.
60162         * math/s_ctanhl.c (__ctanhl): Likewise.
60163         * math/s_ctanl.c (__ctanl): Likewise.
60164         * math/libm-test.inc (ctan_test_tonearest): New function.
60165         (ctan_test_towardzero): Likewise.
60166         (ctan_test_downward): Likewise.
60167         (ctan_test_upward): Likewise.
60168         (ctanh_test_tonearest): Likewise.
60169         (ctanh_test_towardzero): Likewise.
60170         (ctanh_test_downward): Likewise.
60171         (ctanh_test_upward): Likewise.
60172         (main): Call these new functions.
60173         * sysdeps/i386/fpu/libm-test-ulps: Update.
60174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60175
60176 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60177
60178         * .gitignore: Delete /ports entry.
60179
60180 2012-07-03  Andreas Jaeger  <aj@suse.de>
60181
60182         * po/bg.po: Update from translation team.
60183         * po/cs.po: Likewise.
60184         * po/de.po: Likewise.
60185         * po/hr.po: Likewise.
60186         * po/nl.pl: Likewise.
60187         * po/pl.po: Likewise.
60188         * po/vi.po: Likewise.
60189
60190 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60191
60192         * Makeconfig [!+link] (+link-before-libc): New variable.
60193         [!+link] (+link-after-libc): Likewise.
60194         [!+link] (+link-tests): Likewise.
60195         [!+link] (+link): Define in terms of $(+link-before-libc) and
60196         $(+link-after-libc).
60197         [!+link-static] (+link-static-before-libc): New variable.
60198         [!+link-static] (+link-static-after-libc): Likewise.
60199         [!+link-static] (+link-static-tests): Likewise.
60200         [!+link-static] (+link-static): Define in terms of
60201         $(+link-static-before-libc) and $(+link-static-after-libc).
60202         [build-shared] (link-libc-before-gnulib): New variable.
60203         [build-shared] (link-libc-tests): Likewise.
60204         [build-shared] (link-libc): Define in terms of
60205         $(link-libc-before-gnulib).
60206         [!build-shared] (link-libc-tests): New variable.
60207         (link-libc-static-tests): New variable.
60208         [!gnulib] (gnulib-arch): New variable.
60209         [!gnulib] (gnulib-tests): Likewise.
60210         [!gnulib] (static-gnulib-arch): Likewise.
60211         [!gnulib] (static-gnulib-tests): Likewise.
60212         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60213         Define with "=" instead of ":=".
60214         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60215         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60216         * Rules (binaries-all-notests): New variable.
60217         (binaries-all-tests): Likewise.
60218         (binaries-static-notests): Likewise.
60219         (binaries-static-tests): Likewise.
60220         (binaries-all): Define using $(binaries-all-notests) and
60221         $(binaries-all-tests).
60222         (binaries-static): Define using $(binaries-static-notests) and
60223         $(binaries-static-tests).
60224         (binaries-shared-tests): New variable.
60225         (binaries-shared-notests): Likewise.
60226         (binaries-shared): Remove variable.
60227         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60228         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60229         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60230         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60231         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60232         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60233         * elf/Makefile (sln-modules): New variable.
60234         (extra-objs): Add $(sln-modules:=.o).
60235         (ldconfig-modules): Add static-stubs.
60236         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60237         * elf/static-stubs.c: New file.
60238
60239         [BZ #14283]
60240         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60241         by 7 not 8 to examine high bit of fractional part.  Use volatile
60242         variables when splitting into final array of floats if
60243         __FLT_EVAL_METHOD__ != 0.
60244         * math/libm-test.inc (cos_test): Add another test.
60245         (sin_test): Likewise.
60246         * sysdeps/i386/fpu/libm-test-ulps: Update.
60247
60248         [BZ #14273]
60249         * math/libm-test.inc (cosh_test): Add more tests.
60250
60251         * version.h (RELEASE): Set to "development".
60252         (VERSION): Set to "2.16.90".
60253
60254 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60255
60256         * NEWS: Update copyright. Remove last-updated date.
60257         Mention math library bug fixes and timezone data changes.
60258         * README: Mention GNU/Hurd, x32, and HPPA support status.
60259
60260 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60261
60262         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60263
60264 2012-06-27  Andreas Jaeger  <aj@suse.de>
60265
60266         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60267
60268 2012-06-25  Andreas Jaeger  <aj@suse.de>
60269
60270         * sysdeps/s390/fpu/libm-test-ulps: Update.
60271
60272 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60273             Thomas Schwinge  <thomas@codesourcery.com>
60274
60275         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60276         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60277         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60278         fanotify_mark.
60279
60280 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60281
60282         * sysdeps/mach/start.c: Remove file.
60283         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60284         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60285         * sysdeps/sh/init-first.c: Likewise.
60286
60287         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60288         registers for frame unwinding purposes, add CFI directives.
60289         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60290         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60291         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60292         Likewise.
60293
60294         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60295         __fortify_fail returning.
60296         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60297
60298         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60299         sysdeps/sh/____longjmp_chk.S.
60300         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60301         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60302         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60303         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60304
60305         * sysdeps/sh/abort-instr.h: New file.
60306         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60307         process in case exit returns.
60308
60309         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60310         initialize the GOT register before use.
60311
60312         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60313         calculation of ARGC > 4.
60314
60315         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60316         meaningful names to some local labels.
60317
60318 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60319             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60320
60321         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60322         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60323         (__arch_compare_and_exchange_val_16_acq): Likewise.
60324         (__arch_compare_and_exchange_val_32_acq): Likewise.
60325         (atomic_exchange_and_add): Fix gUSA sequence.
60326         (atomic_add): Likewise.
60327         (atomic_add_negative): Likewise.
60328         (atomic_add_zero): Likewise.
60329         (atomic_bit_test_set): Likewise.
60330
60331 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60332
60333         [BZ #13579]
60334         * include/link.h (struct link_map): Add l_free_initfini.
60335         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60336         l_initfini.
60337         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60338         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60339         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60340         set.
60341
60342 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60343
60344         * configure.in: Use AC_LANG_SOURCE.
60345         * configure: Regenerate.
60346
60347 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60348
60349         * configure.in (libc_cv_localstatedir): New substituted variable.
60350         * configure: Regenerated.
60351         * config.make.in (localstatedir): New variable, substituted from
60352         libc_cv_localstatedir.
60353         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60354         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60355         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60356         * sysdeps/gnu/configure: Regenerated.
60357
60358 2012-06-21  Jeff Law  <law@redhat.com>
60359
60360         [BZ #14277]
60361         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60362         free.  Simplify list management for _LIBC case.
60363
60364 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60365
60366         [BZ #14273]
60367         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60368         Clear sign bit of 64-bit integer value before comparing against
60369         overflow value.
60370
60371         * sysdeps/mach/configure: Regenerated.
60372
60373 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60374
60375         [BZ #14278]
60376         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60377
60378 2012-06-21  Jeff Law  <law@redhat.com>
60379
60380         [BZ #13882]
60381         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60382         uint16_t for elements in the "seen" array to avoid char overflows.
60383         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60384         * elf/dl-open.c (dl_open_worker): Likewise.
60385
60386 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60387
60388         * scripts/list-sources.sh: Scan PORTS for translations.
60389         * po/libc.pot: Regenerated.
60390
60391 2012-06-21  Andreas Jaeger  <aj@suse.de>
60392
60393         [BZ #12194]
60394         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60395         warning.
60396         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60397         * bits/byteswap-16.h (__bswap_16): Likewise.
60398         * bits/byteswap.h (__bswap_constant_16): Likewise.
60399
60400 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60401
60402         [BZ #14117]
60403         * sysdeps/i386/fpu_control.h: Removed.
60404         * sysdeps/x86_64/fpu_control.h: Moved to ...
60405         * sysdeps/x86/fpu_control.h: Here.
60406
60407         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60408         (_FPU_SETCW): Likewise.
60409
60410 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60411
60412         [BZ #14117]
60413         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60414         * sysdeps/x86/fpu/bits/mathinline.h: This.
60415         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60416
60417         [BZ #14050]
60418         [BZ #14117]
60419         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60420         functions if __x86_64__ is defined.
60421
60422 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60423
60424         * string/endian.h: Add !__ASSEMBLER__ condition for including
60425         conversion interfaces.
60426
60427 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60428
60429         [BZ #14241]
60430         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60431         of ABS(x) in calculating zero to negative powers other than odd
60432         integers.
60433         * math/libm-test.inc (pow_test): Add more tests.
60434
60435 2012-06-15  Andreas Jaeger  <aj@suse.de>
60436
60437         * manual/contrib.texi (Contributors): Update entry of Liubov
60438         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60439         Machado Filho.
60440
60441 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60442
60443         * string/string.h: Add __wur to GNU version of strerror_r.
60444
60445 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60446
60447         [BZ #14229]
60448         * string/Makefile (tests): Add tst-strtok_r.
60449         * string/tst-strtok_r.c: New file.
60450         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60451         RAX_LP/RDX_LP on SAVE_PTR.
60452
60453 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60454
60455         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60456
60457 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60458
60459         * libm_test.inc (csqrt_test): Allow more spurious underflow
60460         exceptions.
60461         (j0_test): Likewise.
60462         (j1_test): Likewise.
60463         (y0_test): Likewise.
60464         (y1_test): Likewise.
60465
60466 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60467
60468         * po/Makefile (libc.pot): Use UTF-8 charset.
60469
60470 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60471
60472         [BZ #14210]
60473         Suppress sign-conversion warning from FD_SET.
60474         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60475         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60476         not unsigned long int.
60477         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60478
60479 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60480
60481         [BZ #14050]
60482         [BZ #14117]
60483         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60484         __extern_always_inline instead of __extern_inline.
60485         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60486         (__signbit): Likewise.
60487         (__signbitl): Support C++ namespace.
60488         (lrintf): New inline function.
60489         (lrint): Likewise.
60490         (llrintf): Likewise.
60491         (llrint): Likewise.
60492         (fmaxf): Likewise.
60493         (fmax): Likewise.
60494         (fminf): Likewise.
60495         (fmin): Likewise.
60496         (rint): Likewise.
60497         (rintf): Likewise.
60498         (ceil): Likewise.
60499         (ceilf): Likewise.
60500         (floor): Likewise.
60501         (floorf): Likewise.
60502         (nearbyint): Likewise.
60503         (nearbyintf): Likewise.
60504
60505 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60506
60507         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60508         non-default versions.
60509
60510 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60511
60512         [BZ #14218]
60513         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60514
60515 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60516
60517         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60518         (FE_UPWARD, FE_DOWNWARD): Don't define.
60519         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60520         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60521
60522         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60523         reading it.
60524         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60525         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60526
60527 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60528
60529         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60530         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60531         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60532         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60533
60534 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60535
60536         [BZ #14117]
60537         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60538         * sysdeps/i386/fpu/Implies: New file.
60539         * sysdeps/x86_64/fpu/Implies: Likewise.
60540         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60541         * sysdeps/x86/fpu/bits/fenv.h: This.
60542
60543         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60544         __SSE_MATH__.
60545
60546 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60547
60548         [BZ #14134]
60549         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60550         character 0xffff that matches the last element of the
60551         conversion table.
60552
60553 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60554
60555         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60556         fmodl commit.
60557
60558 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60559
60560         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60561         values higher than 25.6283.
60562
60563 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60564
60565         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60566         subnormal exponent extraction and add some __builtin_expect.
60567         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60568         Fix for subnormal mantissa calculation.
60569
60570 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60571
60572         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60573         cpu2 is -1 and errno is not ENOSYS.
60574
60575 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60576
60577         [BZ #14117]
60578         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60579         * sysdeps/x86/bits/string.h: This.
60580         * sysdeps/x86_64/bits/string.h: Removed.
60581
60582         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60583         if not compiling for x86-64, but compiling for >= i486.
60584
60585         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60586         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60587
60588         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60589         New macro from Linux kernel 3.4.0.
60590         (FP_XSTATE_MAGIC2): Likewise.
60591         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60592         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60593         (struct _fpx_sw_bytes): New struct.
60594         (struct _xsave_hdr): Likewise.
60595         (struct _ymmh_state): Likewise.
60596         (struct _xstate): Likewise.
60597
60598         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60599         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60600         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60601         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60602         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60603         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60604
60605         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60606         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60607         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60608         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60609         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60610         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60611
60612 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60613
60614         [BZ #13743]
60615         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60616         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60617         (sysdep_headers): Include sys/platform/ppc.h.
60618         * sysdeps/powerpc/test-gettimebase.c: Test for
60619         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60620         * manual/Makefile (appendices): Include platform.texi.
60621         * manual/contrib.texi (Contributors): Update @node pointers.
60622         * manual/maint.texi (Maintenance): Likewise.
60623         (Platform): New node.
60624         * manual/platform.texi: New file.  Document the new features.
60625
60626 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60627             Jakub Jelinek  <jakub@redhat.com>
60628
60629         [BZ #14188]
60630         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60631         where __builtin_expect is unavailable.
60632
60633 2012-06-03  David S. Miller  <davem@davemloft.net>
60634
60635         * stdlib/longlong.h: Updated from GCC.
60636
60637 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60638
60639         [BZ #14042]
60640         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60641         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60642         __mcount_internal.
60643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60644         (GLIBC_2.16): Likewise.
60645
60646 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60647
60648         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60649
60650 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60651
60652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60653         (default-abi): New variable.
60654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60655         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60656         variable.
60657         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60658         Likewise.
60659         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60660         Likewise.
60661         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60662         Likewise.
60663
60664         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60665         definition.  Document in comment.
60666
60667 2012-06-01  David S. Miller  <davem@davemloft.net>
60668
60669         * stdlib/longlong.h: Updated from GCC.
60670
60671 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60672
60673         [BZ #14117]
60674         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60675         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60676         sys/debugreg.h sys/io.h here.
60677         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60678         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60679         sys/io.h.
60680         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60681         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60682         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60683         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60684         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60685         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60686
60687         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60688         Define only if __x86_64__ is defined.
60689
60690 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60691
60692         [BZ #14048]
60693         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60694         Use int64_t for variable i.
60695         * math/libm-test.inc (fmod_test): Add more tests.
60696
60697         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60698         z computation is not scheduled after fetestexcept.
60699         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60700         Use math_force_eval instead of asm to ensure calculation scheduled
60701         before exception test.
60702         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60703         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60704
60705 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60706
60707         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60708         computation is not scheduled after fetestexcept.
60709
60710 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60711
60712         [BZ #14117]
60713         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60714         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60715
60716 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60717
60718         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60719         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60720
60721 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60722
60723         [BZ #14117]
60724         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60725         <bits/wordsize.h>.
60726         (__WCHAR_MIN): Support __WORDSIZE == 64.
60727         (__WCHAR_MAX): Likewise.
60728
60729         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60730         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60731
60732         [BZ #14183]
60733         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60734         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60735
60736         [BZ #14117]
60737         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60738         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60739
60740         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60741         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60742
60743         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60744         Defined to 1 if __x86_64__ isn't defined.
60745         (_STAT_VER_LINUX_OLD): New.
60746         (st_atime): Remove duplicate.
60747         (st_mtime): Likewise.
60748         (st_ctime): Likewise.
60749
60750 2012-05-31  David S. Miller  <davem@davemloft.net>
60751
60752         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60753         entries.
60754
60755 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60756
60757         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60758         gen-libm-test.pl.
60759
60760         [BZ #14132]
60761         * elf/dl-reloc.c: Include <_itoa.h>.
60762         (_dl_reloc_bad_type): Remove use of INTUSE.
60763         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60764         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60765         * stdio-common/psiginfo.c (psiginfo): Likewise.
60766         * stdio-common/psignal.c (psignal): Likewise.
60767         * string/strsignal.c (strsignal): Likewise.
60768         * include/signal.h (_sys_siglist): Declare hidden proto.
60769         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60770         INTVARDEF with libc_hidden_data_def.
60771         * stdio-common/itoa-udigits.c: Likewise.
60772         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60773         (_itoa_lower_digits_internal): Remove declaration.
60774         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60775         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60776         (_sys_sigabbrev_internal): Remove aliases.
60777         (_sys_siglist): Define hidden alias.
60778
60779 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60780
60781         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60782         bits/sysctl.h.
60783
60784 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60785
60786         [BZ #14117]
60787         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60788         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60789
60790         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60791         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60792         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60793         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60794         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60795         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60796
60797         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60798         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60799         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60800
60801         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60802         with __addr.
60803         (insw): Likewise.
60804         (insl): Likewise.
60805         (outsb): Likewise.
60806         (outsw): Likewise.
60807         (outsl): Likewise.
60808
60809         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60810         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60811         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60812
60813         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60814         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60815         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60816         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60817         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60818         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60819
60820         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60821         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60822
60823         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60824         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60825
60826         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60827         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60828         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60829
60830         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60831         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60832         to ...
60833         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60834
60835         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60836         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60837         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60838
60839         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60840         for x86-64.
60841         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60842
60843 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60844
60845         * math/math.h (M_El): Use two more decimal places.
60846         (M_LOG2El): Likewise.
60847         (M_LOG10El): Likewise.
60848         (M_LN2l): Likewise.
60849         (M_LN10l): Likewise.
60850         (M_PIl): Likewise.
60851         (M_PI_2l): Likewise.
60852         (M_PI_4l): Likewise.
60853         (M_1_PIl): Likewise.
60854         (M_2_PIl): Likewise.
60855         (M_2_SQRTPIl): Likewise.
60856         (M_SQRT2l): Likewise.
60857         (M_SQRT1_2l): Likewise.
60858
60859 2012-05-31  David S. Miller  <davem@davemloft.net>
60860
60861         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60862         values between float registers.
60863         * sysdeps/sparc/sparc64/memset.S: Likewise.
60864         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60865
60866 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60867
60868         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60869         -D_FORTIFY_SOURCE=1.
60870         (CPPFLAGS-tst-longjmp_chk.c): Define.
60871         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60872         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60873         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60874         CFLAGS-tst-wchar-h.c.
60875
60876 2012-05-31  Marek Polacek  <polacek@redhat.com>
60877
60878         [BZ #14132]
60879         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60880         __endmntent_internal): Remove declaration.
60881         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60882         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60883         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60884
60885 2012-05-30  David S. Miller  <davem@davemloft.net>
60886
60887         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60888         (___Q_simulate_exceptions): Use real FP ops rather than writing
60889         into the %fsr.
60890         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60891         Likewise.
60892
60893 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60894
60895         [BZ #14117]
60896         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60897         * sysdeps/x86/bits/xtitypes.h: This.
60898
60899         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60900         * sysdeps/x86/bits/wordsize.h: This.
60901
60902         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60903         * sysdeps/x86/bits/huge_vall.h: This.
60904
60905         * sysdeps/i386/bits/select.h: Removed.
60906         * sysdeps/x86_64/bits/select.h: Renamed to ...
60907         * sysdeps/x86/bits/select.h: This.
60908
60909         * sysdeps/i386/bits/setjmp.h: Removed.
60910         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60911         * sysdeps/x86/bits/setjmp.h: This.
60912
60913         * sysdeps/i386/bits/mathdef.h: Removed.
60914         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60915         * sysdeps/x86/bits/mathdef.h: This.
60916
60917 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60918
60919         [BZ #14132]
60920         * include/sys/socket.h (__connect_internal)
60921         (__libc_sa_len_internal): Remove declaration.
60922         (__connect, __libc_sa_len): Declare hidden_proto.
60923         (SA_LEN): Remove use of INTUSE.
60924         * socket/connect.c: Add libc_hidden_def.
60925         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60926         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60927         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60928         alias.
60929         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60930         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60931         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60932         of adding _internal alias.
60933
60934 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60935
60936         [BZ #14117]
60937         * sysdeps/i386/bits/link.h: Removed.
60938         * sysdeps/i386/bits/linkmap.h: Likewise.
60939         * sysdeps/x86_64/bits/link.h: Renamed to ...
60940         * sysdeps/x86/bits/link.h: This.
60941         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60942         * sysdeps/x86/bits/linkmap.h: This.
60943
60944         * sysdeps/i386/bits/endian.h: Removed.
60945         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60946         * sysdeps/x86/bits/endian.h: This.
60947
60948         * sysdeps/i386/bits/byteswap.h: Removed.
60949         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60950         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60951         * sysdeps/x86/bits/byteswap.h: This.
60952         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60953         * sysdeps/x86/bits/byteswap-16.h: This.
60954         * sysdeps/i386/Implies: Add x86.
60955         * sysdeps/x86_64/Implies: Likewise.
60956
60957 2012-05-30  David S. Miller  <davem@davemloft.net>
60958
60959         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60960         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60961         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60962         (FP_TRAPPING_EXCEPTIONS): Define.
60963         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60964         (FP_TRAPPING_EXCEPTIONS): Define.
60965         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60966         subnormals only when inexact has been signalled or underflow
60967         exceptions are enabled.
60968         (_FP_PACK_CANONICAL): Likewise.
60969
60970 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60971
60972         [BZ #14183]
60973         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60974         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60975
60976 2012-05-30  Richard Henderson  <rth@twiddle.net>
60977
60978         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60979         with #ifndef NOT_IN_libc.
60980
60981         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60982         marked to avoid plt entry.
60983
60984 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60985
60986         [BZ #14112]
60987         * Makeconfig (default-abi): New macro.
60988         (abi-includes): Likewise.
60989         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60990         $(abi-$(default-abi)-lib-soname) for soname if defined.
60991         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60992         abi-variants.
60993         * Makefile (installed-stubs): Likewise.
60994         * include/stubs-biarch.h: Removed.
60995         * scripts/lib-names.awk: Only handle one library at a time.
60996         * scripts/soversions.awk: Remove WORDSIZE support.
60997         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60998         entries.
60999         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61000         Removed.
61001         (syscall-list-default-condition): Likewise.
61002         (syscall-list-default-condition): Likewise.
61003         (syscall-list-includes): Likewise.
61004         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61005         syscall-list-* with abi-*.  Handle undefined abi-variants.
61006         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61007         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61008         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61009         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61010         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61011         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61012         Removed.
61013         (syscall-list-32-options): Likewise.
61014         (syscall-list-32-condition): Likewise.
61015         (syscall-list-64-options): Likewise.
61016         (syscall-list-64-condition): Likewise.
61017         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61018         macro.
61019         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61020         Renamed to ...
61021         (abi-*): This.
61022         (abi-64-ld-soname): New macro.
61023         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61024         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61025         Renamed to ...
61026         (abi-*): This.
61027         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61028         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61029
61030 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61031
61032         * sysdeps/unix/sysv/linux/kernel-features.h
61033         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61034         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61035         include <kernel-features.h>.
61036         [!__NR_ftruncate64]: Remove conditional code.
61037         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61038         [__NR_ftruncate64]: Make code unconditional.
61039         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61040         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61041         include <kernel-features.h>.
61042         [!__NR_ftruncate64]: Remove conditional code.
61043         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61044         [__NR_ftruncate64]: Make code unconditional.
61045         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61047         include <kernel-features.h>.
61048         [!__NR_ftruncate64]: Remove conditional code.
61049         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61050         [__NR_ftruncate64]: Make code unconditional.
61051         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61053         include <kernel-features.h>.
61054         [!__NR_ftruncate64]: Remove conditional code.
61055         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61056         [__NR_ftruncate64]: Make code unconditional.
61057         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61058
61059         * configure.in (libc_cv_fpie): Weaken to a compile test using
61060         LIBC_TRY_CC_OPTION.
61061         * configure: Regenerated.
61062
61063 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61064
61065         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61067         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61069         Refreshed.
61070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61071         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61072         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61073         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61075         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61076         Refreshed.
61077
61078 2012-05-27  David S. Miller  <davem@davemloft.net>
61079
61080         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61081         (___Q_zero): New.
61082         (__Q_simulate_exceptions): Return void.  Change to simulate
61083         exceptions by writing into the %fsr.
61084         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61085         (__Qp_handle_exceptions): Likewise.
61086         (numbers): Delete.
61087         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61088         __Qp_handle_exceptions.
61089         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61090         __Qp_handle_exceptions.
61091         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61092         as unused and give dummy FP_RND_NEAREST initializer.
61093         (FP_INHIBIT_RESULTS): Define.
61094         (___Q_simulate_exceptions): Update declaration.
61095         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61096         formatting.
61097         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61098         as unused and give dummy FP_RND_NEAREST initializer.
61099         (__Qp_handle_exceptions): Update declaration.
61100         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61101         formatting.
61102
61103 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61104
61105         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61106         the temporary FPU control word.
61107         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61108         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61109         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61110         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61111         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61112         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61113         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61114         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61115         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61116         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61117         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61118
61119 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61120
61121         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61122         fields.
61123
61124 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61125
61126         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61127         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61128         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61129         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61130         Likewise.
61131         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61132         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61133         Likewise.
61134
61135 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61136
61137         * po/h.po: Update from translation team.
61138
61139 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61140
61141         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61142
61143         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61144         handling of denormals.
61145         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61146         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61147         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61148         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61149         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61150         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61151         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61152         Likewise.
61153
61154 2012-05-26  Marek Polacek  <polacek@redhat.com>
61155
61156         [BZ #14152]
61157         * math/libm-test.inc (fma_test): Don't always expect underflow
61158         exception.
61159
61160 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61161
61162         [BZ #12416]
61163         * elf/tst-execstack.c: Include stackinfo.h.
61164         (do_test): Adjust test case to ensure that pthread_getattr_np
61165         behaviour remains the same after marking stack executable.
61166
61167 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61168
61169         * sysdeps/unix/sysv/linux/kernel-features.h
61170         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61171         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61172         kernel-features.h.
61173         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61174         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61175         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61176         kernel-features.h.
61177         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61178         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61179
61180 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61181
61182         * configure.in: Define the default includes to being none.
61183         * configure: Regenerated.
61184
61185 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61186
61187         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61188         * sysdeps/x86_64/setjmp.S: Likewise.
61189         * sysdeps/i386/bsd-setjmp.S: Likewise.
61190         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61191         * sysdeps/i386/setjmp.S: Likewise.
61192         * sysdeps/i386/__longjmp.S: Likewise.
61193         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61194         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61195
61196         * include/stap-probe.h: New file.
61197         * configure.in: Handle --enable-systemtap.
61198         * configure: Regenerated.
61199         * config.h.in (USE_STAP_PROBE): New #undef.
61200         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61201         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61202         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61203
61204 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61205
61206         [BZ #13717]
61207         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61208         to 2.4.0 where earlier.
61209         * sysdeps/unix/sysv/linux/configure: Regenerated.
61210         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61211         <kernel-features.h>.
61212         [__ASSUME_32BITUIDS]: Make code unconditional.
61213         [!__ASSUME_32BITUIDS]: Remove conditional code.
61214         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61215         <kernel-features.h>.
61216         [__ASSUME_32BITUIDS]: Make code unconditional.
61217         [!__ASSUME_32BITUIDS]: Remove conditional code.
61218         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61219         [__ASSUME_32BITUIDS]: Make code unconditional.
61220         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61221         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61222         <kernel-features.h>.
61223         [__ASSUME_32BITUIDS]: Make code unconditional.
61224         [!__ASSUME_32BITUIDS]: Remove conditional code.
61225         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61226         <kernel-features.h>.
61227         [__ASSUME_32BITUIDS]: Make code unconditional.
61228         [!__ASSUME_32BITUIDS]: Remove conditional code.
61229         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61230         <kernel-features.h>.
61231         [__ASSUME_32BITUIDS]: Make code unconditional.
61232         [!__ASSUME_32BITUIDS]: Remove conditional code.
61233         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61234         <kernel-features.h>.
61235         [__ASSUME_32BITUIDS]: Make code unconditional.
61236         [!__ASSUME_32BITUIDS]: Remove conditional code.
61237         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61238         <kernel-features.h>.
61239         [__ASSUME_32BITUIDS]: Make code unconditional.
61240         [!__ASSUME_32BITUIDS]: Remove conditional code.
61241         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61242         <kernel-features.h>.
61243         [__ASSUME_32BITUIDS]: Make code unconditional.
61244         [!__ASSUME_32BITUIDS]: Remove conditional code.
61245         * sysdeps/unix/sysv/linux/i386/getuid.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/lchown.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/msgctl.c: Do not include
61254         <kernel-features.h>.
61255         [__ASSUME_32BITUIDS]: Make code unconditional.
61256         [!__ASSUME_32BITUIDS]: Remove conditional code.
61257         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61258         <kernel-features.h>.
61259         [__ASSUME_32BITUIDS]: Make code unconditional.
61260         [!__ASSUME_32BITUIDS]: Remove conditional code.
61261         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61262         <kernel-features.h>.
61263         [__NR_setresgid] (__setresgid): Do not declare.
61264         [__ASSUME_32BITUIDS]: Make code unconditional.
61265         [!__ASSUME_32BITUIDS]: Remove conditional code.
61266         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61267         <kernel-features.h>.
61268         [__NR_setresuid] (__setresuid): Do not declare.
61269         [__ASSUME_32BITUIDS]: Make code unconditional.
61270         [!__ASSUME_32BITUIDS]: Remove conditional code.
61271         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61272         <kernel-features.h>.
61273         [__ASSUME_32BITUIDS]: Make code unconditional.
61274         [!__ASSUME_32BITUIDS]: Remove conditional code.
61275         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61276         <kernel-features.h>.
61277         [__ASSUME_32BITUIDS]: Make code unconditional.
61278         [!__ASSUME_32BITUIDS]: Remove conditional code.
61279         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61280         <kernel-features.h>.
61281         [__ASSUME_32BITUIDS]: Make code unconditional.
61282         [!__ASSUME_32BITUIDS]: Remove conditional code.
61283         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61284         <kernel-features.h>.
61285         [__ASSUME_32BITUIDS]: Make code unconditional.
61286         [!__ASSUME_32BITUIDS]: Remove conditional code.
61287         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61288         <kernel-features.h>.
61289         [__ASSUME_32BITUIDS]: Make code unconditional.
61290         [!__ASSUME_32BITUIDS]: Remove conditional code.
61291         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61292         <kernel-features.h>.
61293         [__ASSUME_32BITUIDS]: Make code unconditional.
61294         [!__ASSUME_32BITUIDS]: Remove conditional code.
61295         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61296         <kernel-features.h>.
61297         [__ASSUME_32BITUIDS]: Make code unconditional.
61298         [!__ASSUME_32BITUIDS]: Remove conditional code.
61299         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61300         <kernel-features.h>.
61301         [__ASSUME_32BITUIDS]: Make code unconditional.
61302         [!__ASSUME_32BITUIDS]: Remove conditional code.
61303         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61304         <kernel-features.h>.
61305         [__ASSUME_32BITUIDS]: Make code unconditional.
61306         [!__ASSUME_32BITUIDS]: Remove conditional code.
61307         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61308         <kernel-features.h>.
61309         [__ASSUME_32BITUIDS]: Make code unconditional.
61310         [!__ASSUME_32BITUIDS]: Remove conditional code.
61311         * sysdeps/unix/sysv/linux/kernel-features.h
61312         (__ASSUME_SETRESUID_SYSCALL): Remove.
61313         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61314         (__ASSUME_32BITUIDS): Likewise.
61315         (__ASSUME_LDT_WORKS): Likewise.
61316         (__ASSUME_O_DIRECTORY): Likewise.
61317         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61318         architecture but not kernel version.
61319         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61320         (__ASSUME_MMAP2_SYSCALL): Likewise.
61321         (__ASSUME_STAT64_SYSCALL): Likewise.
61322         (__ASSUME_IPC64): Likewise.
61323         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61324         <kernel-features.h>.
61325         [__ASSUME_32BITUIDS]: Make code unconditional.
61326         [!__ASSUME_32BITUIDS]: Remove conditional code.
61327         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61328         <kernel-features.h>.
61329         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61330         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61331         132096]: Remove conditional code.
61332         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61333         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61334         <kernel-features.h>.
61335         [__ASSUME_32BITUIDS]: Make code unconditional.
61336         [!__ASSUME_32BITUIDS]: Remove conditional code.
61337         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61338         <kernel-features.h>.
61339         [__ASSUME_32BITUIDS]: Make code unconditional.
61340         [!__ASSUME_32BITUIDS]: Remove conditional code.
61341         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61342         <kernel-features.h>.
61343         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61344         unconditional.
61345         (__setresgid): Do not declare.
61346         [__ASSUME_32BITUIDS]: Make code unconditional.
61347         [!__ASSUME_32BITUIDS]: Remove conditional code.
61348         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61349         <kernel-features.h>.
61350         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61351         unconditional.
61352         (__setresuid): Do not declare.
61353         [__ASSUME_32BITUIDS]: Make code unconditional.
61354         [!__ASSUME_32BITUIDS]: Remove conditional code.
61355         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61356         <kernel-features.h>.
61357         [__ASSUME_32BITUIDS]: Make code unconditional.
61358         [!__ASSUME_32BITUIDS]: Remove conditional code.
61359         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61360         <kernel-features.h>.
61361         [__ASSUME_32BITUIDS]: Make code unconditional.
61362         [!__ASSUME_32BITUIDS]: Remove conditional code.
61363
61364 2012-05-25  Richard Henderson  <rth@twiddle.net>
61365
61366         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61367         dl_hwcap to ifunc resolver.
61368         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61369         elf_ifunc_invoke.
61370         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61371         dl_hwcap to ifunc resolver.
61372         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61373
61374 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61375
61376         [BZ #14153]
61377         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61378         for |x| <= 2**-26, not 2**-57.
61379         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61380         exception.
61381
61382 2012-05-24  Jeff Law  <law@redhat.com>
61383
61384         * stdio-common/Makefile (tests): Add bug25.
61385         * stdio-common/bug25.c: New test.
61386
61387 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61388
61389         [BZ #13576]
61390         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61391         multiple of MALLOC_ALIGNMENT in size.
61392         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61393
61394 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61395
61396         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61397         Require >= 256.
61398         (FILENAME_MAX): Use macro-int-constant.
61399         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61400         (_IOFBF): Use macro-int-constant.
61401         (_IOLBF): Likewise.
61402         (_IONBF): Likewise.
61403         (SEEK_CUR): Likewise.
61404         (SEEK_END): Likewise.
61405         (SEEK_SET): Likewise.
61406         (TMP_MAX): Likewise.
61407         (EOF): Use macro-int-constant.  Require < 0.
61408         (NULL): Use macro-constant.  Require == 0.
61409         (stdin): Require type to be FILE *.
61410         (stdout): Likewise.
61411         (stderr): Likewise.
61412         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61413         macro-int-constant.
61414         (EXIT_SUCCESS): Likewise.
61415         (NULL): Use macro-constant.  Require == 0.
61416         (RAND_MAX): Use macro-int-constant.
61417         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61418         [C99-based standards] (strtof): Require function.
61419         [C99-based standards] (strtold): Likewise.
61420         [C99-based standards] (strtoll): Likewise.
61421         [C99-based standards] (strtoull): Likewise.
61422         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61423         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61424         [ISO || ISO99 || ISO11] (math.h): Likewise.
61425         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61426         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61427         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61428
61429 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61430
61431         [BZ #14132]
61432         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61433         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61434         * intl/dgettext.c (DCGETTEXT): Likewise.
61435         * intl/gettext.c (DCGETTEXT): Likewise.
61436         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61437         * posix/regex_internal.h (gettext): Likewise.
61438         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61439         Remove declaration.
61440         * include/argz.h (__argz_count_internal)
61441         (__argz_stringify_internal): Remove declaration.
61442         (__argz_count, __argz_stringify): Declare hidden proto.
61443         * intl/dcgettext.c: Remove use of INTDEF.
61444         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61445         * string/argz-stringify.c: Likewise.
61446         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61447         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61448         Declare hidden proto.
61449         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61450         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61451         Declare hidden proto.
61452         * include/stdio.h (__asprintf_internal): Don't declare.
61453         (__asprintf): Don't define as macro.  Declare hidden proto.
61454         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61455         (__fsetlocking): Declare hidden proto.
61456         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61457         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61458         hidden proto.
61459         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61460         (_IO_setlinebuf): Remove use of INTUSE.
61461         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61462         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61463         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61464         Remove declaration.
61465         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61466         (_IO_do_flush): Remove use of INTUSE.
61467         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61468         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61469         (_IO_adjust_column, _IO_least_wmarker)
61470         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61471         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61472         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61473         (_IO_default_doallocate, _IO_wdefault_doallocate)
61474         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61475         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61476         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61477         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61478         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61479         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61480         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61481         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61482         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61483         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61484         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61485         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61486         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61487         proto.
61488         (_IO_flush_all_internal, _IO_adjust_column_internal)
61489         (_IO_default_uflow_internal, _IO_default_finish_internal)
61490         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61491         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61492         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61493         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61494         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61495         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61496         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61497         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61498         (_IO_file_close_internal, _IO_file_close_it_internal)
61499         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61500         (_IO_file_init_internal, _IO_file_attach_internal)
61501         (_IO_file_fopen_internal, _IO_file_read_internal)
61502         (_IO_file_sync_internal, _IO_file_seek_internal)
61503         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61504         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61505         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61506         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61507         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61508         (_IO_list_all_internal, _IO_link_in_internal)
61509         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61510         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61511         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61512         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61513         (_IO_do_write_internal, _IO_padn_internal)
61514         (_IO_getline_info_internal, _IO_getline_internal)
61515         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61516         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61517         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61518         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61519         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61520         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61521         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61522         with libc_hidden_ver, remove use of INTUSE.
61523         * libio/genops.c: Likewise.
61524         * libio/freopen.c: Likewise.
61525         * libio/freopen64.c: Likewise.
61526         * libio/iofclose.c: Likewise.
61527         * libio/iofdopen.c: Likewise.
61528         * libio/iofflush.c: Likewise.
61529         * libio/iofflush_u.c: Likewise.
61530         * libio/iofgets.c: Likewise.
61531         * libio/iofgets_u.c: Likewise.
61532         * libio/iofopen.c: Likewise.
61533         * libio/iofopncook.c: Likewise.
61534         * libio/iofread.c: Likewise.
61535         * libio/iofread_u.c: Likewise.
61536         * libio/ioftell.c: Likewise.
61537         * libio/iofwrite.c: Likewise.
61538         * libio/iogetline.c: Likewise.
61539         * libio/iogets.c: Likewise.
61540         * libio/iogetwline.c: Likewise.
61541         * libio/iopadn.c: Likewise.
61542         * libio/iopopen.c: Likewise.
61543         * libio/ioseekoff.c: Likewise.
61544         * libio/ioseekpos.c: Likewise.
61545         * libio/iosetbuffer.c: Likewise.
61546         * libio/iosetvbuf.c: Likewise.
61547         * libio/ioungetc.c: Likewise.
61548         * libio/ioungetwc.c: Likewise.
61549         * libio/iovdprintf.c: Likewise.
61550         * libio/iovsprintf.c: Likewise.
61551         * libio/iovsscanf.c: Likewise.
61552         * libio/memstream.c: Likewise.
61553         * libio/obprintf.c: Likewise.
61554         * libio/oldfileops.c: Likewise.
61555         * libio/oldiofclose.c: Likewise.
61556         * libio/oldiofdopen.c: Likewise.
61557         * libio/oldiofopen.c: Likewise.
61558         * libio/oldiopopen.c: Likewise.
61559         * libio/oldstdfiles.c: Likewise.
61560         * libio/putc.c: Likewise.
61561         * libio/setbuf.c: Likewise.
61562         * libio/setlinebuf.c: Likewise.
61563         * libio/stdfiles.c: Likewise.
61564         * libio/strops.c: Likewise.
61565         * libio/vasprintf.c: Likewise.
61566         * libio/vscanf.c: Likewise.
61567         * libio/vsnprintf.c: Likewise.
61568         * libio/vswprintf.c: Likewise.
61569         * libio/wfiledoalloc.c: Likewise.
61570         * libio/wfileops.c: Likewise.
61571         * libio/wgenops.c: Likewise.
61572         * libio/wmemstream.c: Likewise.
61573         * libio/wstrops.c: Likewise.
61574         * libio/__fpurge.c: Likewise.
61575         * libio/__fsetlocking.c: Likewise.
61576         * assert/assert.c: Likewise.
61577         * debug/fgets_chk.c: Likewise.
61578         * debug/fgets_u_chk.c: Likewise.
61579         * debug/fread_chk.c: Likewise.
61580         * debug/fread_u_chk.c: Likewise.
61581         * debug/gets_chk.c: Likewise.
61582         * debug/obprintf_chk.c: Likewise.
61583         * debug/vasprintf_chk.c: Likewise.
61584         * debug/vdprintf_chk.c: Likewise.
61585         * debug/vsnprintf_chk.c: Likewise.
61586         * debug/vsprintf_chk.c: Likewise.
61587         * malloc/mtrace.c: Likewise.
61588         * misc/error.c: Likewise.
61589         * misc/syslog.c: Likewise.
61590         * stdio-common/asprintf.c: Likewise.
61591         * stdio-common/fxprintf.c: Likewise.
61592         * stdio-common/getw.c: Likewise.
61593         * stdio-common/isoc99_fscanf.c: Likewise.
61594         * stdio-common/isoc99_scanf.c: Likewise.
61595         * stdio-common/isoc99_vfscanf.c: Likewise.
61596         * stdio-common/isoc99_vscanf.c: Likewise.
61597         * stdio-common/isoc99_vsscanf.c: Likewise.
61598         * stdio-common/printf-prs.c: Likewise.
61599         * stdio-common/printf_fp.c: Likewise.
61600         * stdio-common/printf_fphex.c: Likewise.
61601         * stdio-common/printf_size.c: Likewise.
61602         * stdio-common/putw.c: Likewise.
61603         * stdio-common/scanf.c: Likewise.
61604         * stdio-common/sprintf.c: Likewise.
61605         * stdio-common/tmpfile.c: Likewise.
61606         * stdio-common/vfprintf.c: Likewise.
61607         * stdio-common/vfscanf.c: Likewise.
61608         * stdlib/strfmon_l.c: Likewise.
61609         * sunrpc/openchild.c: Likewise.
61610         * sunrpc/xdr_stdio.c: Likewise.
61611         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61612         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61613
61614 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61615
61616         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61617
61618         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61619         in the third column, to generate for the shared library an IFUNC
61620         that uses _dl_vdso_vsym.
61621         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61622         * Makeconfig (object-suffixes-noshared): New variable.
61623
61624         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61625         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61626         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61627         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61628
61629         [BZ #14132]
61630         * include/sys/time.h (__gettimeofday): Remove macro.
61631         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61632         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61633         Remove INTDEF.
61634         (__gettimeofday): Add libc_hidden_def.
61635         (gettimeofday): Add libc_hidden_weak.
61636         * sysdeps/mach/gettimeofday.c: Likewise.
61637         * sysdeps/posix/gettimeofday.c: Likewise.
61638         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61639         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61640         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61641         (__gettimeofday_internal): Remove strong_alias.
61642         (__gettimeofday): Add libc_hidden_def.
61643         (gettimeofday): Add libc_hidden_weak.
61644         * sysdeps/unix/syscalls.list (gettimeofday):
61645         Remove __gettimeofday_internal alias.
61646
61647 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61648             H.J. Lu  <hongjiu.lu@intel.com>
61649
61650         [BZ #12495]
61651         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61652         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61653         (largebin_index_32_big): New.
61654         (largebin_index): Use it for 16-byte alignment.
61655         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61656         correction with front_misalign.
61657
61658 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61659
61660         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61661         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61662         Likewise.
61663         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61664         Likewise.
61665         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61666         Likewise.
61667         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61668         Likewise.
61669         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61670         Likewise.
61671         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61672         Likewise.
61673         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61674         Likewise.
61675         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61676         Likewise.
61677         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61678         Likewise.
61679         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61680         Likewise.
61681         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61682         Likewise.
61683         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61684         Likewise.
61685
61686         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61687         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61688
61689 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61690
61691         [BZ #10846]
61692         [BZ #14036]
61693         * math/libm-test.inc (exp_test): Add test from bug 14036.
61694         (pow_test): Add test from bug 10846.
61695
61696         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61697         and other flags.
61698         (special_function): Do not include flags in test name.
61699         (parse_args): Likewise.
61700         * sysdeps/i386/fpu/libm-test-ulps: Update.
61701         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61702         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61703         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61705
61706         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61707         exceptions.
61708         * math/libm-test.inc ("Philosophy"): Update comment about
61709         exception testing.
61710         (UNDERFLOW_EXCEPTION): New macro.
61711         (UNDERFLOW_EXCEPTION_OK): Likewise.
61712         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61713         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61714         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61715         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61716         (INVALID_EXCEPTION_OK): Update value.
61717         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61718         (OVERFLOW_EXCEPTION_OK): Likewise.
61719         (IGNORE_ZERO_INF_SIGN): Likewise.
61720         (test_exceptions): Handle underflow exceptions.
61721         (acos_test): Update for underflow exception expectations.
61722         (cexp_test): Likewise.
61723         (clog_test): Likewise.
61724         (clog10_test): Likewise.
61725         (csqrt_test): Likewise.
61726         (ctan_test): Likewise.
61727         (ctanh_test): Likewise.
61728         (exp_test): Likewise.
61729         (exp10_test): Likewise.
61730         (exp2_test): Likewise.
61731         (expm1_test): Likewise.
61732         (fma_test): Likewise.
61733         (j0_test): Likewise.
61734         (jn_test): Likewise.
61735         (nexttoward_test): Likewise.
61736         (pow_test): Likewise.
61737         (scalbn_test): Likewise.
61738         (scalbln_test): Likewise.
61739         (tan_test): Likewise.
61740         (y1_test): Likewise.
61741         * sysdeps/i386/fpu/libm-test-ulps: Update.
61742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61743
61744 2012-05-23  David S. Miller  <davem@davemloft.net>
61745
61746         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61747         (__libc_sigaction): Remove unused local variables.
61748
61749 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61750
61751         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61752
61753 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61754
61755         mktime: avoid signed integer overflow
61756         * time/mktime.c (__mktime_internal): Do not mishandle the case
61757         where diff == INT_MIN.
61758
61759         mktime: simplify computation of average
61760         * time/mktime.c (ranged_convert): Use new time_t_avg function
61761         instead of rolling our own (probably-slower) code.
61762
61763         mktime: do not assume signed right shift propagates sign bit
61764         * time/mktime.c (isdst_differ): New static function.
61765         (__mktime_internal): No need to normalize tm_isdst now.
61766         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61767         tm_isdst values.
61768
61769         mktime: merge another wrapv change from gnulib
61770         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61771         from some compilers.
61772
61773         mktime: remove incorrect attempt at unusual arithmetics
61774         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61775         The code didn't really work on such machines anyway.
61776         (TYPE_MINIMUM): Assume two's complement.
61777         (twos_complement_arithmetic): Verify that long_int and time_t
61778         are two's complement (or unsigned, in the latter case).
61779
61780         mktime: check signed shifts on long_int and time_t, too
61781         * time/mktime.c (SHR): Check that shifts work as desired
61782         on the types long_int and time_t too, as SHR is used on
61783         such types.
61784
61785         mktime: do not assume 'long' is wide enough
61786         * time/mktime.c (verify): Move decl up.
61787         (long_int): New type.
61788         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61789         to remove assumption in the code that 'long' is wide enough to
61790         store year values.  This assumption is not true on x32 and on
61791         some non-glibc platforms.
61792
61793         mktime: merge wrapv change from gnulib
61794         * time/mktime.c (WRAPV): New macro.
61795         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61796         (guess_time_tm, __mktime_internal): Do not assume that signed
61797         integer overflow wraps around; modern compilers generate code
61798         where this assumption is no longer valid.
61799
61800 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61801
61802         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61803         Replace "jmp L(pseudo_end)" with "ret".
61804         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61805         Likewise.
61806
61807 2012-05-23  Andreas Jaeger  <aj@suse.de>
61808
61809         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61810         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61811
61812 2012-05-23  Andreas Jaeger  <aj@suse.de>
61813             Maximilian Attems  <max@stro.at>
61814
61815         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61816         New macros.
61817
61818 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61819
61820         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61821         code so that pseudo_end is just ret and the stack pointer is
61822         correct also for static library in error case.
61823
61824 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61825
61826         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61827         move to syscalls.list.
61828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61832
61833         * manual/install.texi (Running make install): Do not mention Linux
61834         kernel version for which pt_chown is not needed.
61835         (Linux): Do not mention problems with nscd with 2.0 kernels.
61836         * INSTALL: Regenerated.
61837
61838 2012-05-23  Andreas Jaeger  <aj@suse.de>
61839
61840         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61841         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61842         macro.
61843         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61844         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61845         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61846         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61847         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61848         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61849         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61850         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61851         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61852         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61853         * sysdeps/unix/sysv/linux/bits/in.h
61854         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61855
61856 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61857
61858         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61859         (PREPARE_VERSION): Just use assert instead, it will be elided
61860         under [NDEBUG] anyway.
61861
61862 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61863
61864         * sysdeps/unix/sysv/linux/Makefile: Include
61865         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61866         (sysdep_routines): Remove sysctl.
61867         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61868         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61869         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61870         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61871         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61872
61873 2012-05-22  Andreas Jaeger  <aj@suse.de>
61874
61875         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61876         that pseudo_end is just ret and the stack pointer is correct also
61877         for static library in error case.
61878
61879 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61880
61881         [BZ #14122]
61882         * nss/nsswitch.c (defconfig_entries): New variable.
61883         (__nss_database_lookup): Don't leak defconfig entries.
61884         (nss_parse_service_list): Don't leak on error paths.
61885         (free_database_entries): New function.
61886         (free_defconfig): New function.
61887         (free_mem): Move common code to free_database_entries.
61888
61889 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61890
61891         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61892         Add arch_prctl.
61893         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61894
61895         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61896         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61897         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61898         New macro.
61899         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61900         (INTERNAL_SYSCALL_TYPES): Likewise.
61901         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61902         (LOAD_REGS_TYPES_[1-6]): Likewise.
61903         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61904         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61905
61906 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61907
61908         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61909         copysignl for GLIBC_2_0.
61910         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61911         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61912         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61913         logbl for GLIBC_2_0.
61914         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61915         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61916
61917 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61918
61919         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61920         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61921
61922         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61923         Use "neg %eax".
61924
61925         * time/mktime.c: Update copyright years.
61926
61927 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61928
61929         mktime: merge comment-quoting-style change from gnulib
61930         * time/mktime.c: Quote 'like this' in comments.
61931         The GNU coding standards suggest that we no longer quote `like this',
61932         as "`" and "'" are typically rendered asymmetrically nowadays.
61933         The typical gnulib style is to quote 'like this' when quoting
61934         code, and "like this" when quoting English.
61935
61936         * time/mktime.c (compile-command): Add "-I.".
61937
61938         mktime: merge mktime-internal.h change from gnulib
61939         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61940
61941         mktime: merge time_r change from gnulib
61942         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61943
61944         mktime: merge DEBUG change from gnulib
61945         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61946         case system <time.h> has a #define.
61947
61948         mktime: merge <sys/types.h> change from gnulib
61949         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61950         since <time.t> is now guaranteed to define time_t.
61951
61952         mktime: merge HAVE_CONFIG_H change from gnulib
61953         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61954
61955 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61956
61957         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61958         Use "neg %eax".
61959
61960         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61961         __rlim_t cast.
61962         (struct rusage): Use anonymous union to pad each field to
61963         __syscall_slong_t.
61964
61965 2012-05-21  David S. Miller  <davem@davemloft.net>
61966
61967         * Makefules (o-iterator): Remove .s cases.
61968         (compile-command.s): Delete.
61969         (COMPILE.s): Delete.
61970         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61971
61972 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61973
61974         * configure.in (libc_cv_predef_stack_protector): Only consider
61975         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61976         * configure: Regenerated.
61977
61978 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61979
61980         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61981         New macro.  Use R*LP on int and pointer.
61982         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61983         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61984         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61985         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61986
61987         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61988         [__WORDSIZE_TIME64_COMPAT32] instead of
61989         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61990         (struct utmp): Likewise.
61991         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61992         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61993         Renamed to ...
61994         (__WORDSIZE_TIME64_COMPAT32): This.
61995         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61996         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61997         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61998         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61999         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62000         (__WORDSIZE_TIME64_COMPAT32): New macro.
62001
62002 2012-05-21  Andreas Jaeger  <aj@suse.de>
62003
62004         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62005         only if [SHARED]. Add prototype for __wcschr_ia32.
62006
62007 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62008
62009         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62010         of %rbp unmolested in the jmp_buf while mangling the low bits.
62011         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62012         unmolested high bits of %rbp while demangling the low bits.
62013         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62014
62015 2012-05-21  Andreas Jaeger  <aj@suse.de>
62016
62017         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62018         * sunrpc/svc_simple.c: Use it for registerrpc.
62019         * sunrpc/xcrypt.c: Use it for passwd2des.
62020
62021         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62022
62023 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62024
62025         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62026         Don't define if [__SYSCALL_WORDSIZE != 32].
62027         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62028         New macro.
62029
62030 2012-05-21  Bruno Haible  <bruno@clisp.org>
62031             Andreas Jaeger  <aj@suse.de>
62032
62033         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62034         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62035         inptr and inend for must_buffer_ch.
62036         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62037         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62038         * stdio-common/Makefile (tests): Remove bug15.
62039         (bug15-ENV): Remove macro.
62040         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62041         anymore.
62042
62043 2012-05-19  Andreas Jaeger  <aj@suse.de>
62044             Roland McGrath  <roland@hack.frob.com>
62045
62046         * manual/contrib.texi: Completely rewritten. It contains now an
62047         alphabetical list of contributors and their contributions.
62048
62049 2012-05-21  Richard Henderson  <rth@twiddle.net>
62050
62051         * misc/getauxval.c (__getauxval): Use unsigned long int.
62052         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62053         (getauxval): Use unsigned long int.
62054
62055 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62056
62057         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62058
62059 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62060
62061         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62062         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62063         __alignof__ (long double).
62064
62065 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62066
62067         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62068
62069 2012-05-20  Richard Henderson  <rth@twiddle.net>
62070
62071         * misc/getauxval.c: New file.
62072         * misc/sys/auxv.h: New file.
62073         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62074         (routines): Add getauxval.
62075         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62076         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62077         * elf/dl-sysdep.c (_dl_auxv): Remove.
62078         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62079         * elf/dl-support.c (_dl_auxv): New variable.
62080         (_dl_aux_init): Initialize it.
62081         * manual/startup.texi (Auxiliary Vector): New node.
62082         * sysdeps/generic/bits/hwcap.h: New file.
62083         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62084         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62085         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62086         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62087         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62088         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62090         Update.
62091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62092         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62094         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62095         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62096         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62097         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62098         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62099
62100 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62101
62102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62103
62104 2012-05-19  David S. Miller  <davem@davemloft.net>
62105
62106         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62107
62108 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62109
62110         [BZ #14123]
62111         * math/s_ccosh.c: Include <float.h>
62112         (__ccosh): Avoid internal overflow calculating sinh and cosh
62113         values before multiplying by sin and cos values.
62114         * math/s_ccoshf.c: Likewise.
62115         * math/s_ccoshl.c: Likewise.
62116         * math/s_csin.c: Likewise.
62117         * math/s_csinf.c: Likewise.
62118         * math/s_csinl.c: Likewise.
62119         * math/s_csinh.c: Likewise.
62120         * math/s_csinhf.c: Likewise.
62121         * math/s_csinhl.c: Likewise.
62122         * math/libm-test.inc (ccos_test): Add more tests.
62123         (ccosh_test): Likewise.
62124         (csin_test): Likewise.
62125         (csinh_test): Likewise.
62126         * sysdeps/i386/fpu/libm-test-ulps: Update.
62127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62128
62129 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62130
62131         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62132         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62133
62134         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62135
62136 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62137
62138         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62139         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62140         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62141         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62142         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62143         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62144         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62145         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62146         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62147         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62148         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62149         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62150         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62151         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62152         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62153         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62154         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62155         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62156         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62157         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62158         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62159         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62160         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62161         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62162         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62163         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62164         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62165         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62166         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62167         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62168         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62169
62170 2012-05-18  Andreas Jaeger  <aj@suse.de>
62171
62172         * csu/.gitignore: Delete.
62173
62174 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62175
62176         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62177         (timex): Use __syscall_slong_t.
62178
62179 2012-05-18  Andreas Jaeger  <aj@suse.de>
62180             Carlos O'Donell  <carlos_odonell@mentor.com>
62181
62182         * manual/install.texi (Configuring and compiling): Update
62183         description about files modified in the source directory.
62184         * INSTALL: Regenerated.
62185
62186 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62187
62188         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62189         value.  Use "or" to set return value to -1.
62190         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62191         negate return value.
62192
62193 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62194
62195         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62196         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62197         failure if the compiler has Graphite support disabled.
62198         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62199         Likewise.
62200         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62201         (CFLAGS-memmove.c): Likewise.
62202         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62203         Likewise.
62204
62205 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62206
62207         * sysdeps/x86_64/x32/_itoa.h: New file.
62208
62209         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62210         getdents system call only if kernel and user dirents have the
62211         same d_ino and d_off.
62212
62213         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62214         LLONG_MAX != LONG_MAX.
62215         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62216         (_fitoa_word): Likewise.
62217
62218         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62219         years.
62220         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62221         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62222         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62223
62224         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62225         include <bits/wordsize.h>.  Check __x86_64__ instead of
62226         __WORDSIZE.
62227         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62228         if __x86_64__ is defined.  Use anonymous union on fpstate.
62229
62230         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62231         anonymous union.
62232
62233 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62234
62235         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62236         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62237         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62238         Refer to _rtld_local_ro instead of _rtld_global_ro.
62239         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62240         Likewise.
62241         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62242         Likewise.
62243         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62244         Likewise.
62245         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62246         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62247         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62248
62249         [BZ #10882]
62250         * sysdeps/powerpc/powerpc32/dl-machine.c
62251         (__elf_machine_runtime_setup) [PROF]: Don't reference
62252         _dl_prof_resolve.
62253
62254 2012-05-18  Andreas Jaeger  <aj@suse.de>
62255
62256         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62257         function only available for GCCs before 3.4 since GCC 3.4
62258         introduced a builtin.
62259         (lrint): Likewise.
62260         (llrintf): Likewise.
62261         (llrint): Likewise.
62262         (fmaxf): Likewise.
62263         (fmax): Likewise.
62264         (fminf): Likewise.
62265         (fmin): Likewise.
62266         (rint): Likewise.
62267         (rintf): Likewise.
62268         (nearbyint): Likewise.
62269         (nearbyintf): Likewise.
62270         (ceil): Likewise.
62271         (ceilf): Likewise.
62272         (floor): Likewise.
62273         (floorf): Likewise.
62274
62275 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62276
62277         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62278         on both fields and cast pointer to __syscall_ulong_t.
62279
62280         * bits/types.h (__fsword_t): New type.
62281         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62282         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62283         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62284         (__FSWORD_T_TYPE): Likewise.
62285         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62286         (__FSWORD_T_TYPE): Likewise.
62287         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62288         (__FSWORD_T_TYPE): Likewise.
62289         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62290         (__FSWORD_T_TYPE): Likewise.
62291         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62292         __SWORD_TYPE with __fsword_t.
62293         (statfs64): Likewise.
62294
62295 2012-05-17  David S. Miller  <davem@davemloft.net>
62296
62297         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62298
62299 2012-05-17  Andreas Jaeger  <aj@suse.de>
62300
62301         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62302         warning.
62303
62304 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62305
62306         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62307
62308 2012-05-17  Andreas Jaeger  <aj@suse.de>
62309
62310         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62311         when it is used.
62312
62313 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62314
62315         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62316
62317 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62318
62319         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62320         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62321
62322 2012-05-17  Andreas Jaeger  <aj@suse.de>
62323             Carlos O'Donell  <carlos_odonell@mentor.com>
62324
62325         [BZ #14059]
62326         * sysdeps/x86_64/multiarch/init-arch.h
62327         (bit_YMM_Usable): Rename to...
62328         (bit_AVX_Usable): ... this.
62329         (bit_FMA4_Usable): New macro.
62330         (bit_XMM_state): New macro.
62331         (bit_YMM_state): New macro.
62332         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62333         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62334         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62335         (CPUID_OSXSAVE): New macro.
62336         (CPUID_AVX): New macro.
62337         (CPUID_FMA4): New macro.
62338         (index_YMM_Usable): Rename to...
62339         (index_AVX_Usable): ... this.
62340         (HAS_AVX): Use HAS_ARCH_FEATURE.
62341         (HAS_FMA4): Likewise.
62342         (HAS_YMM_USABLE): Remove.
62343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62344         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62345         are present.
62346         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62347         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62348         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62349         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62350         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62351
62352 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62353
62354         * math/libm-test.c: Support platforms without multiple rounding modes.
62355         * math/bug-nextafter.c: Support platforms without FP exceptions.
62356         * math/bug-nexttoward.c: Likewise.
62357         * math/test-fenv.c: Likewise.
62358         * math/test-misc.c: Likewise.
62359         * stdlib/bug-getcontext.c: Likewise.
62360
62361 2012-05-17  Andreas Jaeger  <aj@suse.de>
62362
62363         * manual/examples/search.c (critter_cmp): Change signature to
62364         avoid warnings.
62365         * manual/string.texi (Collation Functions): Likewise.
62366
62367 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62368
62369         * bits/types.h: Fold copyright years.
62370         * bits/typesizes.h: Likewise.
62371         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62372         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62373         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62374         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62375         * time/time.h: Likewise.
62376
62377 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62378
62379         [BZ #208]
62380         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62381         in instead of returning them.  Return void.
62382         (__libc_mallinfo): Accumulate over all arenas.
62383         (__malloc_stats): Adjust for change in int_mallinfo interface.
62384
62385 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62386
62387         [BZ #10375]
62388         * configure.in (NM): Add AC_CHECK_TOOL for it.
62389         (libc_extra_cflags): New substituted variable.
62390         Check for -fstack-protector being used implicitly.
62391         * configure: Regenerated.
62392         * config.make.in (config-extra-cflags): New variable,
62393         gets @libc_extra_cflags@.
62394         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62395
62396         [BZ #10375]
62397         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62398         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62399         * configure: Regenerated.
62400         * config.make.in (CPPUNDEFS): New substituted variable.
62401         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62402         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62403         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62404
62405 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62406
62407         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62408         (mq_attr): Use __syscall_slong_t.
62409
62410 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62411
62412         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62413         Check __x86_64__ instead of __WORDSIZE.
62414         (_STAT_VER_LINUX): Likewise.
62415         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62416         __syscall_ulong_t and __syscall_slong_t.
62417         (stat64): Likewise.
62418
62419 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62420
62421         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62422
62423 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62424
62425         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62426
62427 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62428
62429         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62430         __syscall_ulong_t.
62431
62432         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62433         include <bits/wordsize.h>.  Check __x86_64__ instead of
62434         __WORDSIZE.
62435         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62436         defined.
62437         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62438
62439         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62440         include <bits/wordsize.h>.  Check __x86_64__ instead of
62441         __WORDSIZE.
62442         (user_regs_struct): Use "__extension__ unsigned long long"
62443         instead of "unsigned long" if __x86_64__ is defined.
62444         (user): Likewise.  Pad after pointer field if __ILP32__ is
62445         defined.
62446
62447 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62448
62449         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62450         versions 5 to 9.
62451         * configure: Regenerated.
62452         * manual/install.texi (texinfo): Increase version requirement to
62453         4.5 or later.
62454         * INSTALL: Regenerated.
62455
62456         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62457
62458 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62459
62460         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62461
62462         * sysdeps/x86_64/x32/ffs.c: New file.
62463
62464         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62465         __syscall_ulong_t.
62466         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62467         defined.  Use __syscall_ulong_t.
62468         (shminfo): Use __syscall_ulong_t.
62469         (shm_info): Likewise.
62470
62471         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62472         __syscall_ulong_t.
62473
62474         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62475         <bits/wordsize.h>.
62476         (msgqnum_t): Use __syscall_ulong_t.
62477         (msglen_t): Likewise.
62478         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62479         __syscall_ulong_t.
62480
62481         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62482         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62483
62484         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62485
62486         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62487         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62488
62489         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62490         __syscall_slong_t.
62491
62492         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62493         include <bits/wordsize.h>.  Check __x86_64__ instead of
62494         __WORDSIZE.
62495
62496         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62497         "unsigned long long int" if __x86_64__ is defined.
62498         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62499
62500         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62501         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62502         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62503
62504         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62505         <stdint.h>.
62506         (GET_PC): Cast to uintptr_t first.
62507         (GET_FRAME): Likewise.
62508         (GET_STACK): Likewise.
62509
62510         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62511         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62512         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62513         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62514         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62515         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62516         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62517         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62518         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62519         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62520         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62521         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62522         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62523         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62524         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62525         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62526         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62527         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62528         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62529         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62530         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62531         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62532         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62533         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62534         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62535         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62536         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62537         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62538         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62539
62540 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62541
62542         * Makerules (+depfiles): Also collect depfiles from .oS in
62543         $(extra-objs).
62544         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62545         .oS, $(libnldbl-routines)).
62546
62547         * Makerules (native-compile-mkdep-flags): Define.
62548         * sunrpc/Makefile (extra-objs): Add $(addprefix
62549         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62550         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62551         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62552         calling $(make-target-directory).
62553
62554 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62555
62556         * bits/types.h (__snseconds_t): Removed.
62557         * time/time.h (struct timespec): Replace __snseconds_t with
62558         __syscall_slong_t.
62559         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62560         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62561         Likewise.
62562         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62563         (__SNSECONDS_T_TYPE): Likewise.
62564         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62565         (__SNSECONDS_T_TYPE): Likewise.
62566         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62567         (__SNSECONDS_T_TYPE): Likewise.
62568
62569 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62570
62571         * sysdeps/mach/hurd/bits/typesizes.h
62572         (__SYSCALL_SLONG_TYPE): New macro.
62573         (__SYSCALL_ULONG_TYPE): Likewise.
62574
62575 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62576
62577         * bits/types.h (__syscall_slong_t): New type.
62578         (__syscall_ulong_t): Likewise.
62579
62580         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62581         (__SYSCALL_ULONG_TYPE): Likewise.
62582         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62583         (__SYSCALL_SLONG_TYPE): Likewise.
62584         (__SYSCALL_ULONG_TYPE): Likewise.
62585         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62586         (__SYSCALL_SLONG_TYPE): Likewise.
62587         (__SYSCALL_ULONG_TYPE): Likewise.
62588         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62589         (__SYSCALL_SLONG_TYPE): Likewise.
62590         (__SYSCALL_ULONG_TYPE): Likewise.
62591
62592 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62593
62594         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62595         Add sigaltstack-offsets.sym.
62596         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62597         <sigaltstack-offsets.h>.
62598         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62599         longjmp_msg pointer.
62600         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62601         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62602         signal stack.
62603         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62604
62605 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62606
62607         * elf/stackguard-macros.h: Remove file.
62608         * sysdeps/generic/stackguard-macros.h: New file.
62609         * sysdeps/i386/stackguard-macros.h: Likewise.
62610         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62611         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62612         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62613         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62614         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62615         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62616         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62617         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62618         <elf/stackguard-macros.h>.
62619
62620         [BZ #14109]
62621         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62622         __aligned__ in attribute.
62623         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62624         (gregset_t): Likewise.
62625
62626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62627
62628         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62629         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62630         * sysdeps/x86_64/x32/Implies-after: New file.
62631
62632 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62633
62634         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62635         and access return value for _dl_profile_fixup.  Use R10_LP to
62636         load frame size.
62637
62638 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62639
62640         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62641
62642 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62643
62644         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62645         * sysdeps/x86_64/x32/sysdep.h: New file.
62646
62647 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62648
62649         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62650         * sysdeps/x86_64/setjmp.S: Likewise.
62651
62652 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62653
62654         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62655         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62656         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62657         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62658         remove unused global constant.
62659
62660 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62661
62662         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62663         include of <not-cancel.h>.
62664
62665 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62666
62667         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62668
62669 2012-05-15  Jeff Law  <law@redhat.com>
62670             Andreas Jaeger  <aj@suse.de>
62671
62672         [BZ #13594]
62673         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62674         out from...
62675         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62676         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62677         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62678         code changing __hst_map_handle.map.
62679
62680 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62681
62682         * configure.in (sysnames): Look for Implies-before and Implies-after
62683         files.
62684         * configure: Regenerated.
62685
62686 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62687
62688         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62689         8-byte data alignment with LP_SIZE alignment.
62690
62691 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62692
62693         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62694         into R10_LP.
62695
62696 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62697
62698         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62699
62700 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62701
62702         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62703         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62704         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62705         Likewise.
62706         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62707
62708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62709
62710         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62711         (stackinfo_sub_sp): Likewise.
62712
62713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62714
62715         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62716         RAX_LP.
62717
62718 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62719
62720         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62721         into R*_LP.
62722
62723 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62724
62725         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62726         sizes into R*_LP.
62727
62728 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62729
62730         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62731
62732 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62733
62734         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62735         into R11_LP and load __x86_64_shared_cache_size_half into
62736         R8_LP.
62737
62738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62739
62740         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62741         R8_LP.
62742
62743 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62744
62745         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62746         logb for POWER7.
62747         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62748         logbf for POWER7.
62749         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62750         logbl for POWER7.
62751         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62752         powerpc32/power7/fpu/s_logb.c via #include.
62753         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62754         powerpc32/power7/fpu/s_logbf.c via #include.
62755         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62756         powerpc32/power7/fpu/s_logbl.c via #include.
62757
62758 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62759
62760         * README.libm: Remove file.
62761
62762 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62763
62764         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62765         count for x32.  Use R*_LP and omit operand-size suffix.
62766
62767 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62768
62769         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62770         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62771         * sysdeps/x86_64/x32/shlib-versions: New file.
62772
62773 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62774
62775         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62776         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62777         Use _dl_fatal_printf instead.
62778
62779 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62780
62781         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62782         set if not set by the user.  Do not allow for being unset.
62783         * sysdeps/unix/sysv/linux/configure: Regenerated.
62784
62785 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62786
62787         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62788         the `q' suffix from lea and replace .quad with ASM_ADDR.
62789
62790 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62791
62792         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62793         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62794         instead of $17.
62795         (PTR_DEMANGLE): Likewise.
62796
62797 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62798
62799         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62800         (LP_OP): Likewise.
62801         (ASM_ADDR): Likewise.
62802         (RAX_LP): Likewise.
62803         (RBP_LP): Likewise.
62804         (RBX_LP): Likewise.
62805         (RCX_LP): Likewise.
62806         (RDI_LP): Likewise.
62807         (RSI_LP): Likewise.
62808         (RSP_LP): Likewise.
62809         (R8_LP): Likewise.
62810         (R9_LP): Likewise.
62811         (R10_LP): Likewise.
62812         (R10_LP): Likewise.
62813         (R11_LP): Likewise.
62814         (R12_LP): Likewise.
62815         (R13_LP): Likewise.
62816         (R14_LP): Likewise.
62817         (R15_LP): Likewise.
62818
62819 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62820
62821         * sysdeps/x86_64/x32/dl-machine.h: New file.
62822
62823 2012-05-14  Andreas Jaeger  <aj@suse.de>
62824
62825         * manual/Makefile (subdir): Remove export of subdir.
62826         (all): Remove target.
62827         (.PHONY): Remove all from list.
62828         (mkinstalldirs): Remove.
62829         (.PHONY): Remove installdirs from list.
62830         ($(inst_infodir)/libc.info): Use make-target-directory.
62831         (installdirs): Remove.
62832         (subdir_%): Remove.
62833         (glibc-targets): Remove.
62834         (lib): Remove.
62835         (stubs): Remove.
62836         ($(objpfx)stubs ../po/manual.pot): Remove.
62837         ($(objpfx)stamp%): Remove.
62838         (make-target-directory): Remove.
62839         (subdir_install): Remove.
62840         (routines): Remove.
62841         (aux): Remove.
62842         (sources): Remove.
62843         (objects): Remove.
62844         (headers): Remove.
62845
62846         [BZ #13750]
62847         * manual/.gitignore: Remove, it's not needed anymore.
62848         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62849         all files in it.
62850         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62851         directory.
62852         (texis): Renamed to $(objpfx)texis.
62853         (texis-path): New, contains path to generated files.
62854         (chapters.%): Use texis-path for complete path, add extra argument
62855         libc-texinfo.sh.
62856         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62857         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62858         (summary,texi, stamp-summary): Use complete path of
62859         files. Generate files in build dir.
62860         (dir-add.texi): Build in build dir.
62861         (libm-err.texi,stamp-libm-err): Likewise.
62862         (version.texi, stamp-version): Likewise.
62863         (.%c.texi): Likewise.
62864         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62865         (mostlyclean): Remove target.
62866         (realclean): Remove target.
62867         (generated): Add new variable with contents from mostlyclean and
62868         realclean, remove entries duplicated in common-mostlyclean, add
62869         stamp-libm-err and stamp-version.
62870         (generated-dirs): Add libc directory.
62871         ($(inst_infodir)/libc.info): Install files from build dir.
62872
62873         * manual/install.texi (Configuring and compiling): Adjust since
62874         the info files are not part of the tar ball anymore.
62875
62876 2012-05-14  Andreas Jaeger  <aj@suse.de>
62877
62878         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62879         variable.
62880
62881 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62882
62883         [BZ #13717]
62884         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62885         to 2.2.0 where earlier.
62886         * sysdeps/unix/sysv/linux/configure: Regenerated.
62887         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62888         Remove conditional code.
62889         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62890         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62891         Remove conditional code.
62892         [!__NR_lchown]: Likewise.
62893         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62894         [__NR_lchown]: Likewise.
62895         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62896         comment referencing __ASSUME_LCHOWN_SYSCALL.
62897         * sysdeps/unix/sysv/linux/i386/sigaction.c
62898         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62899         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62900         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62901         Remove conditional code.
62902         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62903         (__protocol_available): Remove #if 0 code.
62904         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62905         conditional code.
62906         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62907         * sysdeps/unix/sysv/linux/kernel-features.h
62908         (__ASSUME_GETCWD_SYSCALL): Don't define.
62909         (__ASSUME_REALTIME_SIGNALS): Likewise.
62910         (__ASSUME_PREAD_SYSCALL): Likewise.
62911         (__ASSUME_PWRITE_SYSCALL): Likewise.
62912         (__ASSUME_POLL_SYSCALL): Likewise.
62913         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62914         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62915         non-SPARC.
62916         (__ASSUME_SIOCGIFNAME): Don't define.
62917         (__ASSUME_MSG_NOSIGNAL): Likewise.
62918         (__ASSUME_SENDFILE): Define unconditionally.
62919         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62920         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62921         conditional code.
62922         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62923         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62924         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62925         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62926         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62927         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62928         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62930         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62931         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62933         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62934         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62936         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62937         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62939         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62940         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62942         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62943         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62945         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62946         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62948         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62949         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62951         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62952         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62953         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62954         Remove conditional code.
62955         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62956         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62957         Remove conditional code.
62958         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62959         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62960         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62961         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62962         Remove conditional code.
62963         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62964         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62965         Remove conditional code.
62966         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62967         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62968         Remove conditional code.
62969         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62970         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62971         Remove conditional code.
62972         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62973         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62974         Remove conditional code.
62975         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62976         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62977         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62978         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62979         * sysdeps/unix/sysv/linux/sigaction.c
62980         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62981         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62982         * sysdeps/unix/sysv/linux/sigpending.c
62983         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62984         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62985         * sysdeps/unix/sysv/linux/sigprocmask.c
62986         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62987         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62988         * sysdeps/unix/sysv/linux/sigsuspend.c
62989         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62990         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62991         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62992         (__libc_missing_rt_sigs): Remove.
62993         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62994         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62995         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62996         Remove conditional code.
62997         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62998         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62999         return 1.
63000         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63001         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63002         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63003         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63004
63005 2012-05-14  Andreas Jaeger  <aj@suse.de>
63006
63007         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63008         it's not used in glibc.
63009         (__coshm1): Likewise.
63010         (__acosh1p): Likewise.
63011         (__sgn): Likewise.
63012
63013         * manual/string.texi (Copying and Concatenation): Add missing
63014         variable in concat example.
63015         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63016
63017 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63018
63019         [BZ #14103]
63020         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63021         __builtin_clzl with __builtin_clzll.
63022
63023 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63024
63025         [BZ #14104]
63026         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63027         libc_freeres_ptr.
63028
63029 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63030
63031         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63032         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63033         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63034         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63035
63036 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63037
63038         * NEWS: Update ia64 info.
63039
63040 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63041
63042         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63043         used as bcopy.
63044
63045 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63046
63047         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63048         * sysdeps/unix/syscalls.list (dup3): Likewise.
63049         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63050         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63051
63052 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63053
63054         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63055         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63056
63057 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63058
63059         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63060         thread pointer.
63061         (TLS_IE): Use mov/add instead of movq/addq to load thread
63062         pointer.
63063         (TLS_GD_PREFIX): New.
63064         (TLS_GD): Use it.
63065
63066 2012-05-11  David S. Miller  <davem@davemloft.net>
63067
63068         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63069         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63070         (_FPU_SETCW): Likewise.
63071
63072 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63073
63074         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63075         is 32-byte aligned.
63076
63077 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63078
63079         [BZ #11837]
63080         * iconvdata/gb18030.c: Update tables.
63081         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63082         characters specially.
63083         (BODY for TO_LOOP): Add encoding of missing ranges.
63084
63085 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63086
63087         [BZ #13673]
63088         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63089         * sysdeps/mach/hurd/dup3.c: Likewise.
63090         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63091         * sysdeps/powerpc/memmove.c:: Likewise.
63092
63093 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63094
63095         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63096         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63097
63098 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63099
63100         * elf/elf.h (R_X86_64_RELATIVE64): New.
63101         (R_X86_64_NUM): Updated.
63102         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63103         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63104         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63105         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63106         tst-quad1pie tst-quad2pie
63107         (modules-names): Add tst-quadmod1 tst-quadmod2.
63108         ($(objpfx)tst-quad1): New dependency.
63109         ($(objpfx)tst-quad2): Likewise.
63110         ($(objpfx)tst-quad1pie): Likewise.
63111         ($(objpfx)tst-quad2pie): Likewise.
63112         * sysdeps/x86_64/tst-quad1.c: New file.
63113         * sysdeps/x86_64/tst-quad1pie.c: New file.
63114         * sysdeps/x86_64/tst-quad2.c: Likewise.
63115         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63116         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63117         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63118         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63119         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63120
63121 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63122
63123         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63124         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63125         * streams/stropts.h (t_scalar_t): Define type.
63126
63127         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63128         (_PATH_PRESERVE): Set to "/var/lib".
63129         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63130
63131         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63132         instead of int.
63133
63134         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63135         if __dir_mkfile succeeded.
63136
63137         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63138         checking for _hurd_dtablesize.  Unlock it right after having
63139         finished _hurd_dtable allocation.
63140
63141 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63142
63143         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63144         * sysdeps/mach/hurd/configure: Regenerated.
63145         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63146         special-casing to...
63147         * sysdeps/gnu/configure.in: ... this new file.
63148         * sysdeps/unix/sysv/linux/configure: Regenerated.
63149         * sysdeps/gnu/configure: New generated file.
63150
63151         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63152         for Linux: use nsec instead of usec, as well as:
63153         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63154         members of type struct timespec.
63155         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63156         New macros.
63157         (struct stat64): Likewise.
63158         (_STATBUF_ST_NSEC): New macro.
63159         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63160
63161         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63162         __strtoul_internal rather than strtoul.
63163
63164 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63165
63166         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63167         and reject them.
63168
63169 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63170
63171         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63172         which preserves existing values.
63173         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63174
63175 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63176
63177         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63178         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63179         greater than FD_SETSIZE.
63180
63181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63182
63183         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63184         allocated, call __vm_protect to finish enabling the existing space, and
63185         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63186         allocate the remainder.
63187
63188 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63189
63190         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63191         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63192
63193 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63194
63195         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63196         sysdeps/mach/hurd/readlink.c.
63197
63198         * posix/tst-sysconf.c (posix_options): Only use
63199         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63200         _POSIX_SYNCHRONIZED_IO when they are defined
63201         * sysdeps/mach/hurd/bits/posix_opt.h:
63202         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63203         (_XOPEN_REALTIME): Undefine macro.
63204         (_XOPEN_REALTIME_THREADS): Undefine macro.
63205         (_XOPEN_SHM): Undefine macro.
63206         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63207         macro to -1.
63208         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63209         macro to -1.
63210         (_POSIX_ASYNC_IO): Undefine macro.
63211         (_POSIX_PRIORITIZED_IO): Undefine macro.
63212         (_POSIX_SPIN_LOCKS): Define macro to -1.
63213
63214         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63215         SA_NODEFER, SA_RESETHAND.
63216         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63217         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63218         F_DUPFD_CLOEXEC.
63219
63220 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63221
63222         * elf/Makefile (pldd-modules): Define unconditionally.
63223
63224 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63225
63226         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63227
63228 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63229
63230         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63231         Return ENOENT when name is empty.
63232         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63233
63234 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63235
63236         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63237
63238         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63239
63240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63241
63242         Fix mlock in all cases except non-readable pages.
63243         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63244         instead of VM_PROT_ALL as parameter to __vm_wire function.
63245
63246         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63247         (__mkdir): When path is `/', just fail with EEXIST.
63248         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63249
63250 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63251
63252         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63253         <sys/uio.h> (for writev).
63254         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63255         and <sys/param.h> (for MIN).
63256
63257 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63258
63259         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63260         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63261         if interrupted.
63262
63263 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63264
63265         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63266         Depend on against $(link-rpcuserlibs).
63267
63268 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63269
63270         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63271         (__libc_stack_end): Do not use attribute_relro.
63272         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63273         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63274         to libthread-provided value.
63275         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63276         attribute_relro.
63277
63278 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63279
63280         [BZ #3748]
63281         * bits/libc-lock.h (__libc_once_get): New macro.
63282         * sysdeps/mach/bits/libc-lock.h: Likewise.
63283         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63284         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63285         instead of using implementation details.
63286
63287         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63288         * libio/freopen.c: Likewise.
63289         * libio/freopen64.c: Likewise.
63290         * misc/syslog.c: Likewise.
63291         * nscd/connections.c: Likewise.
63292         * nscd/netgroupcache.c: Likewise.
63293         * sysdeps/posix/getcwd.c: Likewise.
63294
63295 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63296
63297         * math/w_ilogbf.c: Add #include <limits.h>.
63298
63299 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63300
63301         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63302         path instead of returning without unlocking.
63303
63304         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63305         immediate-write ioctls.
63306         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63307
63308 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63309
63310         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63311         __builtin_frame_address instead of making assumptions about the
63312         location of the return address relative to DATA.  Force early load of
63313         the return address.
63314         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63315         __builtin_frame_address.
63316
63317         dup3 for GNU Hurd.
63318         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63319         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63320         implement dup3 and do some further code clean-ups.
63321         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63322         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63323
63324 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63325
63326         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63327
63328         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63329         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63330         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63331         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63332         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63333         d->port.lock.
63334
63335         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63336         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63337         when handler == SIG_ERR, not when handler != SIG_ERR.
63338
63339 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63340
63341         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63342         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63343         definitions.
63344
63345         accept4 for GNU Hurd.
63346         * include/sys/socket.h (__libc_accept4): New prototype.
63347         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63348         to implement __libc_accept4.
63349         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63350         __libc_accept4.
63351         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63352
63353         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63354         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63355         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63356         signal-defines.sym.
63357
63358 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63359
63360         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63361
63362 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63363
63364         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63365         assertion on O_CLOEXEC flag.
63366         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63367         * hurd/intern-fd.c: Likewise.
63368         * hurd/port2fd.c: Likewise.
63369
63370 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63371
63372         [BZ #3906]
63373         * bits/in.h (IPV6_PKTINFO): Define new macro.
63374         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63375
63376 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63377
63378         [BZ #13954]
63379         [BZ #13955]
63380         [BZ #13956]
63381         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63382         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63383         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63384         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63385         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63386         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63387         * math/libm-test.inc (logb_test) : Additional logb tests.
63388
63389 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63390             Andreas Jaeger  <aj@suse.de>
63391
63392         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63393         * configure: Regenerated.
63394         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63395         * config.make.in (link-obsolete-rpc): New substituted variable.
63396         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63397         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63398         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63399         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63400         so that libc.a contains the symbols.
63401         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63402         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63403         * sunrpc/auth_none.c: Likewise.
63404         * sunrpc/auth_unix.c: Likewise.
63405         * sunrpc/authdes_prot.c: Likewise.
63406         * sunrpc/authuxprot.c: Likewise.
63407         * sunrpc/clnt_gen.c: Likewise.
63408         * sunrpc/clnt_perr.c: Likewise.
63409         * sunrpc/clnt_raw.c: Likewise.
63410         * sunrpc/clnt_simp.c: Likewise.
63411         * sunrpc/clnt_tcp.c: Likewise.
63412         * sunrpc/clnt_udp.c: Likewise.
63413         * sunrpc/clnt_unix.c: Likewise.
63414         * sunrpc/des_crypt.c: Likewise.
63415         * sunrpc/des_soft.c: Likewise.
63416         * sunrpc/get_myaddr.c: Likewise.
63417         * sunrpc/key_call.c: Likewise.
63418         * sunrpc/key_prot.c: Likewise.
63419         * sunrpc/netname.c: Likewise.
63420         * sunrpc/pm_getmaps.c: Likewise.
63421         * sunrpc/pm_getport.c: Likewise.
63422         * sunrpc/pmap_clnt.c: Likewise.
63423         * sunrpc/pmap_prot.c: Likewise.
63424         * sunrpc/pmap_prot2.c: Likewise.
63425         * sunrpc/pmap_rmt.c: Likewise.
63426         * sunrpc/publickey.c: Likewise.
63427         * sunrpc/rpc_cmsg.c: Likewise.
63428         * sunrpc/rpc_common.c: Likewise.
63429         * sunrpc/rpc_dtable.c: Likewise.
63430         * sunrpc/rpc_prot.c: Likewise.
63431         * sunrpc/rpc_thread.c: Likewise.
63432         * sunrpc/rtime.c: Likewise.
63433         * sunrpc/svc.c: Likewise.
63434         * sunrpc/svc_auth.c: Likewise.
63435         * sunrpc/svc_raw.c: Likewise.
63436         * sunrpc/svc_run.c: Likewise.
63437         * sunrpc/svc_tcp.c: Likewise.
63438         * sunrpc/svc_udp.c: Likewise.
63439         * sunrpc/svc_unix.c: Likewise.
63440         * sunrpc/svcauth_des.c: Likewise.
63441         * sunrpc/xcrypt.c: Likewise.
63442         * sunrpc/xdr.c: Likewise.
63443         * sunrpc/xdr_array.c: Likewise.
63444         * sunrpc/xdr_float.c: Likewise.
63445         * sunrpc/xdr_intXX_t.c: Likewise.
63446         * sunrpc/xdr_mem.c: Likewise.
63447         * sunrpc/xdr_rec.c: Likewise.
63448         * sunrpc/xdr_ref.c: Likewise.
63449         * sunrpc/xdr_sizeof.c: Likewise.
63450         * sunrpc/xdr_stdio.c: Likewise.
63451
63452 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63453
63454         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63455         change.  Update copyright years.
63456
63457 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63458
63459         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63460
63461 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63462             Joseph Myers  <joseph@codesourcery.com>
63463             Paul Pluzhnikov  <ppluzhnikov@google.com>
63464
63465         [BZ #14012]
63466         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63467         requiring rpcgen.
63468         [cross-compiling] (extra-libs): Likewise.
63469         [cross-compiling] (extra-libs-others): Likewise.
63470         [cross-compiling] (librpcsvc-routines): Likewise.
63471         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63472         [cross-compiling] (omit-deps): Likewise.
63473         (sunrpc-CPPFLAGS): New variable.
63474         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63475         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63476         (cross-rpcgen-objs): New variable.
63477         (extra-objs): Append $(cross-rpcgen-objs).
63478         ($(cross-rpcgen-objs)): New rule.
63479         ($(objpfx)cross-rpcgen): Likewise.
63480         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63481         comment.
63482         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63483         ($(objpfx)x%.stmp): Likewise.
63484         * sunrpc/proto.h [IS_IN_build] (_): Define.
63485         [IS_IN_build] (_libc_intl_domainname): Likewise.
63486
63487 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63488
63489         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63490         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63491         and R_X86_64_TPOFF64.
63492
63493 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63494
63495         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63496         sysdeps/unix/sysv/syscalls.list.
63497         (stime): Likewise.
63498         (utime): Likewise.
63499         * sysdeps/unix/sysv/syscalls.list: Remove file.
63500
63501 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         [BZ #3440]
63504         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63505         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63506         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63507         (__LC_IDENTIFICATION): Make these macros useful in #if
63508         expressions, as required by C99.
63509
63510 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63511
63512         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63513         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63514         after this.
63515
63516 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63517
63518         * stdlib/longlong.h: Updated from GCC.
63519
63520 2012-05-09  Andreas Jaeger  <aj@suse.de>
63521
63522         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63523         default is first entry.
63524         (run_mode): Set type.
63525         (main): Remove informal message about syslog.
63526         (options): Fix typo.
63527
63528         [BZ #14053]
63529         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63530         to asm.
63531         (lrint): Likewise.
63532         (llrintf): Likewise.
63533         (llrint): Likewise.
63534         (rint): Likewise.
63535         (rintf): Likewise.
63536         (nearbyint): Likewise.
63537         (nearbyintf): Likewise.
63538
63539 2012-05-09  Andreas Jaeger  <aj@suse.de>
63540             Pedro Alves  <palves@redhat.com>
63541
63542         * nscd/nscd.c (run_mode): Use enum.
63543         (main): Cleanup coding style issue.
63544
63545 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63546             Andreas Jaeger  <aj@suse.de>
63547
63548         * nscd/nscd.c (go_background): Replaced with...
63549         (run_mode): ... this.
63550         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63551         (options): Add -F --foreground.
63552         (main): Implement it.
63553         (parse_opt): Parse it.
63554
63555 2012-05-09  Andreas Jaeger  <aj@suse.de>
63556
63557         [BZ #14083]
63558         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63559         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63560         -Wconversion warning.
63561         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63562         Likewise.
63563
63564 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63565
63566         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63567         == 0.
63568         (LC_ALL): Use macro-int-constant.
63569         (LC_COLLATE): Likewise.
63570         (LC_CTYPE): Likewise.
63571         (LC_MESSAGES): Likewise.
63572         (LC_MONETARY): Likewise.
63573         (LC_NUMERIC): Likewise.
63574         (LC_TIME): Likewise.
63575         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63576         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63577         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63578         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63579         Specify type.
63580         [C99-based standards] (float_t): Expect type.
63581         [C99-based standards] (double_t): Expect type.
63582         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63583         type.
63584         [C99-based standards] (HUGE_VALL): Likewise.
63585         [C99-based standards] (INFINITY): Likewise.
63586         [C99-based standards] (NAN): Likewise.
63587         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63588         [C99-based standards] (FP_NAN): Likewise.
63589         [C99-based standards] (FP_NORMAL): Likewise.
63590         [C99-based standards] (FP_SUBNORMAL): Likewise.
63591         [C99-based standards] (FP_ZERO): Likewise.
63592         [C99-based standards] (FP_FAST_FMA): Use
63593         optional-macro-int-constant.  Specify type.  Require == 1.
63594         [C99-based standards] (FP_FAST_FMAF): Likewise.
63595         [C99-based standards] (FP_FAST_FMAL): Likewise.
63596         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63597         [C99-based standards] (FP_ILOGBNAN): Likewise.
63598         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63599         Specify type.
63600         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63601         [C99-based standards] (math_errhandling): Specify type.
63602         [ISO99 || ISO11] (signgam): Do not allow.
63603         [non-C99-based standards] (copysignf): Do not allow.
63604         [non-C99-based standards] (exp2f): Likewise.
63605         [non-C99-based standards] (log2f): Likewise.
63606         [non-C99-based standards] (modff): Allow.
63607         [non-C99-based standards] (erff): Do not allow.
63608         [non-C99-based standards] (erfcf): Likewise.
63609         [non-C99-based standards] (gammaf): Likewise.
63610         [non-C99-based standards] (hypotf): Likewise.
63611         [non-C99-based standards] (j0f): Likewise.
63612         [non-C99-based standards] (j1f): Likewise.
63613         [non-C99-based standards] (jnf): Likewise.
63614         [non-C99-based standards] (lgammaf): Likewise.
63615         [non-C99-based standards] (tgammaf): Likewise.
63616         [non-C99-based standards] (y0f): Likewise.
63617         [non-C99-based standards] (y1f): Likewise.
63618         [non-C99-based standards] (ynf): Likewise.
63619         [non-C99-based standards] (isnanf): Likewise.
63620         [non-C99-based standards] (acoshf): Likewise.
63621         [non-C99-based standards] (asinhf): Likewise.
63622         [non-C99-based standards] (atanhf): Likewise.
63623         [non-C99-based standards] (cbrtf): Likewise.
63624         [non-C99-based standards] (expm1f): Likewise.
63625         [non-C99-based standards] (ilogbf): Likewise.
63626         [non-C99-based standards] (log1pf): Likewise.
63627         [non-C99-based standards] (logbf): Likewise.
63628         [non-C99-based standards] (nextafterf): Likewise.
63629         [non-C99-based standards] (remainderf): Likewise.
63630         [non-C99-based standards] (rintf): Likewise.
63631         [non-C99-based standards] (scalbf): Likewise.
63632         [non-C99-based standards] (copysignl): Likewise.
63633         [non-C99-based standards] (exp2l): Likewise.
63634         [non-C99-based standards] (log2l): Likewise.
63635         [non-C99-based standards] (modfl): Allow.
63636         [non-C99-based standards] (erfl): Do not allow.
63637         [non-C99-based standards] (erfcl): Likewise.
63638         [non-C99-based standards] (gammal): Likewise.
63639         [non-C99-based standards] (hypotl): Likewise.
63640         [non-C99-based standards] (j0l): Likewise.
63641         [non-C99-based standards] (j1l): Likewise.
63642         [non-C99-based standards] (jnl): Likewise.
63643         [non-C99-based standards] (lgammal): Likewise.
63644         [non-C99-based standards] (tgammal): Likewise.
63645         [non-C99-based standards] (y0l): Likewise.
63646         [non-C99-based standards] (y1l): Likewise.
63647         [non-C99-based standards] (ynl): Likewise.
63648         [non-C99-based standards] (isnanl): Likewise.
63649         [non-C99-based standards] (acoshl): Likewise.
63650         [non-C99-based standards] (asinhl): Likewise.
63651         [non-C99-based standards] (atanhl): Likewise.
63652         [non-C99-based standards] (cbrtl): Likewise.
63653         [non-C99-based standards] (expm1l): Likewise.
63654         [non-C99-based standards] (ilogbl): Likewise.
63655         [non-C99-based standards] (log1pl): Likewise.
63656         [non-C99-based standards] (logbl): Likewise.
63657         [non-C99-based standards] (nextafterl): Likewise.
63658         [non-C99-based standards] (remainderl): Likewise.
63659         [non-C99-based standards] (rintl): Likewise.
63660         [non-C99-based standards] (scalbl): Likewise.
63661         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63662         [non-C99-based standards] (FP_*): Do not allow.
63663         [C99-based standards] (FP_*): Change to
63664         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63665         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63666         allow.
63667         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63668         (SIG_ERR): Likewise.
63669         [X/Open-based standards] (SIG_HOLD): Likewise.
63670         (SIG_IGN): Likewise.
63671         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63672         positive value.
63673         (SIGFPE): Likewise.
63674         (SIGILL): Likewise.
63675         (SIGINT): Likewise.
63676         (SIGSEGV): Likewise.
63677         (SIGTER): Likewise.
63678         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63679         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63680         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63681         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63682         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63683         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63684         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63685         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63686         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63687         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63688         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63689         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63690         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63691         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63692         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63693         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63694         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63695         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63696         [X/Open-based standards] (SIGTRAP): Likewise.
63697         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63698         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63699         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63700         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63701         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63702         allow.
63703
63704 2012-05-08  Ian Wienand  <ianw@vmware.com>
63705
63706         [BZ #14080]
63707         * time/tzset.c (__tzset_parse_tz): Update default rules for
63708         daylight time changes in the Energy Policy Act of 2005.
63709
63710 2012-05-09  Andreas Jaeger  <aj@suse.de>
63711
63712         [BZ #13983]
63713         * elf/ldconfig.c (parse_conf): Change string to make clear that
63714         ldconfig only issued a warning if ld.so.conf does not exist.
63715
63716 2012-05-08  David S. Miller  <davem@davemloft.net>
63717
63718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63719         movxtod instead of popping the value on the stack.
63720
63721         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63722
63723 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63724
63725         * config.h.in: Add HAVE_ARM_PCS_VFP.
63726
63727 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63728
63729         [BZ #13979]
63730         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63731         checking but the checks are disabled for any reason.
63732
63733 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63734
63735         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63736         and ELF64_R_TYPE with ELFW(R_TYPE).
63737
63738 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63739
63740         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63741         (ulimit): Likewise.
63742
63743         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63744         (settimeofday): Likewise.
63745
63746 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63747
63748         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63749         a struct th_u2 inside the union, and move tu_block/tu_code into
63750         a new th_u3 union of tu_block/tu_code inside of that.  Move
63751         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63752         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63753         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63754         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63755         (th_stuff): Change to th_u1.tu_stuff.
63756         (th_data): Define.
63757         (th_msg): Change to th_u1.th_u2.tu_data.
63758
63759 2012-05-07  David S. Miller  <davem@davemloft.net>
63760
63761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63762
63763         [BZ #14074]
63764         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63765         (SETUP_PIC_REG): Use it.
63766         (SETUP_PIC_REG_LEAF): Use it.
63767
63768 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63769
63770         [BZ #13885]
63771         [BZ #13923]
63772         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63773         USE_AS_EXPM1L.
63774         (EXPL_FINITE): Likewise.
63775         (FLDLOG): Likewise.
63776         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63777         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63778         e_expl.S.
63779         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63780         USE_AS_EXPM1L.
63781         (EXPL_FINITE): Likewise.
63782         (FLDLOG): Likewise.
63783         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63784         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63785         e_expl.S.
63786         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63787         test of -max_value argument for long double.
63788         * sysdeps/i386/fpu/libm-test-ulps: Update.
63789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63790
63791 2012-05-06  David S. Miller  <davem@davemloft.net>
63792
63793         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63794         quad soft-float symbols whose references which are compiler
63795         generated.
63796         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63797
63798 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63799
63800         [BZ #13884]
63801         [BZ #13914]
63802         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63803         USE_AS_EXP10L.
63804         (EXPL_FINITE): Likewise.
63805         (FLDLOG): Likewise.
63806         (c0): Likewise.
63807         (c1): Likewise.
63808         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63809         Adjust comments for base varying.
63810         (__expl_finite): Change alias to EXPL_FINITE.
63811         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63812         e_expl.S.
63813         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63814         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63815         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63816         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63817         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63818         USE_AS_EXP10L.
63819         (EXPL_FINITE): Likewise.
63820         (FLDLOG): Likewise.
63821         (c0): Likewise.
63822         (c1): Likewise.
63823         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63824         Adjust comments for base varying.
63825         (__expl_finite): Change alias to EXPL_FINITE.
63826         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63827         tests for bugs.
63828         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63829
63830         [BZ #14064]
63831         * math/libm-test.inc (check_float_internal): Correct ulp
63832         calculation for subnormal expected results.
63833
63834 2012-05-06  Andreas Jaeger  <aj@suse.de>
63835
63836         * Makeconfig (+math-flags): New, set to -frounding-math.
63837         (+cflags): Add +math-flags so that all of glibc gets compiled with
63838         it.
63839
63840         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63841
63842 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63843
63844         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63845         Disable one test.
63846
63847         [BZ #13787]
63848         [BZ #13922]
63849         [BZ #14036]
63850         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63851         (__ieee754_expl): Allow for and saturate large arguments.
63852         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63853         (u_threshold): Likewise.
63854         (__exp): Call __ieee754_exp before checking for overflow and
63855         underflow.
63856         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63857         (u_threshold): Likewise.
63858         (__expf): Call __ieee754_expf before checking for overflow and
63859         underflow.
63860         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63861         (u_threshold): Likewise.
63862         (__expl): Call __ieee754_expl before checking for overflow and
63863         underflow.
63864         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63865         (__ieee754_expl): Allow for and saturate large arguments.
63866         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63867         missing overflow exception on overflow.
63868         (expm1_test): Do not allow missing overflow exception on overflow.
63869
63870         * sysdeps/i386/fpu/e_expl.c: Move to ...
63871         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63872         rather than using inline asm.
63873         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63874         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63875         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63876
63877         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63878         (nice): Likewise.
63879         (poll): Likewise.
63880         (signal): Likewise.
63881         (time): Likewise.
63882         (times): Likewise.
63883
63884 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63885
63886         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63887         sysdeps/unix/common/syscalls.list.
63888         (fchmod): Likewise.
63889         (fchown): Likewise.
63890         (ftruncate): Likewise.
63891         (getrusage): Likewise.
63892         (gettimeofday): Likewise.
63893         (setpgid): Likewise.
63894         (setregid): Likewise.
63895         (setreuid): Likewise.
63896         (sigaction): Likewise.
63897         (truncate): Likewise.
63898         (vhangup): Likewise.
63899         * sysdeps/unix/common/syscalls.list: Remove file.
63900         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63901         * sysdeps/unix/sysv/linux/Implies: Likewise.
63902
63903 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63904
63905         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63907         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63908         Moved to ...
63909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63910         Here.
63911         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63912         to ...
63913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63914         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63915         to ...
63916         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63917         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63918         to ...
63919         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63920         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63921         to ...
63922         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63923         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63924         to ...
63925         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63926         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63927         to ...
63928         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63929         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63930         to ...
63931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63932         Here.
63933         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63934         to ...
63935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63936         Here.
63937         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63938         to ...
63939         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63940         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63941         Moved to ...
63942         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63943         Here.
63944         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63945         to ...
63946         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63947
63948 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63949
63950         * sysdeps/unix/common/bits/dirent.h: Remove file.
63951         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63952
63953         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63954         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63955         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63956         * sysdeps/unix/bsd/isatty.c: Likewise.
63957         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63958         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63959         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63960
63961 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63962
63963         [BZ #13563]
63964         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63965         long double comparison inaccuracies.
63966         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63968
63969 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63970
63971         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63972         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63973
63974 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63975
63976         [BZ #14049]
63977         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63978         nonzero digits before rounding a hex value.
63979         * stdlib/tst-strtod.c (tests): Add another test.
63980
63981 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63982
63983         * sysdeps/s390/fpu/libm-test-ulps: Update.
63984
63985 2012-05-03  Andreas Jaeger  <aj@suse.de>
63986
63987         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63988         does not get optimized out.
63989         (malloc_opt_barrier): New.
63990
63991 2012-05-03  Andreas Jaeger  <aj@suse.de>
63992             Roland McGrath  <roland@hack.frob.com>
63993
63994         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63995         intermediate file deletion.
63996         (generated): Add .symlist files.
63997
63998 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63999
64000         [BZ #13775]
64001         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64002         Redirect under this condition.
64003         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64004         [__USE_GNU] (__dprintf_chk): Not under this condition.
64005         [__USE_GNU] (__vdprintf_chk): Likewise.
64006         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64007         under this condition.
64008         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64009         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64010         [__USE_XOPEN2K8] (vdprintf): Likewise.
64011         [__USE_GNU] (__dprintf_chk): Not under this condition.
64012         [__USE_GNU] (__vdprintf_chk): Likewise.
64013         [__USE_GNU] (dprintf): Likewise.
64014         [__USE_GNU] (vdprintf): Likewise.
64015
64016 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64017
64018         * elf/Makefile (common-generated): Set this instead of generated for
64019         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64020         $(all-built-dso)-derived lists.
64021
64022 2012-05-03  Andreas Jaeger  <aj@suse.de>
64023
64024         * sysdeps/i386/fpu/libm-test-ulps: Update.
64025
64026         * FAQ: Removed.
64027         * FAQ.in: Likewise.
64028         * scripts/gen-FAQ.pl: Likewise.
64029         * manual/install.texi (Installation): Point to online location of
64030         FAQ.
64031         * Makefile (files-for-dist): Remove FAQ.
64032         (FAQ): Remove.
64033
64034 2012-05-02  Allan McRae  <allan@archlinux.org>
64035
64036         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64037         (LDFLAGS-reldepmod5.so): Likewise.
64038         (LDFLAGS-reldep6mod1.so): Likewise.
64039         (LDFLAGS-reldep6mod4.so): Likewise.
64040         (LDFLAGS-reldep8mod3.so): Likewise.
64041         (LDFLAGS-unload4mod1.so): Likewise.
64042         (LDFLAGS-unload4mod2.so): Likewise.
64043         (LDFLAGS-tst-initorder): Likewise.
64044         (LDFLAGS-tst-initordera2.so): Likewise.
64045         (LDFLAGS-tst-initordera3.so): Likewise.
64046         (LDFLAGS-tst-initordera4.so): Likewise.
64047         (LDFLAGS-tst-initorderb2.so): Likewise.
64048         (LDFLAGS-noload): Likewise.
64049         (LDFLAGS-next): Likewise.
64050         (LDFLAGS-order2mod1.so): Likewise.
64051         (LDFLAGS-order2mod2.so): Likewise.
64052         (LDFLAGS-tst-initorder2): Likewise.
64053         (LDFLAGS-tst-initorder2a.so): Likewise.
64054         (LDFLAGS-tst-initorder2b.so): Likewise.
64055         (LDFLAGS-tst-initorder2c.so): Likewise.
64056         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64057
64058 2012-05-02  David S. Miller  <davem@davemloft.net>
64059
64060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64061
64062 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64063
64064         [BZ #14055]
64065         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64066
64067 2012-05-02  Andreas Jaeger  <aj@suse.de>
64068
64069         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64070         since we manipulate rounding mode.
64071         (CPPFLAGS-test-idouble.c): Likewise.
64072         (CPPFLAGS-test-ifloat.c): Likewise.
64073         (CFLAGS-test-ldouble.c): Likewise.
64074         (CFLAGS-test-double.c): Likewise.
64075         (CFLAGS-test-float.c): Likewise.
64076         (CFLAGS-test-misc.c): Likewise.
64077         (CFLAGS-test-test-fenv.c): Likewise.
64078
64079 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64080
64081         [BZ #2550]
64082         [BZ #2570]
64083         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64084         comparisons to determine direction to adjust input.
64085
64086 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64087
64088         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64089         output to the target.
64090
64091         * scripts/localplt.awk: New file.
64092         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64093         (check-localplt-CFLAGS): Variable removed.
64094         ($(all-built-dso:=.jmprel)): New static pattern rule.
64095         (generated): Add those targets.
64096         (localplt-built-dso): New variable.
64097         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64098
64099         * elf/check-localplt.c: File removed.
64100
64101         * scripts/check-execstack.awk: New file.
64102         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64103         (check-execstack-CFLAGS): Variable removed.
64104         ($(objpfx)check-execstack.h): Target removed.
64105         ($(objpfx)execstack-default): New target.
64106         (generated): Add that instead of check-execstack.h.
64107         ($(all-built-dso:=.phdr)): New static pattern rule.
64108         (generated): Add those targets.
64109         * elf/check-execstack.c: File removed.
64110
64111         * scripts/check-textrel.awk: New file.
64112         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64113         (check-textrel-CFLAGS): Variable removed.
64114         (all-built-dso): Use := to define.o
64115         ($(all-built-dso:=.dyn)): New static pattern rule.
64116         (generated): Add those targets.
64117         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64118         * config.make.in (READELF): New substituted variable.
64119         * elf/check-textrel.c: File removed.
64120
64121 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64122
64123         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64124         allow.
64125         * conform/data/ctype.h-data [C99-based standards] (isblank):
64126         Expect function.
64127         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64128         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64129         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64130         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64131         Specify type.  Require positive value.
64132         (EILSEQ): Likewise.
64133         (ERANGE): Likewise.
64134         [ISO || POSIX] (EILSEQ): Do not expect.
64135         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64136         Specify type.  Require positive value.
64137         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64138         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64139         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64140         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64141         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64142         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64143         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64144         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64145         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64146         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64147         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64148         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64149         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64150         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64151         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64152         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64153         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64154         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64155         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64156         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64157         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64158         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64159         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64160         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64161         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64162         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64163         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64164         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64165         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64166         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64167         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64168         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64169         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64170         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64171         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64172         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64173         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64174         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64175         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64176         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64177         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64178         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64179         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64180         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64181         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64182         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64183         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64184         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64185         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64186         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64187         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64188         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64189         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64190         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64191         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64192         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64193         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64194         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64195         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64196         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64197         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64198         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64199         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64200         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64201         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64202         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64203         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64204         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64205         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64206         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64207         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64208         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64209         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64210         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64211         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64212         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64213         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64214         Require >= 2.
64215         (FLT_ROUNDS): Expect as macro, not constant.
64216         (FLT_MANT_DIG): Use macro-int-constant.
64217         (DBL_MANT_DIG): Likewise.
64218         (LDBL_MANT_DIG): Likewise.
64219         (FLT_DIG): Likewise.
64220         (DBL_DIG): Likewise.
64221         (LDBL_DIG): Likewise.
64222         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64223         (DBL_MIN_EXP): Likewise.
64224         (LDBL_MIN_EXP): Likewise.
64225         (FLT_MAX_EXP): Use macro-int-constant.
64226         (DBL_MAX_EXP): Likewise.
64227         (LDBL_MAX_EXP): Likewise.
64228         (FLT_MAX_10_EXP): Likewise.
64229         (DBL_MAX_10_EXP): Likewise.
64230         (LDBL_MAX_10_EXP): Likewise.
64231         (FLT_MAX): Use macro-constant.
64232         (DBL_MAX): Likewise.
64233         (LDBL_MAX): Likewise.
64234         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64235         (DBL_EPSILON): Likewise.
64236         (LDBL_EPSILON): Likewise.
64237         (FLT_MIN): Likewise.
64238         (DBL_MIN): Likewise.
64239         (LDBL_MIN): Likewise.
64240         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64241         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64242         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64243         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64244         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64245         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64246         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64247         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64248         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64249         [ISO11] (FLT_TRUE_MIN): Likewise.
64250         [ISO11] (LDBL_TRUE_MIN): Likewise.
64251         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64252         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64253         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64254         (SCHAR_MAX): Likewise.
64255         (UCHAR_MAX): Likewise.
64256         (CHAR_MIN): Likewise.
64257         (CHAR_MAX): Likewise.
64258         (MB_LEN_MAX): Use macro-int-constant.
64259         (SHRT_MIN): Use macro-int-constant.  Specify type.
64260         (SHRT_MAX): Likewise.
64261         (USHRT_MAX): Likewise.
64262         (INT_MAX): Likewise.
64263         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64264         bound negative.
64265         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64266         bound with "U".
64267         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64268         bound with "L".
64269         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64270         bound negative.  Suffix upper bound with "L".
64271         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64272         bound with "UL".
64273         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64274         Specify type.
64275         [C99-based standards] (LLONG_MAX): Likewise.
64276         [C99-based standards] (ULLONG_MAX): Likewise.
64277         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64278         == 0.
64279         [ISO11] (max_align_t): Require type.
64280         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64281
64282         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64283         from $CFLAGS, without defining away __attribute__ calls.
64284         (checknamespace): Use $CFLAGS_namespace.
64285
64286         * conform/conformtest.pl (@keywords): Only include C99 keywords
64287         for standards based on C99 or C11.
64288
64289         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64290         Disable tests.
64291         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64292         UNIX98]: Likewise.
64293
64294         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64295         usability of symbols in #if.
64296
64297         * conform/conformtest.pl: If macro or constant types start
64298         "promoted:", expect the symbol to be of the following type
64299         promoted by the integer promotions.
64300
64301         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64302         in one place.  Also handle "macro-constant".
64303
64304         * conform/conformtest.pl: Only accept expected macro values with
64305         "==".  Parse all "macro" lines in one place.
64306         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64307
64308         * conform/conformtest.pl: Handle braced types on "constant" lines
64309         instead of handling "typed-constant".
64310         * conform/data/signal.h-data: Use "constant" instead of
64311         "typed-constant".
64312
64313         * conform/conformtest.pl: Handle "optional-" at start of lines in
64314         one place rather than duplicating several cases.  Handle each
64315         format of "macro" line with initial "optional-".
64316
64317         * conform/conformtest.pl: Only accept expected constant or
64318         optional-constant values with "==".  Parse all "constant" lines in
64319         one place.  Parse all "optional-constant" lines in one place.
64320         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64321         * conform/data/fmtmsg.h-data: Likewise.
64322         * conform/data/netinet/in.h-data: Likewise.
64323         * conform/data/tar.h-data: Likewise.
64324         * conform/data/limits.h-data: Use "==" form on "constant" and
64325         "optional-constant" lines.
64326
64327         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64328         Use -std=c99 for XOPEN2K.
64329         (@knownproblems): Remove.
64330         (newtoken): Don't check %isknown.
64331
64332         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64333         Do not expect macro.
64334         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64335         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64336         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64337         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64338         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64339         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64340         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64341         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64342         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64343         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64344         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64345         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64346         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64347         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64348         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64349         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64350         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64351         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64352         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64353         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64354         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64355         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64356         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64357         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64358         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64359         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64360         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64361         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64362         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64363         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64364         [XPG3] (acosh): Likewise.
64365         [XPG3] (asinh): Likewise.
64366         [XPG3] (atanh): Likewise.
64367         [XPG3] (cbrt): Likewise.
64368         [XPG3] (expm1): Likewise.
64369         [XPG3] (ilogb): Likewise.
64370         [XPG3] (log1p): Likewise.
64371         [XPG3] (logb): Likewise.
64372         [XPG3] (nextafter): Likewise.
64373         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64374         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64375         [XPG3] (remainder): Likewise.
64376         [XPG3] (rint): Likewise.
64377         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64378         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64379         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64380         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64381         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64382         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64383         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64384         [UNIX98 || XOPEN2K] (scalb): Expect.
64385         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64386         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64387         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64388         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64389         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64390         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64391         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64392         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64393         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64394         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64395         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64396         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64397         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64398         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64399         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64400         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64401         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64402         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64403         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64404         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64405         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64406         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64407         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64408         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64409         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64410         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64411         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64412         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64413         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64414         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64415         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64416         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64417         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64418         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64419         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64420         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64421         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64422         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64423         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64424         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64425         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64426         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64427         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64428         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64429         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64430         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64431         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64432         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64433         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64434         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64435         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64436         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64437         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64438         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64439         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64440         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64441         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64442         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64443         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64444         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64445         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64446         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64447         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64448         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64449         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64450         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64451         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64452         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64453         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64454         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64455         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64456         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64457         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64458         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64459         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64460         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64461         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64462         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64463         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64464         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64465         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64466         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64467         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64468         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64469         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64470         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64471         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64472         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64473         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64474         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64475         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64476         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64477         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64478         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64479         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64480         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64481         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64482         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64483         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64484         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64485         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64486         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64487         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64488         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64489         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64490         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64491         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64492         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64493         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64494         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64495         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64496         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64497         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64498         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64499         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64500         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64501         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64502         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64503         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64504         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64505         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64506         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64507         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64508         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64509         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64510         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64511         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64512         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64513         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64514         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64515         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64516         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64517         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64518         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64519         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64520         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64521         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64522
64523         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64524         _XOPEN_SOURCE_EXTENDED for XPG4.
64525
64526         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64527
64528         * Makeconfig (localtime): Remove variable.
64529         (inst_localtime-file): Likewise.
64530
64531 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64532
64533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64534         Update.
64535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64536         Update.
64537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64538         Update.
64539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64540         Update.
64541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64542         Update.
64543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64544         Update.
64545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64546         Update.
64547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64548         Update.
64549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64550         Update.
64551
64552 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64553
64554         [BZ #2550]
64555         [BZ #2570]
64556         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64557         comparisons to determine direction to adjust input.
64558         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64559         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64560         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64561         Likewise.
64562         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64563         Likewise.
64564         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64565         Likewise.
64566         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64567         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64568         Likewise.
64569         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64570         Likewise.
64571         * math/libm-test.inc (nexttoward_test): Add more tests.
64572
64573 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64574
64575         [BZ #14040]
64576         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64577         in version GLIBC_2.1, not GLIBC_2.0.
64578         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64579         Likewise.
64580
64581 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64582
64583         [BZ #13942]
64584         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64585         (1 - x) * (1 + x).
64586         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64587         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64588         * math/libm-test.inc (acos_test): Add more tests.
64589         (asin_test): Likewise.
64590         * sysdeps/i386/fpu/libm-test-ulps: Update.
64591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64592
64593         [BZ #14034]
64594         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64595         of square root.
64596         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64597         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64598         * math/libm-test.inc (acos_test_tonearest): New function.
64599         (acos_test_towardzero): Likewise.
64600         (acos_test_downward): Likewise.
64601         (acos_test_upward): Likewise.
64602         (asin_test_tonearest): Likewise.
64603         (asin_test_towardzero): Likewise.
64604         (asin_test_downward): Likewise.
64605         (asin_test_upward): Likewise.
64606         (main): Call the new functions.
64607         * sysdeps/i386/fpu/libm-test-ulps: Update.
64608         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64609
64610         [BZ #13884]
64611         [BZ #13924]
64612         * math/e_exp10.c: Include <float.h>.
64613         (__ieee754_exp10): Handle underflow here rather than multiplying
64614         large negative argument by M_LN10.
64615         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64616         of __ieee754_expf.
64617         * math/e_exp10l.c: Include <float.h>.
64618         (__ieee754_exp10l): Handle underflow here rather than multiplying
64619         large negative argument by M_LN10l.
64620         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64621         spurious overflow exception on underflow.
64622
64623 2012-04-29  Marek Polacek  <polacek@redhat.com>
64624
64625         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64626         (__fortify_function): New macro.
64627         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64628         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64629         __extern_always_inline.
64630         * libio/bits/stdio2.h: Likewise.
64631         * libio/bits/stdio.h: Likewise.
64632         * string/string.h: Likewise.
64633         * string/bits/string3.h: Likewise.
64634         * include/stdio.h: Likewise.
64635         * stdlib/bits/stdlib.h: Likewise.
64636         * stdlib/stdlib.h: Likewise.
64637         * rt/bits/mqueue2.h: Likewise.
64638         * rt/mqueue.h: Likewise.
64639         * posix/bits/unistd.h: Likewise.
64640         * posix/unistd.h: Likewise.
64641         * io/bits/poll2.h: Likewise.
64642         * io/bits/fcntl2.h: Likewise.
64643         * io/fcntl.h: Likewise.
64644         * io/sys/poll.h: Likewise.
64645         * misc/bits/syslog.h: Likewise.
64646         * misc/bits/syslog-ldbl.h: Likewise.
64647         * misc/sys/syslog.h: Likewise.
64648         * socket/bits/socket2.h: Likewise.
64649         * socket/sys/socket.h: Likewise.
64650         * debug/tst-chk1.c: Likewise.
64651         * wcsmbs/bits/wchar2.h: Likewise.
64652         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64653         * wcsmbs/wchar.h: Likewise.
64654
64655 2012-04-29  Andreas Jaeger  <aj@suse.de>
64656
64657         * Makerules (tests): Remove enable-check-abi protection.
64658         (check-abi-warn): Remove.
64659         (check-abi-%): Remove check-abi-warn usage.
64660
64661         * configure.in: Remove check-abi configure option.
64662         * configure: Regenerated.
64663         * config.make.in (enable-check-abi): Remove.
64664
64665 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64666
64667         [BZ #14033]
64668         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64669         double functions to double *_finite functions.
64670
64671         [BZ #13941]
64672         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64673         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64674         LDBL_MIN_EXP.
64675         * stdio-common/Makefile (tests): Add tst-sprintf3.
64676         * stdio-common/tst-sprintf3.c: New file.
64677
64678         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64679         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64680
64681 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64682
64683         * conform/conformtest.pl: Remove duplicate typed-constant
64684         handling.
64685
64686 2012-04-28  David S. Miller  <davem@davemloft.net>
64687
64688         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64689         (check-abi-%): Remove AWK script prerequisite and explicit
64690         abilist directory.
64691         (check-abi): Rewrite to just diff the symlist with the abilist.
64692         (config-tls, config-abi-config): Delete, no longer used.
64693         (update-abi-%): Remove AWK script and explicit abilist directory.
64694         (update-abi): Rewrite to simply compare and conditionally copy the
64695         symlist and the sysdep abilist file.  Remove update-abi-config
64696         checks.
64697         * abilist/ld.abilist: Remove.
64698         * abilist/libBrokenLocale.abilist: Remove.
64699         * abilist/libanl.abilist: Remove.
64700         * abilist/libcrypt.abilist: Remove.
64701         * abilist/libdl.abilist: Remove.
64702         * abilist/librt.abilist: Remove.
64703         * abilist/libthread_db.abilist: Remove.
64704         * abilist/libutil.abilist: Remove.
64705         * scripts/extract-abilist.awk: Remove.
64706         * scripts/merge-abilist.awk: Remove.
64707         * sysdeps/generic/libcidn.abilist: New file.
64708         * sysdeps/generic/libnss_compat.abilist: New file.
64709         * sysdeps/generic/libnss_db.abilist: New file.
64710         * sysdeps/generic/libnss_dns.abilist: New file.
64711         * sysdeps/generic/libnss_files.abilist: New file.
64712         * sysdeps/generic/libnss_hesiod.abilist: New file.
64713         * sysdeps/generic/libnss_nis.abilist: New file.
64714         * sysdeps/generic/libnss_nisplus.abilist: New file.
64715         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64716         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64717         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64718         file.
64719         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64720         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64721         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64722         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64723         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64724         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64725         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64726         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64727         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64728         file.
64729         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64730         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64731         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64732         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64733         file.
64734         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64735         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64736         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64737         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64738         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64739         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64740         file.
64741         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64742         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64743         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64744         file.
64745         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64746         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64747         New file.
64748         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64749         New file.
64750         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64751         New file.
64752         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64753         New file.
64754         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64755         New file.
64756         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64757         New file.
64758         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64759         New file.
64760         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64761         New file.
64762         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64763         New file.
64764         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64765         New file.
64766         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64767         New file.
64768         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64769         New file.
64770         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64771         New file.
64772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64773         file.
64774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64775         New file.
64776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64777         New file.
64778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64779         file.
64780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64781         New file.
64782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64783         New file.
64784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64785         file.
64786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64787         New file.
64788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64789         New file.
64790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64791         New file.
64792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64793         New file.
64794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64795         New file.
64796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64797         New file.
64798         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64799         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64800         file.
64801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64802         New file.
64803         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64804         file.
64805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64806         file.
64807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64808         file.
64809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64810         file.
64811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64812         file.
64813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64814         New file.
64815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64816         file.
64817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64818         file.
64819         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64820         New file.
64821         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64822         file.
64823         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64824         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64825         file.
64826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64827         New file.
64828         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64829         file.
64830         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64831         file.
64832         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64833         file.
64834         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64835         file.
64836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64837         file.
64838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64839         New file.
64840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64841         file.
64842         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64843         file.
64844         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64845         New file.
64846         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64847         file.
64848         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64849         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64850         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64851         file.
64852         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64853         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64854         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64855         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64856         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64857         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64858         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64859         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64860         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64861         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64862         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64863         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64864         file.
64865         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64866         New file.
64867         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64868         file.
64869         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64870         file.
64871         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64872         file.
64873         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64874         file.
64875         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64876         file.
64877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64878         New file.
64879         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64880         New file.
64881         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64882         file.
64883         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64884         New file.
64885         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64886         file.
64887         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64889         file.
64890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64891         New file.
64892         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64893         file.
64894         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64895         file.
64896         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64897         file.
64898         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64899         file.
64900         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64901         file.
64902         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64903         New file.
64904         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64905         New file.
64906         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64907         file.
64908         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64909         New file.
64910         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64911         file.
64912
64913 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64914
64915         * conform/conformtest.pl: Fix typo in handling typed-constant from
64916         allow-header.
64917
64918 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64919
64920         * README: Cut down references to pre-2.6 Linux kernels and
64921         Linuxthreads.  Update lists of configurations in libc and ports
64922         and sort alphabetically.  Say "or newer" with Linux kernel version
64923         requirements.
64924
64925         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64926
64927 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64928
64929         [BZ #887]
64930         * math/libm-test.inc (logb_test_downward): New test to expose
64931         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64932         rounding mode.
64933
64934 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64935
64936         [BZ #14027]
64937         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64938         to be done.
64939         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64940         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64941
64942 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64943
64944         * sysdeps/unix/i386/brk.S: Remove file.
64945         * sysdeps/unix/i386/dl-brk.S: Likewise.
64946         * sysdeps/unix/i386/pipe.S: Likewise.
64947         * sysdeps/unix/i386/sigreturn.S: Likewise.
64948         * sysdeps/unix/i386/syscall.S: Likewise.
64949         * sysdeps/unix/i386/vfork.S: Likewise.
64950         * sysdeps/unix/i386/wait.S: Likewise.
64951
64952         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64953         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64954
64955         * configure.in (arm*-none*): Do not allow without
64956         --enable-hacker-mode.
64957         (netbsd*): Remove case setting base_os.
64958         (386bsd*): Likewise.
64959         (freebsd*): Likewise.
64960         (bsdi*): Likewise.
64961         (osf*): Likewise.
64962         (sunos*): Likewise.
64963         (ultrix*): Likewise.
64964         (newsos*): Likewise.
64965         (dynix*): Likewise.
64966         (*bsd*): Likewise.
64967         (sysv*): Likewise.
64968         (isc*): Likewise.
64969         (esix*): Likewise.
64970         (sco*): Likewise.
64971         (minix*): Likewise.
64972         (irix4*): Likewise.
64973         (irix6*): Likewise.
64974         (solaris[2-9]*): Likewise.
64975         (none): Likewise.
64976         * configure: Regenerated.
64977
64978 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64979
64980         [BZ #11521]
64981         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64982         overflow or cancellation in calculating denominator.
64983         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64984         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64985         down expression to avoid unexpected rounding in newer GCCs.
64986         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64987
64988 2012-04-26  David S. Miller  <davem@davemloft.net>
64989
64990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64991         long-double compat symbols.
64992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65005
65006 2012-04-25  David S. Miller  <davem@davemloft.net>
65007
65008         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65009         HWCAP_* values only after the memory barriers have been defined.
65010         (atomic_full_barrier): Define.
65011         (atomic_read_barrier): Define.
65012         (atomic_write_barrier): Define.
65013
65014 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65015
65016         * shlib-versions: Add libgcc_s version information.
65017         * sysdeps/generic/libgcc_s.h: Remove.
65018         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65019         libgcc_s.h.
65020         * sysdeps/gnu/unwind-resume.c: Likewise.
65021         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65022
65023 2012-04-25  David S. Miller  <davem@davemloft.net>
65024
65025         * sysdeps/unix/sparc/brk.S: Delete.
65026         * sysdeps/unix/sparc/dl-brk.S: Delete.
65027         * sysdeps/unix/sparc/pipe.S: Delete.
65028         * sysdeps/unix/sparc/sysdep.S: Delete.
65029         * sysdeps/unix/sparc/sysdep.h: Delete.
65030         * sysdeps/unix/sparc/vfork.S: Delete.
65031         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65032         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65033         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65034         (ret_ERRVAL, r0, r1, MOVE): Define.
65035         (JUMPTARGET): Remove.
65036         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65037         sysdeps/unix/sparc/sysdep.h
65038         (ENTRY, END): Remove.
65039         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65040
65041 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65042
65043         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65044         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65045         -DIS_IN_build.
65046
65047         * timezone/README: Update upstream location and email address for
65048         tzcode and tzdata.
65049         * timezone/zdump.c: Update from tzcode 2012b.
65050         * timezone/zic.c: Likewise.
65051
65052         * configure.in (libc_cv_as_needed): Remove test.
65053         * configure: Regenerated.
65054         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65055         conditional definition.
65056         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65057         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65058         * config.make.in (have-as-needed): Remove variable.
65059
65060 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65061             Paul Pluzhnikov  <ppluzhnikov@google.com>
65062
65063         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65064         strings correctly.
65065
65066 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65067
65068         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65069         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65070         * sysdeps/sh/strlen.S: Likewise.
65071
65072 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65073
65074         * sysdeps/unix/fork.S: Remove file.
65075         * sysdeps/unix/i386/fork.S: Likewise.
65076         * sysdeps/unix/sparc/fork.S: Likewise.
65077
65078         * sysdeps/unix/system.c: Remove file.
65079         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65080
65081         * sysdeps/unix/getegid.S: Remove file.
65082         * sysdeps/unix/geteuid.S: Likewise.
65083
65084 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65085
65086         * scripts/check-localplt.awk: New file.
65087         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65088         of diff.
65089         * scripts/data/localplt-generic.data: Add a comment.
65090
65091         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65092         NODE when __dir_mkfile failed.
65093         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65094         Reported by Ludovic Courtès <ludo@gnu.org>.
65095
65096 2012-04-24  Andreas Jaeger  <aj@suse.de>
65097
65098         * Makerules (common-clean): Also remove gen-as-const-headers
65099         files.
65100
65101 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65102
65103         * Makerules (native-compile): Do not change working directory for
65104         build.  Use $(OUTPUT_OPTION) in command.
65105         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65106
65107 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65108
65109         [BZ #13886]
65110         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65111         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65112         * math/libm-test.inc (floor_test): Add more tests.
65113         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65114
65115 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65116
65117         * sysdeps/unix/getdents.c: Remove file.
65118         * sysdeps/unix/sysv/getdents.c: Likewise.
65119         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65120
65121         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65122         sysdeps/unix/mman/syscalls.list.
65123         (mmap): Likewise.
65124         (mprotect): Likewise.
65125         (msync): Likewise.
65126         (munmap): Likewise.
65127         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65128         * sysdeps/unix/mman/syscalls.list: Remove.
65129         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65130
65131         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65132         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65133         * configure: Regenerated.
65134         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65135         $(libgcc_s_suffix).
65136         * config.make.in (libgcc_s_suffix): Remove variable.
65137
65138 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65139
65140         * sysdeps/unix/sysv/gethostname.c: Move to ...
65141         * sysdeps/posix/gethostname.c: ... here.
65142
65143         * sysdeps/unix/execve.S: Remove file.
65144
65145         * sysdeps/unix/_exit.S: Remove file.
65146
65147 2012-04-23  Andreas Jaeger  <aj@suse.de>
65148
65149         [BZ #13739]
65150         * manual/Makefile: Remove make dist support, there's no
65151         need for a stand-alone documentation tar ball.
65152         (TEXI2DVI): Define always, it's not in Makeconfig.
65153         (dist): Removed.
65154         (tar-it): Removed.
65155         (edition): Removed.
65156         (glibc-doc-$(edition).tar): Removed
65157         (%.Z): Removed.
65158         (%.gz): Removed.
65159         (%.uu): Removed.
65160         (ETAGS): Remove, it's in Makeconfig.
65161         (move-if-change): Remove, it's in Makeconfig.
65162
65163 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65164
65165         [BZ #13970]
65166         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65167         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65168         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65169         (strtod_l, strtof_l, strtold_l): Remove __wur.
65170         It is not necessarily an error to ignore strtol's return value.
65171         One can reliably look at the stored endptr to decide whether
65172         the number had valid syntax.
65173
65174 2012-04-21  Andreas Jaeger  <aj@suse.de>
65175
65176         [BZ #13739]
65177         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65178
65179 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65180
65181         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65182         * sysdeps/unix/sysv/Versions: Remove file.
65183
65184 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65185
65186         [BZ #13927]
65187         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65188
65189 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65190
65191         [BZ #7064]
65192         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65193         version from __vm86.
65194
65195 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65196
65197         * sysdeps/unix/common/lxstat.c: Remove file.
65198         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65199
65200         * sysdeps/unix/sysv/Makefile: Remove file.
65201
65202         * sysdeps/unix/sysv/direct.h: Remove file.
65203
65204         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65205         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65206         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65207         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65208         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65209         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65210         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65211
65212         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65213
65214         * sysdeps/unix/xmknod.c: Remove file.
65215         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65216
65217         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65218
65219         * sysdeps/unix/sysv/i386/time.S: Remove file.
65220
65221         * sysdeps/unix/fxstat.c: Remove file.
65222         * sysdeps/unix/xstat.c: Likewise.
65223         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65224
65225         * sysdeps/unix/sysv/sigaction.c: Remove file.
65226
65227         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65228         (sysdep_headers): Remove variable.
65229         [termio.h not in sysdep_headers] (generated): Likewise.
65230         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65231         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65232         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65233         * sysdeps/unix/sysv/tcflow.c: Likewise.
65234         * sysdeps/unix/sysv/tcflush.c: Likewise.
65235         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65236         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65237         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65238         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65239         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65240
65241         * sysdeps/unix/siglist.c: Remove file.
65242
65243         * sysdeps/unix/getppid.S: Remove file.
65244
65245         * sysdeps/unix/mkdir.c: Remove file.
65246         * sysdeps/unix/rmdir.c: Likewise.
65247
65248 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65249
65250         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65251         ERR_MAX value.
65252         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65253         errlist-compat value.
65254
65255 2012-04-18  David S. Miller  <davem@davemloft.net>
65256
65257         * sysdeps/generic/memcopy.h (reg_char): Delete.
65258         * debug/strcat_chk.c: Use char, not reg_char.
65259         * debug/strcpy_chk.c: Likewise.
65260         * debug/strncat_chk.c: Likewise.
65261         * debug/strncpy_chk.c: Likewise.
65262         * string/memchr.c: Likewise.
65263         * string/memrchr.c: Likewise.
65264         * string/rawmemchr.c: Likewise.
65265         * string/strcat.c: Likewise.
65266         * string/strchr.c: Likewise.
65267         * string/strchrnul.c: Likewise.
65268         * string/strcmp.c: Likewise.
65269         * string/strcpy.c: Likewise.
65270         * string/strncat.c: Likewise.
65271         * string/strncmp.c: Likewise.
65272         * string/strncpy.c: Likewise.
65273
65274 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65275
65276         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65277         __builtin_memcopy is called when src and dest ranges are known to not
65278         overlap.
65279
65280 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65281
65282         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65283         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65284         fwd_align_merge macro call.
65285         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65286         bwd_align_merge macro call.
65287         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65288
65289 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65290
65291         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65292         bwd_align_merge macros.
65293         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65294         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65295         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65296
65297 2012-04-18  David S. Miller  <davem@davemloft.net>
65298
65299         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65300
65301 2012-04-18  Andreas Jaeger  <aj@suse.de>
65302
65303         [BZ# 6794]
65304         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65305         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65306         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65307
65308         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65309         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65310         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65311
65312         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65313         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65314         Adjust for changed ldbl-128 files.
65315
65316         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65317         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65318         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65319
65320 2012-04-17  David S. Miller  <davem@davemloft.net>
65321
65322         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65323
65324 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65325
65326         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65327         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65328         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65329         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65330         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65331         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65332
65333 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65334
65335         [BZ #6794]
65336         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65337         * math/libm-test.inc: Add ilogb errno and exception tests.
65338         * math/w_ilogb.c: New file: ilogb wrapper.
65339         * math/w_ilogbf.c: New file: ilogbf wrapper.
65340         * math/w_ilogbl.c: New file: ilogbl wrapper.
65341         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65342         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65343         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65344         exception being thrown with 0.0 as argument.
65345         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65346         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65347         exception being thrown with 0.0 as argument.
65348         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65349         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65350         exception being thrown with 0.0 as argument.
65351         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65352         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65353         exception being thrown with 0.0 as argument.
65354         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65355         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65356         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65357         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65358         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65359         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65360         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65361         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65362         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65363
65364 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65365
65366         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65367         with altivec.
65368
65369 2012-04-16  Marek Polacek  <polacek@redhat.com>
65370
65371         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65372
65373 2012-04-16  Marek Polacek  <polacek@redhat.com>
65374
65375         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65376         operands of fdivp instruction.
65377
65378 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65379
65380         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65381         * elf/tst-auditmod3b.c: Likewise.
65382         * elf/tst-auditmod4b.c: Likewise.
65383         * elf/tst-auditmod5b.c: Likewise.
65384         * elf/tst-auditmod6b.c: Likewise.
65385         * elf/tst-auditmod6c.c: Likewise.
65386         * elf/tst-auditmod7b.c: Likewise.
65387         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65388         * sysdeps/x86_64/preconfigure.in: Likewise.
65389         * sysdeps/x86_64/preconfigure: Regenerated.
65390
65391 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65392
65393         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65394         __ILP32__.
65395
65396 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65397
65398         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65399         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65400
65401 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65402
65403         [BZ #13973]
65404         * locale/iso-639.def: Fix gl language name. Spotted by
65405         Yaron Shahrabani.
65406
65407 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65408
65409         [BZ #2074]
65410         * libio/libio.h (__io_write_fn): Update comment.
65411
65412 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65413
65414         [BZ #2074]
65415         * stdio.texi (Hook Functions): The user provided writer function
65416         is not allowed to return -1.
65417
65418 2012-04-11  David S. Miller  <davem@davemloft.net>
65419
65420         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65421
65422 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65423
65424         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65425         Add a leading slash to rtkaio.
65426
65427 2012-04-11  Jim Meyering  <meyering@redhat.com>
65428
65429         [BZ #11959]
65430         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65431         It is not necessarily an error to ignore fwrite's return
65432         value.  One can reliably use ferror to test for errors after
65433         the fact.
65434
65435 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65436
65437         * bits/types.h (__snseconds_t): New type.
65438         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65439
65440         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65441         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65442         (__SNSECONDS_T_TYPE): Likewise.
65443         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65444         (__SNSECONDS_T_TYPE): Likewise.
65445         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65446         (__SNSECONDS_T_TYPE): Likewise.
65447
65448 2012-04-10  Andreas Jaeger  <aj@suse.de>
65449
65450         [BZ #2636]
65451         * manual/time.texi (Processor Time): Return type of times is
65452         elapsed real time since an arbitrary point in the past.
65453         (CPU Time): Move CLK_TCK from here...
65454         (Processor Time): ...to here.  Correct description.
65455         * manual/conf.texi (Constants for Sysconf): Correct description of
65456         _SC_CLK_TCK.
65457
65458 2012-04-10  David S. Miller  <davem@davemloft.net>
65459
65460         [BZ #13967]
65461         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65462         where the is a gap between DT_REL(A) and DT_JMPREL.
65463
65464 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65465
65466         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65467         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65468         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65469
65470 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65471
65472         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65473         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65474         (dl_main): Handle --inhibit-cache.
65475         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65476         _dl_inhibit_cache.
65477         * elf/dl-load.c (_dl_map_object): Use it.
65478         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65479
65480 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65481
65482         [BZ #13872]
65483         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65484         (__ieee754_powl): Saturate large exponents rather than testing for
65485         overflow of y*log2(x).
65486         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65487         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65488         exceptions.
65489
65490         [BZ #11521]
65491         * math/s_ctan.c: Include <float.h>.
65492         (__ctan): Avoid internal overflow or cancellation in calculating
65493         denominator.
65494         * math/s_ctanf.c: Likewise.
65495         * math/s_ctanl.c: Likewise.
65496         * math/s_ctanh.c: Likewise.
65497         * math/s_ctanhf.c: Likewise.
65498         * math/s_ctanhl.c: Likewise.
65499         * math/libm-test.inc (ctan_test): Add more tests.
65500         (ctanh_test): Likewise.
65501         * sysdeps/i386/fpu/libm-test-ulps: Update.
65502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65503
65504 2012-04-09  Andreas Jaeger  <aj@suse.de>
65505
65506         [BZ #6894]
65507         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65508         is an optional BSD extension.
65509
65510         [BZ #10254]
65511         * manual/stdio.texi (Opening Streams): Document additional fopen
65512         parameters.
65513
65514 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65515
65516         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65517         %eax without telling the compiler.
65518
65519 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65520
65521         [BZ # 13963]
65522         * manual/install.texi: Use sourceware.org.
65523
65524 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65525
65526         [BZ #13873]
65527         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65528         (__ieee754_pow): Generate overflow and underflow using huge*huge
65529         and tiny*tiny rather than just returning constant infinity or zero
65530         for large exponents.
65531         * math/libm-test.inc (pow_test): Require overflow exceptions for
65532         applicable cases of large exponents.
65533
65534         [BZ #706]
65535         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65536         (__ieee754_pow): Use iterative multiplication algorithm only for
65537         integer exponents with absolute value below 1024.  Check for odd
65538         integer exponents when using algorithm for real exponents.
65539         * math/libm-test.inc (pow_test): Add more tests.
65540         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65541
65542 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65543
65544         [BZ #13705]
65545         * math/libm-test.inc (exp_test): Do not allow overflow exception
65546         on underflow test.
65547
65548 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65549
65550         [BZ #13705]
65551         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65552         instead of __kernel_standard_f.
65553
65554 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65555
65556         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65557         * sysdeps/x86_64/memset_chk.S: Likewise.
65558
65559 2012-04-08  Andreas Jaeger  <aj@suse.de>
65560
65561         [BZ #10153]
65562         * manual/startup.texi (Environment Access): Describe return value
65563         for putenv and setenv.
65564
65565         [BZ #6895]
65566         * manual/filesys.texi (Directory Entries): Add description for
65567         DT_LNK.
65568
65569         [BZ #6890]
65570         * manual/filesys.texi (Directory Entries): Clarify that it's file
65571         system not operating system in the description of DT_UNKNOWN.
65572
65573         [BZ #6578]
65574         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65575
65576 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65577
65578         [BZ #6649]
65579         * manual/llio.texi (Opening and Closing Files): Add cross
65580         reference to explain mode argument.
65581
65582 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65583
65584         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65585         * sysdeps/x86_64/memset_chk.S: Likewise.
65586
65587 2012-04-07  David S. Miller  <davem@davemloft.net>
65588
65589         * elf/elf.h (R_SPARC_WDISP10): Define.
65590         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65591         R_SPARC_SIZE32.
65592         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65593         R_SPARC_SIZE64 and R_SPARC_H34.
65594
65595 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65596
65597         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65598         conditions and remove no longer applicable assertion.
65599
65600 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65601
65602         * bits/byteswap.h: Include <features.h>.
65603         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65604         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65605
65606 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65607
65608         * bits/byteswap.h (__bswap_16): Removed.
65609         Include <bits/byteswap-16.h> to get __bswap_16.
65610         * sysdeps/i386/bits/byteswap.h: Likewise.
65611         * sysdeps/s390/bits/byteswap.h: Likewise.
65612         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65613         * bits/byteswap-16.h: New file.
65614         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65615         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65616         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65617         * string/Makefile (headers): Add bits/byteswap-16.h.
65618
65619 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65620
65621         [BZ #13895]
65622         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65623         extra indirection.
65624         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65625         * nss/tst-nss-static.c: New.
65626
65627 2012-04-06  Robert Millan  <rmh@gnu.org>
65628
65629         [BZ #6486]
65630         * manual/llio.texi (File Position Primitive): lseek
65631         refers to WHENCE when it really means OFFSET.
65632
65633 2012-04-06  Andreas Jaeger  <aj@suse.de>
65634
65635         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65636         strncmp declarations.
65637
65638         * abilist/libc.abilist: Add __poll and __ppoll.
65639
65640 2012-04-05  David S. Miller  <davem@davemloft.net>
65641
65642         * scripts/check-local-headers.sh: Accept a host triplet in the
65643         path matched by the exclude regexp.
65644
65645         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65646         definition.
65647         * sysdeps/powerpc/powerpc32/dl-machine.h
65648         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65649         * sysdeps/s390/s390-32/dl-machine.h
65650         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65651         * sysdeps/sparc/sparc32/dl-machine.h
65652         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65653         * sysdeps/sparc/sparc64/dl-machine.h
65654         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65655
65656         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65657         lazy binding.
65658         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65659         undefined symbol errors.
65660
65661         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65662         DT_NEEDED entries.
65663
65664 2012-04-05  Michael Matz  <matz@suse.de>
65665
65666         [BZ #13592]
65667         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65668
65669 2012-04-05  Andreas Jaeger  <aj@suse.de>
65670
65671         [BZ #13908]
65672         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65673         comment.
65674
65675 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65676
65677         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65678         which ROUND is no valid rounding mode.
65679
65680 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65681
65682         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65683         read again.
65684         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65685
65686 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65687
65688         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65689         an exception using FPU order intentionally.
65690
65691 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65692
65693         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65694         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65695         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65696         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65697
65698 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65699
65700         [BZ #12340]
65701         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65702         EINVAL when BUFLEN is too smal.
65703
65704 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65705
65706         [BZ #13553]
65707         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65708         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65709
65710 2012-04-03  Andreas Jaeger  <aj@suse.de>
65711
65712         [BZ #13938]
65713         * manual/setjmp.texi (System V contexts): Fix sentence.
65714
65715         [BZ #13926]
65716         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65717         New macro for this case.
65718         [!__GNUC__] (__bswap_64): New inline function for this case.
65719         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65720         * bits/byteswap.h: Likewise.
65721         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65722         ull, guard with __GLIBC_HAVE_LONG_LONG.
65723
65724         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65725         __GLIBC_HAVE_LONG_LONG.
65726
65727         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65728         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65729
65730 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65731
65732         [BZ #13691]
65733         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65734         inptr and inend, rather than using last_ch.
65735
65736 2012-04-02  David S. Miller  <davem@davemloft.net>
65737
65738         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65739         * stdio-common/printf-parse.h (read_int): Change return type to
65740         'int', return -1 on INT_MAX overflow.
65741         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65742         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65743         overflows INT_MAX.  Check for overflow of in-format-string precision
65744         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65745         SIZE_MAX not INT_MAX for integer overflow test.
65746         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65747         skip the construct in the format string but do not record anything.
65748         * stdio-common/bug22.c: Adjust to test both width/prevision
65749         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65750         explicitly for proper errno values.
65751
65752 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65753
65754         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65755         CHAR_MAX.
65756         * string/test-strcmp.c [! WIDE]: Likewise.
65757         * time/tst-mktime2.c: Likewise for INT_MAX.
65758         * string/test-string.h: #include <sys/param.h> for MIN.
65759
65760         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65761         * sysdeps/i386/init-first.c (init): Likewise.
65762         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65763         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65764         * sysdeps/sh/init-first.c (init): Likewise.
65765
65766 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65767
65768         * po/ru.po: Update from translation team.
65769         * po/vi.po: Likewise.
65770
65771 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65772
65773         * resolv/nss_dns/dns-host.c: Merge copyright years.
65774
65775 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65776
65777         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65778         Optimize memcpy with prefetch if
65779         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65780         src, dst pointers have unequal 16 byte alignments.
65781
65782 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65783
65784         [BZ #13928]
65785         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65786         from a CNAME entry and return the minimum ttl for the query.
65787         (gaih_getanswer_slice): Likewise.
65788
65789 2012-03-30  Jeff Law  <law@redhat.com>
65790
65791         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65792         due to long keys.
65793         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65794         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65795
65796         * resolv/nss_dns/dns-host.c: Update copyright year.
65797
65798 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65799
65800         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65801         requests to save a system call.  Fix check that all bytes are sent.
65802
65803         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65804         comments for sendmmsg.
65805
65806 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65807
65808         [BZ #13691]
65809         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65810         with only 1 character between 0x0041 and 0x01b0.
65811         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65812         * wcsmbs/tst-mbsnrtowcs.c: New file.
65813
65814 2012-03-29  David S. Miller  <davem@davemloft.net>
65815
65816         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65817         small copies by hand.
65818
65819 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65820
65821         [BZ #13761]
65822         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65823         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65824         group memberships.
65825
65826 2012-03-28  David S. Miller  <davem@davemloft.net>
65827
65828         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65829         that branches into memcpy.
65830         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65831         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65832         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65833         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65834         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65835         bits.
65836         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65837         implementation too.
65838         * sysdeps/sparc/mempcpy.S: New file.
65839
65840         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65841         the IFUNC routine in the libc case.
65842         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65843
65844         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65845         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65846         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65847         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65848         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65849         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65850         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65851         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65852
65853         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65854         loop to 256 bytes instead of 64 bytes and fix test signedness.
65855
65856         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65857         * sysdeps/sparc/sparc32/Makefile: rather than here...
65858         * sysdeps/sparc/sparc64/Makefile: and here.
65859
65860 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65861
65862         * malloc/mallocbug.c: Avoid warnings about unused variables.
65863
65864 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65865
65866         [BZ #13760]
65867         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65868         in the right place. Discard and retry query if response is
65869         larger than input buffer size.
65870
65871 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65872
65873         [BZ #369]
65874         [BZ #2678]
65875         [BZ #3866]
65876         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65877         x for large integer exponent.
65878         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65879         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65880         sign of result as needed afterwards.
65881         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65882         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65883         result for underflowing pow the same as for overflow.
65884         (__kernel_standard_l): Handle powl overflow and underflow here
65885         rather than calling __kernel_standard.
65886         * math/libm-test.inc (pow_test): Add more tests.
65887
65888         [BZ #3868]
65889         [BZ #13879]
65890         [BZ #13910]
65891         [BZ #13911]
65892         [BZ #13912]
65893         [BZ #13913]
65894         [BZ #13915]
65895         [BZ #13916]
65896         [BZ #13917]
65897         [BZ #13918]
65898         [BZ #13919]
65899         [BZ #13920]
65900         [BZ #13921]
65901         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65902         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65903         (__kernel_standard_l): New function.
65904         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65905         __kernel_standard.
65906         * math/w_acosl.c (__acosl): Likewise.
65907         * math/w_asinl.c (__asinl): Likewise.
65908         * math/w_atan2l.c (__atan2l): Likewise.
65909         * math/w_atanhl.c (__atanhl): Likewise.
65910         * math/w_coshl.c (__coshl): Likewise.
65911         * math/w_exp10l.c (__exp10l): Likewise.
65912         * math/w_exp2l.c (__exp2l): Likewise.
65913         * math/w_fmodl.c (__fmodl): Likewise.
65914         * math/w_hypotl.c (__hypotl): Likewise.
65915         * math/w_j0l.c (__j0l, __y0l): Likewise.
65916         * math/w_j1l.c (__j1l, __y1l): Likewise.
65917         * math/w_jnl.c (__jnl, __ynl): Likewise.
65918         * math/w_lgammal.c (__lgammal): Likewise.
65919         * math/w_log10l.c (__log10l): Likewise.
65920         * math/w_log2l.c (__log2l): Likewise.
65921         * math/w_logl.c (__logl): Likewise.
65922         * math/w_powl.c (__powl): Likewise.
65923         * math/w_remainderl.c (__remainderl): Likewise.
65924         * math/w_scalbl.c (sysv_scalbl): Likewise.
65925         * math/w_sinhl.c (__sinhl): Likewise.
65926         * math/w_sqrtl.c (__sqrtl): Likewise.
65927         * math/w_tgammal.c (__tgammal): Likewise.
65928         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65929         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65930         * math/libm-test.inc (acos_test): Add more tests.
65931         (acosh_test): Likewise.
65932         (asin_test): Likewise.
65933         (atanh_test): Likewise.
65934         (exp_test): Likewise.
65935         (exp10_test): Likewise.
65936         (exp2_test): Likewise.
65937         (expm1_test): Likewise.
65938         (lgamma_test): Likewise.
65939         (log_test): Likewise.
65940         (log10_test): Likewise.
65941         (log1p_test): Likewise.
65942         (log2_test): Likewise.
65943         (pow_test): Do not allow some spurious overflow exceptions.
65944         (sqrt_test): Add more tests.
65945         (tgamma_test): Likewise.
65946         (y0_test): Likewise.
65947         (y1_test): Likewise.
65948         (yn_test): Likewise.
65949
65950 2012-03-27  Anton Blanchard  <anton@samba.org>
65951
65952         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65953         MAP_HUGETLB.
65954         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65955         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65956         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65957
65958 2012-03-27  David S. Miller  <davem@davemloft.net>
65959
65960         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65961
65962         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65963         have-as-vis3 check.
65964
65965 2012-03-27  Andreas Jaeger  <aj@suse.de>
65966
65967         * sysdeps/x86_64/elf/configure.in: Moved to ...
65968         * sysdeps/x86_64/configure.in: ... here.
65969         * sysdeps/x86_64/elf/start.S: Moved to ...
65970         * sysdeps/x86_64/start.S: ... here.
65971         * sysdeps/x86_64/elf/configure: Delete.
65972
65973         * sysdeps/x86_64/configure.in: Merge contents from
65974         sysdeps/i386/configure.in (without i686 check).
65975
65976         * sysdeps/i386/elf/Versions: Merge into ...
65977         * sysdeps/i386/Versions: ... this.
65978         * sysdeps/i386/elf/Versions: Delete file.
65979         * sysdeps/i386/elf/start.S: Moved to ...
65980         * sysdeps/i386/start.S: ...here.
65981         * sysdeps/i386/elf/configure.in: Merge into...
65982         * sysdeps/i386/configure.in: ...here.
65983         * sysdeps/i386/elf/configure.in: Delete file.
65984         * sysdeps/i386/elf/configure: Delete file.
65985
65986         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65987         * debug/backtracesyms.c: ... here.
65988         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65989         * debug/backtracesymsfd.c: ... here.
65990         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65991         * sysdeps/generic/ifunc-sel.h: ... here.
65992
65993         * sysdeps/unix/i386/start.c: Delete file.
65994         * sysdeps/unix/sparc/start.c: Delete file.
65995         * sysdeps/unix/start.c: Delete file.
65996
65997         * sysdeps/sh/elf/configure.in: Moved to ...
65998         * sysdeps/sh/configure.in: ... here.
65999         * sysdeps/sh/elf/start.S: Moved to ...
66000         * sysdeps/sh/start.S: ... here.
66001         * sysdeps/sh/elf/configure: Delete file.
66002
66003         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66004         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66005         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66006         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66007         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66008         * sysdeps/powerpc/powerpc64/start.S: here.
66009         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66010         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66011         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66012         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66013         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66014
66015         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66016         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66017         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66018         * sysdeps/powerpc/powerpc32/start.S: ... here.
66019         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66020         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66021         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66022
66023         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66024         * sysdeps/powerpc/ifunc-sel.h: ... here.
66025         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66026         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66027
66028         * sysdeps/sparc/elf/configure.in: Moved to ...
66029         * sysdeps/sparc/configure.in: ... here.
66030         * sysdeps/sparc/elf/configure: Delete file.
66031         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66032         * sysdeps/sparc/sparc32/start.S: ... here.
66033         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66034         * sysdeps/sparc/sparc64/start.S: ... here.
66035         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66036         * sysdeps/sparc/sparc32/Makefile: ... this.
66037         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66038         * sysdeps/sparc/sparc64/Makefile: ... this.
66039
66040         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66041         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66042         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66043         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66044         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66045         * sysdeps/s390/s390-32/setjmp.S: ... here.
66046         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66047         * sysdeps/s390/s390-32/configure.in: ... here.
66048         * sysdeps/s390/s390-32/elf/configure: Delete file.
66049         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66050         * sysdeps/s390/s390-32/start.S: ... here.
66051
66052         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66053         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66054         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66055         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66056         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66057         * sysdeps/s390/s390-64/setjmp.S: ... here.
66058         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66059         * sysdeps/s390/s390-64/configure.in: ... here
66060         * sysdeps/s390/s390-64/elf/configure: Delete file.
66061         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66062         * sysdeps/s390/s390-64/start.S: ... here.
66063         * sysdeps/s390/s390-64/elf/configure: Delete.
66064
66065         * configure.in: Remove support for elf directories in sysdeps.
66066
66067         * configure: Regenerated.
66068         * sysdeps/i386/configure: Regenerated.
66069         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66070         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66071         * sysdeps/s390/s390-32/configure: Regenerated.
66072         * sysdeps/s390/s390-64/configure: Regenerated.
66073         * sysdeps/sh/configure: Regenerated.
66074         * sysdeps/sparc/configure: Regenerated.
66075         * sysdeps/x86_64/configure: Regenerated.
66076
66077 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66078
66079         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66080
66081         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66082         denormal result into account.
66083
66084 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66085
66086         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66087         Reported by Allan McRae <allan@archlinux.org>.
66088
66089 2012-03-23  Jeff Law  <law@redhat.com>
66090
66091         * nss/getnssent.c (__nss_getent): Fix typo.
66092
66093 2012-03-23  David S. Miller  <davem@davemloft.net>
66094
66095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66096
66097 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66098
66099         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66100         to pad to uint64_t for each field.
66101         (dl_tls_index): Replace unsigned long with uint64_t.
66102
66103 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66104         Paul Pluzhnikov  <ppluzhnikov@google.com>
66105
66106         [BZ #6528]
66107         * grp/Makefile (otherlibs): Don't set it.
66108         * inet/Makefile (otherlibs): Likewise.
66109         * login/Makefile (otherlibs): Likewise.
66110         * nscd/Makefile (otherlibs): Likewise.
66111         * posix/Makefile (otherlibs): Likewise.
66112         * pwd/Makefile (otherlibs): Likewise.
66113         * rt/Makefile (otherlibs): Likewise.
66114         * sunrpc/Makefile (otherlibs): Likewise.
66115         * nss/Makefile (otherlibs): Likewise.
66116         Add libnss_files to routines and static-only-routines.
66117         ($(objpfx)getent): Remove rule.
66118         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66119         static-only-routines.
66120
66121 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66122
66123         [BZ #13892]
66124         * math/s_cexp.c: Include <float.h>.
66125         (__cexp): Handle exp result overflowing not necessarily
66126         overflowing both real and imaginary parts of result.
66127         * math/s_cexpf.c: Likewise.
66128         * math/s_cexpl.c: Likewise.
66129         * math/libm-test.inc (cexp_test): Add more tests.
66130         * sysdeps/i386/fpu/libm-test-ulps: Update.
66131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66132
66133 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66134
66135         * include/link.h (ELFW): New macro.
66136         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66137         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66138
66139 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66140
66141         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66142         with uint64_t.
66143
66144 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66145
66146         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66147         declaration.
66148         (struct La_x32_retval): Likewise.
66149
66150 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66151
66152         * sysdeps/x86_64/preconfigure.in: New file.
66153         * sysdeps/x86_64/preconfigure: New generated file.
66154
66155 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66156
66157         [BZ #13824]
66158         * math/e_exp2l.c: Include <float.h>.
66159         (__ieee754_exp2l): Handle overflow and underflow cases
66160         separately.  Only pass fractional part of argument to
66161         __ieee754_expl.
66162         * math/libm-test.inc (exp2_test): Add more tests.
66163
66164         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66165         negating x to take absolute value.
66166         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66167         Likewise.
66168         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66169         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66170         Likewise.
66171         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66172         computing low part if x was negated.
66173         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66174
66175 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66176
66177         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66178         la_x32_gnu_pltexit.
66179         (pltexit): Cast int_retval to ptrdiff_t.
66180         * elf/tst-auditmod3b.c: Likewise.
66181         * elf/tst-auditmod4b.c: Likewise.
66182         * elf/tst-auditmod5b.c: Likewise.
66183         * elf/tst-auditmod6b.c: Likewise.
66184         * elf/tst-auditmod6c.c: Likewise.
66185         * elf/tst-auditmod7b.c: Likewise.
66186
66187         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66188         and x32_gnu_pltexit.
66189
66190         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66191         __ELF_NATIVE_CLASS.
66192         (La_x32_regs): New macro.
66193         (La_x32_retval): Likewise.
66194         (la_x32_gnu_pltenter): New function prototype.
66195         (la_x32_gnu_pltexit): Likewise.
66196
66197 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66198
66199         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66200         exponent.
66201
66202         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66203
66204         * configure.in (libc_cv_cc_nofma): Check for option to disable
66205         generation of FMA instructions.
66206         * configure: Regenerate.
66207         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66208         * sysdeps/ieee754/dbl-64/Makefile: New file.
66209         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66210         Remove brandred-fma4.
66211         (CFLAGS-brandred-fma4.c): Remove.
66212         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66213         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66214         define.
66215         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66216         define.
66217
66218 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66219
66220         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66221         LLONG_MAX != LONG_MAX.
66222         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66223         (_fitoa_word): Likewise.
66224         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66225         LLONG_MAX != LONG_MAX.
66226         * stdio-common/_itowa.h: Include <_itoa.h>.
66227         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66228         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66229         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66230         only if not defined.
66231         (_ITOA_WORD_TYPE): Likewise.
66232         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66233         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66234
66235 2012-03-21  David S. Miller  <davem@davemloft.net>
66236
66237         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66238
66239 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66240
66241         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66242         of x86_64 when setting libc_cv_slibdir, libdir and
66243         libc_cv_localedir.
66244         * sysdeps/unix/sysv/linux/configure: Regenerated.
66245
66246 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66247
66248         * manual/lang.texi (Old Varargs): Remove section.
66249         (How Variadic): Update menu.
66250         (va_start): Do not mention varargs.h.
66251
66252 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66253             Joseph Myers  <joseph@codesourcery.com>
66254
66255         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66256         link test.
66257         * configure: Regenerated.
66258
66259 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66260
66261         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66262         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66263         conformtest.pl
66264
66265 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66266
66267         * NOTES: Remove.
66268         * Makefile (files-for-dist): Remove NOTES.
66269         (NOTES): Remove rule.
66270         * README: Don't refer to NOTES.
66271         * manual/creature.texi: Don't include macros.texi.
66272         * manual/intro.texi (creature.texi): Remove comment referring to
66273         NOTES.
66274
66275         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66276         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66277         * configure: Regenerated.
66278         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66279         LIBC_TRY_CC_OPTION.
66280         (libc_cv_as_i686): Likewise.
66281         (libc_cv_cc_avx): Likewise.
66282         (libc_cv_cc_sse2avx): Likewise.
66283         (libc_cv_cc_fma4): Likewise.
66284         (libc_cv_cc_novzeroupper): Likewise.
66285         * sysdeps/i386/configure: Regenerated.
66286
66287         [BZ #13883]
66288         * sysdeps/i386/fpu/s_cexp.S: Remove.
66289         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66290         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66291         * math/libm-test.inc (cexp_test): Add more tests.
66292         * sysdeps/i386/fpu/libm-test-ulps: Update.
66293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66294
66295 2012-03-21  Allan McRae  <allan@archlinux.org>
66296
66297         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66298
66299 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66300
66301         [BZ #13871]
66302         * math/w_exp2.c: Do not include <float.h>.
66303         (o_threshold, u_threshold): Remove.
66304         (__exp2): Calculate result before checking finiteness and calling
66305         __kernel_standard.
66306         * math/w_exp2f.c: Likewise.
66307         * math/w_exp2l.c: Likewise.
66308         * math/libm-test.inc (exp2_test): Require overflow exception for
66309         1e6 input.
66310
66311         [BZ #3866]
66312         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66313         range of signed 64-bit integers before using fistpll.  Remove
66314         checks for whether integers fit in mantissa bits.
66315         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66316         the range of signed 32-bit integers before using fistpl.  Remove
66317         checks for whether integers fit in mantissa bits.
66318         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66319         (__ieee754_powl): Test for y outside the range of signed 64-bit
66320         integers before using fistpll.  Reduce 64-bit values to 63-bit
66321         ones as needed.
66322         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66323         divide-by-zero is raised for zero to large negative powers.
66324         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66325         (__ieee754_powl): Test for y outside the range of signed 64-bit
66326         integers before using fistpll.  Reduce 64-bit values to 63-bit
66327         ones as needed.
66328         * math/libm-test.inc (pow_test): Add more tests.
66329
66330 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66331
66332         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66333         <stdio-common/_itoa.h>.
66334         * debug/segfault.c: Likewise.
66335         * elf/dl-cache.c: Likewise.
66336         * elf/dl-minimal.c: Likewise.
66337         * elf/dl-misc.c: Likewise.
66338         * elf/dl-sysdep.c: Likewise.
66339         * elf/dl-version.c: Likewise.
66340         * elf/rtld.c: Likewise.
66341         * hurd/hurdsock.c: Likewise.
66342         * hurd/lookup-retry.c: Likewise.
66343         * malloc/malloc.c: Likewise.
66344         * malloc/mtrace.c: Likewise.
66345         * nscd/nscd_getgr_r.c: Likewise.
66346         * nscd/nscd_getpw_r.c: Likewise.
66347         * nscd/nscd_getserv_r.c: Likewise.
66348         * posix/getopt_init.c: Likewise.
66349         * posix/wordexp.c: Likewise.
66350         * stdio-common/_itoa.c: Likewise.
66351         * stdio-common/printf_fphex.c: Likewise.
66352         * stdio-common/vfprintf.c: Likewise.
66353         * string/_strerror.c: Likewise.
66354         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66355         * sysdeps/i386/i686/hp-timing.h: Likewise.
66356         * sysdeps/mach/_strerror.c: Likewise.
66357         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66358         * sysdeps/mach/hurd/sethostid.c: Likewise.
66359         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66360         * sysdeps/mach/xpg-strerror.c: Likewise.
66361         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66362         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66363         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66364         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66365         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66366         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66367         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66368         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66369         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66370         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66371         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66372         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66373         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66374         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66375         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66376         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66377         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66378         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66379         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66380         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66381         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66382
66383         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66384
66385         * stdio-common/_itoa.h: Moved to ...
66386         * sysdeps/generic/_itoa.h: Here.
66387
66388         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66389
66390         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66391         instead of "_itoa.h" and "_itowa.h".
66392         * stdio-common/vfprintf.: Likewise.
66393
66394 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66395
66396         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66397         <bits/wordsize.h>.
66398         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66399         (__signbit): Likwise.
66400         (llrintf): Likwise.
66401         (llrint): Likwise.
66402
66403 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66404
66405         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66406         __WORDSIZE != 64.
66407
66408 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66409
66410         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66411         OVERFLOW_EXCEPTION_OK.
66412         * math/libm-test.inc ("Philosophy"): Update comment about
66413         exception testing.
66414         (OVERFLOW_EXCEPTION): Define.
66415         (OVERFLOW_EXCEPTION_OK): Likewise.
66416         (INVALID_EXCEPTION_OK): Renumber.
66417         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66418         (IGNORE_ZERO_INF_SIGN): Likewise.
66419         (test_exceptions): Handle FE_OVERFLOW.
66420         (exp10_test): Expect overflow exceptions.
66421         (exp2_test): Likewise.
66422         (expm1_test): Likewise.
66423         (nextafter_test): Likewise.
66424         (pow_test): Likewise.
66425         (scalbn_test): Likewise.
66426         (scalbln_test): Likewise.
66427
66428 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66429
66430         * sysdeps/x86_64/bits/atomic.h
66431         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66432         64bit integer.
66433         (atomic_exchange_acq): Likewise.
66434         (__arch_exchange_and_add_body): Likewise.
66435         (__arch_add_body): Likewise.
66436         (atomic_add_negative): Likewise.
66437         (atomic_add_zero): Likewise.
66438
66439 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66440
66441         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66442         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66443
66444 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66445
66446         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66447         Check __x86_64__ instead of __WORDSIZE.
66448
66449 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66450
66451         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66452
66453 2012-03-19  David S. Miller  <davem@davemloft.net>
66454
66455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66456
66457         * sysdeps/sparc/fpu/fenv_private.h: New file.
66458         * sysdeps/sparc/fpu/math_private.h: Use it.
66459         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66460         Remove.
66461         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66462         (libc_feholdexcept_setroundl): Remove.
66463         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66464         Remove.
66465         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66466         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66467
66468 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66469
66470         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66471         int64_t instead of long int.
66472         (INSERT_WORDS64): Likwise.
66473
66474 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66475
66476         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66477         _Unwind_GetCFA return to _Unwind_Ptr first.
66478
66479 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66480
66481         [BZ #13629]
66482         * math/s_clog.c: Include <float.h>.
66483         (__clog): Scale large or subnormal inputs.
66484         * math/s_clogf.c: Likewise.
66485         * math/s_clogl.c: Likewise.
66486         * math/s_clog10.c: Include <float.h>.
66487         (M_LOG10_2): Define.
66488         (__clog10): Scale large or subnormal inputs.
66489         * math/s_clog10f.c: Likewise.
66490         * math/s_clog10l.c: Likewise.
66491         * math/libm-test.inc (clog_test): Add more tests.
66492         (clog10_test): Likewise.
66493         * sysdeps/i386/fpu/libm-test-ulps: Update.
66494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66495
66496         [BZ #11451]
66497         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66498         x and y.
66499         * math/libm-test.inc (atan2_test): Add another test.
66500
66501         * Makerules (common-objdir-compile): Remove.
66502         * sysdeps/unix/Makefile (config-generated): Do not add
66503         $(unix-generated) to variable.
66504         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66505         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66506         Remove rule.
66507         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66508         Likewise.
66509         [generic bits/local_lim.h] (before-compile): Do not append to
66510         variable.
66511         [generic bits/local_lim.h] (common-generated): Likewise.
66512         [generic sys/param.h] (before-compile): Do not append to variable.
66513         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66514         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66515         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66516         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66517         include.
66518         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66519         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66520         [generic sys/param.h] ($(addprefix
66521         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66522         [generic sys/param.h] (common-generated): Do not append to
66523         variable.
66524         [generic sys/param.h] (sysdep_headers): Likewise.
66525         [generic bits/errno.h] (before-compile): Do not append to
66526         variable.
66527         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66528         rule.
66529         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66530         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66531         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66532         [generic bits/errno.h] (common-generated): Do not append to
66533         variable.
66534         [generic bits/ioctls.h] (before-compile): Do not append to
66535         variable.
66536         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66537         rule.
66538         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66539         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66540         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66541         rule.
66542         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66543         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66544         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66545         [generic bits/ioctls.h] (common-generated): Do not append to
66546         variable.
66547         [generic sys/syscall.h] (syscall.h): Remove variable.
66548         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66549         rule.
66550         [generic sys/syscall.h] (before-compile): Do not append to
66551         variable.
66552         [generic sys/syscall.h] (common-generated): Likewise.
66553         * sysdeps/unix/errnos-tmpl.c: Remove file.
66554         * sysdeps/unix/errnos.awk: Likewise.
66555         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66556         * sysdeps/unix/ioctls.awk: Likewise.
66557         * sysdeps/unix/mk-local_lim.c: Likewise.
66558         * sysdeps/unix/snarf-ioctls: Likewise.
66559
66560 2012-03-19  Richard Henderson  <rth@twiddle.net>
66561
66562         * sysdeps/i386/fpu/fenv_private.h: New file.
66563         * sysdeps/i386/fpu/math_private.h: Use it.
66564         (math_opt_barrier, math_force_eval): Remove.
66565         (libc_feholdexcept_setround_53bit): Remove.
66566         (libc_feupdateenv_53bit): Remove.
66567         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66568         (math_opt_barrier, math_force_eval): Remove.
66569         (libc_feholdexcept): Remove.
66570         (libc_feholdexcept_setround): Remove.
66571         (libc_fetestexcept, libc_fesetenv): Remove.
66572         (libc_feupdateenv_test): Remove.
66573         (libc_feupdateenv, libc_feholdsetround): Remove.
66574         (libc_feresetround): Remove.
66575
66576         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66577         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66578
66579         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66580         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66581         (libc_feupdateenv_testl): New.
66582         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66583         (libc_feupdateenv_testf): New.
66584         (libc_feupdateenv): Use libc_feupdateenv_test.
66585         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66586         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66587
66588         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66589         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66590         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66591         (libc_feresetround_noex): New.
66592         (libc_feresetround_noexf): New.
66593         (libc_feresetround_noexl): New.
66594         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66595         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66596         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66597         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66598         SET_RESTORE_ROUND.
66599         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66600         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66601         (__cos): Likewise.
66602         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66603         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66604         SET_RESTORE_ROUND_NOEX.
66605         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66606         SET_RESTORE_ROUND_NOEXF.
66607         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66608         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66609         (libc_feholdsetroundf): New.
66610         (libc_feresetround, libc_feresetroundf): New.
66611
66612         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66613         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66614         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66615
66616         * sysdeps/generic/math_private.h: Include <fenv.h>.
66617         (default_libc_feholdexcept): New.
66618         (default_libc_feholdexcept_setround): New.
66619         (default_libc_fesetenv, default_libc_feupdateenv): New.
66620         (libc_feholdexcept): Only define if undefined.
66621         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66622         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66623         (libc_feholdexcept_setroundl): Likewise.
66624         (libc_feholdexcept_setround_53bit): Likewise.
66625         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66626         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66627         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66628         (libc_feupdateenv_53bit): Likewise.
66629         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66630         (libc_feholdexcept): Convert from macro to inline function.
66631         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66632         (libc_fesetenv, libc_feupdateenv): Likewise.
66633
66634         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66635         not previously defined.
66636         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66637         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66638         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66639         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66640         * sysdeps/ieee754/flt-32/math_private.h: New file.
66641         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66642         math_private.h below SET_FLOAT_WORD.
66643         (__isnan, __isinf_ns, __finite): Remove.
66644         (__isnanf, __isinf_nsf, __finitef): Remove.
66645
66646 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66647
66648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66649
66650 2012-03-17  David S. Miller  <davem@davemloft.net>
66651
66652         [BZ #6471]
66653         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66654         for 2.16.
66655
66656 2012-03-16  David S. Miller  <davem@davemloft.net>
66657
66658         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66659         warnings.
66660
66661         [BZ #6471]
66662         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66663         properly.
66664         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66665         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66666         sysdep_routines when subdir is sysvipc.
66667         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66668         __getshmlba helper.
66669
66670         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66671
66672 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66673
66674         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66675         [__LP64__].
66676
66677 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66678
66679         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66680         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66681         (__lround): Renamed to ...
66682         (__llround): This.  Replace long int with long long int.
66683         Define lround functions as aliases of llround functions.
66684         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66685
66686 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66687
66688         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66689         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66690         adresses to uintptr_t.  Replace "long int" and "unsigned long
66691         int" with "greg_t" on va_arg.
66692
66693 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66694
66695         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66696         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66697
66698         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66699         Move e_machine check before EI_CLASS check.  Handle x32
66700         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66701         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66702         SKIP_EM_IA_64 and include
66703         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66704
66705         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66706         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66707         (add_system_dir): New macro.
66708
66709         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66710         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66711
66712 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66713
66714         [BZ #2551]
66715         [BZ #2552]
66716         [BZ #2553]
66717         [BZ #2554]
66718         [BZ #2562]
66719         [BZ #2563]
66720         [BZ #2565]
66721         [BZ #2566]
66722         [BZ #2576]
66723         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66724         (y0): Likewise.
66725         * math/w_j0f.c (j0f): Likewise.
66726         (y0f): Likewise.
66727         * math/w_j0l.c (__j0l): Likewise.
66728         (__y0l): Likewise.
66729         * math/w_j1.c (j1): Likewise.
66730         (y1): Likewise.
66731         * math/w_j1f.c (j1f): Likewise.
66732         (y1f): Likewise.
66733         * math/w_j1l.c (__j1l): Likewise.
66734         (__y1l): Likewise.
66735         * math/w_jn.c (jn): Likewise.
66736         (yn): Likewise.
66737         * math/w_jnf.c (jnf): Likewise.
66738         (ynf): Likewise.
66739         * math/w_jnl.c (__jnl): Likewise.
66740         (__ynl): Likewise.
66741         * math/libm-test.inc (j0_test): Add more tests.
66742         (j1_test): Likewise.
66743         (jn_test): Likewise.  Add trailing semicolon to existing test.
66744         (y0_test): Likewise.
66745         (y1_test): Likewise.
66746         * sysdeps/i386/fpu/libm-test-ulps: Update.
66747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66748
66749         [BZ #13851]
66750         [BZ #13854]
66751         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66752         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66753         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66754         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66755         (__tanl): Set errno for infinite argument.
66756         * sysdeps/i386/fpu/mptan.c: Remove.
66757         * sysdeps/i386/fpu/s_tan.S: Likewise.
66758         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66759         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66760         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66761         * math/libm-test.inc (tan_test): Add more tests and enable more
66762         tests for double and long double.
66763         * sysdeps/i386/fpu/libm-test-ulps: Update.
66764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66765
66766 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66767
66768         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66769         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66770
66771 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66772
66773         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66774         * configure.in: Use it for both main tree and add-ons.
66775         * configure: Regenerated.
66776
66777 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66778
66779         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66780
66781 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66782
66783         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66784         in comment.
66785
66786         [BZ #13851]
66787         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66788         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66789         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66790         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66791         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66792         infinite argument.
66793         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66794         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66795         != 0 for prec == 2.
66796         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66797         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66798         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66799         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66800         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66801         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66802         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66803         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66804         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66805         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66806         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66807         * math/libm-test.inc (cos_test): Add more tests and enable more
66808         tests for long double.
66809         (sin_test): Likewise.
66810         (sincos_test): Likewise.
66811         * sysdeps/i386/fpu/libm-test-ulps: Update.
66812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66813
66814 2012-03-16  David S. Miller  <davem@davemloft.net>
66815
66816         * sysdeps/sparc/fpu/math_private.h: New file.
66817
66818 2012-03-15  David S. Miller  <davem@davemloft.net>
66819
66820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66821         file.
66822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66824         file.
66825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66826         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66827         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66828         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66829         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66830         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66831         sysdep routines.
66832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66833
66834         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66835         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66836
66837         * sysdeps/sparc/sparc-ifunc.h: New file.
66838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66839         sparc-ifunc.h
66840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66842         Likewise.
66843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66844         Likewise.
66845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66849         Likewise.
66850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66855         Likewise.
66856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66857         Likewise.
66858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66862         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66863         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66864         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66865         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66866         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66867         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66868         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66869         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66870         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66871         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66872         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66873         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66874         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66875         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66876         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66877         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66878         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66879         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66880         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66881         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66882
66883 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66884
66885         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66886         scaling.
66887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66888
66889 2012-03-15  Andreas Jaeger  <aj@suse.de>
66890
66891         [BZ #13852]
66892         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66893         ieee754/flt-32 implementation for sin, cos and sincos.
66894         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66895         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66896         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66897         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66898         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66899         ieee754/flt-32 implementation for tan.
66900
66901         * math/libm-test.inc (cos_test): Enable some large input tests for
66902         float as well
66903         (sin_test): Likewise.
66904         (sincos_test): Likewise.
66905         (tan_test): Add tests for large input.
66906
66907         * sysdeps/i386/fpu/libm-test-ulps: Update.
66908
66909 2012-03-15  Andreas Jaeger  <aj@suse.de>
66910
66911         [BZ #13658]
66912         * math/libm-test.inc (cos_test): Add more test cases.
66913         (sin_test): Likewise.
66914         (sincos_test): Likewise.
66915
66916 2012-03-15  Andreas Jaeger  <aj@suse.de>
66917
66918         [BZ #13837]
66919         * math/libm-test.inc (cos_test): Add a test case for large input
66920         value.
66921         (sin_test): Likewise.
66922         (sincos_test): Likewise.
66923
66924 2012-03-15  Andreas Jaeger  <aj@suse.de>
66925             Joseph Myers  <joseph@codesourcery.com>
66926
66927         [BZ #13658]
66928         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66929         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66930         * sysdeps/i386/fpu/branred.c: Likewise.
66931         * sysdeps/i386/fpu/dosincos.c: Likewise.
66932         * sysdeps/i386/fpu/mpa.c: Likewise.
66933         * sysdeps/i386/fpu/s_cos.S: Likewise.
66934         * sysdeps/i386/fpu/s_sin.S: Likewise.
66935         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66936         * sysdeps/i386/fpu/sincos32.c: Likewise.
66937
66938         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66939         Define.
66940         (libc_feupdateenv_53bit): Define.
66941         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66942         Define.
66943         (libc_feupdateenv_53bit): Define.
66944
66945         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66946         53 bit (without extend i386 double precision).
66947
66948         * math/libm-test.inc (sincos_test): Add tests for large input.
66949         (sin): Likewise.
66950         (cos): Likewise.
66951
66952         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66953
66954 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66955
66956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66957
66958 2012-03-15  David S. Miller  <davem@davemloft.net>
66959
66960         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66961         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66962         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66963         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66968         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66969         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66970         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66971         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66972         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66973         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66974         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66976         file.
66977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66979         file.
66980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66982         file.
66983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66985         file.
66986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66987         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66988         fmin/fmax sysdep routines.
66989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66990
66991 2012-03-14  David S. Miller  <davem@davemloft.net>
66992
66993         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66994         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66995         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66996         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66997         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66998         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66999         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67000         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67001         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67002         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67003         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67004         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67005         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67006         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67007         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67008         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67009         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67010         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67011         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67012         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67013         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67014         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67015         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67016         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67017         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67018         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67019         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67020         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67021         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67022         routines.
67023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67024         file.
67025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67027         file.
67028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67030         file.
67031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67033         file.
67034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67036         file.
67037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67039         file.
67040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67041         file.
67042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67043         file.
67044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67045         file.
67046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67047         New file.
67048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67049         file.
67050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67051         file.
67052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67054         file.
67055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67057         file.
67058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67060         file.
67061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67063         VIS3 routines.
67064
67065         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67066         New file.
67067
67068         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67069
67070         * sysdeps/sparc/configure.in: New file.
67071         * sysdeps/sparc/configure: Generate.
67072         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67073         * configure: Regenerate.
67074         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67075         * config.make.in (have-as-vis3): New.
67076         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67077         available use -Av9d instead of -Av9a.
67078         * sysdeps/sparc/sparc64/Makefile: Likewise.
67079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67081         New file.
67082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67083         file.
67084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67085         New file.
67086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67087         file.
67088         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67089         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67090         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67091         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67092         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67093
67094         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67095         fzeros/fnegs to load 0x80000000 into a float register instead of
67096         using the stack.
67097         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67098
67099 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67100
67101         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67102         bits/syscall.h.
67103         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67104         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67105         ($(inst_includedir)/bits/syscall.h): Remove rule.
67106         ($(objpfx)bits/syscall.d): Include instead of
67107         $(objpfx)syscall-list.d.
67108         (generated): Change syscall-list.h and syscall-list.d to
67109         bits/syscall.h and bits/syscall.d.
67110
67111 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67112
67113         [BZ #13846]
67114         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67115
67116 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67117
67118         [BZ #13841]
67119         * math/s_csqrt.c: Include <float.h>.
67120         (__csqrt): Scale large or subnormal inputs.
67121         * math/s_csqrtf.c: Likewise.
67122         * math/s_csqrtl.c: Likewise.
67123         * math/libm-test.inc (csqrt_test): Add more tests.
67124         * sysdeps/i386/fpu/libm-test-ulps: Update.
67125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67126
67127         [BZ #13840]
67128         * math/libm-test.inc (hypot_test): Add more tests.
67129
67130 2012-03-13  David S. Miller  <davem@davemloft.net>
67131
67132         [BZ #13840]
67133         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67134         double-precision for the calculation instead of scaling.
67135
67136 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67137
67138         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67139         manipulate bits before adding and subtracting TWO52[sx].
67140         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67141         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67142         Likewise.
67143         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67144
67145 2012-03-13  David S. Miller  <davem@davemloft.net>
67146
67147         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67148         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67149         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67150         rtld-global-offsets.h
67151         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67152
67153         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67154         large parameters.
67155
67156         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67157
67158         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67159         'err' in the ifdef scope in which it is actually used.
67160
67161         * nss/nss_db/db-init.c: Include string.h
67162
67163 2012-03-12  David S. Miller  <davem@davemloft.net>
67164
67165         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67166         masking out of the most significant byte of random value used.
67167         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67168         Fix coding style in previous change.
67169
67170         * sysdeps/unix/sysv/linux/kernel-features.h
67171         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67172         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67173         expression.
67174         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67175         later.
67176
67177 2012-03-11  David S. Miller  <davem@davemloft.net>
67178
67179         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67180         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67181         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67182         for 'resultvar' otherwise things get truncated on 64-bit.
67183
67184         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67185         Fix masking out of the most significant byte of random value used.
67186
67187         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67188
67189 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67190
67191         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67192
67193 2012-03-09  David S. Miller  <davem@davemloft.net>
67194
67195         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67196         variables with appropriate CPP guards.
67197         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67198         from the frame pointer, not the stack pointer.  Correct layout
67199         comments.  Fix test on resulting framesize and the management of
67200         the outregs buffer for pltexit.  Preserve floating point return
67201         values across _dl_call_pltexit call.
67202         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67203         framesize and the management of the outregs buffer for pltexit.
67204         Preserve floating point return values across _dl_call_pltexit
67205         call.
67206         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67207         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67208         (la_sparc64_gnu_pltexit): New functions.
67209         (print_exit): Fix format string for return register value.
67210
67211 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67212
67213         * sunrpc/Makefile (others): Add rpcgen.
67214         ($(objpfx)rpcgen): Remove special build rule and dependency on
67215         libc.
67216         * sunrpc/rpcgen.c: New file.
67217
67218 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         [BZ #13673]
67221         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67222         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67223         * sysdeps/i386/crti.S: Likewise.
67224         * sysdeps/i386/crtn.S: Likewise.
67225         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67226         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67227         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67228         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67229         * sysdeps/sh/crti.S: Likewise.
67230         * sysdeps/sh/crtn.S: Likewise.
67231         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67232
67233         [BZ #13673]
67234         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67235         with URL.
67236         * locale/programs/locfile-kw.gperf: Likewise.
67237         * locale/programs/charmap-kw.h: Regenerated.
67238         * locale/programs/locfile-kw.h: Likewise.
67239
67240         [BZ #13673]
67241         * intl/plural.y: Replace FSF snail mail address with URL.
67242         * intl/plural.c: Regenerated.
67243
67244 2012-03-09  Richard Henderson  <rth@twiddle.net>
67245
67246         * include/math_private.h: Remove file.
67247         * math/math_private.h: Move file ...
67248         * sysdeps/generic/math_private.h: ... here.
67249
67250         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67251         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67252         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67253
67254         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67255         and <math_private.h>.
67256         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67257         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67258         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67259         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67260         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67261         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67262         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67263         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67264         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67265         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67266         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67267         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67268         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67269         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67270         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67271         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67272         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67273         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67274         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67275         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67276         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67277         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67278         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67279         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67280         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67281         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67282         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67283         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67284         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67285         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67286         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67287         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67288         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67289         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67290         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67291         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67292         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67293         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67294         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67295         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67296         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67297         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67298         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67299         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67300         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67301         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67302         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67303         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67304         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67305         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67306         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67307         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67308         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67309         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67310         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67311         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67312         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67313         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67314         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67315         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67316         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67317         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67318         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67319         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67320         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67321         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67322         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67323         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67324         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67325         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67326         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67327         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67328         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67329         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67330         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67331         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67332         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67333         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67334         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67335         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67336         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67337         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67338         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67339         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67340         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67341         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67342         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67343         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67344         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67345         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67346         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67347         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67348         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67349         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67350         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67351         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67352         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67353         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67354         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67355         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67356         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67357         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67358         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67359         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67360         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67361         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67362         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67363         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67364         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67365         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67366         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67367         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67368         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67369         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67370         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67371         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67372         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67373         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67374         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67375         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67376         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67377         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67378         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67379         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67380         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67381         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67382         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67383         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67384         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67385         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67386         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67387         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67388         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67389         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67390         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67391         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67392         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67393         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67394         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67395         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67396         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67397         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67398         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67399         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67400         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67401         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67402         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67403         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67404         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67405         * sysdeps/ieee754/k_standard.c: Likewise.
67406         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67407         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67408         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67409         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67410         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67411         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67412         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67413         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67414         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67415         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67416         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67417         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67418         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67419         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67420         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67421         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67422         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67423         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67424         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67425         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67426         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67427         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67428         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67429         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67430         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67431         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67432         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67433         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67434         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67435         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67436         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67437         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67438         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67439         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67440         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67441         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67442         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67443         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67444         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67445         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67446         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67447         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67448         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67449         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67450         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67451         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67452         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67453         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67454         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67455         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67456         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67457         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67458         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67459         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67460         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67461         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67462         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67463         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67464         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67465         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67466         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67467         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67468         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67469         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67470         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67471         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67472         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67473         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67474         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67475         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67476         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67477         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67478         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67479         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67480         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67481         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67482         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67483         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67484         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67485         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67486         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67487         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67488         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67489         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67490         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67491         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67492         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67493         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67494         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67495         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67496         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67497         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67498         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67499         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67500         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67501         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67502         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67503         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67504         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67505         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67506         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67507         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67508         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67509         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67510         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67511         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67512         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67513         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67514         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67515         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67516         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67517         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67518         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67519         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67520         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67521         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67522         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67523         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67524         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67525         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67526         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67527         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67528         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67529         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67530         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67531         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67532         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67533         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67534         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67535         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67536         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67537         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67538         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67539         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67540         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67541         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67542         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67543         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67544         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67545         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67546         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67547         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67548         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67549         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67550         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67551         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67552         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67553         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67554         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67555         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67556         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67557         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67558         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67559         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67560         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67561         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67562         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67563         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67564         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67565         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67566         * sysdeps/ieee754/s_lib_version.c: Likewise.
67567         * sysdeps/ieee754/s_matherr.c: Likewise.
67568         * sysdeps/ieee754/s_signgam.c: Likewise.
67569         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67570         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67571         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67572         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67573         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67574         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67575         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67576         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67577         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67578         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67579         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67580         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67581         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67582         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67583         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67584         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67585         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67586         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67587         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67588         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67589         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67590
67591 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67592
67593         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67594         * sunrpc/rpc_main.c: Likewise.
67595         * sunrpc/rpc_svcout.c: Likewise.
67596
67597 2012-03-09  David S. Miller  <davem@davemloft.net>
67598
67599         * include/math_private.h: New file.
67600
67601 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67602
67603         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67604         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67605         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67606         from <bits/socket_type.h>.
67607         (enum __socket_type): Don't define here.
67608         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67609         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67610         bits/socket_type.h.
67611
67612         [BZ #13566]
67613         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67614         checking __USE_GNU.
67615
67616         * Makerules ($(inst_includedir)/%.h): New rule.
67617         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67618         (install-others): Remove variable setting.
67619         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67620
67621 2012-03-08  Richard Henderson  <rth@twiddle.net>
67622
67623         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67624         from macro to inline function; merge with the
67625         !__LIBC_INTERNAL_MATH_INLINES version.
67626         (__ieee754_sqrtf): Likewise.
67627
67628         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67629         to inline function.
67630         (__rintf, __floor, __floorf): Likewise.
67631
67632         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67633         macro to inline function.
67634         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67635
67636         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67637         not <math/math_private.h>.
67638
67639 2012-03-08  David S. Miller  <davem@davemloft.net>
67640
67641         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67642         copyright year.
67643         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67644
67645 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67646
67647         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67648         normalization.
67649         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67650         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67651
67652 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67653
67654         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67655         be defined individually, they must be defined as a block.  Define
67656         S for printing a string instead of hidint the different by using a
67657         macro for adding the 'l'.
67658         * stdio-common/tst-fphex-wide.c: Adjust.
67659
67660 2012-03-07  Marek Polacek  <polacek@redhat.com>
67661
67662         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67663
67664 2012-03-08  Marek Polacek  <polacek@redhat.com>
67665
67666         [BZ #13806]
67667         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67668         * stdio-common/tst-fphex.c: Define a few macros to make the
67669         test reusable.  Use them.
67670         * stdio-common/tst-fphex-wide.c: New file.
67671
67672 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67673
67674         [BZ #6911]
67675         * manual/macros.texi (gnusystems): New macro.
67676         (nongnusystems): Likewise.
67677         (gnulinuxhurdsystems): Likewise.
67678         (gnuhurdsystems): Likewise..
67679         (gnulinuxsystems): Likewise.
67680         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67681         variants of the GNU system, not "GNU system".
67682         * manual/conf.texi: Likewise.
67683         * manual/errno.texi: Likewise.  Update example of errno macro
67684         expansion.
67685         * manual/filesys.texi: Likewise.
67686         (getumask): Document as specific to GNU/Hurd.
67687         * manual/install.texi: Likewise.  Reword some references to
67688         GNU/Linux.
67689         * manual/intro.texi: Likewise.
67690         * manual/io.texi: Likewise.
67691         (File Name Portability): Detail which constraints are inapplicable
67692         to all GNU systems and which are only inapplicable to GNU/Hurd.
67693         * manual/job.texi: Likewise.
67694         * manual/llio.texi: Likewise.
67695         (O_NOCTTY): Document as present on GNU/Linux.
67696         * manual/maint.texi: Likewise.
67697         * manual/memory.texi: Likewise.
67698         * manual/pattern.texi: Likewise.
67699         * manual/pipe.texi: Likewise.
67700         * manual/process.texi: Likewise.
67701         * manual/resource.texi: Likewise.
67702         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67703         child on GNU/Hurd.
67704         * manual/setjmp.texi: Likewise.
67705         * manual/signal.texi: Likewise.
67706         * manual/startup.texi: Likewise.
67707         * manual/stdio.texi: Likewise.
67708         * manual/terminal.texi: Likewise.
67709         (ONLCR): Document as POSIX.
67710         (OXTABS): Document availability on GNU/Linux as XTABS.
67711         (ONOEOT): Document availability separately from other bits.
67712         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67713         * manual/time.texi: Likewise.
67714         * manual/users.texi: Likewise.
67715         * INSTALL: Regenerated.
67716         * sysdeps/gnu/errlist.c: Regenerated.
67717
67718         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67719         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67720         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67721         puts.
67722         * configure: Regenerated.
67723
67724 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67725
67726         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67727         default includes instead of AC_HEADER_CHECK.
67728         * sysdeps/i386/configure: Regenerated.
67729
67730         [BZ #10716]
67731         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67732         * math/s_cacoshf.c (__cacoshf): Likewise.
67733         * math/s_cacoshl.c (__cacoshl): Likewise.
67734         * math/s_casinh.c (__casinh): Set signs of result from argument.
67735         * math/s_casinhf.c (__casinhf): Likewise.
67736         * math/s_casinhl.c (__casinhl): Likewise.
67737         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67738         (casinh_test): Add more tests.
67739         * sysdeps/i386/fpu/libm-test-ulps: Update.
67740         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67741
67742 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67743
67744         * po/zh_TW.po: Update from translation team.
67745
67746         * login/Makefile (distribute): Remove variable.
67747         * catgets/Makefile: Likewise.
67748         * mach/Makefile: Likewise.
67749         * malloc/Makefile: Likewise.
67750         * misc/Makefile: Likewise.
67751         * iconv/Makefile: Likewise.
67752         * nscd/Makefile: Likewise.
67753         * hurd/Makefile: Likewise.
67754         * manual/Makefile: Likewise.
67755         * locale/Makefile: Likewise.
67756         * intl/Makefile: Likewise.
67757         * conform/Makefile: Likewise.
67758         * nss/Makefile: Likewise.
67759         * time/Makefile: Likewise.
67760         * soft-fp/Makefile: Likewise.
67761         * dirent/Makefile: Likewise.
67762         * gmon/Makefile: Likewise.
67763         * po/Makefile: Likewise.
67764         * rt/Makefile: Likewise.
67765         * socket/Makefile: Likewise.
67766         * math/Makefile: Likewise.
67767         * signal/Makefile: Likewise.
67768         * debug/Makefile: Likewise.
67769         * elf/Makefile: Likewise.
67770         * timezone/Makefile: Likewise.
67771         * stdlib/Makefile: Likewise.
67772         * iconvdata/Makefile: Likewise.
67773         * sunrpc/Makefile: Likewise.
67774         * io/Makefile: Likewise.
67775         * argp/Makefile: Likewise.
67776         * inet/Makefile: Likewise.
67777         * hesiod/Makefile: Likewise.
67778         * grp/Makefile: Likewise.
67779         * csu/Makefile: Likewise.
67780         * wctype/Makefile: Likewise.
67781         * crypt/Makefile: Likewise.
67782         * libio/Makefile: Likewise.
67783         * string/Makefile: Likewise.
67784         * nis/Makefile: Likewise.
67785         * resolv/Makefile: Likewise.
67786         * stdio-common/Makefile: Likewise.
67787         * wcsmbs/Makefile: Likewise.
67788         * dlfcn/Makefile: Likewise.
67789         * posix/Makefile: Likewise.
67790
67791         [BZ #6959]
67792         * timezone/Makefile: Don't install timezone files, just the programs
67793         and scripts.
67794
67795 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67796
67797         * nss/databases.def: Add missing gshadow entry.
67798
67799         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67800
67801 2012-03-06  Marek Polacek  <polacek@redhat.com>
67802
67803         [BZ #13726]
67804         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67805         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67806         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67807         * stdio-common/tst-long-dbl-fphex.c: New file.
67808
67809 2012-03-06  David S. Miller  <davem@davemloft.net>
67810
67811         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67812         (set_obp_int): New function.
67813         (get_obp_int): New function.
67814         (__get_clockfreq_via_dev_openprom): Likewise.
67815         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67816         Avoid unused variable warnings on 'val' and use builtin_expect.
67817         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67818         __builtin_expect.
67819         (INLINE_CLONE_SYSCALL): Likewise.
67820
67821 2012-03-05  David S. Miller  <davem@davemloft.net>
67822
67823         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67824
67825 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67826
67827         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67828
67829         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67830         only for |x| >= 40.
67831         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67832
67833 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67834
67835         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67836         Replace gettimeofday with __vdso_gettimeofday.
67837
67838         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67839         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67840         __vdso_clock_gettime and __vdso_getcpu.
67841
67842         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67843         time with __vdso_time.
67844
67845 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67846
67847         * manual/lang.texi (size_t): Note types to which size_t may be
67848         equivalent with the GNU C Library, but do not describe when
67849         differences between them are significant.
67850
67851 2012-03-05  Andreas Jaeger  <aj@suse.de>
67852
67853         * sysdeps/i386/fpu/libm-test-ulps: Update.
67854
67855 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67856
67857         [BZ #3976]
67858         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67859         (__ieee754_pow): Save and restore rounding mode and use
67860         round-to-nearest for main computations.
67861         * math/libm-test.inc (pow_test_tonearest): New function.
67862         (pow_test_towardzero): Likewise.
67863         (pow_test_downward): Likewise.
67864         (pow_test_upward): Likewise.
67865         (main): Call the new functions.
67866         * sysdeps/i386/fpu/libm-test-ulps: Update.
67867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67868
67869         [BZ #3976]
67870         * math/libm-test.inc (cosh_test_tonearest): New function.
67871         (cosh_test_towardzero): Likewise.
67872         (cosh_test_downward): Likewise.
67873         (cosh_test_upward): Likewise.
67874         (sinh_test_tonearest): Likewise.
67875         (sinh_test_towardzero): Likewise.
67876         (sinh_test_downward): Likewise.
67877         (sinh_test_upward): Likewise.
67878         (main): Call the new functions.
67879         * sysdeps/i386/fpu/libm-test-ulps: Update.
67880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67881
67882 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67883
67884         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67885         default stack guard is set in last bytes.
67886         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67887
67888 2012-03-05  Kees Cook  <keescook@chromium.org>
67889
67890         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67891
67892         [BZ #13656]
67893         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67894         possibly allocate from heap instead of stack.
67895         * stdio-common/bug-vfprintf-nargs.c: New file.
67896         * stdio-common/Makefile (tests): Add nargs overflow test.
67897
67898 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67899
67900         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67901
67902 2012-03-03  Marek Polacek  <polacek@redhat.com>
67903
67904         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67905         * math/math_private.h: Likewise.
67906         * stdlib/tst-strtod.c: Likewise.
67907         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67908         * sysdeps/x86_64/bits/atomic.h: Likewise.
67909
67910 2012-03-02  David S. Miller  <davem@davemloft.net>
67911
67912         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67914         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67915         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67916         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67917         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67918         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67919         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67920
67921 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67922
67923         [BZ #13792]
67924         * manual/examples/README: New file, says the example source files
67925         can be used under GPL>=2.
67926         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67927         line containing just "*/".
67928         * manual/examples/add.c: Add copyright header (GPL>=2).
67929         * manual/examples/argp-ex1.c: Likewise.
67930         * manual/examples/argp-ex2.c: Likewise.
67931         * manual/examples/argp-ex3.c: Likewise.
67932         * manual/examples/argp-ex4.c: Likewise.
67933         * manual/examples/atexit.c: Likewise.
67934         * manual/examples/db.c: Likewise.
67935         * manual/examples/dir.c: Likewise.
67936         * manual/examples/dir2.c: Likewise.
67937         * manual/examples/execinfo.c: Likewise.
67938         * manual/examples/filecli.c: Likewise.
67939         * manual/examples/filesrv.c: Likewise.
67940         * manual/examples/fmtmsgexpl.c: Likewise.
67941         * manual/examples/genpass.c: Likewise.
67942         * manual/examples/inetcli.c: Likewise.
67943         * manual/examples/inetsrv.c: Likewise.
67944         * manual/examples/isockad.c: Likewise.
67945         * manual/examples/longopt.c: Likewise.
67946         * manual/examples/memopen.c: Likewise.
67947         * manual/examples/memstrm.c: Likewise.
67948         * manual/examples/mkfsock.c: Likewise.
67949         * manual/examples/mkisock.c: Likewise.
67950         * manual/examples/mygetpass.c: Likewise.
67951         * manual/examples/pipe.c: Likewise.
67952         * manual/examples/popen.c: Likewise.
67953         * manual/examples/rprintf.c: Likewise.
67954         * manual/examples/search.c: Likewise.
67955         * manual/examples/select.c: Likewise.
67956         * manual/examples/setjmp.c: Likewise.
67957         * manual/examples/sigh1.c: Likewise.
67958         * manual/examples/sigusr.c: Likewise.
67959         * manual/examples/stpcpy.c: Likewise.
67960         * manual/examples/strdupa.c: Likewise.
67961         * manual/examples/strftim.c: Likewise.
67962         * manual/examples/strncat.c: Likewise.
67963         * manual/examples/subopt.c: Likewise.
67964         * manual/examples/swapcontext.c: Likewise.
67965         * manual/examples/termios.c: Likewise.
67966         * manual/examples/testopt.c: Likewise.
67967         * manual/examples/testpass.c: Likewise.
67968         * manual/examples/timeval_subtract.c: Likewise.
67969
67970         [BZ #13792]
67971         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67972         function to ...
67973         * manual/timeval_subtract.c.texi: ... here, new file.
67974
67975 2012-03-02  David S. Miller  <davem@davemloft.net>
67976
67977         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67978
67979 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67980
67981         [BZ #3976]
67982         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67983         (__sin): Save and restore rounding mode and use round-to-nearest
67984         for all computations.
67985         (__cos): Save and restore rounding mode and use round-to-nearest
67986         for all computations.
67987         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67988         <fenv.h>.
67989         (tan): Save and restore rounding mode and use round-to-nearest for
67990         all computations.
67991         * math/libm-test.inc (cos_test_tonearest): New function.
67992         (cos_test_towardzero): Likewise.
67993         (cos_test_downward): Likewise.
67994         (cos_test_upward): Likewise.
67995         (sin_test_tonearest): Likewise.
67996         (sin_test_towardzero): Likewise.
67997         (sin_test_downward): Likewise.
67998         (sin_test_upward): Likewise.
67999         (tan_test_tonearest): Likewise.
68000         (tan_test_towardzero): Likewise.
68001         (tan_test_downward): Likewise.
68002         (tan_test_upward): Likewise.
68003         (main): Call the new functions.
68004         * sysdeps/i386/fpu/libm-test-ulps: Update.
68005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68006
68007         [BZ #10135]
68008         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68009         small n, then large n, before computing and testing k+n.
68010         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68011         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68012         Likewise.
68013         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68014         Likewise.
68015         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68016         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68017         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68018         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68019         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68020         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68021         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68022         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68023         * math/libm-test.inc (scalbn_test): Add more tests.
68024         (scalbln_test): Likewise.
68025
68026         * manual/filesys.texi (mode_t): Describe constraints on size and
68027         signedness, not exact equivalence to a particular type.
68028         (ino_t): Likewise.
68029         (ino64_t): Likewise.
68030         (dev_t): Likewise.
68031         (nlink_t): Likewise.
68032         (blkcnt_t): Likewise.
68033         (blkcnt64_t): Likewise.
68034         * manual/llio.texi (off_t): Likewise.
68035
68036         [BZ #3976]
68037         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68038         (__ieee754_exp): Save and restore rounding mode and use
68039         round-to-nearest for all computations.
68040         * math/libm-test.inc (exp_test_tonearest): New function.
68041         (exp_test_towardzero): Likewise.
68042         (exp_test_downward): Likewise.
68043         (exp_test_upward): Likewise.
68044         (main): Call the new functions.
68045         * sysdeps/i386/fpu/libm-test-ulps: Update.
68046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68047
68048 2012-03-01  Chris Demetriou  <cgd@google.com>
68049
68050         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68051         have predictable order.
68052
68053 2012-03-01  David S. Miller  <davem@davemloft.net>
68054
68055         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68056
68057         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68058         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68059         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68060         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68061
68062         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68063         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68064         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68065         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68066         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68067         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68068         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68069         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68070         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68071
68072         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68073
68074         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68075         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68076         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68077
68078         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68079         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68080         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68081         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68082         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68083         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68084         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68085         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68086         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68087         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68088         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68089         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68090         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68091         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68092         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68093         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68094         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68095         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68096         * sysdeps/sparc/elf/configure: Regenerated.
68097
68098 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68099
68100         * configure.in (AS, LD): Require binutils 2.20 or later.
68101         * configure: Regenerated.
68102         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68103         as required minimum version.
68104         * INSTALL: Regenerated.
68105
68106         [BZ #2541]
68107         [BZ #4108]
68108         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68109         before squaring exponent.
68110         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68111         bottom long double and 27 bits of top long double before squaring
68112         exponent.
68113         * math/libm-test.inc (erfc_test): Add more tests.
68114         * sysdeps/i386/fpu/libm-test-ulps: Update.
68115         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68117
68118 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68119
68120         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68121         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68122         containing bit-fields.
68123         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68124         * soft-fp/single.h (_FP_UNION_S): Likewise.
68125         * soft-fp/double.h (_FP_UNION_D): Likewise.
68126
68127 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68128
68129         [BZ #13786]
68130         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68131         not include ../strcmp.S.
68132         [USE_AS_STRNCASECMP_L]: Likewise.
68133         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68134         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68135         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68136         (__strncasecmp_l_ia32): Define as alias to
68137         __strncasecmp_l_nonascii.
68138
68139         [BZ #5794]
68140         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68141         * sysdeps/i386/fpu/libm-test-ulps: Update.
68142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68143
68144         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68146
68147 2012-02-29  Jeff Law  <law@redhat.com>
68148
68149         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68150         out of bounds read.
68151
68152 2012-02-29  Marek Polacek  <polacek@redhat.com>
68153
68154         [BZ #13706]
68155         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68156         * elf/Makefile: Add rules to run tst-unused-dep.out.
68157
68158 2012-02-28  David S. Miller  <davem@davemloft.net>
68159
68160         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68161         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68162         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68163         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68164         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68165         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68166
68167 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68168
68169         * math/libm-test.inc (llround_test): Move one test from
68170         lround_test.  Use TEST_f_L in moved test.
68171         (lround_test): Move misplaced test to llround_test.  Add testcase
68172         from bug 2561.
68173
68174 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68175
68176         * sysdeps/x86_64/fpu/e_expf.S: New file.
68177         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68178
68179 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68180
68181         [BZ #13637]
68182         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68183         of remain_len that may cause incomplete multi-byte character and
68184         false match.
68185         * posix/bug-regex33.c: New file.
68186         * posix/Makefile (tests): Add bug-regex33.
68187
68188 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68189
68190         * manual/macros.texi: New file.
68191         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68192         * manual/libc.texinfo: Include macros.texi.
68193         * manual/creatute.texi: Likewise.
68194         * manual/install.texi: Likewise.
68195         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68196         @glibcadj{} in references to the GNU C Library.
68197         * manual/charset.texi: Likewise.
68198         * manual/conf.texi: Likewise.
68199         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68200         when not using those macros.
68201         * manual/creature.texi: Likewise.
68202         * manual/crypt.texi: Likewise.
68203         * manual/errno.texi: Likewise.
68204         * manual/filesys.texi: Likewise.
68205         * manual/header.texi: Likewise.
68206         * manual/install.texi: Likewise.
68207         * manual/intro.texi: Likewise.
68208         * manual/io.texi: Likewise.
68209         * manual/job.texi: Likewise.
68210         * manual/lang.texi: Likewise.
68211         * manual/libc.texiinfo: Likewise.
68212         * manual/llio.texi: Likewise.
68213         * manual/locale.texi: Likewise.
68214         * manual/maint.texi: Likewise.
68215         * manual/math.texi: Likewise.
68216         * manual/memory.texi: Likewise.
68217         * manual/message.texi: Likewise.
68218         * manual/nss.texi: Likewise.
68219         * manual/pattern.texi: Likewise.
68220         * manual/process.texi: Likewise.
68221         * manual/resource.texi: Likewise.
68222         * manual/search.texi: Likewise.
68223         * manual/setjmp.texi: Likewise.
68224         * manual/signal.texi: Likewise.
68225         * manual/socket.texi: Likewise.
68226         * manual/startup.texi: Likewise.
68227         * manual/stdio.texi: Likewise.
68228         * manual/string.texi: Likewise.
68229         * manual/sysinfo.texi: Likewise.
68230         * manual/syslog.texi: Likewise.
68231         * manual/terminal.texi: Likewise.
68232         * manual/time.texi: Likewise.
68233         * manual/users.texi: Likewise.
68234         * INSTALL: Regenerated.
68235         * NOTES: Regenerated.
68236         * sysdeps/gnu/errlist.c: Regenerated.
68237
68238 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68239
68240         * include/dirent.h: Include <dirstream.h> before
68241         <dirent/dirent.h>.
68242
68243 2012-02-28  David S. Miller  <davem@davemloft.net>
68244
68245         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68246         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68247         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68248         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68249
68250 2012-02-27  David S. Miller  <davem@davemloft.net>
68251
68252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68253         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68254         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68255         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68256
68257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68258         frame pointer instead of stack pointer relative arg slot.
68259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68260         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68261         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68262
68263 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68264
68265         [BZ #3992]
68266         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68267
68268 2012-02-27  David S. Miller  <davem@davemloft.net>
68269
68270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68274         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68275         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68276         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68277         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68278
68279 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68280
68281         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68282         later.  Allow versions 5-9.
68283         * configure: Regenerated.
68284         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68285         required minimum version and 4.6 as recommended version.  Do not
68286         mention bugs in GCC 2.7 and 2.8.
68287         * INSTALL: Regenerated.
68288
68289 2012-02-27  David S. Miller  <davem@davemloft.net>
68290
68291         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68293         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68294         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68295         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68296         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68297         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68298         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68299
68300         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68301         manipulate bits before adding and subtracting TWO112[sx].
68302         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68303
68304 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68305
68306         [BZ #13775]
68307         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68308         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68309         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68310         being in POSIX, because they are in 1003.1-2008.
68311
68312         * rt/tst-aio.c: Include <fcntl.h>.
68313         * rt/tst-aio7.c: Likewise.
68314         * rt/tst-aio64.c: Likewise.
68315
68316         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68317
68318 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68319
68320         * manual/install.texi (--with-headers): Describe headers as
68321         interface headers, not private headers.
68322         (Specific advice for GNU/Linux systems): Describe use of headers
68323         from "make headers_install", not private headers from older
68324         kernels.
68325         * INSTALL: Regenerated.
68326         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68327         Change to 2.6.19.
68328         * sysdeps/unix/sysv/linux/configure: Regenerated.
68329
68330         * manual/llio.texi (fclean): Remove documentation.
68331
68332         * manual/Makefile (libc-texi-generated): New variable.  Include
68333         version.texi.
68334         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68335         $(libc-texi-generated), not duplicated list of files.
68336         (version.texi, stamp-version): New rules.
68337         (realclean): Remove $(libc-texi-generated), not individual files
68338         from that list.  Do not remove dir-add.texinfo.
68339         * manual/libc.texinfo: Comment out uses of edition numbers and
68340         references to printed manual.  Remove last-updated dates.
68341         (EDITION): Comment out.
68342         (ISBN): Likewise.
68343         (VERSION, UPDATED): Remove.
68344         (version.texi): Include.
68345
68346 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68347
68348         * sysdeps/posix/spawni.c: Include <signal.h>.
68349         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68350         * sysdeps/pthread/aio_fsync.c: Likewise.
68351
68352 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68353
68354         * conform/Makefile (tests): Run only when not cross-compiling and
68355         when fast-check is not defined.
68356
68357         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68358         * conform/data/limits.h-data: Fixes for POSIX2008.
68359         * conform/run-conformtest.sh: Run all tests.
68360         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68361         headers.
68362         * include/bits/dlfcn.h: Likewise.
68363         * include/langinfo.h: Likewise.
68364         * include/monetary.h: Likewise.
68365         * include/sys/poll.h: Likewise.
68366
68367         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68368         for __USE_GNU.
68369         * posix/spawn.h: Define __need_sigset_t.
68370         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68371         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68372         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68373         to get sigevent_t only.
68374         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68375         only for __USE_GNU.
68376         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68377         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68378         process_vm_writev only for __USE_GNU.
68379         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68380
68381         * conform/Makefile: For now ignore errors from run-conformtest.
68382         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68383         POSIX to avoid namespace pollution.  Don't prepend headers.
68384         * conform/data/aio.h-data: Fixes for POSIX testing.
68385         * conform/data/fcntl.h-data: Likewise.
68386         * conform/data/glob.h-data: Likewise.
68387         * conform/data/grp.h-data: Likewise.
68388         * conform/data/pthread.h-data: Likewise.
68389         * conform/data/pwd.h-data: Likewise.
68390         * conform/data/signal.h-data: Likewise.
68391         * conform/data/spawn.h-data: Likewise.
68392         * conform/data/stdio.h-data: Likewise.
68393         * conform/data/stdlib.h-data: Likewise.
68394         * conform/data/stropts.h-data: Likewise.
68395         * conform/data/sys/mman.h-data: Likewise.
68396         * conform/data/sys/stat.h-data: Likewise.
68397         * conform/data/sys/types.h-data: Likewise.
68398         * conform/data/sys/wait.h-data: Likewise.
68399         * conform/data/time.h-data: Likewise.
68400         * conform/data/unistd.h-data: Likewise.
68401         * conform/data/utime.h-data: Likewise.
68402
68403         * io/sys/stat.h: fchmod was always in POSIX.
68404         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68405         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68406         * rt/aio.h: Define __need_timespec before including <time.h>.
68407         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68408         struct.  Add forward declaration of pthread_attr_t and use it in
68409         sigevent.
68410         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68411         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68412         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68413         always remove CLK_TCK definition.
68414
68415 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68416
68417         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68418
68419 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68420
68421         * conform/run-conformtest.sh: New file.
68422         * conform/Makefile: Run run-conformtest for tests.
68423         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68424         support.
68425
68426         * conform/data/uchar.h-data: New file.
68427         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68428         * conform/data/arpa/inet.h-data: Likewise.
68429         * conform/data/assert.h-data: Likewise.
68430         * conform/data/complex.h-data: Likewise.
68431         * conform/data/cpio.h-data: Likewise.
68432         * conform/data/ctype.h-data: Likewise.
68433         * conform/data/dirent.h-data: Likewise.
68434         * conform/data/dlfcn.h-data: Likewise.
68435         * conform/data/errno.h-data: Likewise.
68436         * conform/data/fcntl.h-data: Likewise.
68437         * conform/data/float.h-data: Likewise.
68438         * conform/data/fmtmsg.h-data: Likewise.
68439         * conform/data/fnmatch.h-data: Likewise.
68440         * conform/data/ftw.h-data: Likewise.
68441         * conform/data/glob.h-data: Likewise.
68442         * conform/data/grp.h-data: Likewise.
68443         * conform/data/iconv.h-data: Likewise.
68444         * conform/data/inttypes.h-data: Likewise.
68445         * conform/data/langinfo.h-data: Likewise.
68446         * conform/data/libgen.h-data: Likewise.
68447         * conform/data/limits.h-data: Likewise.
68448         * conform/data/locale.h-data: Likewise.
68449         * conform/data/math.h-data: Likewise.
68450         * conform/data/monetary.h-data: Likewise.
68451         * conform/data/mqueue.h-data: Likewise.
68452         * conform/data/ndbm.h-data: Likewise.
68453         * conform/data/net/if.h-data: Likewise.
68454         * conform/data/netdb.h-data: Likewise.
68455         * conform/data/netinet/in.h-data: Likewise.
68456         * conform/data/nl_types.h-data: Likewise.
68457         * conform/data/poll.h-data: Likewise.
68458         * conform/data/pthread.h-data: Likewise.
68459         * conform/data/pwd.h-data: Likewise.
68460         * conform/data/regex.h-data: Likewise.
68461         * conform/data/sched.h-data: Likewise.
68462         * conform/data/search.h-data: Likewise.
68463         * conform/data/semaphore.h-data: Likewise.
68464         * conform/data/setjmp.h-data: Likewise.
68465         * conform/data/signal.h-data: Likewise.
68466         * conform/data/spawn.h-data: Likewise.
68467         * conform/data/stdarg.h-data: Likewise.
68468         * conform/data/stdio.h-data: Likewise.
68469         * conform/data/stdlib.h-data: Likewise.
68470         * conform/data/string.h-data: Likewise.
68471         * conform/data/strings.h-data: Likewise.
68472         * conform/data/stropts.h-data: Likewise.
68473         * conform/data/sys/ipc.h-data: Likewise.
68474         * conform/data/sys/mman.h-data: Likewise.
68475         * conform/data/sys/msg.h-data: Likewise.
68476         * conform/data/sys/resource.h-data: Likewise.
68477         * conform/data/sys/select.h-data: Likewise.
68478         * conform/data/sys/sem.h-data: Likewise.
68479         * conform/data/sys/shm.h-data: Likewise.
68480         * conform/data/sys/socket.h-data: Likewise.
68481         * conform/data/sys/stat.h-data: Likewise.
68482         * conform/data/sys/statvfs.h-data: Likewise.
68483         * conform/data/sys/time.h-data: Likewise.
68484         * conform/data/sys/timeb.h-data: Likewise.
68485         * conform/data/sys/times.h-data: Likewise.
68486         * conform/data/sys/types.h-data: Likewise.
68487         * conform/data/sys/uio.h-data: Likewise.
68488         * conform/data/sys/un.h-data: Likewise.
68489         * conform/data/sys/utsname.h-data: Likewise.
68490         * conform/data/sys/wait.h-data: Likewise.
68491         * conform/data/syslog.h-data: Likewise.
68492         * conform/data/tar.h-data: Likewise.
68493         * conform/data/termios.h-data: Likewise.
68494         * conform/data/utime.h-data: Likewise.
68495         * conform/data/utmpx.h-data: Likewise.
68496         * conform/data/varargs.h-data: Likewise.
68497         * conform/data/wchar.h-data: Likewise.
68498         * conform/data/wctype.h-data: Likewise.
68499         * conform/data/wordexp.h-data: Likewise.
68500
68501         * include/stropts.h: New file.
68502         * include/uchar.h: New file.
68503         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68504         * include/assert.h: Likewise.
68505         * include/ctype.h: Likewise.
68506         * include/dirent.h: Likewise.
68507         * include/dlfcn.h: Likewise.
68508         * include/fcntl.h: Likewise.
68509         * include/fnmatch.h: Likewise.
68510         * include/glob.h: Likewise.
68511         * include/grp.h: Likewise.
68512         * include/libio.h: Likewise.
68513         * include/locale.h: Likewise.
68514         * include/math.h: Likewise.
68515         * include/net/if.h: Likewise.
68516         * include/netdb.h: Likewise.
68517         * include/netinet/in.h: Likewise.
68518         * include/pthread.h: Likewise.
68519         * include/pwd.h: Likewise.
68520         * include/regex.h: Likewise.
68521         * include/sched.h: Likewise.
68522         * include/search.h: Likewise.
68523         * include/setjmp.h: Likewise.
68524         * include/signal.h: Likewise.
68525         * include/stdio.h: Likewise.
68526         * include/stdlib.h: Likewise.
68527         * include/string.h: Likewise.
68528         * include/sys/cdefs.h: Likewise.
68529         * include/sys/mman.h: Likewise.
68530         * include/sys/msg.h: Likewise.
68531         * include/sys/resource.h: Likewise.
68532         * include/sys/select.h: Likewise.
68533         * include/sys/socket.h: Likewise.
68534         * include/sys/stat.h: Likewise.
68535         * include/sys/statvfs.h: Likewise.
68536         * include/sys/time.h: Likewise.
68537         * include/sys/times.h: Likewise.
68538         * include/sys/uio.h: Likewise.
68539         * include/sys/utsname.h: Likewise.
68540         * include/sys/wait.h: Likewise.
68541         * include/termios.h: Likewise.
68542         * include/time.h: Likewise.
68543         * include/ulimit.h: Likewise.
68544         * include/unistd.h: Likewise.
68545         * include/utime.h: Likewise.
68546         * include/wchar.h: Likewise.
68547         * include/wctype.h: Likewise.
68548         * include/wordexp.h: Likewise.
68549
68550         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68551
68552         * time/time.h: TIME_UTC must be a macro.
68553         Make timespec_get available for ISO C11 only as well.
68554
68555 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68556
68557         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68558         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68559
68560 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68561
68562         * configure.in: Use -o not -a in test for unsupported multi-arch.
68563
68564 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68565
68566         * manual/texinfo.tex: Update to version 2012-01-19.16.
68567
68568 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68569
68570         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68571
68572 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68573
68574         [BZ #13738]
68575         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68576         * manual/fdl-1.3.texi: New file.
68577         * manual/fdl-1.1.texi: File removed.
68578
68579         [BZ #13738]
68580         * manual/libc.texinfo (FDL_VERSION): New @set.
68581         Use it for mention of FDL in cover text.
68582         (Documentation License): Use it in @include file name.
68583
68584 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68585             Roland McGrath  <roland@hack.frob.com>
68586
68587         [BZ #5461]
68588         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68589         (not LONG_LONG_MAX and LONG_LONG_MIN.
68590         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68591         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68592         name.
68593         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68594
68595 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68596
68597         [BZ #2547]
68598         [BZ #11365]
68599         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68600         manipulate bits before adding and subtracting TWO23[sx].
68601         * math/libm-test.inc (nearbyint_test): Add more tests.
68602
68603 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68604
68605         [BZ #2548]
68606         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68607         bits before adding and subtracting TWO23[sx].
68608         * math/libm-test.inc (rint_test): Add more tests.
68609         (rint_test_tonearest): Likewise.
68610         (rint_test_towardzero): Likewise.
68611         (rint_test_downward): Likewise.
68612         (rint_test_upward: Likewise.
68613
68614 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68615
68616         [BZ #10110]
68617         * include/stdc-predef.h: New file.  Extracted from features.h.
68618         * include/features.h: Include stdc-predef.h.
68619         * Makefile (headers): Add stdc-predef.h.
68620         * CONFORMANCE (Compiler limitations): Update.
68621
68622 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68623
68624         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68625
68626 2012-02-21  David S. Miller  <davem@davemloft.net>
68627
68628         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68629         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68630
68631 2012-02-20  David S. Miller  <davem@davemloft.net>
68632
68633         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68634         using a normal save/restore sequence, rather than allocating a
68635         dummy stack frame just to store a frame pointer and restore.
68636         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68637
68638 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68639
68640         * manual/install.texi: Fix stray word in line-wrapped comment.
68641
68642 2012-02-20  David S. Miller  <davem@davemloft.net>
68643
68644         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68645         both binutils and gcc support GOTDATA.
68646
68647         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68648         "rd %pc" in the PIC register setup sequences.
68649
68650         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68651         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68652         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68653         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68654         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68655         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68656         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68657         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68658         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68659         (SYSCALL_ERROR_HANDLER): Likewise.
68660         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68661         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68662         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68663         (SYSCALL_ERROR_HANDLER): Likewise.
68664
68665         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68666         (HAVE_GCC_GOTDATA): New.
68667         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68668         relocation support in both binutils and gcc.
68669         * sysdeps/sparc/elf/configure: Regenerate.
68670
68671         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68672         * sysdeps/sparc/sparc32/elf/configure: Delete.
68673         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68674         * sysdeps/sparc/sparc64/elf/configure: Delete.
68675         * sysdeps/sparc/elf/configure.in: New file.
68676         * sysdeps/sparc/elf/configure: Generate.
68677
68678         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68679         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68680         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68681         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68682         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68683
68684 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68685
68686         * manual/install.texi: Do not mention specific glibc version
68687         numbers.
68688         * manual/libc.texinfo (VERSION, UPDATED): Update.
68689         (@copying): Use @copyright{} and range of years.
68690
68691 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68692
68693         [BZ #13695]
68694         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68695         [crti.S not in sysdirs] (generated): Do not append.
68696         [crti.S not in sysdirs] (omit-deps): Likewise.
68697         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68698         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68699         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68700         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68701         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68702         Likewise.
68703         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68704         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68705         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68706         * csu/defs.awk: Remove file.
68707         * sysdeps/generic/initfini.c: Likewise.
68708         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68709         variable.
68710         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68711         Likewise.
68712
68713 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68714
68715         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68716         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68717         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68718         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68719         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68720         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68721         <bits/epoll.h>.
68722         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68723         (__EPOLL_PACKED): Define to empty if not defined by
68724         <bits/epoll.h>.
68725         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68726         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68727         bits/epoll.h.
68728
68729 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68730
68731         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68732         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68733         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68734         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68735         <bits/timerfd.h>.
68736         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68737         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68738         bits/timerfd.h.
68739
68740 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68741
68742         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68743         in C locale.
68744         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68745         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68746         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68748
68749 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68750
68751         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68752         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68753
68754 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68755
68756         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68757         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68758         defined.
68759         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68760         Likewise.
68761         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68762         entry for 2.16.
68763
68764 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68765
68766         * math/w_acos.c: Use non-signaling floating-point comparisons.
68767         * math/w_acosf.c: Likewise.
68768         * math/w_acosh.c: Likewise.
68769         * math/w_acoshf.c: Likewise.
68770         * math/w_acoshl.c: Likewise.
68771         * math/w_acosl.c: Likewise.
68772         * math/w_asin.c: Likewise.
68773         * math/w_asinf.c: Likewise.
68774         * math/w_asinl.c: Likewise.
68775         * math/w_atanh.c: Likewise.
68776         * math/w_atanhf.c: Likewise.
68777         * math/w_atanhl.c: Likewise.
68778         * math/w_exp2.c: Likewise.
68779         * math/w_exp2f.c: Likewise.
68780         * math/w_exp2l.c: Likewise.
68781         * math/w_j0.c: Likewise.
68782         * math/w_j0f.c: Likewise.
68783         * math/w_j0l.c: Likewise.
68784         * math/w_j1.c: Likewise.
68785         * math/w_j1f.c: Likewise.
68786         * math/w_j1l.c: Likewise.
68787         * math/w_jn.c: Likewise.
68788         * math/w_jnf.c: Likewise.
68789         * math/w_log.c: Likewise.
68790         * math/w_log10.c: Likewise.
68791         * math/w_log10f.c: Likewise.
68792         * math/w_log10l.c: Likewise.
68793         * math/w_log2.c: Likewise.
68794         * math/w_log2f.c: Likewise.
68795         * math/w_log2l.c: Likewise.
68796         * math/w_logf.c: Likewise.
68797         * math/w_logl.c: Likewise.
68798         * math/w_sqrt.c: Likewise.
68799         * math/w_sqrtf.c: Likewise.
68800         * math/w_sqrtl.c: Likewise.
68801         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68802         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68803         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68804         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68805         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68806
68807 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68808
68809         [BZ #9739]
68810         * manual/string.texi (strnlen): Use correct parameter name in
68811         equivalent expression.
68812
68813 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68814
68815         [BZ #11174]
68816         * manual/users.texi (seteuid): Consistently use neweuid for
68817         argument name.
68818
68819 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68820
68821         [BZ #13704]
68822         * manual/nss.texi (Services in the NSS configuration): Correct
68823         list of services in example configuration file.
68824
68825 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68826
68827         [BZ #11322]
68828         * manual/arith.texi: Remove statements about negative zero
68829         behaving identically to zero.
68830
68831 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68832
68833         [BZ #5993]
68834         * manual/install.texi: Do not document upgrading from libc5.
68835
68836 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68837
68838         [BZ #4596]
68839         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68840
68841 2012-02-18  David S. Miller  <davem@davemloft.net>
68842
68843         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68844         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68845         %o7 across the call.
68846         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68847         instead.
68848         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68849         SETUP_PIC_REG_LEAF.
68850         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68851         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68852         * sysdeps/sparc/crtn.S: Likewise.
68853
68854 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68855
68856         * aout/Makefile: Remove.
68857
68858 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68859
68860         [BZ #13058]
68861         * manual/examples/argp-ex1.c (main): Format definition in GNU
68862         style.
68863         * manual/examples/argp-ex2.c (main): Likewise.
68864         * manual/examples/argp-ex3.c (main): Likewise.
68865         * manual/examples/argp-ex4.c (main): Likewise.
68866         * manual/examples/longopt.c (main): Use new-style prototype
68867         definition.
68868         * manual/examples/strncat.c (main): Specify return type and use
68869         (void) for arguments.
68870         * manual/examples/subopt.c (main): Use char **argv argument.
68871
68872 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68873
68874         [BZ #5077]
68875         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68876         rounding modes.
68877
68878 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68879
68880         [BZ #6907]
68881         * manual/string.texi (strchr): Change when strchrnul is
68882         recommended.
68883
68884 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68885
68886         [BZ #174]
68887         * manual/locale.texi (setlocale): Document LOCPATH.
68888
68889 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68890
68891         [BZ #10210]
68892         * manual/process.texi (execle): Move @dots{} before last argument.
68893
68894 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68895
68896         [BZ #12047]
68897         * manual/charset.texi (Generic Charset Conversion): Fix typo
68898         (LC_TYPE -> LC_CTYPE).
68899
68900 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68901
68902         [BZ #5805]
68903         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68904         (scalbnf): Likewise.
68905         (scalbnl): Likewise.
68906         (scalbln): Likewise.
68907         (scalblnf): Likewise.
68908         (scalblnl): Likewise.
68909         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68910         (vwarnx): Likewise.
68911         (verr): Likewise.
68912         (verrx): Likewise.
68913         * manual/filesys.texi (telldir): Use braces around return type.
68914         * manual/llio.texi (mmap): Add space after comma.
68915         (mmap64): Likewise.
68916         * manual/math.texi (jn): Use @var{} on parameter names.
68917         (jnf): Likewise.
68918         (jnl): Likewise.
68919         (yn): Likewise.
68920         (ynf): Likewise.
68921         (ynl): Likewise.
68922         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68923         line.
68924         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68925         "...".
68926         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68927         (sched_get_priority_max): Likewise.
68928         * manual/signal.texi (sigvec): Add space after comma.
68929         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68930         names.
68931         (if_indextoname): Likewise.
68932         (if_freenameindex): Likewise.
68933         (sendto): Use ',' instead of '.' in prototype.
68934         * manual/startup.texi (syscall): Use @dots{} instead of literal
68935         "...".
68936         * manual/stdio.texi (__fpending): Separate initial words of
68937         paragraph from @deftypefun line.
68938         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68939         "...".
68940         (vsyslog): Use @var{} on parameter names.
68941         * manual/terminal.texi (stty): Use @var{} on parameter names.
68942         * manual/users.texi (getutmp): Use @var{} on parameter names.
68943         (getutmpx): Likewise.
68944
68945 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68946
68947         [BZ #6884]
68948         * manual/stdio.texi (fopen): Fix typos in description of
68949         ",ccs=STRING".
68950
68951 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68952
68953         [BZ #4026]
68954         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68955         get clock_id definition.
68956
68957 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68958
68959         [BZ #4822]
68960         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68961         (madvise): Cast every argument to void on its own.
68962
68963 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68964
68965         [BZ #9902]
68966         * manual/startup.texi (Exit Status): Fix typo.
68967
68968 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68969
68970         [BZ #10140]
68971         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68972         * manual/examples/argp-ex2.c: Likewise.
68973         * manual/examples/argp-ex3.c: Likewise.
68974
68975 2012-02-16  Richard Henderson  <rth@redhat.com>
68976
68977         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68978         * sysdeps/s390/s390-32/initfini.c: Remove.
68979         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68980         * sysdeps/s390/s390-64/initfini.c: Remove.
68981
68982 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68983
68984         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68985         compiler output for sysdeps/generic/initfini.c.
68986         * sysdeps/sh/elf/initfini.c: Remove file.
68987
68988 2012-02-16  David S. Miller  <davem@davemloft.net>
68989
68990         [BZ #11494]
68991         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68992
68993         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68994         * sysdeps/sparc/crti.S: New file.
68995         * sysdeps/sparc/crtn.S: New file.
68996         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68997         * sysdeps/sparc/sparc64/Makefile: Likewise.
68998
68999 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69000
69001         [BZ #3335]
69002         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69003
69004 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69005
69006         [BZ #4822]
69007         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69008
69009         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69010         (write, read, close): Likewise.
69011         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69012
69013 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69014
69015         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69016         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69017         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69018         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69019         <bits/signalfd.h>.
69020         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69021         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69022         bits/signalfd.h.
69023
69024 2012-02-14  Marek Polacek  <polacek@redhat.com>
69025
69026         * sysdeps/x86_64/crti.S: New file.
69027         * sysdeps/x86_64/crtn.S: New file.
69028         * sysdeps/x86_64/elf/initfini.c: Remove file.
69029
69030 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69031
69032         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69033         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69034         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69035         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69036         <bits/inotify.h>.
69037         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69038         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69039         bits/inotify.h.
69040
69041 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69042
69043         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69044         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69045         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69046         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69047         <bits/eventfd.h>.
69048         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69049         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69050         bits/eventfd.h.
69051
69052 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69053
69054         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69055         __feraiseexcept instead of feraiseexcept.
69056
69057         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69058         nanosleep invocations.
69059         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69060         strings, and add error checking for a nanosleep invocations.
69061
69062 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         Replace FSF snail mail address with URLs, as per GNU coding standards.
69065         Most of the snail mail addresses were wrong anyway, and omitting
69066         them makes the source code easier to maintain.  Almost all of the
69067         changes are to license notices and to locale LC_IDENTIFICATION
69068         addresses, except for this one:
69069         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69070         not its snail mail address.
69071
69072 2012-02-09  Richard Henderson  <rth@twiddle.net>
69073
69074         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69075         of kernel-features.h.
69076
69077         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69078
69079 2012-02-08  Marek Polacek  <polacek@redhat.com>
69080
69081         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69082         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69083         * sysdeps/gnu/_G_config.h: Likewise.
69084         * sysdeps/generic/_G_config.h: Likewise.
69085
69086 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69087
69088         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69089         tests.
69090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69091
69092         * sysdeps/powerpc/powerpc32/crti.S: New file.
69093         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69094         * sysdeps/powerpc/powerpc64/crti.S: New file.
69095         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69096
69097         * Makeconfig (have-initfini): Don't set.
69098         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69099         * configure.in (nopic_initfini): Don't substitute.
69100         * config.h.in (HAVE_INITFINI): Don't #undef.
69101         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69102         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69103
69104 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69105
69106         Support crti.S and crtn.S provided directly by architectures.
69107         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69108         [crti.S in sysdirs] (omit-deps): Likewise.
69109         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69110         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69111         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69112         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69113         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69114         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69115         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69116         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69117         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69118         compiler output for sysdeps/generic/initfini.c.
69119         * sysdeps/i386/elf/Makefile: Remove file.
69120         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69121
69122 2012-02-07  Marek Polacek  <polacek@redhat.com>
69123
69124         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69125         * sysdeps/gnu/_G_config.h: Likewise.
69126         * sysdeps/mach/hurd/_G_config.h: Likewise.
69127
69128 2012-02-07  Marek Polacek  <polacek@redhat.com>
69129
69130         * math/Makefile (tests): Add tst-CMPLX2.
69131         * math/tst-CMPLX2.c: New file.
69132
69133 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69134
69135         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69136
69137         * math/libm-test.inc (jn_test): Add missing L suffix.
69138
69139 2012-02-06  Marek Polacek  <polacek@redhat.com>
69140
69141         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69142         * sysdeps/i386/fpu/e_powf.S: Likewise.
69143         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69144         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69145         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69146         * sysdeps/i386/fpu/e_pow.S: Likewise.
69147         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69148         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69149         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69150         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69151         * sysdeps/i386/fpu/e_log2.S: Likewise.
69152         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69153         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69154         * sysdeps/i386/fpu/e_powl.S: Likewise.
69155         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69156         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69157         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69158         * sysdeps/i386/fpu/e_logl.S: Likewise.
69159         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69160         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69161         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69162         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69163         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69164         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69165         * sysdeps/i386/fpu/e_log.S: Likewise.
69166         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69167         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69168         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69169         * sysdeps/i386/fpu/e_logf.S: Likewise.
69170         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69171         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69172         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69173         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69174         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69175         * sysdeps/i386/fpu/e_log10.S: Likewise.
69176         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69177         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69178         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69179         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69180         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69181         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69182         * sysdeps/i386/asm-syntax.h: Likewise.
69183         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69184         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69185         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69186         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69187         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69188         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69189         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69190         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69191         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69192         * sysdeps/powerpc/sysdep.h: Likewise.
69193         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69194         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69195
69196 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69197
69198         [BZ #411]
69199         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69200
69201 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69202
69203         * sysdeps/i386/sysdep.h: Include <features.h>.
69204         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69205         version.
69206
69207 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69208
69209         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69210         Define.
69211         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69212         LOAD_PIC_REG_STR.
69213
69214 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69215
69216         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69217         (SETUP_PIC_REG): Use GET_PC_THUNK.
69218         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69219         macro.
69220
69221 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69222
69223         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69224         for non-PIC compilation.
69225         (SETUP_PIC_REG): Add .p2align directive.
69226         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69227         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69228         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69229         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69230         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69231         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69232         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69233         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69234         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69235         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69236         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69237         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69238         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69239         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69240         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69241         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69242         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69243         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69244         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69245         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69246         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69247         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69248         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69249         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69250         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69251         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69252         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69253         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69254         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69255         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69256         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69257         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69258         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69259         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69260         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69261         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69262         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69263         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69264         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69265         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69266         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69267
69268 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69269
69270         * math/tst-CMPLX.c: Include <stdio.h>.
69271
69272 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69273
69274         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69275         float.
69276         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69277         * sysdeps/sparc/bits/mathdef.h: Likewise.
69278
69279 2012-01-31  Marek Polacek  <polacek@redhat.com>
69280
69281         * libio/libio.h: Don't define _PARAMS.
69282         * locale/programs/config.h: Don't define PARAMS.
69283         * stdlib/strtol_l.c: Likewise.
69284         (__strtol_l): Remove PARAMS from the prototype.
69285
69286 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69287
69288         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69289         names.  Just use the correct names.  Remove unnecessary wrapper
69290         functions.
69291         * malloc/arena.c: Likewise.
69292         * malloc/hooks.c: Likewise.
69293
69294         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69295         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69296         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69297
69298 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69299
69300         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69301         into tail calls.
69302         (update_get_addr): New function.
69303         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69304         GET_ADDR_MODULE parameter.
69305
69306 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69307
69308         * crypt/cert.c: Remove __STDC__ conditionals.
69309         * crypt/crypt-entry.c: Likewise.
69310         * crypt/crypt_util.c: Likewise.
69311         * libio/filedoalloc.c: Likewise.
69312         * libio/fileops.c: Likewise.
69313         * libio/genops.c: Likewise.
69314         * libio/iofclose.c: Likewise.
69315         * libio/iofdopen.c: Likewise.
69316         * libio/iofopen.c: Likewise.
69317         * libio/iofopen64.c: Likewise.
69318         * libio/iogetdelim.c: Likewise.
69319         * libio/iopopen.c: Likewise.
69320         * libio/obprintf.c: Likewise.
69321         * libio/oldfileops.c: Likewise.
69322         * libio/oldiofclose.c: Likewise.
69323         * libio/oldiofdopen.c: Likewise.
69324         * libio/oldiofopen.c: Likewise.
69325         * libio/oldiopopen.c: Likewise.
69326         * libio/wfiledoalloc.c: Likewise.
69327         * libio/wgenops.c: Likewise.
69328         * locale/programs/xmalloc.c: Likewise.
69329         * misc/syslog.c: Likewise.
69330         * stdio-common/xbug.c: Likewise.
69331         * string/memchr.c: Likewise.
69332         * string/memcmp.c: Likewise.
69333         * string/memrchr.c: Likewise.
69334         * string/rawmemchr.c: Likewise.
69335         * sysdeps/posix/getcwd.c: Likewise.
69336         * time/strftime_l.c: Likewise.
69337
69338 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69339
69340         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69341         * config.make.in (config-cflags-sse2avx): Define.
69342         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69343         Fix typo.
69344
69345 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69346
69347         * scripts/config.guess: Update from upstream config git repository.
69348         * scripts/config.sub: Likewise.
69349
69350 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69351
69352         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69353         (EM_NUM): Update.
69354         (R_TILEPRO_*, R_TILEGX_*): New macros.
69355
69356         * scripts/firstversions.awk: Fix bug in version range handling.
69357
69358         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69359
69360         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69361
69362         * include/sys/epoll.h: New file.
69363         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69364         libc_hidden_def.
69365
69366 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69367
69368         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69369         Avoid unnecessary __WORDSIZE == 64 test.
69370         (fmaxf): Use VEX format if possible.
69371         (fmax): Likewise.
69372         (fminf): Likewise.
69373         (fmin): Likewise.
69374
69375         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69376         * math/math_private.h: Remove libc_fegetround* and
69377         libc_fesetround*.
69378         * sysdeps/i386/configure.in: Check for -msse2avx.
69379         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69380         also if SSE2AVX is defined.
69381         Remove libc_fegetround* and libc_fesetround*.
69382         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69383         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69384         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69385         of HAS_YMM_USABLE.
69386         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69387         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69388         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69389         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69390         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69391
69392         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69393
69394 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69395
69396         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69397         size is not set.
69398         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69399
69400 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69401
69402         [BZ #13618]
69403         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69404         relocation.
69405         * Makeconfig (libm): Define.
69406         * elf/Makefile: Add rules to build and run tst-relsort1.
69407         * elf/tst-relsort1.c: New file.
69408         * elf/tst-relsort1mod1.c: New file.
69409         * elf/tst-relsort1mod2.c: New file.
69410
69411 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69412
69413         * math/s_ldexp.c: Remove __STDC__ conditionals.
69414         * math/s_ldexpf.c: Likewise.
69415         * math/s_ldexpl.c: Likewise.
69416         * math/s_nextafter.c: Likewise.
69417         * math/s_nexttowardf.c: Likewise.
69418         * math/s_significand.c: Likewise.
69419         * math/s_significandf.c: Likewise.
69420         * math/s_significandl.c: Likewise.
69421         * math/w_jnl.c: Likewise.
69422         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69423         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69424         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69425         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69426         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69427         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69428         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69429         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69430         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69431         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69432         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69433         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69434         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69435         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69436         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69437         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69438         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69439         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69440         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69441         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69442         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69443         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69444         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69445         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69446         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69447         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69448         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69449         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69450         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69451         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69452         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69453         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69454         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69455         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69456         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69457         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69458         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69459         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69460         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69461         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69462         * sysdeps/ieee754/k_standard.c: Likewise.
69463         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69464         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69465         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69466         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69467         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69468         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69469         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69470         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69471         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69472         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69473         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69474         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69475         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69476         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69477         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69478         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69479         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69480         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69481         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69482         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69483         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69484         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69485         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69486         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69487         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69488         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69489         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69490         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69491         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69492         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69493         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69494         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69495         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69496         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69497         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69498         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69499         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69500         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69501         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69502         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69503         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69504         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69505         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69506         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69507         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69508         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69509         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69510         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69511         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69512         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69513         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69514         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69515         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69516         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69517         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69518         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69519         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69520         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69521         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69522         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69523         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69524         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69525         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69526         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69527         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69528         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69529         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69530         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69531         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69532         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69533         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69534         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69535         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69536         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69537         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69538         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69539         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69540         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69541         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69542         * sysdeps/ieee754/s_matherr.c: Likewise.
69543         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69544         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69545         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69546         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69547
69548 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69549
69550         * crypt/md5.h: Remove __STDC__ conditionals.
69551         * libio/libioP.h: Likewise.
69552         * locale/programs/config.h: Likewise.
69553         * sysdeps/generic/sysdep.h: Likewise.
69554         * sysdeps/i386/asm-syntax.h: Likewise.
69555         * sysdeps/s390/asm-syntax.h: Likewise.
69556         * sysdeps/unix/sysdep.h: Likewise.
69557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69559
69560 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69561
69562         * libio/libio.h: Remove __STDC__ conditionals.
69563         * malloc/obstack.h: Likewise.
69564         * math/complex.h: Likewise.
69565         * math/math.h: Likewise.
69566         * sysdeps/generic/_G_config.h: Likewise.
69567         * sysdeps/gnu/_G_config.h: Likewise.
69568         * sysdeps/mach/hurd/_G_config.h: Likewise.
69569         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69570         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69571         * sysdeps/sparc/bits/mathdef.h: Likewise.
69572
69573 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69574
69575         [BZ #13583]
69576         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69577         Clean up HAS_* macros.
69578         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69579         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69580         possible.
69581         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69582         HAS_AVX.
69583         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69584         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69585         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69586         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69587         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69588
69589 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69590
69591         * elf/tst-unique3.cc (gets): Remove declaration.
69592         * elf/tst-unique3lib.cc (gets): Likewise.
69593         * elf/tst-unique3lib2.cc (gets): Likewise.
69594         * elf/tst-unique4.cc (gets): Likewise.
69595
69596 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69597
69598         * include/stdio.h: Add C++ protection.  Add gets declarations and
69599         definitions.
69600         * debug/tst-chk1.c: Don't declare gets here.
69601         * stdio-common/tst-gets.c: Likewise.
69602
69603 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69604
69605         * posix/glob: Remove directory.
69606
69607 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69608
69609         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69610
69611 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69612
69613         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69614         of the non-standard EPFNOSUPPORT.
69615
69616 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69617
69618         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69619         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69620         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69621
69622 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69623
69624         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69625
69626 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69627
69628         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69629         transient errors.
69630         * nscd/grpcache.c (cache_addgr): Likewise.
69631         * nscd/hstcache.c (cache_addhst): Likewise.
69632         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69633         * nscd/pwdcache.c (cache_addpw): Likewise.
69634         * nscd/servicescache.c (cache_addserv): Likewise.
69635
69636 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69637
69638         * malloc/malloc.c: Various cleanups.
69639         * malloc/hooks.c: Likewise.
69640
69641         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69642         * stdlib/bug-fmtmsg1.c: New file.
69643
69644         * stdlib/fmtmsg.c (init): Add missing unlock.
69645         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69646
69647 2012-01-12  Marek Polacek  <polacek@redhat.com>
69648
69649         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69650         and _GNU_SOURCE.
69651
69652 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69653
69654         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69655         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69656         macro to ensure uniqueness of label name.
69657         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69658         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69659
69660 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69661
69662         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69663
69664         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69665         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69666         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69667         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69668
69669 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69670
69671         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69672
69673         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69674         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69675         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69676
69677         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69678
69679         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69680         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69681         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69682         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69683
69684         * math/bits/math-finite.h: Add ldexp support.
69685
69686 2012-01-10  Marek Polacek  <polacek@redhat.com>
69687
69688         * locale/programs/localedef.h (show_archive_content): Add noreturn
69689         attribute.
69690
69691 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69692
69693         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69694
69695 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69696
69697         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69698
69699         * io/Makefile (headers): Add bits/poll2.h.
69700
69701 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69702
69703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69704         typo #include statement.
69705
69706 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69707
69708         * include/sys/cdefs.h: Define __attribute_alloc_size.
69709         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69710         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69711         * elf/pldd.c: Likewise.
69712         * iconv/iconv_charmap.c: Likewise.
69713         * iconv/iconvconfig.c: Likewise.
69714         * iconv/strtab.c: Likewise.
69715         * locale/programs/locale.c: Likewise.
69716         * locale/programs/localedef.h: Likewise.
69717         * locale/programs/simple-hash.c: Likewise.
69718         * nscd/nscd.h: Likewise.
69719         * nss/makedb.c: Likewise.
69720         * sysdeps/generic/ldconfig.h: Likewise.
69721         * locale/programs/localedef.c: Remove xmalloc prototype.
69722         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69723
69724 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69725
69726         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69727         appropriate.
69728
69729 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69730
69731         * math/Makefile (tests): Add tst-CMPLX.
69732         * math/tst-CMPLX.c: New file.
69733
69734         * math/complex.h (CMPLXL): Fix typo.
69735
69736         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69737         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69738         GLIBC_2.16.
69739         * debug/tst-chk1.c: Add poll and ppoll tests.
69740         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69741         * include/sys/poll.h: Add hidden proto for ppoll.
69742         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69743         * sysdeps/mach/hurd/ppoll.c: Likewise.
69744         * io/ppoll.c: Likewise.
69745         * debug/poll_chk.c: New file.
69746         * debug/ppoll_chk.c: New file.
69747         * include/bits/poll2.h: New file.
69748         * io/bits/poll2.h: New file.
69749
69750         [BZ #1350]
69751         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69752
69753         * configure.in: static is always set to yes.  Remove.
69754         * config.make.in: Don't set build-static.
69755         * Makeconfig: Remove use of build-static.
69756         * dlfcn/Makefile: Likewise.
69757         * elf/Makefile: Likewise.
69758         * math/Makefile: Likewise.
69759         * misc/Makefile: Likewise.
69760         * nptl/Makefile: Likewise.
69761         * sysdeps/mach/hurd/Makefile: Likewise.
69762
69763         * configure.in: PWD_P is not used anymore.
69764         * config.make.in: Remove PWD_P entry.
69765
69766         * configure.in: Remove last remnants of RANLIB.
69767         No need to check for signed size_t anymore.
69768         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69769         and IA-64.
69770         Remove __builtin_expect test because we require at least gcc 3.4.
69771         * aclocal.m4: Likewise.
69772
69773         * wcsmbs/mbrtoc16.c: Implement using towc function.
69774         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69775         * wcsmbs/wcsmbsload.c: Likewise.
69776         * iconv/gconv_simple.c: Likewise.
69777         * iconv/gconv_int.h: Likewise.
69778         * iconv/gconv_builtin.h: Likewise.
69779         * iconv/iconv_prog.c: Remove CHAR16 handling.
69780
69781         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69782
69783         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69784
69785         * configure.in: Remove --with-elf and --enable-bounded options.
69786         Dont set base_machine for ia64.  More non-ELF conditions removed.
69787         Remove testing and setting of leading underscore information.
69788         * config.make.in (build-bounded): Set to no.
69789         * config.h.in: Remove NO_UNDERSCORES entry.
69790         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69791         them.
69792         * csu/start.c: Remove !NO_UNDERSCORE code.
69793         * locale/localeinfo.h: Likewise.
69794         * sysdeps/generic/machine-gmon.h: Likewise.
69795         * sysdeps/generic/sysdep.h: Likewise.
69796         * sysdeps/i386/sysdep.h: Likewise.
69797         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69798         * sysdeps/mach/sysdep.h: Likewise.
69799         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69800         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69801         * sysdeps/sh/sysdep.h: Likewise.
69802         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69803         * sysdeps/unix/i386/sysdep.S: Likewise.
69804         * sysdeps/unix/sparc/start.c: Likewise.
69805         * sysdeps/unix/sparc/sysdep.S: Likewise.
69806         * sysdeps/unix/sparc/sysdep.h: Likewise.
69807         * sysdeps/unix/start.c: Likewise.
69808         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69809         * sysdeps/x86_64/sysdep.h: Likewise.
69810
69811 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69812
69813         [BZ #13553]
69814         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69815         for non-gcc.
69816         * argp/argp-fmtstream.h: Use const instead __const.
69817         * argp/argp.h: Likewise.
69818         * assert/assert.h: Likewise.
69819         * bits/fenv.h: Likewise.
69820         * bits/sched.h: Likewise.
69821         * bits/sigset.h: Likewise.
69822         * bits/sigthread.h: Likewise.
69823         * catgets/nl_types.h: Likewise.
69824         * conform/data/pthread.h-data: Likewise.
69825         * crypt/crypt-private.h: Likewise.
69826         * crypt/crypt.h: Likewise.
69827         * crypt/crypt_util.c: Likewise.
69828         * ctype/ctype.h: Likewise.
69829         * debug/execinfo.h: Likewise.
69830         * debug/mbsnrtowcs_chk.c: Likewise.
69831         * debug/mbsrtowcs_chk.c: Likewise.
69832         * debug/wcsnrtombs_chk.c: Likewise.
69833         * debug/wcsrtombs_chk.c: Likewise.
69834         * debug/wcstombs_chk.c: Likewise.
69835         * dirent/dirent.h: Likewise.
69836         * dlfcn/dlfcn.h: Likewise.
69837         * elf/neededtest4.c: Likewise.
69838         * grp/grp.h: Likewise.
69839         * gshadow/gshadow.h: Likewise.
69840         * iconv/gconv.h: Likewise.
69841         * iconv/gconv_int.h: Likewise.
69842         * iconv/gconv_simple.c: Likewise.
69843         * iconv/iconv.h: Likewise.
69844         * iconv/loop.c: Likewise.
69845         * iconv/skeleton.c: Likewise.
69846         * include/aio.h: Likewise.
69847         * include/aliases.h: Likewise.
69848         * include/argz.h: Likewise.
69849         * include/arpa/inet.h: Likewise.
69850         * include/assert.h: Likewise.
69851         * include/dirent.h: Likewise.
69852         * include/dlfcn.h: Likewise.
69853         * include/execinfo.h: Likewise.
69854         * include/fcntl.h: Likewise.
69855         * include/fenv.h: Likewise.
69856         * include/glob.h: Likewise.
69857         * include/grp.h: Likewise.
69858         * include/libintl.h: Likewise.
69859         * include/mntent.h: Likewise.
69860         * include/netdb.h: Likewise.
69861         * include/pwd.h: Likewise.
69862         * include/rpc/netdb.h: Likewise.
69863         * include/sched.h: Likewise.
69864         * include/search.h: Likewise.
69865         * include/shadow.h: Likewise.
69866         * include/signal.h: Likewise.
69867         * include/stdio.h: Likewise.
69868         * include/stdlib.h: Likewise.
69869         * include/string.h: Likewise.
69870         * include/sys/socket.h: Likewise.
69871         * include/sys/stat.h: Likewise.
69872         * include/sys/statfs.h: Likewise.
69873         * include/sys/statvfs.h: Likewise.
69874         * include/sys/syslog.h: Likewise.
69875         * include/sys/time.h: Likewise.
69876         * include/sys/uio.h: Likewise.
69877         * include/time.h: Likewise.
69878         * include/unistd.h: Likewise.
69879         * include/utmp.h: Likewise.
69880         * include/wchar.h: Likewise.
69881         * include/wctype.h: Likewise.
69882         * inet/aliases.h: Likewise.
69883         * inet/arpa/inet.h: Likewise.
69884         * inet/netinet/ether.h: Likewise.
69885         * inet/netinet/in.h: Likewise.
69886         * intl/libintl.h: Likewise.
69887         * io/bits/fcntl2.h: Likewise.
69888         * io/fcntl.h: Likewise.
69889         * io/ftw.h: Likewise.
69890         * io/sys/poll.h: Likewise.
69891         * io/sys/stat.h: Likewise.
69892         * io/sys/statfs.h: Likewise.
69893         * io/sys/statvfs.h: Likewise.
69894         * io/utime.h: Likewise.
69895         * libio/bits/stdio.h: Likewise.
69896         * libio/bits/stdio2.h: Likewise.
69897         * libio/libio.h: Likewise.
69898         * libio/libioP.h: Likewise.
69899         * libio/stdio.h: Likewise.
69900         * locale/lc-ctype.c: Likewise.
69901         * locale/locale.h: Likewise.
69902         * login/utmp.h: Likewise.
69903         * malloc/arena.c: Likewise.
69904         * malloc/malloc.c: Likewise.
69905         * malloc/malloc.h: Likewise.
69906         * malloc/mcheck.c: Likewise.
69907         * malloc/mtrace.c: Likewise.
69908         * math/bits/mathcalls.h: Likewise.
69909         * math/fenv.h: Likewise.
69910         * math/math_private.h: Likewise.
69911         * misc/bits/error.h: Likewise.
69912         * misc/bits/syslog.h: Likewise.
69913         * misc/err.h: Likewise.
69914         * misc/error.h: Likewise.
69915         * misc/fstab.h: Likewise.
69916         * misc/mntent.h: Likewise.
69917         * misc/regexp.h: Likewise.
69918         * misc/search.h: Likewise.
69919         * misc/sgtty.h: Likewise.
69920         * misc/sys/mman.h: Likewise.
69921         * misc/sys/syslog.h: Likewise.
69922         * misc/sys/uio.h: Likewise.
69923         * misc/sys/xattr.h: Likewise.
69924         * misc/ttyent.h: Likewise.
69925         * nis/rpcsvc/ypclnt.h: Likewise.
69926         * nss/nss.h: Likewise.
69927         * posix/bits/unistd.h: Likewise.
69928         * posix/fnmatch.h: Likewise.
69929         * posix/glob.h: Likewise.
69930         * posix/sched.h: Likewise.
69931         * posix/spawn.h: Likewise.
69932         * posix/sys/wait.h: Likewise.
69933         * posix/unistd.h: Likewise.
69934         * posix/wordexp.h: Likewise.
69935         * pwd/pwd.h: Likewise.
69936         * resolv/netdb.h: Likewise.
69937         * resource/sys/resource.h: Likewise.
69938         * rt/aio.h: Likewise.
69939         * rt/bits/mqueue2.h: Likewise.
69940         * rt/mqueue.h: Likewise.
69941         * shadow/shadow.h: Likewise.
69942         * signal/signal.h: Likewise.
69943         * socket/send.c: Likewise.
69944         * socket/sendto.c: Likewise.
69945         * socket/sys/socket.h: Likewise.
69946         * stdio-common/printf.h: Likewise.
69947         * stdlib/bits/stdlib.h: Likewise.
69948         * stdlib/fmtmsg.h: Likewise.
69949         * stdlib/monetary.h: Likewise.
69950         * stdlib/stdlib.h: Likewise.
69951         * stdlib/ucontext.h: Likewise.
69952         * streams/stropts.h: Likewise.
69953         * string/argz.h: Likewise.
69954         * string/bits/string2.h: Likewise.
69955         * string/string.h: Likewise.
69956         * string/strings.h: Likewise.
69957         * sunrpc/rpc/auth.h: Likewise.
69958         * sunrpc/rpc/auth_des.h: Likewise.
69959         * sunrpc/rpc/clnt.h: Likewise.
69960         * sunrpc/rpc/netdb.h: Likewise.
69961         * sunrpc/rpc/pmap_clnt.h: Likewise.
69962         * sunrpc/rpc/xdr.h: Likewise.
69963         * sysdeps/generic/inttypes.h: Likewise.
69964         * sysdeps/generic/net/if.h: Likewise.
69965         * sysdeps/generic/sys/swap.h: Likewise.
69966         * sysdeps/gnu/net/if.h: Likewise.
69967         * sysdeps/gnu/utmpx.h: Likewise.
69968         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69969         * sysdeps/i386/i486/bits/string.h: Likewise.
69970         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69971         * sysdeps/s390/bits/string.h: Likewise.
69972         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69973         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69974         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69975         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69976         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69977         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69978         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69979         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69980         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69981         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69982         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69983         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69984         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69985         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69986         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69987         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69988         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69989         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69990         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69991         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69992         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69993         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69994         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69995         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69996         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69997         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69998         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69999         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70000         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70001         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70002         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70003         * sysvipc/sys/ipc.h: Likewise.
70004         * sysvipc/sys/msg.h: Likewise.
70005         * sysvipc/sys/sem.h: Likewise.
70006         * sysvipc/sys/shm.h: Likewise.
70007         * termios/termios.h: Likewise.
70008         * time/sys/time.h: Likewise.
70009         * time/time.h: Likewise.
70010         * wcsmbs/bits/wchar2.h: Likewise.
70011         * wcsmbs/uchar.h: Likewise.
70012         * wcsmbs/wchar.h: Likewise.
70013         * wctype/wctype.h: Likewise.
70014
70015         [BZ #13551]
70016         * Makeconfig: Remove all but ELF support including AIX support.
70017         * Makerules: Likewise.
70018         * config.h.in: Likewise.
70019         * config.make.in: Likewise.
70020         * configure: Likewise.
70021         * configure.in: Likewise.
70022         * csu/Makefile: Likewise.
70023         * csu/version.c: Likewise.
70024         * debug/Makefile: Likewise.
70025         * dlfcn/Makefile: Likewise.
70026         * elf/Makefile: Likewise.
70027         * extra-lib.mk: Likewise.
70028         * iconv/Makefile: Likewise.
70029         * include/libc-symbols.h: Likewise.
70030         * include/shlib-compat.h: Likewise.
70031         * resolv/Makefile: Likewise.
70032         * resolv/res_libc.c: Likewise.
70033         * rt/Makefile: Likewise.
70034         * sysdeps/i386/asm-syntax.h: Likewise.
70035         * sysdeps/i386/sysdep.h: Likewise.
70036         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70037         * sysdeps/mach/sysdep.h: Likewise.
70038         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70039         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70040         * sysdeps/s390/asm-syntax.h: Likewise.
70041         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70042         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70043         * sysdeps/sh/sysdep.h: Likewise.
70044         * sysdeps/unix/sparc/sysdep.h: Likewise.
70045         * sysdeps/wordsize-32/divdi3.c: Likewise.
70046         * sysdeps/x86_64/sysdep.h: Likewise.
70047
70048         * argp/Versions: Remove _argp_unlock_xxx.
70049
70050         [BZ #13559]
70051         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70052         * abilist/libBrokenLocale.abilist: Likewise.
70053         * abilist/libanl.abilist: Likewise.
70054         * abilist/libc.abilist: Likewise.
70055         * abilist/libcrypt.abilist: Likewise.
70056         * abilist/libdl.abilist: Likewise.
70057         * abilist/libm.abilist: Likewise.
70058         * abilist/libnsl.abilist: Likewise.
70059         * abilist/libpthread.abilist: Likewise.
70060         * abilist/libresolv.abilist: Likewise.
70061         * abilist/librt.abilist: Likewise.
70062         * abilist/libthread_db.abilist: Likewise.
70063         * abilist/libutil.abilist: Likewise.
70064         * abilist/libnss_db.abilist: New file.
70065
70066         * scripts/abilist.awk: Add support for indirect functions.
70067
70068         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70069
70070         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70071
70072         * shlib-versions: Remove entries for ports architectures.
70073
70074         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70075         files in ports.
70076         * elf/stackguard-macros.h: Remove support for IA-64.
70077         * elf/tst-auditmod1.c: Likewise.
70078         * sysdeps/generic/ldsodefs.h: Likewise.
70079
70080         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70081         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70082         configure files.
70083
70084         [BZ #13552]
70085         * configure.in: Remove --enable-omitfp support.
70086         * FAQ.in: Adjust.
70087         * config.make.in: Likewise.
70088         * Makeconfig: Likewise.
70089         * manual/install.texi: Likewise.
70090
70091         In case anyone cares, the IA-64 architecture could move to ports.
70092         * sysdeps/ia64/*: Removed.
70093         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70094         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70095
70096         [BZ #13555]
70097         * configure.in: Remove entries for unsupported architectures.
70098
70099         [BZ #13533]
70100         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70101         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70102         routines.
70103         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70104         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70105         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70106         fall back to using wcrtomb.
70107         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70108         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70109         renaming.
70110         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70111         * wcsmbs/tst-c16c32-1.c: New file.
70112
70113         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70114         local variable.
70115
70116         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70117
70118         * elf/tst-unique3.cc: Add explicit declaration of gets.
70119         * elf/tst-unique3lib.cc: Likewise.
70120         * elf/tst-unique3lib2.cc: Likewise.
70121         * elf/tst-unique4.cc: Likewise.
70122
70123         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70124
70125 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70126
70127         [BZ #13566]
70128         * assert/assert.h (static_assert): Don't define for C++.
70129         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70130         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70131
70132 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70133
70134         * iconv/loop.c (single loop): Fix assertion in storing of
70135         remaining bytes.
70136
70137         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70138
70139 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70140
70141         * posix/getconf.c: Update copyright year.
70142         * nss/getent.c: Likewise.
70143         * nss/makedb.c: Likewise.
70144         * iconv/iconvconfig.c: Likewise.
70145         * iconv/iconv_prog.c: Likewise.
70146         * elf/ldconfig.c: Likewise.
70147         * elf/pldd.c: Likewise.
70148         * elf/sotruss.ksh: Likewise.
70149         * catgets/gencat.c: Likewise.
70150         * csu/version.c: Likewise.
70151         * elf/ldd.bash.in: Likewise.
70152         * elf/sprof.c (print_version): Likewise.
70153         * locale/programs/locale.c: Likewise.
70154         * locale/programs/localedef.c: Likewise.
70155         * login/programs/pt_chown.c: Likewise.
70156         * nscd/nscd.c (print_version): Likewise.
70157         * debug/xtrace.sh: Likewise.
70158         * malloc/memusage.sh: Likewise.
70159         * malloc/mtrace.pl: Likewise.
70160         * debug/catchsegv.sh: Likewise.
70161
70162 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70163
70164         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70165         pure attribute.
70166
70167 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70168
70169         [BZ #13533]
70170         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70171         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70172         transformations.
70173         * iconv/gconv_int.h: Likewise.
70174         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70175         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70176         from libc for GLIBC_2.16.
70177         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70178         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70179         * wcsmbs/uchar.h: Really define mbstate_t.
70180         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70181         * wcsmbs/c16rtomb.c: New file.
70182         * wcsmbs/mbrtoc16.c: New file.
70183         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70184         for C/POSIX locale.
70185         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70186         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70187
70188         * wcsmbs/wchar.h: Add missing __restrict.
70189
70190 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70191
70192         [BZ #13532]
70193         * time/Makefile (routines): Add timespec_get.
70194         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70195         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70196         timespec for ISO C11.
70197         * time/timespec_get.c: New file.
70198         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70199         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70200
70201         [BZ #13531]
70202         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70203         * stdlib/stdlib.h: Declare aligned_alloc.
70204         * Versions.def: Add GLIBC_2.16 for libc.
70205         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70206
70207         [BZ 13527]
70208         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70209         ISO C11.
70210
70211         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70212         code.
70213
70214         [BZ #13528]
70215         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70216
70217         [BZ #13529]
70218         * assert/assert.h (static_assert): Define.
70219
70220         * version.h: Update for 2.16 development version.
70221
70222         [BZ #13526]
70223         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70224         _ISOC11_SOURCE.
70225
70226         * version.h (RELEASE): Bump for 2.15 release.
70227         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70228
70229         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70230         Patch by Marek Polacek <mpolacek@redhat.com>.
70231
70232         * bits/byteswap.h: Protect long long constants with __extension__.
70233         * sysdeps/i386/bits/byteswap.h: Likewise.
70234         * sysdeps/ia64/bits/byteswap.h: Likewise.
70235         * sysdeps/s390/bits/byteswap.h: Likewise.
70236         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70237
70238 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70239
70240         [BZ #13540]
70241         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70242         destination buffer.
70243         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70244
70245 2011-12-23  Marek Polacek  <polacek@redhat.com>
70246
70247         * elf/dl-addr.c (determine_info): Add inline keyword.
70248         * elf/tst-auditmod4b.c (check_avx): Likewise.
70249         * elf/tst-auditmod6b.c (check_avx): Likewise.
70250         * elf/tst-auditmod6c.c (check_avx): Likewise.
70251         * elf/tst-auditmod7b.c (check_avx): Likewise.
70252
70253 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70254
70255         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70256         !__SSE_MATH__.
70257
70258 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70259
70260         [BZ #13540]
70261         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70262         processing for last bytes.
70263
70264 2011-08-06  Bruno Haible  <bruno@clisp.org>
70265
70266         [BZ #13061]
70267         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70268         U+0385, not to U+1FEE.
70269
70270         [BZ #13062]
70271         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70272         entry for U+00A5 U+0301.
70273
70274 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70275
70276         [BZ #13166]
70277         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70278         buffer for the output is too small.
70279
70280         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70281         optimization.
70282
70283         [BZ #13185]
70284         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70285         SSE flags if possible.
70286
70287 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70288
70289         [BZ #13540]
70290         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70291         processing for last bytes.
70292
70293 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70294
70295         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70296         (syscall-list-default-options, syscall-list-default-condition)
70297         (syscall-list-includes): Define.
70298         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70299         list of ABIs and options and #if conditions for each ABI.  Do not
70300         handle common syscalls between ABIs specially.
70301         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70302         Remove.
70303         (syscall-list-variants, syscall-list-32bit-options)
70304         (syscall-list-32bit-condition, syscall-list-64bit-options)
70305         (syscall-list-64bit-condition): Define.
70306         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70307         (syscall-list-variants, syscall-list-32bit-options)
70308         (syscall-list-32bit-condition, syscall-list-64bit-options)
70309         (syscall-list-64bit-condition): Define.
70310         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70311         Remove.
70312         (syscall-list-variants, syscall-list-32bit-options)
70313         (syscall-list-32bit-condition, syscall-list-64bit-options)
70314         (syscall-list-64bit-condition): Define.
70315         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70316         Remove.
70317         (syscall-list-variants, syscall-list-32bit-options)
70318         (syscall-list-32bit-condition, syscall-list-64bit-options)
70319         (syscall-list-64bit-condition): Define.
70320
70321 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70322
70323         * locale/iso-639.def: Add brx entry.
70324
70325         [BZ #13328]
70326         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70327         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70328
70329         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70330         __feraiseexcept_renamed.
70331
70332 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70333
70334         [BZ #13538]
70335         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70336         EPOLLET with unsigned values.
70337         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70338         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70339
70340         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70341         to large cancellation.
70342         * math/s_cacoshf.c: Likewise.
70343         * math/s_cacoshl.c: Likewise.
70344
70345 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70346
70347         [BZ #13305]
70348         [BZ #12786]
70349         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70350         * math/s_cacoshf.c: Likewise.
70351         * math/s_cacoshl.c: Likewise.
70352
70353 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70354
70355         [BZ #13439]
70356         * iconv/gconv.h: Define __GCONV_SWAP.
70357         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70358         * iconvdata/utf-16.c: Likewise.
70359         * iconvdata/utf-32.c: Likewise.
70360
70361 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70362
70363         [BZ #13524]
70364         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70365         numerator after shifting it by one limb.
70366
70367 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70368
70369         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70370         under [__USE_EXTERN_INLINES].
70371
70372 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70373
70374         [BZ #13446]
70375         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70376
70377 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70378
70379         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70380         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70381         optimized code.
70382         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70383         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70384         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70385         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70386         for strncasecmp/strncasecmp_l compilation.
70387         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70388         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70389
70390 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70391
70392         [BZ #13484]
70393         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70394         of __asm__.
70395
70396 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70397
70398         [BZ #13506]
70399         * time/tzfile.c (__tzfile_read): Check values from file header.
70400
70401 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70402
70403         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70404         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70405         * powerpc/powerpc32/dl-start.S: Likewise.
70406         * powerpc/powerpc32/elf/start.S: Likewise.
70407         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70408         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70409         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70410         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70411         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70412         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70413         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70414         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70415         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70416         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70417         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70418         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70419         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70420         * powerpc/powerpc32/memset.S: Likewise.
70421         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70422         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70423         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70424         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70425         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70426         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70427         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70428         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70429         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70430         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70431         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70432         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70433         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70434
70435 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70436
70437         * math/libm-test.inc: Added more nearbyint tests.
70438         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70439         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70440         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70441         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70442
70443 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70444
70445         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70446         FD_CLOEXEC.
70447
70448 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70449
70450         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70451         Add wcscpy-ssse3 wcscpy-c.
70452         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70453         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70454         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70455         * sysdeps/x86_64/wcschr.S: New file.
70456         * sysdeps/x86_64/wcsrchr.S: New file.
70457         * string/test-strcmp.c: Remove checking of wcscmp function for
70458         wrong alignments.
70459         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70460         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70461         wcsrchr-sse2 wcsrchr-c.
70462         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70463         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70464         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70465         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70466         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70467         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70468         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70469         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70470         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70471         * wcsmbc/wcschr.c (WCSCHR): New macro.
70472
70473 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70474
70475         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70476         * wcsmbs/test-wcsrchr.c: New file.
70477         * string/test-strrchr.c: Add wcsrchr support.
70478         (WIDE): New macro.
70479         * wcsmbs/test-wcscpy.c: New file.
70480         * string/test-strcpy.c: Add wcscpy support.
70481         (WIDE): New macro.
70482
70483 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70484
70485         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70486         the inner loop.
70487
70488 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70489
70490         [BZ #13472]
70491         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70492
70493 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70494
70495         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70496         Minor optimizations.
70497
70498         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70499         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70500         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70501
70502 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70503
70504         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70505         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70506         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70507         for gcc to avoid warnings.
70508         * inet/Makefile (tests): Add tst-checks.
70509         * inet/tst-checks.c: New file.
70510
70511         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70512         warning.
70513
70514         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70515         __wmemcmp_sse2.
70516
70517         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70518         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70519
70520         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70521
70522 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70523
70524         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70525         problem.
70526
70527         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70528
70529 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70530
70531         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70532         conditional on GCC version.
70533         (__arch_compare_and_exchange_val_8_acq)
70534         (__arch_compare_and_exchange_val_16_acq)
70535         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70536         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70537         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70538
70539 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70540
70541         * sysdeps/sh/backtrace.c: New file.
70542
70543 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70544
70545         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70546         parenthesis.
70547
70548 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70549
70550         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70551         falling back to utime.
70552
70553 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70554
70555         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70556         expectations for float.
70557
70558 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70559
70560         * locale/weight.h (findidx): Add parameter len.
70561         * locale/weightwc.h (findidx): Likewise.
70562         * posix/fnmatch_loop.c (FCT): Adjust caller.
70563         * posix/regcomp.c (build_equiv_class): Likewise.
70564         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70565         * posix/regexec.c (check_node_accept_bytes): Likewise.
70566         * string/strcoll_l.c (STRCOLL): Likewise.
70567         * string/strxfrm_l.c (STRXFRM): Likewise.
70568
70569 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70570
70571         * Makefile.in: Remove CVSOPT handling.
70572         * configure.in: Remove use of AC_REVISION.
70573         * iconvdata/Makefile (distribute): No need to filter out CVS.
70574         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70575         handling.
70576
70577 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70578
70579         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70580         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70581         [USE_AS_STRNCASECMP_L]: Likewise.
70582         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70583         NO_TLS_DIRECT_SEG_REFS.
70584         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70585         Fix argument offsets for non-PIC.
70586         [USE_AS_STRNCASECMP_L]: Likewise.
70587         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70588         NO_TLS_DIRECT_SEG_REFS.
70589
70590 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70591
70592         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70593         O_CLOEXEC.
70594         * locale/loadlocale.c (_nl_load_locale): Likewise.
70595
70596 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70597
70598         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70599         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70600         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70601         (SYSCALL_GETTIME): Set errno on error.
70602
70603         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70604         count references to noai6ai_cached.
70605
70606 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70607
70608         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70609
70610         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70611         FD_CLOEXEC for /proc/self/maps.
70612
70613         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70614         FD_CLOEXEC for /proc/meminfo.
70615
70616         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70617         gai.conf.
70618
70619         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70620         FD_CLOEXEC for given file.
70621
70622         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70623
70624         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70625         FD_CLOEXEC for /etc/hosts.
70626         (_gethtent): Likewise.
70627
70628         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70629
70630         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70631         cancellation and set FD_CLOEXEC for /etc/netgroup.
70632
70633         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70634         reading /etc/publickey.
70635
70636         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70637         allow cancellation when reading /etc/group.
70638
70639         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70640         cancellation.
70641         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70642
70643         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70644         when using data file.
70645
70646         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70647
70648         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70649         (write_nis_obj): Use "c" and "e" in fopen.
70650
70651         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70652
70653         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70654
70655         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70656
70657         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70658
70659         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70660         locale.alias.
70661
70662         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70663
70664         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70665
70666         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70667
70668         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70669         file parsing and set FD_CLOEXEC.
70670
70671 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70672
70673         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70674
70675 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70676
70677         * malloc/arena.c (arena_get2): Don't call reused_arena when
70678         _int_new_arena failed.
70679
70680 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70681
70682         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70683         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70684         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70685         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70686         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70687         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70688         to compile strcasecmp and strncasecmp.
70689         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70690         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70691
70692         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70693
70694 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70695
70696         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70697         locale-defines.sym to gen-as-const-headers.
70698         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70699         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70700         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70701         to compile strcasecmp and strncasecmp.
70702         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70703         strcasecmp_l and strncasecmp_l.
70704         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70705         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70706         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70707         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70708         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70709         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70710         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70711         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70712         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70713         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70714         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70715
70716 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70717
70718         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70719         result of SYSDEP_GETTIME_CPU to retval.
70720         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70721         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70722
70723         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70724         variable.
70725
70726         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70727         mantissa words.
70728         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70729
70730         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70731         from unused variable.
70732
70733         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70734         DWARF definitions.
70735         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70736         for assembling.
70737
70738         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70739         over namespaces.
70740
70741         * sunrpc/rpc_prot.c (rejected): Fix case value.
70742
70743         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70744         unsigned long long int to avoid warnings in shift.
70745
70746         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70747         of use of trans.
70748         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70749         variable tmp.
70750
70751         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70752         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70753         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70754
70755         * nis/nis_table.c (nis_list): Use variable of correct type for
70756         result of __follow_path call.
70757
70758 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70759
70760         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70761         of math functions ceil, trunc, floor, round, and sqrt, when
70762         avaliable on the platform.
70763         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70764         name clash.
70765         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70766         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70767         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70768
70769 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70770
70771         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70772         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70773
70774 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70775
70776         * include/unistd.h: Fix __readlink return type.
70777         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70778
70779 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70780
70781         * stdlib/ucontext.h: Undo last change for makecontext.
70782
70783 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70784
70785         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70786
70787         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70788         * setjmp/setjmp.h: Mark functions as non-leaf.
70789         * setjmp/bits/setjmp2.h: Likewise.
70790         * stdlib/ucontext.h: Likewise.
70791
70792 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70793
70794         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70795         (reused_arena): Don't check arena limit.
70796         (arena_get2): Atomically check arena limit.
70797
70798 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70799
70800         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70801         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70802
70803         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70804         instructions.
70805
70806 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70807
70808         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70809         handler when locking.
70810
70811         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70812         Fix size of allocated buffer.
70813
70814 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70815
70816         [BZ #10103]
70817         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70818         declarations for long double functions.
70819         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70820
70821         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70822
70823 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70824
70825         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70826         installed.
70827
70828         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70829         is disabled.
70830
70831 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70832
70833         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70834
70835 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70836
70837         * include/alloca.h (stackinfo_alloca_round): Define.
70838         (extend_alloca): Use it.
70839         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70840         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70841         here.
70842
70843         * scripts/check-local-headers.sh: Ignore libaudit.h.
70844
70845         * nscd/Makefile (extra-objs): Make recursively expanded.
70846
70847 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70848
70849         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70850         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70851
70852         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70853         * posix/tst-rfc3484-2.c: Likewise.
70854         * posix/tst-rfc3484-3.c: Likewise.
70855
70856         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70857         process_vm_writev.
70858         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70859         process_vm_writev.
70860         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70861         process_vm_writev from libc using GLIBC_2.15 version.
70862
70863         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70864
70865 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70866
70867         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70868         stack usage.
70869
70870 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70871
70872         [BZ #13367]
70873         * nss/getent.c (initgroups_keys): Show error message in case no group
70874         names are given.
70875
70876         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70877         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70878         __bump_nl_timestamp.
70879         * nscd/connections (nscd_init): When host database is served open
70880         netlink socket and request notification about configuration changes.
70881         (main_loop_poll): Track netlink file descriptor and bump timestamp
70882         in case data becomes available.
70883         (main_loop_epoll): Likewise.
70884         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70885         (database_pers_head): Add extra_data fileds.
70886         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70887         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70888         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70889         Adjust caller.
70890         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70891         in6ai data, call __free_in6ai.
70892         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70893         Add -DHAVE_NETLINK.
70894         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70895         interface information.  Reuse previous data if netlink timestamp
70896         is not changed.
70897         (__bump_nl_timestamp): New function.
70898         (__free_in6ai): New function.
70899
70900 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70901
70902         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70903         close_not_cancel_no_status here.
70904         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70905
70906 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70907
70908         [BZ #13276]
70909         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70910         return value.
70911
70912         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70913         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70914         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70915
70916 2011-07-03  Andreas Jaeger  <aj@suse.de>
70917
70918         [BZ #10709]
70919         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70920         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70921         * math/libm-test.inc (sin_test): Add test case.
70922
70923 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70924
70925         [BZ #13337]
70926         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70927         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70928
70929         * elf/chroot_canon.c (chroot_canon): Cleanups.
70930
70931         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70932
70933         [BZ #13335]
70934         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70935         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70936
70937         * string/test-strchr.c: Make usable for strchrnul testing.
70938         * string/test-strchrnul.c: New file.
70939         * string/Makefile (strop-tests): Add strchrnul.
70940
70941         * po/it.po: Update from translation team.
70942         * po/es.po: Likewise.
70943
70944 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70945
70946         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70947         the three constants needed as parameters.  Drop the others.
70948         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70949         __m128i_strloadu_tolower.
70950         Create and initialize variable zero and use it in all the places
70951         where _mm_setzero_si128 was used.
70952
70953         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70954         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70955         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70956         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70957         anymore.
70958         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70959         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70960         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70961         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70962         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70963         __mpranred, __mptan.
70964         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70965         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70966         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70967         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70968         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70969         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70970         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70971         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70972         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70973
70974 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70975
70976         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70977         redefine if SHARED.
70978         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70979
70980         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70981         wide char related routines to wcsmbs subdir.
70982
70983 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70984
70985         [BZ #13344]
70986         * misc/sys/cdefs.h (__THROWNL): Define.
70987         * posix/unistd.h: Use __THREADNL instead of __THREAD
70988         for memory synchronization functions.
70989
70990 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70991
70992         [BZ #13349]
70993         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70994         doesn't exist.
70995         * manual/stdio.texi (Obstack Streams): Node removed.
70996
70997 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70998
70999         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71000         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71001         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71002
71003         * math/math_private.h (math_force_eval): Allow non-addressable
71004         arguments.
71005         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71006
71007 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71008
71009         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71010         file is not needed.
71011
71012         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71013         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71014         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71015         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71016         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71017         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71018         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71019         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71020         Add AVX variants.
71021         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71022         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71023         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71024         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71025         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71026         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71027         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71028         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71029         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71030         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71031         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71032         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71033         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71034         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71035         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71036         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71037         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71038         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71039         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71040
71041         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71042         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71043
71044         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71045         place.  Use VEX encoding when compiling for AVX.
71046
71047 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71048
71049         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71050         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71051
71052         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71053
71054 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71055
71056         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71057         useless if() expression.
71058         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71059         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71060         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71061         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71062         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71063         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71064         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71065         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71066         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71067         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71068         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71069         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71070         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71071         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71072         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71073         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71074         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71075         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71076         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71077
71078         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71079
71080 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71081
71082         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71083         condition.
71084         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71085
71086 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71087
71088         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71089         .text section.  Avoid duplicate constants.
71090         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71091         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71092         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71093         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71094         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71095         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71096         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71097         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71098         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71099         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71100         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71101         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71102         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71103         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71104         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71105         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71106         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71107         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71108         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71109         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71110         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71111         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71112         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71113         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71114         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71115         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71116         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71117         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71118         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71119         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71120         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71121         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71122         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71123         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71124         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71125         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71126         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71127         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71128         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71129         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71130         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71131         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71132         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71133         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71134         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71135
71136 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71137
71138         * sysdeps/x86_64/dla.h: Move to ...
71139         * sysdeps/x86_64/fpu/dla.h: ...here.
71140         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71141         situations.  Use __builtin_fma only for gcc 4.6 and up.
71142
71143         * config.make.in: Add have-mfma4 entry.
71144         * configure.in: Substitute libc_cv_cc_fma4.
71145         * math/Makefile (dbl-only-routines): Add sincostab.
71146         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71147         Use __sincostab not sincos.
71148         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71149         name is a macro.
71150         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71151         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71152         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71153         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71154         using __copysign.
71155         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71156         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71157         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71158         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71159         and __inv.
71160         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71161         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71162         __copysign.
71163         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71164         define aliases when function name is a macro.
71165         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71166         sysdeps/ieee754/dbl-64/sincos.tbl.
71167         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71168         fma4-enabled routines.
71169         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71170         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71171         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71172         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71173         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71174         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71175         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71176         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71177         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71178         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71179         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71180         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71181         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71182         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71183         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71184         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71185         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71186         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71187         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71188         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71189         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71190         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71191         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71192         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71193         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71194         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71195         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71196         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71197         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71198         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71199
71200         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71201         rename.
71202         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71203         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71204         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71205         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71206         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71207         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71208         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71209         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71210
71211 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71212
71213         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71214
71215 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71216
71217         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71218
71219         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71220         prediction.
71221         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71222
71223         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71224         Remove unused variable magic_bits.
71225         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71226
71227         * string/strnlen.c: Define and use STRNLEN macro.
71228         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71229         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71230         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71231         * wcsmbs/wcslen.c: Define and use WCSLEN.
71232         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71233         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71234         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71235         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71236         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71237         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71238         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71239
71240 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71241
71242         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71243         strnlen-sse2-no-bsf.
71244         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71245         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71246         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71247         Add strnlen support.
71248         (USE_AS_STRNLEN): New macro.
71249         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71250         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71251         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71252         * sysdeps/x86_64/wcslen.S: New file.
71253
71254 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71255
71256         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71257         XMM-moves are used for copying on small sizes.
71258
71259 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71260
71261         * wcsmbs/Makefile (strop-tests): Add wcschr.
71262         * wcsmbs/test-wcschr.c: New file.
71263         * string/test-strchr.c: Update.
71264         Add wcschr support.
71265         (WIDE): New macro.
71266
71267 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71268
71269         * wcsmbs/Makefile (strop-tests): Add wcslen.
71270         * wcsmbs/test-wcslen.c: New file.
71271         * string/test-strlen.c: Update.
71272         Add wcslen support.
71273         (WIDE): New macro.
71274
71275 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71276
71277         * po/it.po: Update from translation team.
71278
71279 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71280
71281         * sysdeps/x86_64/wcscmp.S: Update.
71282         Fix wrong comparison semantics.
71283         wcscmp shall use signed comparison not unsigned.
71284         Don't use substraction to avoid overflow bug.
71285         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71286         * wcsmbc/wcscmp.c: Likewise.
71287         * string/test-strcmp.c: Likewise.
71288         Add new tests to check cases with negative values.
71289
71290 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71291
71292         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71293         * sysdeps/x86_64/dla.h: ...here.  New file.
71294         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71295         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71296         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71297         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71298         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71299         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71300         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71301         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71302         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71303
71304 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71305
71306         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71307         __ynl_finite aliases.
71308
71309 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71310
71311         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71312
71313         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71314         define DLA_FMA.
71315         [DLA_FMA] (EMULV): Use DLA_FMA.
71316         [DLA_FMA] (MUL12): Use EMULV.
71317         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71318         that are not needed.
71319         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71320         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71321         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71322         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71323         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71324         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71325         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71326
71327 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71328
71329         * math/s_nan.c: Undef __nan.
71330         * math/s_nanf.c: Undef __nanf.
71331         * math/s_nanl.c: Undef __nanl.
71332         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71333         "math_private.h".
71334
71335 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71336
71337         * math/s_catan.c: Add branch predictions.
71338         * math/s_catanf.c: Likewise.
71339         * math/s_catanh.c: Likewise.
71340         * math/s_catanhf.c: Likewise.
71341         * math/s_catanhl.c: Likewise.
71342         * math/s_catanl.c: Likewise.
71343         * math/s_cexp.c: Likewise.
71344         * math/s_cexpf.c: Likewise.
71345         * math/s_cexpl.c: Likewise.
71346         * math/s_clog.c: Likewise.
71347         * math/s_clog10.c: Likewise.
71348         * math/s_clog10f.c: Likewise.
71349         * math/s_clog10l.c: Likewise.
71350         * math/s_clogf.c: Likewise.
71351         * math/s_clogl.c: Likewise.
71352         * math/s_csqrt.c: Likewise.
71353         * math/s_csqrtf.c: Likewise.
71354         * math/s_csqrtl.c: Likewise.
71355         * math/s_ctanf.c: Likewise.
71356         * math/s_ctanh.c: Likewise.
71357         * math/s_ctanhf.c: Likewise.
71358         * math/s_ctanhl.c: Likewise.
71359         * math/s_ctanl.c: Likewise.
71360
71361         * math/math_private.h: Define __nan, __nanf, __nanl.
71362         * math/s_cacosh.c: Include <math_private.h>.
71363         * math/s_cacoshl.c: Likewise.
71364         * math/s_casinh.c: Likewise.
71365         * math/s_casinhf.c: Likewise.
71366         * math/s_casinhl.c: Likewise.
71367         * math/s_ccos.c: Rely entire on ccosh.
71368         * math/s_ccosf.c: Rely entire on ccoshf.
71369         * math/s_ccosl.c: Rely entirely on ccoshl.
71370         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71371         Remove tests for FE_INVALID.
71372         * math/s_ccoshf.c: Likewise.
71373         * math/s_ccoshl.c: Likewise.
71374         * math/s_csin.c: Likewise.
71375         * math/s_csinf.c: Likewise.
71376         * math/s_csinh.c Likewise.
71377         * math/s_csinhf.c: Likewise.
71378         * math/s_csinhl.c: Likewise.
71379         * math/s_csinl.c: Likewise.
71380         * math/s_ctan.c: Likewise.
71381         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71382         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71383         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71384
71385 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71386
71387         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71388         compilation problems.
71389
71390         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71391         __builtin_expect.
71392
71393 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71394
71395         * sysdeps/i386/configure.in: Test for -mfma4 option.
71396         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71397         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71398         COMMON_CPUID_INDEX_80000001.
71399         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71400         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71401         use it if FMA3 is not supported.
71402         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71403
71404         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71405         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71406
71407 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71408
71409         [BZ #12892]
71410         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71411         it would create a cycle with a link time dependency.
71412
71413 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71414
71415         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71416         instruction.
71417         * string/Makefile (strop-tests): Add rawmemchr.
71418         * string/test-rawmemchr.c: New file.
71419
71420         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71421         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71422         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71423         when compiling str{,n}casecmp and when AVX is available.  Hook up
71424         new optimized code in initializers.
71425
71426 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71427
71428         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71429         __feraiseexcept instead of feraiseexcept.
71430
71431 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71432
71433         * math/math_private.h: Define defaults for libc_fetestexcept and
71434         libc_feupdateenv.
71435         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71436         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71437         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71438         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71439         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71440         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71441         libc_fetestexcept and libc_feupdateenv.
71442
71443         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71444         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71445         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71446         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71447         libc_feholdexcept_setround.
71448
71449         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71450         Add s_nearbyint-c and s_nearbyintf-c.
71451         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71452         nearbyintf inlines.
71453         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71454         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71455         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71456         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71457
71458         * math/math_private.h: Define defaults for libc_fegetround,
71459         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71460         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71461         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71462         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71463         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71464         standard functions.
71465         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71466         Remove comments and hacks for old compiler versions.
71467         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71468         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71469         libc_feholdexceptl.
71470
71471 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71472
71473         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71474         (__feraiseexcept_renamed): Add __NTH.
71475         (feraiseexcept): Add __NTH.  Rename local variables to fix
71476         namespace violations.
71477
71478 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71479
71480         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71481
71482         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71483
71484         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71485         recently added interfaces.
71486         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71487
71488         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71489         about macro parameter expansion.
71490
71491         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71492         __NO_MATH_INLINES is defined.  Cleanups.
71493
71494         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71495         and __floorf is target has SSE4.1.
71496         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71497         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71498         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71499         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71500
71501         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71502         name.
71503         (floorf): Likewise.
71504
71505         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71506
71507 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71508
71509         * misc/sys/cdefs.h: Fix last change.
71510
71511         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71512         database lookup.
71513
71514 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71515
71516         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71517
71518         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71519         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71520         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71521         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71522         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71523         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71524         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71525         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71526         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71527         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71528         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71529         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71530         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71531         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71532         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71533         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71534         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71535         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71536         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71537         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71538         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71539         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71540
71541         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71542         ceil, ceilf, floor, floorf.
71543
71544         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71545         Perform IRELATIVE relocations last.
71546
71547         * elf/do-rel.h: Add another parameter nrelative, replacing the
71548         local variable with the same name.  Change name of the function
71549         to end in Rel or Rela (uppercase).
71550         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71551         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71552         elf_dynamic_do_##reloc function.
71553
71554 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71555
71556         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71557         is sufficient, at least on modern CPUs.
71558
71559         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71560
71561         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71562         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71563
71564         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71565         __expl_finite.
71566         * math/bits/math-finite.h: Add entries for exp.
71567         * math/e_expl.c: Add __*_finite alias.
71568         * sysdeps/i386/fpu/e_exp.S: Likewise.
71569         * sysdeps/i386/fpu/e_expf.S: Likewise.
71570         * sysdeps/i386/fpu/e_expl.c: Likewise.
71571         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71572         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71573         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71574         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71575         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71576         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71577         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71578
71579         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71580         is sufficient, at least on modern CPUs.
71581
71582         * ctype/ctype-info.c (__ctype_init): Define.
71583         * include/ctype.h (__ctype_init): Declare.
71584         (__ctype_b_loc): The variable is always initialized.
71585         (__ctype_toupper_loc): Likewise.
71586         (__ctype_tolower_loc): Likewise.
71587         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71588         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71589
71590 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71591
71592         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71593
71594         * configure.in: Also look in $cxxmachine/include for C++ system
71595         headers.
71596
71597 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71598
71599         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71600         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71601         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71602         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71603         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71604         (USE_AS_WMEMCMP): New macro.
71605         Fixing indents.
71606         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71607         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71608         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71609         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71610         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71611         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71612         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71613         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71614         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71615         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71616         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71617         (USE_AS_WMEMCMP): New macro.
71618         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71619         * sysdeps/string/test-memcmp.c: Update.
71620         Fix simple_wmemcmp.
71621         Add new tests.
71622         * wcsmbs/wmemcmp.c: Update.
71623         (WMEMCMP): New macro.
71624         Fix overflow bug.
71625
71626 2011-10-12  Andreas Jaeger  <aj@suse.de>
71627
71628         [BZ #13268]
71629         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71630
71631 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71632
71633         * libio/iofwide.c (do_length): Avoid warning.
71634
71635         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71636
71637 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71638
71639         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71640
71641         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71642         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71643         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71644         * sysdeps/i386/i686/fpu/e_log.S: New file.
71645         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71646         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71647
71648         * ctype/ctype.h: Add support for inlined isXXX functions when
71649         compiling C++ code.
71650
71651 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71652
71653         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71654
71655         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71656
71657 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71658
71659         [BZ #13291]
71660         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71661
71662 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71663
71664         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71665         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71666         feraiseexcept.
71667
71668         * sysdeps/x86_64/memrchr.S: Check for zero size.
71669
71670         * string/stratcliff.c: Add memrchr tests.
71671
71672 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71673
71674         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71675         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71676         rawmemchr-sse2 rawmemchr-sse2-bsf.
71677         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71678         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71679         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71680         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71681         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71682         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71683         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71684         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71685         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71686         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71687         * string/memrchr.c (MEMRCHR): New macro.
71688
71689 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71690
71691         Add integration with gcc's -ffinite-math-only and optimize wrapper
71692         functions in libm.
71693         * Versions.def: Define GLIBC_2.15 version for libm.
71694         * math/Makefile (headers): Add bits/math-finite.h.
71695         * math/bits/math-finite.h: New file.
71696         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71697         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71698         * math/e_acoshl.c: Add __*_finite alias.
71699         * math/e_acosl.c: Likewise.
71700         * math/e_asinl.c: Likewise.
71701         * math/e_atan2l.c: Likewise.
71702         * math/e_atanhl.c: Likewise.
71703         * math/e_coshl.c: Likewise.
71704         * math/e_exp10.c: Likewise.
71705         * math/e_exp10f.c: Likewise.
71706         * math/e_exp10l.c: Likewise.
71707         * math/e_exp2l.c: Likewise.
71708         * math/e_fmodl.c: Likewise.
71709         * math/e_gammal_r.c: Likewise.
71710         * math/e_hypotl.c: Likewise.
71711         * math/e_j0l.c: Likewise.
71712         * math/e_j1l.c: Likewise.
71713         * math/e_jnl.c: Likewise.
71714         * math/e_lgammal_r.c: Likewise.
71715         * math/e_log10l.c: Likewise.
71716         * math/e_log2l.c: Likewise.
71717         * math/e_logl.c: Likewise.
71718         * math/e_powl.c: Likewise.
71719         * math/e_sinhl.c: Likewise.
71720         * math/e_sqrtl.c: Likewise.
71721         * math/e_scalb.c: Completely rewritten and optimized.
71722         * math/e_scalbf.c: Likewise.
71723         * math/e_scalbl.c: Likewise.
71724         * math/w_acos.c: Likewise.
71725         * math/w_acosf.c: Likewise.
71726         * math/w_acosl.c: Likewise.
71727         * math/w_acosh.c: Likewise.
71728         * math/w_acoshf.c: Likewise.
71729         * math/w_acoshl.c: Likewise.
71730         * math/w_asin.c: Likewise.
71731         * math/w_asinf.c: Likewise.
71732         * math/w_asinl.c: Likewise.
71733         * math/w_atan2.c: Likewise.
71734         * math/w_atan2f.c: Likewise.
71735         * math/w_atan2l.c: Likewise.
71736         * math/w_atanh.c: Likewise.
71737         * math/w_atanhf.c: Likewise.
71738         * math/w_atanhl.c: Likewise.
71739         * math/w_exp10.c: Likewise.
71740         * math/w_exp10f.c: Likewise.
71741         * math/w_exp10l.c: Likewise.
71742         * math/w_fmod.c: Likewise.
71743         * math/w_fmodf.c: Likewise.
71744         * math/w_fmodl.c: Likewise.
71745         * math/w_j0.c: Likewise.
71746         * math/w_j0f.c: Likewise.
71747         * math/w_j0l.c: Likewise.
71748         * math/w_j1.c: Likewise.
71749         * math/w_j1f.c: Likewise.
71750         * math/w_j1l.c: Likewise.
71751         * math/w_jn.c: Likewise.
71752         * math/w_jnf.c: Likewise.
71753         * math/w_log.c: Likewise.
71754         * math/w_logf.c: Likewise.
71755         * math/w_logl.c: Likewise.
71756         * math/w_log10.c: Likewise.
71757         * math/w_log10f.c: Likewise.
71758         * math/w_log10l.c: Likewise.
71759         * math/w_log2.c: Likewise.
71760         * math/w_log2f.c: Likewise.
71761         * math/w_log2l.c: Likewise.
71762         * math/w_pow.c: Likewise.
71763         * math/w_powf.c: Likewise.
71764         * math/w_powl.c: Likewise.
71765         * math/w_remainder.c: Likewise.
71766         * math/w_remainderf.c: Likewise.
71767         * math/w_remainderl.c: Likewise.
71768         * math/w_scalb.c: Likewise.
71769         * math/w_scalbf.c: Likewise.
71770         * math/w_scalbl.c: Likewise.
71771         * math/w_sqrt.c: Likewise.
71772         * math/w_sqrtf.c: Likewise.
71773         * math/w_sqrtl.c: Likewise.
71774         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71775         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71776         used.
71777         * math/math_private.h: Declare __kernel_standard_f.
71778         * math/w_cosh.c: Remove cruft and optimize a bit.
71779         * math/w_coshf.c: Likewise.
71780         * math/w_coshl.c: Likewise.
71781         * math/w_exp2.c: Likewise.
71782         * math/w_exp2f.c: Likewise.
71783         * math/w_exp2l.c: Likewise.
71784         * math/w_hypot.c: Likewise.
71785         * math/w_hypotf.c: Likewise.
71786         * math/w_hypotl.c: Likewise.
71787         * math/w_lgamma.c: Likewise.
71788         * math/w_lgamma_r.c: Likewise.
71789         * math/w_lgammaf.c: Likewise.
71790         * math/w_lgammaf_r.c: Likewise.
71791         * math/w_lgammal.c: Likewise.
71792         * math/w_lgammal_r.c: Likewise.
71793         * math/w_sinh.c: Likewise.
71794         * math/w_sinhf.c: Likewise.
71795         * math/w_sinhl.c: Likewise.
71796         * math/w_tgamma.c: Likewise.
71797         * math/w_tgammaf.c: Likewise.
71798         * math/w_tgammal.c: Likewise.
71799         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71800         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71801         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71802         Minor optimizations.  Pretty printing.  Remove cruft.
71803         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71804         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71805         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71806         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71807         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71808         * sysdeps/i386/fpu/e_asin.S: Likewise.
71809         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71810         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71811         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71812         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71813         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71814         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71815         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71816         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71817         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71818         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71819         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71820         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71821         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71822         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71823         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71824         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71825         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71826         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71827         * sysdeps/i386/fpu/e_log.S: Likewise.
71828         * sysdeps/i386/fpu/e_log10.S: Likewise.
71829         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71830         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71831         * sysdeps/i386/fpu/e_log2.S: Likewise.
71832         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71833         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71834         * sysdeps/i386/fpu/e_logf.S: Likewise.
71835         * sysdeps/i386/fpu/e_logl.S: Likewise.
71836         * sysdeps/i386/fpu/e_pow.S: Likewise.
71837         * sysdeps/i386/fpu/e_powf.S: Likewise.
71838         * sysdeps/i386/fpu/e_powl.S: Likewise.
71839         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71840         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71841         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71842         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71843         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71844         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71845         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71846         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71847         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71848         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71849         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71850         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71851         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71852         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71853         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71854         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71855         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71856         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71857         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71858         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71859         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71860         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71861         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71862         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71863         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71864         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71865         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71866         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71867         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71868         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71869         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71870         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71871         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71872         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71873         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71874         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71875         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71876         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71877         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71878         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71879         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71880         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71881         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71882         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71883         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71884         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71885         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71886         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71887         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71888         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71889         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71890         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71891         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71892         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71893         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71894         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71895         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71896         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71897         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71898         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71899         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71900         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71901         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71902         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71903         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71904         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71905         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71906         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71907         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71908         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71909         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71910         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71911         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71912         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71913         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71914         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71915         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71916         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71917         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71918         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71919         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71920         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71921         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71922         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71923         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71924         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71925         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71926         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71927         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71928         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71929         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71930         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71931         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71932         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71933         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71934         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71935         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71936         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71937         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71938         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71939         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71940         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71941         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71942         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71943         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71944         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71945         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71946         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71947         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71948         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71949         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71950         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71951         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71952         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71953         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71954         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71955         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71956         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71957         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71958         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71959         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71960         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71961         (__isnanf): Likewise.
71962         (__isinf_ns): Likewise.
71963         (__isinf_nsf): Likewise.
71964         (__finite): Likewise.
71965         (__finitef): Likewise.
71966         (__ieee754_sqrt): Define as macro.
71967         (__ieee754_sqrtf): Define as macro.
71968         (__ieee754_sqrtl): Define as macro.
71969         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71970         inlined copy.
71971         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71972         __FINITE_MATH_ONLY__ consistent.
71973         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71974
71975 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71976
71977         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71978         of rawmemchr.
71979
71980         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71981
71982 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71983
71984         * po/ja.po: Update from translation team.
71985
71986 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71987
71988         * locale/programs/locarchive.c (prepare_address_space): New function.
71989         (create_archive, enlarge_archive, open_archive): Use it.
71990
71991         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71992         inside [SHARED], where it is used.
71993
71994         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71995
71996         * nss/getent.c (netgroup_keys): Remove unused variable.
71997         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71998
71999 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72000
72001         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72002         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72003         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72004         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72005         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72006         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72007         * math/Makefile (libm-calls): Add s_isinf_ns.
72008         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72009         * math/multc3.c: Likewise.
72010         * math/s_casin.c: Likewise.
72011         * math/s_casinf.c: Likewise.
72012         * math/s_casinl.c: Likewise.
72013         * math/s_ccos.c: Likewise.
72014         * math/s_ccosf.c: Likewise.
72015         * math/s_ccosl.c: Likewise.
72016         * math/s_ctan.c: Likewise.
72017         * math/s_ctanf.c: Likewise.
72018         * math/s_ctanh.c: Likewise.
72019         * math/s_ctanhf.c: Likewise.
72020         * math/s_ctanhl.c: Likewise.
72021         * math/s_ctanl.c: Likewise.
72022         * math/w_fmod.c: Likewise.
72023         * math/w_fmodf.c: Likewise.
72024         * math/w_fmodl.c: Likewise.
72025         * math/w_remainder.c: Likewise.
72026         * math/w_remainderf.c: Likewise.
72027         * math/w_remainderl.c: Likewise.
72028         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72029         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72030         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72031         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72032         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72033         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72034         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72035         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72036
72037         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72038         of the number.
72039         * stdio-common/printf_fphex.c: Likewise.
72040         * stdio-common/printf_size.c: Likewise.
72041
72042         * math/e_exp10.c: Include math_private.h using <...> not "...".
72043         * math/e_exp10f.c: Likewise.
72044         * math/e_exp10l.c: Likewise.
72045         * math/e_exp2l.c: Likewise.
72046         * math/e_j0l.c: Likewise.
72047         * math/e_j1l.c: Likewise.
72048         * math/e_jnl.c: Likewise.
72049         * math/e_lgammal_r.c: Likewise.
72050         * math/e_rem_pio2l.c: Likewise.
72051         * math/e_scalb.c: Likewise.
72052         * math/e_scalbf.c: Likewise.
72053         * math/e_scalbl.c: Likewise.
72054         * math/k_cosl.c: Likewise.
72055         * math/k_sinl.c: Likewise.
72056         * math/k_tanl.c: Likewise.
72057         * math/s_cacoshf.c: Likewise.
72058         * math/s_catan.c: Likewise.
72059         * math/s_catanf.c: Likewise.
72060         * math/s_catanh.c: Likewise.
72061         * math/s_catanhf.c: Likewise.
72062         * math/s_catanhl.c: Likewise.
72063         * math/s_catanl.c: Likewise.
72064         * math/s_ccosh.c: Likewise.
72065         * math/s_ccoshf.c: Likewise.
72066         * math/s_ccoshl.c: Likewise.
72067         * math/s_cexp.c: Likewise.
72068         * math/s_cexpf.c: Likewise.
72069         * math/s_cexpl.c: Likewise.
72070         * math/s_clog.c: Likewise.
72071         * math/s_clog10.c: Likewise.
72072         * math/s_clog10f.c: Likewise.
72073         * math/s_clog10l.c: Likewise.
72074         * math/s_clogf.c: Likewise.
72075         * math/s_clogl.c: Likewise.
72076         * math/s_csin.c: Likewise.
72077         * math/s_csinf.c: Likewise.
72078         * math/s_csinh.c: Likewise.
72079         * math/s_csinhf.c: Likewise.
72080         * math/s_csinhl.c: Likewise.
72081         * math/s_csinl.c: Likewise.
72082         * math/s_csqrt.c: Likewise.
72083         * math/s_csqrtf.c: Likewise.
72084         * math/s_csqrtl.c: Likewise.
72085         * math/s_ctan.c: Likewise.
72086         * math/s_ctanf.c: Likewise.
72087         * math/s_ctanh.c: Likewise.
72088         * math/s_ctanhf.c: Likewise.
72089         * math/s_ctanhl.c: Likewise.
72090         * math/s_ctanl.c: Likewise.
72091         * math/s_ldexp.c: Likewise.
72092         * math/s_ldexpf.c: Likewise.
72093         * math/s_ldexpl.c: Likewise.
72094         * math/s_significand.c: Likewise.
72095         * math/s_significandf.c: Likewise.
72096         * math/s_significandl.c: Likewise.
72097         * math/w_acos.c: Likewise.
72098         * math/w_acosf.c: Likewise.
72099         * math/w_acosh.c: Likewise.
72100         * math/w_acoshf.c: Likewise.
72101         * math/w_acoshl.c: Likewise.
72102         * math/w_acosl.c: Likewise.
72103         * math/w_asin.c: Likewise.
72104         * math/w_asinf.c: Likewise.
72105         * math/w_asinl.c: Likewise.
72106         * math/w_atan2.c: Likewise.
72107         * math/w_atan2f.c: Likewise.
72108         * math/w_atan2l.c: Likewise.
72109         * math/w_atanh.c: Likewise.
72110         * math/w_atanhf.c: Likewise.
72111         * math/w_atanhl.c: Likewise.
72112         * math/w_cosh.c: Likewise.
72113         * math/w_coshf.c: Likewise.
72114         * math/w_coshl.c: Likewise.
72115         * math/w_dremf.c: Likewise.
72116         * math/w_exp10.c: Likewise.
72117         * math/w_exp10f.c: Likewise.
72118         * math/w_exp10l.c: Likewise.
72119         * math/w_exp2.c: Likewise.
72120         * math/w_exp2f.c: Likewise.
72121         * math/w_fmod.c: Likewise.
72122         * math/w_fmodf.c: Likewise.
72123         * math/w_fmodl.c: Likewise.
72124         * math/w_hypot.c: Likewise.
72125         * math/w_hypotf.c: Likewise.
72126         * math/w_hypotl.c: Likewise.
72127         * math/w_j0.c: Likewise.
72128         * math/w_j0f.c: Likewise.
72129         * math/w_j0l.c: Likewise.
72130         * math/w_j1.c: Likewise.
72131         * math/w_j1f.c: Likewise.
72132         * math/w_j1l.c: Likewise.
72133         * math/w_jn.c: Likewise.
72134         * math/w_jnf.c: Likewise.
72135         * math/w_jnl.c: Likewise.
72136         * math/w_lgamma.c: Likewise.
72137         * math/w_lgamma_r.c: Likewise.
72138         * math/w_lgammaf.c: Likewise.
72139         * math/w_lgammaf_r.c: Likewise.
72140         * math/w_lgammal.c: Likewise.
72141         * math/w_lgammal_r.c: Likewise.
72142         * math/w_log.c: Likewise.
72143         * math/w_log10.c: Likewise.
72144         * math/w_log10f.c: Likewise.
72145         * math/w_log10l.c: Likewise.
72146         * math/w_log2.c: Likewise.
72147         * math/w_log2f.c: Likewise.
72148         * math/w_log2l.c: Likewise.
72149         * math/w_logf.c: Likewise.
72150         * math/w_logl.c: Likewise.
72151         * math/w_pow.c: Likewise.
72152         * math/w_powf.c: Likewise.
72153         * math/w_powl.c: Likewise.
72154         * math/w_remainder.c: Likewise.
72155         * math/w_remainderf.c: Likewise.
72156         * math/w_remainderl.c: Likewise.
72157         * math/w_scalb.c: Likewise.
72158         * math/w_scalbf.c: Likewise.
72159         * math/w_scalbl.c: Likewise.
72160         * math/w_sinh.c: Likewise.
72161         * math/w_sinhf.c: Likewise.
72162         * math/w_sinhl.c: Likewise.
72163         * math/w_sqrt.c: Likewise.
72164         * math/w_sqrtf.c: Likewise.
72165         * math/w_sqrtl.c: Likewise.
72166         * math/w_tgamma.c: Likewise.
72167         * math/w_tgammaf.c: Likewise.
72168         * math/w_tgammal.c: Likewise.
72169
72170         * po/ja.po: Update from translation team.
72171
72172 2011-09-29  Andreas Jaeger  <aj@suse.de>
72173
72174         [BZ #13179]
72175         * sunrpc/netname.c (netname2host): Fix logic.
72176
72177         [BZ #6779]
72178         [BZ #6783]
72179         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72180         correctly.
72181         * math/w_remainder.c (__remainder): Likewise.
72182         * math/w_remainderf.c (__remainderf): Likewise.
72183         * math/libm-test.inc (remainder_test): Add test cases.
72184
72185 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72186
72187         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72188         sdiv_qrnnd.
72189
72190 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72191
72192         * string/test-memcmp.c: Avoid unncessary #defines.
72193         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72194
72195 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72196
72197         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72198         Use new sse2 version for core i3 - i7 as it's faster
72199         than sse42 version.
72200         (bit_Prefer_PMINUB_for_stringop): New.
72201         * sysdeps/x86_64/rawmemchr.S: Update.
72202         Replace with faster SSE2 version.
72203         * sysdeps/x86_64/memrchr.S: New file.
72204         * sysdeps/x86_64/memchr.S: Update.
72205         Replace with faster SSE2 version.
72206
72207 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72208
72209         * elf/dl-load.c (lose): Add cast to avoid warning.
72210
72211 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72212
72213         * po/ca.po: Update from translation team.
72214
72215         * inet/getnetgrent_r.c: Hook up nscd.
72216         * nscd/Makefile (routines): Add nscd_netgroup.
72217         (nscd-modules): Add netgroupcache.
72218         (CFLAGS-netgroupcache.c): Define.
72219         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72220         (cache_search): Add const to second parameter.
72221         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72222         INNETGR.
72223         (dbs): Add netgrdb entry.
72224         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72225         (verify_persistent_db): Handle netgrdb.
72226         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72227         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72228         GETFDNETGR.
72229         (netgroup_response_header): Define.
72230         (innetgroup_response_header): Define.
72231         (datahead): Add netgroup_response_header and innetgroup_response_header
72232         elements.
72233         * nscd/nscd.conf: Add entries for netgroup cache.
72234         * nscd/nscd.h (dbtype): Add netgrdb.
72235         (_PATH_NSCD_NETGROUP_DB): Define.
72236         (netgroup_iov_disabled): Declare.
72237         (xmalloc, xcalloc, xrealloc): Move declarations here.
72238         (cache_search): Adjust prototype.
72239         Add netgroup-related prototypes.
72240         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72241         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72242         (__nscd_innetgr): Declare.
72243         * nscd/selinux.c (perms): Use access_vector_t as element type and
72244         add netgroup-related initializers.
72245         * nscd/netgroupcache.c: New file.
72246         * nscd/nscd_netgroup.c: New file.
72247         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72248         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72249         For four parameters use innetgr.
72250         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72251         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72252         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72253         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72254
72255         * nscd/connections.c (register_traced_file): Don't register file
72256         for disabled databases.
72257
72258 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72259
72260         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72261
72262         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72263         from tree and freeing node.
72264
72265 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72266
72267         * nss/nsswitch.c (__nss_database_lookup): Handle
72268         nss_parse_service_list out of memory case.
72269
72270 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72271
72272         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72273         out of memory case.
72274
72275 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72276
72277         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72278         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72279         pass it down.
72280         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72281         elf_machine_rela, elf_machine_lazy_rel.
72282         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72283         (ELF_DYNAMIC_DO_REL): Likewise.
72284         (ELF_DYNAMIC_DO_RELA): Likewise.
72285         (ELF_DYNAMIC_RELOCATE): Likewise.
72286         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72287         to ELF_DYNAMIC_DO_REL.
72288         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72289         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72290         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72291         elf_machine_rela.
72292         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72293         skip_ifunc, don't call ifunc function if non-zero.
72294         (elf_machine_rela): Likewise.
72295         (elf_machine_lazy_rel): Likewise.
72296         (elf_machine_lazy_rela): Likewise.
72297         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72298         (elf_machine_lazy_rel): Likewise.
72299         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72300         Likewise.
72301         (elf_machine_lazy_rel): Likewise.
72302         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72303         Likewise.
72304         (elf_machine_lazy_rel): Likewise.
72305         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72306         (elf_machine_lazy_rel): Likewise.
72307         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72308         (elf_machine_lazy_rel): Likewise.
72309         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72310         (elf_machine_lazy_rel): Likewise.
72311         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72312         (elf_machine_lazy_rel): Likewise.
72313         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72314         (elf_machine_lazy_rel): Likewise.
72315         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72316         (elf_machine_lazy_rel): Likewise.
72317
72318 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72319
72320         * nss/nss_files/files-init.c (_nss_files_init): Use static
72321         initialization for all the *_traced_file variables.
72322
72323 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72324
72325         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72326
72327 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72328
72329         [BZ #13226]
72330         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72331
72332 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72333
72334         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72335         Reread the line before reparsing it.
72336
72337 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72338
72339         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72340
72341 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72342             Maxim Kuvyrkov  <maxim@codesourcery.com>
72343             Joseph Myers  <joseph@codesourcery.com>
72344
72345         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72346         if needed for __stack_chk_guard.
72347
72348 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72349
72350         * sysdeps/posix/spawni.c (script_execute): Always define it.
72351         It will be optimized away if unused.
72352         (maybe_script_execute): New function.
72353         (__spawni): Call it.
72354
72355         * Makerules: Don't include tls.make.
72356         (config-tls): Always set to thread.
72357         * tls.make.c: File removed.
72358
72359 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72360
72361         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72362         * config.make.in (CPPFLAGS-config): New substituted variable.
72363
72364 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72365
72366         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72367
72368         [BZ #13192]
72369         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72370         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72371
72372 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72373
72374         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72375         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72376         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72377         (CALL_FAIL): Likewise.
72378         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72379         (CALL_FAIL): Macro removed.
72380         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72381
72382 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72383
72384         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72385         for __FINITE_MATH_ONLY__ == 1.
72386
72387 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72388
72389         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72390         __ieee754_sqrt instead of sqrt.
72391         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72392         __ieee754_sqrtf instead of sqrtf.
72393         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72394         __floorf instead of floorf.
72395         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72396         __floorf, __truncf instead of floorf, truncf.
72397
72398 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72399
72400         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72401
72402         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72403         __extern_always_inline.
72404         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72405         32-bit.
72406
72407 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72408
72409         * elf/rtld.c (dl_main): Also relocate in dependency order when
72410         doing symbol dependency testing.
72411
72412 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72413
72414         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72415         Always define `refsym'.
72416
72417 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72418
72419         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72420         (__FD_ELT): Renamed from __FDELT.
72421         * misc/bits/select2.h (__FD_ELT): Likewise.
72422         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72423         __FD_MASK instead of __FDELT, __FDMASK.
72424         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72425         Likewise.
72426         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72427         Likewise.
72428
72429         * elf/Makefile (gen-ldd): Fix pattern.
72430
72431         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72432         (init_tls): Likewise.
72433
72434 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72435
72436         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72437
72438 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72439
72440         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72441         `struct cmsghdr *' instead of `void *'.
72442         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72443         Likewise.
72444
72445 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72446
72447         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72448         if non-absolute.
72449         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72450         ldd_rewrite_script.
72451
72452 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72453
72454         * configure.in: Remove --with-tls option.
72455         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72456         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72457         out in case it is missing.
72458         * sysdeps/ia64/elf/configure.in: Likewise.
72459         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72460         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72461         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72462         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72463         * sysdeps/sh/elf/configure.in: Likewise.
72464         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72465         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72466         * sysdeps/x86_64/elf/configure.in: Likewise.
72467         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72468         * sysdeps/mach/hurd/tls.h: Likewise.
72469
72470         [BZ #13067]
72471         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72472
72473         [BZ #13090]
72474         * configure.in: Fix use of AC_INIT.
72475
72476         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72477
72478 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72479
72480         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72481         __set_errno.
72482         * malloc/hooks.c: Likewise.
72483
72484         [BZ #11929]
72485         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72486         variables statically.
72487         (narenas): Initialize.
72488         (list_lock): Initialize.
72489         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72490         initializtion of main_arena and list_lock.  Small cleanups.
72491         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72492         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72493         Add initializers to main_arena and mp_.
72494         (malloc_state): Remove pagesize member.  Change all users to use
72495         GLRO(dl_pagesize).
72496
72497         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72498         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72499         is always initialized.
72500
72501         * malloc/malloc.c: Removed unused configurations and dead code.
72502         * malloc/arena.c: Likewise.
72503         * malloc/hooks.c: Likewise.
72504         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72505
72506         * include/tls.h: Removed.  USE___THREAD must always be defined.
72507         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72508         * elf/dl-libc.c: Likewise.
72509         * elf/dl-tsd.c: Likewise.
72510         * include/errno.h: Likewise.
72511         * include/netdb.h: Likewise.
72512         * include/resolv.h: Likewise.
72513         * inet/herrno-loc.c: Likewise.
72514         * inet/herrno.c: Likewise.
72515         * malloc/arena.c: Likewise.
72516         * malloc/hooks.c: Likewise.
72517         * malloc/malloc.c: Likewise.
72518         * resolv/res-state.c: Likewise.
72519         * resolv/res_libc.c: Likewise.
72520         * sysdeps/i386/dl-machine.h: Likewise.
72521         * sysdeps/ia64/dl-machine.h: Likewise.
72522         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72523         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72524         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72525         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72526         * sysdeps/sh/dl-machine.h: Likewise.
72527         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72528         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72529         * sysdeps/unix/i386/sysdep.S: Likewise.
72530         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72531         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72532         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72533         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72534         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72535         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72536         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72537         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72538         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72539         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72540         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72541         * sysdeps/x86_64/dl-machine.h: Likewise.
72542         * tls.make.c: Likewise.
72543
72544         * configure.in: Remove --with-__thread option.  Make tests for
72545         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72546         tls_model attribute fail if no support is available.  Remove
72547         USE_IN_LIBIO.
72548         * Makeconfig: Adjust for dropped configure option.  All features are
72549         now mandatory.
72550         * Makerules: Likewise.
72551         * Versions.def: Likewise.
72552         * argp/argp-fmtstream.c: Likewise.
72553         * argp/argp-fmtstream.h: Likewise.
72554         * argp/argp-help.c: Likewise.
72555         * assert/assert.c: Likewise.
72556         * config.h.in: Likewise.
72557         * config.make.in: Likewise.
72558         * configure: Likewise.
72559         * configure.in: Likewise.
72560         * csu/Versions: Likewise.
72561         * csu/init.c: Likewise.
72562         * elf/tst-audit2.c: Likewise.
72563         * elf/tst-tls10.c: Likewise.
72564         * elf/tst-tls10.h: Likewise.
72565         * elf/tst-tls11.c: Likewise.
72566         * elf/tst-tls12.c: Likewise.
72567         * elf/tst-tls14.c: Likewise.
72568         * elf/tst-tlsmod11.c: Likewise.
72569         * elf/tst-tlsmod12.c: Likewise.
72570         * elf/tst-tlsmod13.c: Likewise.
72571         * elf/tst-tlsmod13a.c: Likewise.
72572         * elf/tst-tlsmod14a.c: Likewise.
72573         * elf/tst-tlsmod15b.c: Likewise.
72574         * elf/tst-tlsmod16a.c: Likewise.
72575         * elf/tst-tlsmod16b.c: Likewise.
72576         * elf/tst-tlsmod7.c: Likewise.
72577         * elf/tst-tlsmod8.c: Likewise.
72578         * elf/tst-tlsmod9.c: Likewise.
72579         * gmon/gmon.c: Likewise.
72580         * grp/fgetgrent_r.c: Likewise.
72581         * grp/putgrent.c: Likewise.
72582         * hurd/fopenport.c: Likewise.
72583         * include/libc-symbols.h: Likewise.
72584         * include/tls.h: Likewise.
72585         * intl/gettextP.h: Likewise.
72586         * intl/loadinfo.h: Likewise.
72587         * locale/global-locale.c: Likewise.
72588         * locale/localeinfo.h: Likewise.
72589         * mach/devstream.c: Likewise.
72590         * malloc/arena.c: Likewise.
72591         * malloc/set-freeres.c: Likewise.
72592         * misc/err.c: Likewise.
72593         * misc/getttyent.c: Likewise.
72594         * misc/mntent_r.c: Likewise.
72595         * posix/getopt.c: Likewise.
72596         * posix/wordexp.c: Likewise.
72597         * pwd/fgetpwent_r.c: Likewise.
72598         * resolv/Versions: Likewise.
72599         * resolv/res_hconf.c: Likewise.
72600         * shadow/fgetspent_r.c: Likewise.
72601         * shadow/putspent.c: Likewise.
72602         * stdio-common/printf_fphex.c: Likewise.
72603         * stdio-common/tmpfile.c: Likewise.
72604         * stdlib/abort.c: Likewise.
72605         * stdlib/fmtmsg.c: Likewise.
72606         * sunrpc/auth_unix.c: Likewise.
72607         * sunrpc/clnt_perr.c: Likewise.
72608         * sunrpc/clnt_tcp.c: Likewise.
72609         * sunrpc/clnt_udp.c: Likewise.
72610         * sunrpc/clnt_unix.c: Likewise.
72611         * sunrpc/openchild.c: Likewise.
72612         * sunrpc/svc_simple.c: Likewise.
72613         * sunrpc/svc_tcp.c: Likewise.
72614         * sunrpc/svc_udp.c: Likewise.
72615         * sunrpc/svc_unix.c: Likewise.
72616         * sunrpc/xdr.c: Likewise.
72617         * sunrpc/xdr_array.c: Likewise.
72618         * sunrpc/xdr_rec.c: Likewise.
72619         * sunrpc/xdr_ref.c: Likewise.
72620         * sunrpc/xdr_stdio.c: Likewise.
72621
72622 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72623
72624         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72625
72626 2011-07-03  Andreas Jaeger  <aj@suse.de>
72627
72628         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72629         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72630         regenerate with gen-libm-tests.pl.
72631
72632 2010-05-12  Petr Baudis  <pasky@suse.cz>
72633
72634         [BZ #11589]
72635         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72636         around j0() zero points by switching to j1().
72637         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72638         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72639         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72640         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72641
72642 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72643
72644         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72645         instead of 0.
72646         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72647         instead of 0.
72648         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72649         Patch in part by Pavel Roskin <proski@gnu.org>.
72650
72651         [BZ #13138]
72652         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72653         realloc.
72654         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72655         Free memory block if necessary.
72656
72657         [BZ #12847]
72658         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72659         be NULL.  Don't lock in this case.
72660
72661 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72662
72663         * elf/elf.h (ELFOSABI_GNU): New macro.
72664         (ELFOSABI_LINUX): Define to that.
72665
72666 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72667
72668         * string/strncat.c (strncat): Undef the symbol in case it has been
72669         defined in bits/string.h.
72670
72671 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72672
72673         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72674
72675         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72676         link map.
72677
72678 2011-08-17  Andreas Jaeger  <aj@suse.de>
72679
72680         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72681
72682 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72683             Ian Lance Taylor  <iant@google.com>
72684
72685         * math/libm-test.inc (lround_test): New testcase.
72686         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72687
72688 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72689
72690         * Makefile: Remove support for automatic cvs check-ins.
72691         * Makerules: Likewise.
72692         * config.make.in: Likewise.
72693         * configure.in: Likewise.
72694         * intl/Makefile: Likewise.
72695         * locale/Makefile: Likewise.
72696         * po/Makefile: Likewise.
72697         * posix/Makefile: Likewise.
72698         * sysdeps/gnu/Makefile: Likewise.
72699         * sysdeps/mach/hurd/Makefile: Likewise.
72700         * sysdeps/sparc/sparc32/Makefile: Likewise.
72701
72702         [BZ #13118]
72703         * posix/Makefile (bug-regex32-ENV): Define.
72704         Patch by John Stanley <jpsinthemix@verizon.net>.
72705
72706         * misc/Makefile (headers): Add bits/select2.h.
72707         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72708         * misc/bits/select2.h: New file.
72709         * include/bits/select2.h: New file.
72710         * debug/Makefile (routines): Add fdelt_chk.
72711         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72712         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72713         FD_ISSET.
72714         * debug/fdelt_chk.c: New file.
72715
72716         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72717         * wcsmbs/test-wmemcmp.c: Likewise.
72718         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72719         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72720
72721 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72722
72723         * string/Makefile (strop-tests): Add memcmp.
72724         * string/test-wmemcmp.c: New file.
72725         * string/test-memcmp.c: Add wmemcmp support.
72726
72727 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72728
72729         [BZ #13153]
72730         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72731         2011-07-19 change.
72732
72733         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72734         garbage value in a __mach_port_mod_refs call in the cases of the
72735         task-self and thread-self ports.
72736
72737 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72738
72739         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72740
72741 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72742
72743         * elf/dl-load.c (lose): Check for non-null L.
72744
72745 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72746
72747         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72748
72749         * elf/dl-libc.c (dlerror_run): Pass back error code from
72750         dl_catch_error.
72751
72752         [BZ #13123]
72753         * elf/dl-load.c (lose): Free l_origin if it is valid.
72754
72755         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72756         names.
72757         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72758         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72759         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72760         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72761         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72762         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72763
72764 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72765
72766         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72767         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72768         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72769         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72770         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72771         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72772         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72773         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72774         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72775         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72776
72777 2011-08-15  Alan Modra  <amodra@gmail.com>
72778
72779         [BZ #13092]
72780         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72781         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72782         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72783         ppc_mcount to static-only-routines.
72784         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72785         __mcount_internal.
72786         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72787         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72788
72789 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72790
72791         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72792         for finite and infinity parameters.
72793
72794 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72795
72796         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72797         and add nop instructions for throughput optimization.
72798         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72799
72800 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72801
72802         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72803         aligned copy for power7 with vector-scalar instructions.
72804         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72805
72806 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72807
72808         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72809         AVX check.
72810
72811 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72812
72813         [BZ #13144]
72814         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72815         last change.
72816
72817 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72818
72819         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72820         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72821         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72822         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72823         clock_gettime.
72824
72825 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72826
72827         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72828         Forgot to demangle the pointer.
72829
72830         * sysdeps/i386/sysdep.h: Define atom_text_section.
72831         * sysdeps/x86_64/sysdep.h: Likewise.
72832         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72833         section with atom_text_section.
72834         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72835         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72836         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72837         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72838         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72839
72840         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72841         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72842         already be defined.  Change to take two parameters and don't assign
72843         result to variable.  Adjust all users.
72844         Define INTERNAL_GETTIME if not already defined.
72845         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72846         call.
72847         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72848         HAVE_CLOCK_GETTIME_VSYSCALL.
72849         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72850
72851         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72852         gettimeofday vsyscall, just use time.
72853
72854 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72855
72856         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72857         <errno.h>.
72858
72859 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72860
72861         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72862         syscall on x86-64.
72863         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72864         syscall.
72865         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72866         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72867         syscall if possible.
72868
72869 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72870
72871         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72872         e_ident.  Don't pass to find_mapsXX.
72873         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72874
72875 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72876
72877         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72878         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72879         * sysdeps/x86_64/multiarch/strchr.S: Update.
72880         Check bit_slow_BSF bit.
72881         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72882         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72883         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72884
72885 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72886
72887         [BZ #13134]
72888         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72889         before glibc 2.15.
72890         (tryshell): Define.
72891         (__spawni): Change last parameter to be flag.  Test
72892         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72893         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72894         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72895         * posix/spawni.c: Likewise.
72896         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72897         * posix/spawnp.c: Likewise.  Change normal version to use
72898         SPAWN_XFLAGS_USE_PATH.
72899         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72900         SPAWN_XFLAGS_TRY_SHELL.
72901
72902         [BZ #13150]
72903         * posix/glob.h: Remove gcc 1.x support.
72904
72905         [BZ #13068]
72906         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72907
72908 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72909
72910         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72911         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72912         strrchr-sse2-bsf
72913         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72914         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72915         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72916         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72917         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72918         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72919
72920 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72921
72922         * sysdeps/x86_64/wcscmp.S: New file.
72923
72924         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72925         wcscmp-c wcscmp-sse2
72926         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72927         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72928         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72929         * wcsmbs/wcscmp.c: Allow renaming.
72930
72931 2011-09-05  David S. Miller  <davem@davemloft.net>
72932
72933         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72934         stack slot, rather than the struct return pointer slot.
72935         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72936         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72938         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72939
72940 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72941
72942         * po/ja.po: Update from translation team.
72943
72944         [BZ #13144]
72945         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72946         kernel in 64-bit binaries.
72947
72948 2011-09-01  David S. Miller  <davem@davemloft.net>
72949
72950         * elf/elf.h (HWCAP_SPARC_*): Move to..
72951         * sysdeps/sparc/sysdep.h: this new file and add new values.
72952         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72953         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72954         _DL_HWCAP_COUNT to 24.
72955         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72956         entries.
72957         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72958         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72959         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72960         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72961         instead of magic constants.
72962         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72963
72964 2011-08-31  David S. Miller  <davem@davemloft.net>
72965
72966         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72967         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72968         Reimplement to do errno handling inline.
72969         (SYSCALL_ERROR_HANDLER): New macro.
72970         (__SYSCALL_STRING): Do not do errno handling in asm.
72971         (__CLONE_SYSCALL_STRING): Delete.
72972         (__INTERNAL_SYSCALL_STRING): Delete.
72973         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72974         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72975         (PSEUDO): Reimplement to do errno handling inline.
72976         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72977         (SYSCALL_ERROR_HANDLER): New macro.
72978         (__SYSCALL_STRING): Do not do errno handling in asm.
72979         (__CLONE_SYSCALL_STRING): Delete.
72980         (__INTERNAL_SYSCALL_STRING): Delete.
72981         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72982         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72983         i386.
72984         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72985         (inline_syscall*): Add 'err' argument.
72986         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72987         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72988         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72989         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72990
72991         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72992         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72993
72994 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72995
72996         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72997
72998 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72999
73000         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73001         directive.
73002
73003 2011-08-24  David S. Miller  <davem@davemloft.net>
73004
73005         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73006
73007 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73008
73009         * elf/Makefile: Add rules to build and run unload8 test.
73010         * elf/unload8.c: New file.
73011         * elf/unload8mod1.c: New file.
73012         * elf/unload8mod1x.c: New file.
73013         * elf/unload8mod2.c: New file.
73014         * elf/unload8mod3.c: New file.
73015
73016         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73017         it wasn't used.
73018
73019 2011-08-23  David S. Miller  <davem@davemloft.net>
73020
73021         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73022         subtract stack bias.
73023         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73024         %sp not %fp in calculations.
73025         (_JMPBUF_UNWINDS_ADJ): Likewise.
73026
73027         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73028         (aio_suspend): Call it to force an exception region around the
73029         AIO_MISC_WAIT() invocation.
73030
73031 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73032
73033         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73034         backslash.
73035
73036 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73037
73038         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73039         protection macro.
73040         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73041         and <dl-machine.h>.
73042         (Elf64_FuncDesc): Remove.
73043
73044 2011-08-22  David S. Miller  <davem@davemloft.net>
73045
73046         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73047         sigaltstack check, add missing cfi directives.
73048         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73049         missing cfi directives, and sigaltstack handling.
73050
73051 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73052
73053         [BZ #11724]
73054         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73055         object is seen twice.
73056         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73057
73058         * elf/Makefile (distribute): Add tst-initorder2.c.
73059         (tests): Add tst-initorder2.
73060         (modules-names): Add tst-initorder2a tst-initorder2b
73061         tst-initorder2c tst-initorder2d.  Add rules to build them.
73062         ($(objpfx)tst-initorder2.out): New rule.
73063         * elf/tst-initorder2.c: New file.
73064         * elf/tst-initorder2.exp: New file.
73065
73066 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73067
73068         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73069
73070         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73071         dependencies back to end of function.
73072
73073         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73074         $(elfobjdir)/ld.so.
73075
73076 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73077
73078         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73079         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73080         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73081         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73082         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73083         of __vdso_gettimeofday.
73084         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73085         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73086         attribute_hidden.
73087         (_libc_vdso_platform_setup): Remove initialization of
73088         __vdso_gettimeofday and __vdso_time.
73089
73090 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73091
73092         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73093         and fgetc_unlocked.
73094         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73095         getc_unlocked.
73096
73097         * elf/dl-open.c (add_to_global): Report additions to the global scope
73098         for LD_DEBUG=scopes.
73099         (dl_open_worker): Also print scope of newly loaded dependencies.
73100         (_dl_show_scope): Indicate if there is no scope.
73101
73102         [BZ #13114]
73103         * stdio-common/Makefile (tests): Add bug24.
73104         * stdio-common/bug24.c: New file.
73105
73106 2011-08-19  Andreas Jaeger  <aj@suse.de>
73107
73108         [BZ #13114]
73109         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73110         non-existant file when using close-on-exec mode.
73111
73112 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73113
73114         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73115         the very first instruction.
73116
73117         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73118         the CFI state in the end.
73119         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73120         inclusion of dl-trampoline.h.
73121         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73122
73123 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73124
73125         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73126         expectations for long double.
73127
73128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73129         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73130
73131 2011-08-14  David S. Miller  <davem@davemloft.net>
73132
73133         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73134         artificual limit depends upon the system page size.
73135
73136 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73137
73138         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73139         * resolv/Makefile: Define CFLAGS-libresolv.
73140
73141 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73142
73143         * nss/makedb.c (compute_tables): Make variables used in nested
73144         function static.
73145
73146 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73147
73148         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73149         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73150         if buffer was too small.
73151
73152         * elf/pldd.c (main): Attach to all threads in the process.
73153         Rewrite /proc handling to use *at functions.
73154
73155 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73156
73157         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73158         specifies first scope to show.
73159         (dl_open_worker): Update callers.  Move printing scope of new
73160         object to before the relocation.
73161         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73162         * sysdeps/generic/ldsodefs.h: Update declaration.
73163
73164         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73165         string for the scope number.
73166
73167 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73168
73169         * nscd/servicescache.c (cache_addserv): Make sure written is always
73170         initialized.
73171
73172 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73173
73174         * sysdeps/i386/i486/bits/atomic.h
73175         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73176         statement expression, so as to suppress "set but not used" warning.
73177         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73178
73179         * string/strncat.c (STRNCAT): Use prototype definition.
73180
73181         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73182         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73183         -Iprograms here.
73184         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73185         (localedef-modules): Add localedef.
73186         (locale-modules): Add locale.
73187
73188         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73189         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73190         to avoid a warning.
73191
73192 2011-08-14  David S. Miller  <davem@davemloft.net>
73193
73194         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73195         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73196
73197 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73198
73199         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73200         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73201         * elf/rtld.c (dl_main): Set l_name of vDSO.
73202         Call _dl_show_scope when DL_DEBUG_SCOPES.
73203         (process_dl_debug): Recognize scopes flag and also set it for all.
73204         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73205         Declare _dl_show_scope.
73206
73207         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73208         (do_dlopen): Pass caller_dlopen to dl_open.
73209         (__libc_dlopen_mode): Initialize caller_dlopen.
73210
73211         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73212         of libc.  Make tolower call locale-independent.  Optimize a bit by
73213         using isdigit instead of isalnum.
73214         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73215
73216 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73217
73218         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73219         was a dependency or dynamically loaded.
73220
73221 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73222
73223         * intl/l10nflist.c: Allow architecture-specific pop function.
73224         * sysdeps/x86_64/l10nflist.c: New file.
73225
73226         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73227         classification.
73228
73229 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73230
73231         * include/dirent.h: Add libc_hidden_proto for scandirat and
73232         scandirat64.  Don't declare __scandirat64.
73233         * dirent/scandirat.c: Add libc_hidden_def.
73234         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73235         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73236
73237 2011-08-10  David S. Miller  <davem@davemloft.net>
73238
73239         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73240         enum.
73241         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73242         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73243         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73244
73245 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73246
73247         * Versions.def [libc]: Add GLIBC_2.15.
73248         * dirent/Makefile (routines): Add scandirat and scandirat64.
73249         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73250         GLIBC_2.15.
73251         * dirent/dirent.h: Declare scandirat and scandirat64.
73252         * dirent/scandirat.c: New file.
73253         * dirent/scandirat64.c: New file.
73254         * sysdeps/wordsize-64/scandirat.c: New file.
73255         * sysdeps/wordsize-64/scandirat64.c: New file.
73256         * dirent/opendir.c: Define opendirat.
73257         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73258         using scandirat.
73259         * dirent/scandir64.c: Adjust for scandir.c change.
73260         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73261         __scandirat64, and __scandir_cancel_handler.
73262         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73263         additional parameter and use openat instead of open (outside of ld.so).
73264         Add new __opendir as wrapper around __opendirat.
73265         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73266         here without requiring old scandirat implementation.
73267
73268 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73269
73270         * dirent/scandir.c (cancel_handler): Renamed to
73271         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73272         defined.  Adjust users.
73273         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73274         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73275
73276 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73277
73278         * string/test-string.h (IMPL): Use __STRING to expand name and then
73279         stringify it.
73280
73281         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73282         of cleanups.
73283
73284 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73285
73286         * string/Makefile: Update.
73287         (strop-tests): Append strncat.
73288         * string/test-wcscmp.c: New file.
73289         New comprehensive test for wcscmp.
73290         * string/test-strcmp.c: Update.
73291         (WIDE): New define.
73292
73293 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73294
73295         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73296         line.
73297
73298 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73299
73300         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73301         encoding to ACE if AI_IDN.
73302
73303 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73304
73305         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73306         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73307
73308 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73309
73310         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73311         Fix overflow bug in strncat.
73312         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73313
73314         * string/test-strncat.c: Update.
73315         Add new tests for checking overflow bugs.
73316
73317 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73318
73319         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73320         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73321         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73322         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73323         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73324         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73325         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73326         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73327         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73328
73329         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73330         (USE_AS_STRCAT): Define.
73331         Add strcat and strncat support.
73332         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73333
73334 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73335
73336         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73337         __n bigger than INT_MAX+1.
73338         (__strncmp_g): Likewise.
73339
73340 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73341
73342         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73343         * libio/stido.h: Likewise.
73344
73345         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73346         (AF_NFC): Define.
73347         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73348         (AF_NFC): Define.
73349
73350         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73351         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73352         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73353         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73354         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73355
73356         [BZ #13021]
73357         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73358         installed.
73359
73360         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73361         typo.
73362         (_dl_x86_64_save_sse): Likewise.
73363
73364 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73365
73366         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73367         OSXSAVE.
73368         (_dl_x86_64_save_sse): Likewise.
73369
73370         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73371
73372         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73373
73374 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73375
73376         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73377         change.
73378         (_dl_x86_64_save_sse): Use correct AVX check.
73379
73380 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73381
73382         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73383         bug in strncpy/strncat.
73384         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73385
73386 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73387
73388         * string/tester.c (test_strcat): Add tests for different alignments
73389         of source and destination.
73390         (test_strncat): Likewise.
73391
73392 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73393
73394         [BZ #12852]
73395         * posix/glob.c (glob): Check passed in values before using them in
73396         expressions to avoid some overflows.
73397         (glob_in_dir): Likewise.
73398
73399         [BZ #13007]
73400         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73401         check for AVX enablement so that we don't crash with old kernels and
73402         new hardware.
73403         * elf/tst-audit4.c: Add same checks here.
73404         * elf/tst-audit6.c: Likewise.
73405
73406         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73407
73408 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73409
73410         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73411
73412 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73413
73414         * po/cs.po: Update from translation team.
73415         * po/bg.po: Likewise.
73416
73417 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73418
73419         * misc/sys/cdefs.h: Add support for const attribute.
73420         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73421         to gnu_dev_{major,minor,makedev} functions.
73422
73423 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73424
73425         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73426
73427 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73428
73429         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73430         strlen results.
73431
73432 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73433
73434         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73435         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73436         register in order to avoid conflicts with the soft frame pointer
73437         being held in r11 when necessary.
73438         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73439         (INTERNAL_VSYSCALL_NCS): Likewise.
73440
73441 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73442
73443         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73444         * elf/dl-fini.c (_dl_fini): Adjust caller.
73445         * elf/dl-close.c (_dl_close_worker): Likewise.
73446         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73447
73448 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73449
73450         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73451         "aux_cache->nlibs < 0".
73452
73453         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73454         in the reload-count case.
73455
73456 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73457
73458         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73459         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73460         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73461         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73462         * sysdeps/x86_64/multiarch/strcat.S: New file.
73463         * sysdeps/x86_64/multiarch/strncat.S: New file.
73464         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73465         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73466         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73467         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73468         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73469         (USE_AS_STRCAT): Define.
73470         Add strcat and strncat support.
73471         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73472         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73473         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73474         * string/strncat.c: Update.
73475         (USE_AS_STRNCAT): Define.
73476         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73477         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73478         and i7.
73479         * sysdeps/x86_64/multiarch/init-arch.h
73480         (bit_Prefer_PMINUB_for_stringop): New.
73481         (index_Prefer_PMINUB_for_stringop): Likewise.
73482         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73483         bit_Prefer_PMINUB_for_stringop.
73484
73485 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73486
73487         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73488         buffer64.
73489         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73490         of casting of buffer.
73491         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73492         buffer32 and buffer64.
73493         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73494         writes instead of casting of buffer.
73495         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73496         buffer32.
73497         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73498         casting of buffer.
73499
73500 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73501
73502         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73503
73504 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73505
73506         * nscd/nscd.c (termination_handler): Don't do anything for a database
73507         if it has not yet been initialized.
73508
73509 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73510
73511         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73512
73513 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73514
73515         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73516
73517 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73518
73519         * po/nl.po: Update from translation team.
73520         * po/sv.po: Likewise.
73521
73522 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73523
73524         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73525         now disallowed by GCC.
73526
73527         * configure.in (use-default-link): Default to yes if a test -shared
73528         link meets our qualifications.
73529         * configure: Regenerated.
73530
73531         * config.make.in (output-format): New variable.
73532         * configure.in: Check for ld --print-output-format support.
73533         * configure: Regenerated.
73534         * Makerules ($(common-objpfx)format.lds)
73535         [$(output-format) != unknown]: Just use $(output-format),
73536         instead of the linker-script munging.
73537
73538 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73539
73540         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73541         of $(common-objpfx)shlib.lds.
73542         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73543
73544         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73545         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73546
73547         * configure.in (-z relro check): Adjust test code to add a large
73548         writable data section after it.
73549         * configure: Regenerated.
73550
73551 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73552
73553         * configure.in (-z relro check): Fix test code to make the variable
73554         truly const.
73555         * configure: Regenerated.
73556
73557 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73558
73559         * nscd/nscd.h (struct traced_file): Define.
73560         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73561         elements.  Add traced_files.
73562         (inotify_fd): Declare.
73563         (register_traced_file): Declare.
73564         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73565         (inotify_fd): Export.
73566         (resolv_conf_descr): Remove.
73567         (nscd_init): Move inotify descriptor creation to main.
73568         Don't register files for notification here.
73569         (register_traced_file): New function.
73570         (invalidate_cache): Don't use reset_res to determine whether to call
73571         res_init, go through the list of registered files.
73572         (main_loop_poll): The inotify descriptors are now stored in the
73573         structures for the traced files.
73574         (main_loop_epoll): Likewise.
73575         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73576         to __nss_disable_nscd.
73577         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73578         for a database anymore.  Check the records for all the registered
73579         files instead.
73580         * nss/Makefile (libnss_files-routines): Add files-init.
73581         (libnss_db-routines): Add db-init.
73582         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73583         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73584         * nss/nss_db/db-init.c: New file.
73585         * nss/nss_files/files-init.c: New file.
73586         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73587         __nss_lookup_function.
73588         (__nss_lookup_function): Call nss_load_library.
73589         (nss_load_all_libraries): New function.
73590         (__nss_disable_nscd): Take parameter with callback function for files
73591         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73592         used for the cached services.
73593         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73594         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73595         options for features to all the files in nscd.
73596
73597         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73598
73599 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73600
73601         * csu/elf-init.c (__libc_csu_init): Comment typo.
73602
73603 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73604
73605         * po/pl.po: Update from translation team.
73606         * po/ja.po: Likewise.
73607         * po/ru.po: Likewise.
73608         * po/ko.po: Likewise.
73609         * po/fr.po: Likewise.
73610
73611 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73612
73613         * configure.in (.ctors/.dtors header and trailer check):
73614         Use an empirical test on a built program.
73615         * configure: Regenerated.
73616
73617         * configure.in (-z relro check): Use an empirical test on a built DSO.
73618         Detect, but do not require, on ia64.
73619         * configure: Regenerated.
73620
73621         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73622         Update tests that use readelf to use $READELF instead.
73623         * configure: Regenerated.
73624
73625 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73626
73627         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73628         if the result is not used.
73629
73630 2011-07-05  Andreas Jaeger  <aj@suse.de>
73631
73632         [BZ#9696]
73633         * stdlib/tst-strtod.c: Add testcase.
73634
73635 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73636
73637         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73638         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73639         The latter has a higher limit.  Take additional parameter to pass to
73640         the new function.
73641         (__pathconf): Pass file to __statfs_link_max.
73642         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73643         __statfs_link_max.
73644         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73645         __statfs_link_max.
73646
73647         [BZ #12868]
73648         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73649         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73650         Handle Lustre.
73651         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73652         (__statfs_filesize_max): Likewise.
73653         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73654
73655 2011-07-05  Andreas Jaeger  <aj@suse.de>
73656
73657         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73658
73659 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73660
73661         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73662         `status' variable.
73663         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73664         Likewise.
73665
73666 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73667
73668         * Makefile (strop-tests): Add strncat.
73669         * string/test-strncat.c: New file.
73670
73671 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73672
73673         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73674
73675 2011-06-21  Andreas Jaeger  <aj@suse.de>
73676
73677         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73678         Copy rule from iconvdata/Makefile.
73679
73680 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73681
73682         [BZ #12922]
73683         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73684         but no long options are defined, just return 'W'.
73685
73686 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73687
73688         [BZ #9696]
73689         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73690
73691 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73692
73693         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73694         netgroups to read.
73695         (innetgr): Likewise.
73696
73697 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73698
73699         * config.make.in (install_root): Default to $(DESTDIR).
73700
73701 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73702
73703         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73704
73705 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73706
73707         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73708
73709         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73710         containing directory rather than embedding absolute directory names.
73711
73712         * scripts/check-local-headers.sh: Rewritten using awk.
73713         Match by word, not by line.  Print error messages for matches.
73714         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73715
73716         * Makerules [shlib-lds-flags empty]:
73717         ($(common-objpfx)libc_pic.opts): New target.
73718         ($(common-objpfx)libc_pic.os.clean): New target.
73719         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73720
73721         * config.make.in (OBJCOPY): New variable.
73722         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73723         * configure: Regenerated.
73724
73725         * config.make.in (use-default-link): New variable.
73726         * configure.in (use_default_link): Grok --with-default-link to set it.
73727         * configure: Regenerated.
73728         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73729         (shlib-lds, shlib-lds-flags): Define to empty.
73730
73731         * Makerules (shlib-lds): New variable.
73732         (shlib-lds-flags): New variable.
73733         (build-shlib, build-moduile, build-module-asneeded): Use it.
73734         ($(common-objpfx)libc.so): Use $(shlib-lds).
73735         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73736         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73737
73738         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73739         DT_FLAGS/DT_FLAGS_1 with zero flags.
73740
73741         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73742         linker script munging.
73743
73744 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73745
73746         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73747         as 128-bit value.
73748         * crypt/sha512.c (sha512_process_block): Perform total addition using
73749         128-bit if possible.
73750         (__sha512_finish_ctx): Likewise.
73751         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73752         as 64-bit value.
73753         * crypt/sha256.c (SWAP64): Define.
73754         (sha256_process_block): Perform total addition using 64-bit if
73755         possible.
73756         (__sha256_finish_ctx): Likewise.
73757
73758 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73759
73760         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73761         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73762         * nscd/hstcache.c (cache_addhst): Likewise.
73763         * nscd/grpcache.c (cache_addgr): Likewise.
73764         * nscd/aicache.c (addhstaiX): Likewise.
73765         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73766
73767 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73768
73769         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73770         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73771         * nscd/hstcache.c (cache_addhst): Likewise.
73772         * nscd/grpcache.c (cache_addgr): Likewise.
73773         * nscd/aicache.c (addhstaiX): Likewise.
73774
73775 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73776
73777         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73778         domain only when needed.
73779
73780 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73781
73782         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73783         is always restored.
73784
73785 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73786
73787         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73788         are re-adding the entry.
73789         * nscd/servicescache.c (cache_addserv): Likewise.
73790
73791 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73792
73793         * sysdeps/generic/dl-irel.h: fix protection against multiple
73794         inclusions.
73795         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73796
73797 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73798
73799         [BZ #12935]
73800         * malloc/memusage.sh: Fix quoting in message.
73801         * debug/xtrace.sh: Likewise.
73802
73803         * configure.in: Remove support for --experimental-malloc option, make
73804         it the default.
73805         * config.make.in: Likewise.
73806         * malloc/Makefile: Likewise.
73807
73808 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73809
73810         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73811         two-byte characters.
73812
73813 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73814
73815         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73816         AC_CACHE_CHECK invocation.
73817         * configure: Regenerated.
73818
73819         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73820
73821 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73822
73823         [BZ #12350]
73824         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73825         bit from old_res_options.
73826
73827         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73828
73829         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73830         value type for setfct.
73831
73832 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73833
73834         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73835         __gettimeofday instead of gettimeofday.
73836
73837 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73838
73839         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73840
73841 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73842
73843         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73844
73845         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73846         info.
73847
73848 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73849
73850         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73851         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73852         strcpy-sse2-unaligned strncpy-sse2-unaligned
73853         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73854         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73855         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73856         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73857         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73858         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73859         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73860         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73861         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73862         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73863         (STRCPY): Support SSE2 and SSSE3 versions.
73864
73865 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73866
73867         [BZ #12874]
73868         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73869         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73870         kernels which artificially limit size of requests.
73871
73872 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73873
73874         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73875         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73876         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73877         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73878         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73879         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73880         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73881         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73882         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73883         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73884         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73885         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73886         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73887         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73888         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73889         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73890         Enable unaligned load optimization for Intel Core i3, i5 and i7
73891         processors.
73892         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73893         Define.
73894         (index_Fast_Unaligned_Load): Define.
73895         (HAS_FAST_UNALIGNED_LOAD): Define.
73896
73897 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73898
73899         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73900
73901 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73902
73903         [BZ #12907]
73904         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73905         until it is clear that the information is realy needed.
73906         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73907
73908 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73909
73910         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73911
73912 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73913
73914         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73915         /sys/devices/system/cpu/online if it is usable.
73916
73917         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73918         reading the information from the /proc filesystem to once a second.
73919
73920 2011-06-21  Andreas Jaeger  <aj@suse.de>
73921
73922         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73923         NULL after inclusion of kernel headers.
73924
73925 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73926
73927         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73928         calls to internal_setent.
73929
73930         [BZ #12885]
73931         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73932         addresses using gethostbyname4_r ignore IPv4 addresses.
73933
73934         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73935         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73936
73937         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73938
73939 2011-06-20  David S. Miller  <davem@davemloft.net>
73940
73941         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73942         inclusions.
73943         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73944
73945         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73946         (elf_irel): Use it.
73947         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73948         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73949         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73950         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73951         * sysdeps/x86_64/dl-irel.h: Likewise.
73952
73953         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73954         * elf/dl-sym.c: Likewise.
73955
73956 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73957
73958         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73959         need to dereference resplen2.
73960
73961 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73962
73963         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73964
73965 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73966
73967         * Makeconfig: Define vardbdir and inst_vardbdir.
73968         * nss/Makefile: Add rules to install db-Makefile.
73969
73970         * nss/nss_db/db-XXX.c: Cleanup.
73971
73972         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73973         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73974         GLIBC_PRIVATE.
73975         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73976         * nss/makedb.c: Implement -g option to specify that value strings
73977         are generated and should not be added to table iterated over for
73978         get*ent calls.
73979         * nss/nss_db/db-initgroups.c: New file.
73980
73981         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73982         interface.
73983
73984         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73985         (internal_getgrouplist): Adjust to name change.
73986         Update use_initgroups_entry if this is not the first call.
73987         * nss/databases.def: Add initgroups entry.
73988
73989         * nss/makedb.c (compute_tables): Check result of multiple hash table
73990         sizes to minimize maximum chain length.
73991
73992 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73993
73994         * Versions.def: Add entry for libnss_db.
73995         * shlib-versions: Likewise.
73996         * nss/Makefile: Add rules to build libnss_db.
73997         * nss/Versions: Add libnss_db information.  Organize libnss_files
73998         entries better.
73999         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74000         makedb progra.  Some minor improvements to generate smaller files.
74001         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74002         here from...
74003         * nss/makedb.c: ...here.
74004         Improve database format to be smaller and require less memory at
74005         runtime.
74006         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74007         db anymore.
74008         * nss/nss_db/db-netgrp.c: Likewise.
74009         * nss/nss_db/db-open.c: Likewise.
74010         * nss/nss_files/flies-XXX.x: Adjust comments.
74011         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74012         * nss/nss_files/files-grp.c: Likewise.
74013         * nss/nss_files/files-hosts.c: Likewise.
74014         * nss/nss_files/files-network.c: Likewise.
74015         * nss/nss_files/files-proto.c: Likewise.
74016         * nss/nss_files/files-pwd.c: Likewise.
74017         * nss/nss_files/files-rpc.c: Likewise.
74018         * nss/nss_files/files-service.c: Likewise.
74019         * nss/nss_files/files-sgrp.c: Likewise.
74020         * nss/nss_files/files-spwd.c: Likewise.
74021         * nss/nss_db/db-alias.c: Removed.
74022         * nss/nss_db/dummy-db.h: Removed.
74023
74024 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74025
74026         * nss/makedb.c: Rewritten to not use database library.
74027         * nss/Makefile: Update to build new makedb program.
74028
74029 2011-06-14  Andreas Jaeger  <aj@suse.de>
74030
74031         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74032         memset declaration.
74033
74034 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74035
74036         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74037         tmpbuf.
74038
74039 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74040
74041         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74042         * elf/Makefile ($(objpfx)ld.so): Likewise.
74043
74044         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74045         Don't list ld.so twice in dependencies.
74046
74047         * posix/bug-regex31.c: Include <stdlib.h>.
74048
74049         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74050
74051         * nis/nss_compat/compat-spwd.c
74052         (getspent_next_nss_netgr): Remove unused variable.
74053         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74054
74055         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74056         nonmembers" output to use the right array.
74057
74058         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74059
74060         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74061
74062         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74063         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74064         * catgets/gencat.c (read_input_file): Likewise.
74065         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74066
74067         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74068         variable definition inside #if's controlling its use.
74069
74070         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74071
74072         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74073
74074         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74075
74076         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74077         unreachable code.
74078
74079         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74080
74081         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74082         * configure: Regenerated.
74083
74084         * Makerules: Revert last change.
74085         * elf/Makefile: Likewise.
74086
74087 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74088
74089         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74090         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74091         (reloc-link): Likewise.
74092
74093 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74094
74095         * elf/Makefile: Add rules to build pldd.
74096         * elf/pldd.c: New file.
74097         * elf/pldd-xx.c: New file.
74098
74099 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74100
74101         * version.h: Update for 2.15 development version.
74102
74103 2011-06-07  David S. Miller  <davem@davemloft.net>
74104
74105         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74106         ifuncs.
74107         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74108         elf_machine_lazy_rel): Likewise.
74109         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74110         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74111         elf_machine_lazy_rel): Likewise.
74112         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74113         dl_hwcap via passed in argument.
74114         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74115         Likewise.
74116
74117 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74118
74119         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74120
74121 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74122
74123         [BZ #12849]
74124         * manual/fdl-1.1.texi: New file, verbatim from:
74125         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74126         * manual/lgpl-2.1.texi: New file, verbatim from:
74127         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74128         * manual/Makefile (licenses): New variable, list those new file names.
74129         (texis): Use it.
74130         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74131
74132         * manual/fdl.texi: File removed.
74133         * manual/lesser.texi: File removed.
74134         * manual/libc.texinfo (Copying, Documentation License):
74135         Use new @include file names, put @appendix directive before @include.
74136
74137 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74138
74139         [BZ #12841]
74140         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74141         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74142         (mq_open): Add __NTH.
74143
74144 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74145
74146         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74147         Assume Intel Core i3/i5/i7 processor if AVX is available.
74148
74149 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74150
74151         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74152         typo.
74153
74154 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74155
74156         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74157         memory.  Use alloca_account.  Fix memory leak when retrying.
74158
74159 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74160
74161         * version.h (RELEASE): Bump for 2.14 release.
74162         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74163
74164         * config.make.in (RANLIB): Remove entry.
74165
74166 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74167
74168         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74169         (libc.pot): Work around missing support for .ksh extension in xgettext.
74170
74171         [BZ #12684]
74172         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74173         if both request failed.
74174         (send_dg): In case of server errors clear resplen or *resplen2.
74175
74176         [BZ #12454]
74177         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74178         when there are multiple maps.
74179         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74180         (_dl_fini): Remove test here.
74181
74182         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74183
74184 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74185
74186         [BZ #12350]
74187         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74188         bit from old_res_options.
74189         (gaih_inet): Likewise.
74190
74191         [BZ #11099]
74192         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74193         as signed.
74194
74195         * resolv/res_init.c (res_setoptions): Make the code more compact.
74196
74197         [BZ #11558]
74198         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74199         set RES_USEVC.
74200
74201         [BZ #11634]
74202         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74203
74204         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74205
74206         [BZ #11781]
74207         * malloc/malloc.h: Declare malloc hook variables as volatile.
74208
74209         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74210         in last patch.
74211
74212         [BZ #11799]
74213         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74214         raise in the comment.
74215         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74216         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74217         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74218
74219 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74220
74221         [BZ #12811]
74222         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74223         grow the buffers more if it already has to be sufficient.
74224         (build_wcs_upper_buffer): Likewise.
74225         * posix/regexec.c (check_matching): Likewise.
74226         (clean_state_log_if_needed): Likewise.
74227         (extend_buffers): Don't enlarge buffers beyond size of the input
74228         buffer.
74229         Patches mostly by Emil Wojak <emil@wojak.eu>.
74230         * posix/bug-regex32.c: New file.
74231         * posix/Makefile (tests): Add bug-regex32.
74232
74233         * locale/findlocale.c (_nl_find_locale): Return right away if
74234         _nl_explode_name failed.
74235         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74236
74237         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74238
74239         * debug/xtrace.sh: Unify messages.
74240         * malloc/memusage.sh: Likewise.
74241
74242         [BZ #12813]
74243         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74244         time symbol from vDSO.  Substitute with vsyscall if not available.
74245         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74246         __vdso_time.
74247
74248         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74249         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74250         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74251         Add sendmmsg and internal_sendmmsg.
74252         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74253         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74254         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74255
74256         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74257         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74258         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74259
74260 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74261
74262         [BZ #12813]
74263         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74264         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74265         available.
74266         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74267         __vdso_getcpu.
74268
74269         [BZ #12814]
74270         * iconvdata/Makefile (tests): Add bug-iconv9.
74271         * iconvdata/bug-iconv9.c: New file.
74272
74273 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74274
74275         [BZ #12814]
74276         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74277
74278 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74279
74280         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74281         (struct user_regs_struct): Change intcs field back to cs.
74282
74283 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74284
74285         * po/ja.po: Update from translation team.
74286
74287 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74288
74289         [BZ #12795]
74290         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74291         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74292
74293 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74294
74295         * stdlib/longlong.h: Update from GCC.
74296
74297 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74298
74299         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74300         parameter name.
74301         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74302         Add parameter name.
74303         (__sysconf): Pass it down.
74304
74305 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74306
74307         [BZ #12671]
74308         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74309         some situations.
74310         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74311         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74312         add in in __libc_use_alloca calls.  Adjust callers.
74313         (glob): Use malloc in some situations.
74314
74315         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74316         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74317         pltexit.
74318
74319 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74320
74321         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74322         and CLOCK_BOOTTIME_ALARM.
74323
74324         [BZ #12782]
74325         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74326         is returned.
74327
74328         * string/_strerror.c (__strerror_r): Print negative errors as signed
74329         numbers.
74330
74331         [BZ #12777]
74332         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74333         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74334         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74335
74336         * configure.in: Fix typo in redirection and correct removal of test
74337         files in two cases.
74338
74339         [BZ #12788]
74340         * locale/setlocale.c (new_composite_name): Fix test to check for
74341         identical name of all categories.
74342
74343         [BZ #12792]
74344         * libio/filedoalloc.c (local_isatty): New function.
74345         (_IO_file_doallocate): Use local_isatty.
74346         * stdio-common/perror.c (perror): In case a new stream is used
74347         forward the stream error.
74348         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74349         error flag.
74350
74351 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74352
74353         [BZ #11884]
74354         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74355         alloca.
74356         * include/alloca.h (extend_alloca_account): Define.
74357
74358         [BZ #11857]
74359         * posix/regex.h: Fix comments with documentation of user-accessible
74360         fields after compilation and describe correct free'ing of pattern
74361         after re_compile_pattern.
74362         Patch by Reuben Thomas <rrt@sc3d.org>.
74363
74364 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74365
74366         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74367         and -mno-altivec to prevent the compiler from using Altivec and/or
74368         VSX instructions when the corresponding registers are not available.
74369
74370 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74371
74372         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74373
74374 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74375
74376         * libio/freopen.c (freopen): Use __dup2, not dup2.
74377         * libio/freopen64.c (freopen64): Likewise.
74378
74379 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74380
74381         [BZ #12775]
74382         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74383         * math/Makefile (tests): Add test-powl.
74384         (CFLAGS-test-powl.c): Define.
74385         * math/test-powl.c: New file.
74386
74387 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74388
74389         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74390
74391 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74392
74393         [BZ #11837]
74394         * iconvdata/gb18030.c: Update to GB18020-2005.
74395
74396 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74397
74398         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74399         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74400         Patch by Aharon Robbins <arnold@skeeve.com>.
74401
74402         [BZ #11892]
74403         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74404         on the stack.
74405
74406         [BZ #11895]
74407         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74408         through underflows.
74409
74410         [BZ #12766]
74411         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74412         point to strings before performing equality test for error_one_per_line
74413         mode.
74414
74415         [BZ #11697]
74416         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74417
74418         [BZ #11820]
74419         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74420         (struct user_fpregs_struct): Avoid __uint*_t types.
74421
74422         [BZ #6420]
74423         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74424         symbol info.  Use it instead of calling _dl_addr locally.
74425         (lock_and_info): New function.
74426         (tr_freehook): Call lock_and_info and pass symbol info as additional
74427         parameter to tr_where.
74428         (tr_mallochook): Likewise.
74429         (tr_reallochook): Likewise.
74430         (tr_memalignhook): Likewise.
74431
74432         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74433         used and couldn't be at all thread-safe.
74434
74435 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74436
74437         * libio/freopen.c (freopen): Don't close old file descriptor
74438         before the new one is opened.  Instead dup the new file descriptor
74439         to the old one after the new stream is created.
74440         * libio/freopen64.c (freopen64): Likewise.
74441         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74442         * libio/fileops.c (_IO_new_file_close_it): Handle new
74443         _IO_FLAGS2_NOCLOSE flag.
74444         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74445         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74446         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74447         _IO_FLAGS2_NOCLOSE flag.
74448         * include/unistd.h: Add hidden_proto for dup3.
74449         Define __have_dup3.
74450         * io/dup3.c: Define hidden symbol.
74451         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74452
74453         [BZ #7101]
74454         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74455         when an incomplete long option is used.
74456         * posix/tst-getopt_long1.c: New file.
74457         * posix/Makefile (tests): Add tst-getopt_long1.
74458
74459         [BZ #10138]
74460         * scripts/config.guess: Update from autoconf-2.68.
74461         * scripts/config.sub: Likewise.
74462
74463         [BZ #10157]
74464         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74465         tests into ...
74466         (has_cpuclock): ...this.  New function.
74467         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74468         macro here based on has_cpuclock code.
74469
74470         [BZ #10149]
74471         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74472         First byte (not low byte) is now always NUL.
74473         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74474
74475         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74476         Use non-cancelable interfaces.
74477
74478         [BZ #9809]
74479         * locale/iso-639.def: Add entry for Sorani.
74480
74481         [BZ #11901]
74482         * include/stdlib.h: Move include protection to the right place.
74483         Define abort_msg_s.  Declare __abort_msg with it.
74484         * stdlib/abort.c (__abort_msg): Adjust type.
74485         * assert/assert.c (__assert_fail_base): New function.  Majority
74486         of code from __assert_fail.  Allocate memory for __abort_msg with
74487         mmap.
74488         (__assert_fail): Now call __assert_fail_base.
74489         * assert/assert-perr.c: Remove bulk of implementation.  Use
74490         __assert_fail_base.
74491         * include/assert.hL Declare __assert_fail_base.
74492         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74493         mmap.
74494         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74495
74496 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74497
74498         [BZ #11952]
74499         [BZ #12453]
74500         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74501         until all modules are registered in the DTV.
74502         * elf/Makefile: Add rules to build and run tst-tls19.
74503         * elf/tst-tls19.c: New file.
74504         * elf/tst-tls19mod1.c: New file.
74505         * elf/tst-tls19mod2.c: New file.
74506         * elf/tst-tls19mod3.c: New file.
74507         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74508
74509         [BZ #12083]
74510         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74511         correctly.
74512
74513         [BZ #12601]
74514         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74515         two-byte sequence errors.
74516         * iconvdata/Makefile (tests): Add bug-iconv8.
74517         * iconvdata/bug-iconv8.c: New file.
74518
74519         [BZ #12626]
74520         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74521         buf2 definition.
74522
74523         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74524
74525         [BZ #12432]
74526         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74527         (dummy_getcfa): New function.
74528         (init): Get _Unwind_GetCFA address, use dummy if not found.
74529         (backtrace_helper): In recursion check, also check whether CFA changes.
74530         (__backtrace): Completely initialize arg.
74531
74532         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74533         storing incomplete byte sequence in state object.  Avoid testing for
74534         guaranteed too small input if we know there is enough data available.
74535
74536 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74537
74538         * Makeconfig (+link-pie): Indent.
74539         * Rules (binaries-pie): Define if $(have-fpie) and
74540         $(build-shared).
74541         (binaries-shared): Also filter out $(binaries-pie).
74542         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74543         * nscd/Makefile (others-pie): Add nscd.
74544         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74545         ($(objpfx)nscd): Remove command override.
74546         * login/Makefile (others-pie): Add pt_chown.
74547         ($(objpfx)pt_chown): Remove command override.
74548         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74549         remove command overrides.
74550
74551 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74552
74553         * libio/tst_putwc.c: Fix error messages.
74554
74555         [BZ #12724]
74556         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74557         currently writing and seek to current position when not.
74558         * libio/Makefile (tests): Add bug-fclose1.
74559         * libio/bug-fclose1.c: New file.
74560
74561 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74562
74563         [BZ #12511]
74564         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74565         don't set DF_1_NODELETE here.
74566         (do_lookup_x): When entering new entry test for copy relocation
74567         and if necessary set DF_1_NODELETE flag.
74568         * elf/tst-unique4.cc: New file.
74569         * elf/tst-unique4.h: New file.
74570         * elf/tst-unique4lib.cc: New file.
74571         * elf/Makefile: Add rules to build and run tst-unique4.
74572         Patch by Piotr Bury <pbury@goahead.com>.
74573
74574 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74575
74576         [BZ #12052]
74577         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74578
74579         [BZ #12625]
74580         * misc/mntent_r.c (addmntent): Flush the stream after the output
74581
74582         [BZ #12393]
74583         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74584         (is_trusted_path_normalize): Skip initial colon.  Append slash
74585         to empty buffer.  Duplicate is_trusted_path code but allow
74586         constructed patch to be prefix.
74587         (is_dst): Allow $ORIGIN followed by /.
74588         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74589         Correct testing of result of is_trusted_path_normalize
74590         (decompose_rpath): Fix warning.
74591
74592 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74593
74594         [BZ #11257]
74595         * grp/initgroups.c (internal_getgrouplist): When we found the service
74596         list through the initgroups entry in nsswitch.conf do not always
74597         continue on a successful lookup.  Don't always use the
74598         __nss_group_database value if it is set.
74599         * nss/nsswitch.conf (initgroups): Change action for successful db
74600         lookup to continue for compatibility.
74601
74602 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74603
74604         [BZ #11532]
74605         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74606         and CP774 modules.
74607         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74608         and CP774 modules.
74609         * iconvdata/tst-tables.sh: Likewise.
74610         * iconvdata/cp770.c: New file.
74611         * iconvdata/cp771.c: New file.
74612         * iconvdata/cp772.c: New file.
74613         * iconvdata/cp773.c: New file.
74614         * iconvdata/cp774.c: New file.
74615         * iconvdata/testdata/CP770: New file.
74616         * iconvdata/testdata/CP770..UTF8: New file.
74617         * iconvdata/testdata/CP771: New file.
74618         * iconvdata/testdata/CP771..UTF8: New file.
74619         * iconvdata/testdata/CP772: New file.
74620         * iconvdata/testdata/CP772..UTF8: New file.
74621         * iconvdata/testdata/CP773: New file.
74622         * iconvdata/testdata/CP773..UTF8: New file.
74623         * iconvdata/testdata/CP774: New file.
74624         * iconvdata/testdata/CP774..UTF8: New file.
74625
74626         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74627         END CHARMAP line.
74628         * iconvdata/gen-8bit-gap.sh: Likewise.
74629         * iconvdata/gen-8bit.sh: Likewise.
74630
74631         * locale/iso-639.def: Add ary entry.
74632
74633         [BZ #11258]
74634         * locale/C-translit.h.in: Add U20A1 transliteration.
74635
74636         [BZ #12178]
74637         * locale/iso-639.def: Add wae entry.
74638         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74639
74640         [BZ #12545]
74641         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74642         for n.
74643
74644         [BZ #12711]
74645         * locale/C-translit.h.in: Add entry for U20B9.
74646         Patch by pravin.d.s@gmail.com.
74647
74648 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74649
74650         [BZ #12713]
74651         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74652         ENAMETOOLONG use generic getcwd.
74653         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74654         in rtld.  Use *stat64.
74655         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74656         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74657         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74658         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74659         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74660         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74661         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74662         __fstatat64 macros.
74663         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74664         * dirent/rewinddir.c: Add libc_hidden_def.
74665         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74666         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74667
74668         * include/dirent.h (__alloc_dir): Add flags parameter.
74669         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74670         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74671         __alloc_dir.
74672         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74673         from fdopendir if O_CLOEXEC is already set.
74674
74675 2011-03-15  Alan Modra  <amodra@gmail.com>
74676
74677         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74678         l_tls_firstbyte_offset non-zero.  Save padding offset in
74679         l_tls_firstbyte_offset for later use.
74680         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74681         freeing static tls block.
74682
74683 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74684
74685         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74686         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74687         being defined by the kernel headers.
74688
74689 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74690
74691         [BZ #12734]
74692         * resolv/resolv.h: Define RES_NOTLDQUERY.
74693         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74694         no-tld-query and set RES_NOTLDQUERY.
74695         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74696         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74697         modern BIND to search name as TLD unless forbidden.
74698
74699 2011-05-07  Petr Baudis  <pasky@suse.cz>
74700             Ulrich Drepper  <drepper@gmail.com>
74701
74702         [BZ #12393]
74703         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74704         (is_trusted_path): ...to here.
74705         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74706         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74707         using is_trusted_path_normalize() in setuid scripts.
74708
74709 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74710
74711         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74712         __BEGIN/__END_DECLS.
74713
74714 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74715
74716         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74717         NSS_STATUS_NOTFOUND if no record was found.
74718
74719 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74720
74721         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74722         (headers-not-in-tirpc): Remove rpc/netdb.h
74723         * resolv/netdb.h: Revert last change.
74724
74725 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74726
74727         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74728         circular dependency between libgcc.a and libc.a.
74729
74730 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74731
74732         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74733         * nis/Makefile: Don't install rpcsvc/*.
74734         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74735         instead of <rpc/types.h>.
74736         (MAXHOSTNAMELEN): Define.
74737
74738 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74739
74740         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74741
74742 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74743
74744         [BZ #12714]
74745         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74746         gethostbyname4_r when IPv6 results are possible.
74747
74748 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74749
74750         [BZ #12723]
74751         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74752         _PC_PIPE_BUF handling.
74753
74754 2011-04-30  Bruno Haible  <bruno@clisp.org>
74755
74756         [BZ #12717]
74757         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74758         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74759         to 'int'.
74760         * inet/getnameinfo.c (getnameinfo): Likewise.
74761
74762 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74763
74764         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74765         to groups setting in database lookup.
74766         * nss/nsswitch.conf: Add initgroups entry.
74767
74768 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74769
74770         [BZ #12685]
74771         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74772         mode string.
74773         Patch by Eric Blake <eblake@redhat.com>.
74774
74775 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74776
74777         * sunrpc/Makefile (need-export-routines): Add svc_run.
74778         (routines): Remove svc_run.
74779         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74780         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74781         * sunrpc/svc_run.c (svc_run): Likewise.
74782         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74783
74784 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74785
74786         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74787         problem in reallocation in last patch.
74788
74789 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74790
74791         * sunrpc/Makefile: Move inclusion of Rules.
74792
74793 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74794
74795         * nss/nss_files/files-initgroups.c: New file.
74796         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74797         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74798         _nss_files_initgroups_dyn.
74799
74800 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74801
74802         * elf/elf.h (R_ARM_IRELATIVE): Define.
74803
74804 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74805
74806         * po/ru.po: Update from translation team.
74807
74808 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74809
74810         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74811         dependencies.
74812
74813 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74814
74815         [BZ #12653]
74816         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74817         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74818         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74819         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74820         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74821
74822 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74823
74824         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74825         differing bytes.
74826         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74827         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74828         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74829
74830 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74831
74832         [BZ #12420]
74833         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74834         storing it.
74835         * stdlib/bug-getcontext.c: New file.
74836         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74837
74838 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74839
74840         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74841         instructions into .machine "z9-109".
74842         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74843         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74844
74845 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74846
74847         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74848         between environment variables and auxiliary vector.
74849
74850 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74851
74852         * Makefile: Add rules to build linkobj/libc.so.
74853         * include/libc-symbols.h: Define libc_hidden_nolink.
74854         * include/rpc/auth.h: Mark functions which are to be hidden.
74855         * include/rpc/auth_des.h: Likewise.
74856         * include/rpc/auth_unix.h: Likewise.
74857         * include/rpc/clnt.h: Likewise.
74858         * include/rpc/des_crypt.h: Likewise.
74859         * include/rpc/key_prot.h: Likewise.
74860         * include/rpc/pmap_clnt.h: Likewise.
74861         * include/rpc/pmap_prot.h: Likewise.
74862         * include/rpc/pmap_rmt.h: Likewise.
74863         * include/rpc/rpc_msg.h: Likewise.
74864         * include/rpc/svc.h: Likewise.
74865         * include/rpc/svc_auth.h: Likewise.
74866         * include/rpc/xdr.h: Likewise.
74867         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74868         * nss/Makefile: Likewise.
74869         * sunrpc/Makefile: Don't install headers.  Build library with normal
74870         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74871         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74872         for the compat linking library.  Remove use of INTDEF/INTUSE.
74873         * sunrpc/auth_none.c: Likewise.
74874         * sunrpc/auth_unix.c: Likewise.
74875         * sunrpc/authdes_prot.c: Likewise.
74876         * sunrpc/authuxprot.c: Likewise.
74877         * sunrpc/clnt_gen.c: Likewise.
74878         * sunrpc/clnt_perr.c: Likewise.
74879         * sunrpc/clnt_raw.c: Likewise.
74880         * sunrpc/clnt_simp.c: Likewise.
74881         * sunrpc/clnt_tcp.c: Likewise.
74882         * sunrpc/clnt_udp.c: Likewise.
74883         * sunrpc/clnt_unix.c: Likewise.
74884         * sunrpc/des_crypt.c: Likewise.
74885         * sunrpc/des_soft.c: Likewise.
74886         * sunrpc/get_myaddr.c: Likewise.
74887         * sunrpc/key_call.c: Likewise.
74888         * sunrpc/key_prot.c: Likewise.
74889         * sunrpc/netname.c: Likewise.
74890         * sunrpc/pm_getmaps.c: Likewise.
74891         * sunrpc/pm_getport.c: Likewise.
74892         * sunrpc/pmap_clnt.c: Likewise.
74893         * sunrpc/pmap_prot.c: Likewise.
74894         * sunrpc/pmap_prot2.c: Likewise.
74895         * sunrpc/pmap_rmt.c: Likewise.
74896         * sunrpc/publickey.c: Likewise.
74897         * sunrpc/rpc_cmsg.c: Likewise.
74898         * sunrpc/rpc_common.c: Likewise.
74899         * sunrpc/rpc_dtable.c: Likewise.
74900         * sunrpc/rpc_prot.c: Likewise.
74901         * sunrpc/rpc_thread.c: Likewise.
74902         * sunrpc/rtime.c: Likewise.
74903         * sunrpc/svc.c: Likewise.
74904         * sunrpc/svc_auth.c: Likewise.
74905         * sunrpc/svc_authux.c: Likewise.
74906         * sunrpc/svc_raw.c: Likewise.
74907         * sunrpc/svc_run.c: Likewise.
74908         * sunrpc/svc_simple.c: Likewise.
74909         * sunrpc/svc_tcp.c: Likewise.
74910         * sunrpc/svc_udp.c: Likewise.
74911         * sunrpc/svc_unix.c: Likewise.
74912         * sunrpc/svcauth_des.c: Likewise.
74913         * sunrpc/xcrypt.c: Likewise.
74914         * sunrpc/xdr.c: Likewise.
74915         * sunrpc/xdr_array.c: Likewise.
74916         * sunrpc/xdr_float.c: Likewise.
74917         * sunrpc/xdr_intXX_t.c: Likewise.
74918         * sunrpc/xdr_mem.c: Likewise.
74919         * sunrpc/xdr_rec.c: Likewise.
74920         * sunrpc/xdr_ref.c: Likewise.
74921         * sunrpc/xdr_sizeof.c: Likewise.
74922         * sunrpc/xdr_stdio.c: Likewise.
74923
74924 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74925
74926         [BZ #12650]
74927         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74928         * sysdeps/ia64/dl-tls.h: Likewise.
74929         * sysdeps/powerpc/dl-tls.h: Likewise.
74930         * sysdeps/s390/dl-tls.h: Likewise.
74931         * sysdeps/sh/dl-tls.h: Likewise.
74932         * sysdeps/sparc/dl-tls.h: Likewise.
74933         * sysdeps/x86_64/dl-tls.h: Likewise.
74934         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74935
74936 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74937
74938         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74939         rpath element also skip the following colon.
74940         (expand_dynamic_string_token): Add is_path parameter and pass
74941         down to DL_DST_REQUIRED and _dl_dst_substitute.
74942         (decompose_rpath): Call expand_dynamic_string_token with
74943         non-zero is_path.  Ignore empty rpaths.
74944         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74945         with zero is_path.
74946
74947 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74948
74949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74950         Make cancelable.
74951
74952 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74953
74954         [BZ #12655]
74955         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74956         Patch by Filipe David Manana <fdmanana@apache.org>.
74957
74958 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74959
74960         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74961         Maintain aligned stack.
74962         (CHECK_RSP): Remove unused macro.
74963
74964 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74965
74966         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74967         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74968
74969 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74970
74971         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74972
74973         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74974
74975 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74976
74977         [BZ #12518]
74978         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74979         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74980         * sysdeps/x86_64/memmove.c: New file.
74981         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74982         (memcpy): Renamed to ...
74983         (__new_memcpy): This.
74984         (memcpy): Provide GLIBC_2_14 memcpy.
74985         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74986         (memcpy): Provide GLIBC_2_2_5 memcpy.
74987
74988 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74989
74990         [BZ #12631]
74991         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74992
74993 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74994
74995         * misc/syncfs.c: New file.
74996         * misc/Makefile (routines): Add syncfs.
74997         * posix/unistd.h: Declare syncfs.
74998         * sysdeps/unix/syscalls.list: Add syncfs.
74999
75000 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75001
75002         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75003         open_by_handle_at.
75004         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75005         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75006         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75007         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75008         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75009         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75010         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75011
75012 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75013
75014         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75015         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75016         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75017         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75018         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75019         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75020         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75021
75022         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75023         sync_file_range.c with -fexceptions.
75024         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75025         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75026         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75027         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75028         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75029         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75030         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75031         sync_file_range as cancellation point
75032         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75033         now a wrapper around __call_sync_file_range with cancellation handling.
75034         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75035         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75036         function name to __call_sync_file_range.
75037         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75038         Add call_sync_file_range.
75039
75040 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75041
75042         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75043         bits/timex.h.
75044
75045 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75046
75047         * iconv/iconv.h: Fix typo in comment.
75048         * io/fcntl.h: Likewise.
75049         * libio/stdio.h: Likewise.
75050         * posix/spawn.h: Likewise.
75051         * posix/unistd.h: Likewise.
75052         * stdlib/stdlib.h: Likewise.
75053         * time/time.h: Likewise.
75054         * wcsmbs/wchar.h: Likewise.
75055
75056         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75057         open_by_handle): Add.
75058         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75059         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75060         Augment a few comments.
75061         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75062         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75063         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75065         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75066         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75067         open_by_handle.
75068
75069         * io/fcntl.h (AT_EMPTY_PATH): Define.
75070
75071 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75072
75073         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75074         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75075         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75076         to...
75077         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75078         * Versions.def: Add GLIBC_2.14.
75079         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75080         Export.
75081
75082 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75083
75084         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75085         round counter.
75086         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75087
75088 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75089
75090         [BZ #12597]
75091         * string/test-strncmp.c (do_page_test): New function.
75092         (check2): Likewise.
75093         (test_main): Call check2.
75094         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75095
75096 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75097
75098         [BZ #12587]
75099         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75100         Handle cache information in CPU leaf 4.
75101         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75102
75103 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75104
75105         [BZ #12583]
75106         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75107         character representation.
75108         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75109
75110 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75111
75112         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75113         END(__isnan) to END(__isnanf) to match function entry point/label
75114         EALIGN(__isnanf,...).
75115
75116 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75117
75118         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75119
75120 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75121
75122         [BZ #12510]
75123         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75124         copy from the symbol referenced in the relocation to initialize the
75125         used variable.
75126         Patch by Piotr Bury <pbury@goahead.com>.
75127         * elf/Makefile: Add rules to build and tst-unique3.
75128         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75129         * elf/tst-unique3.cc: New file.
75130         * elf/tst-unique3.h: New file.
75131         * elf/tst-unique3lib.cc: New file.
75132         * elf/tst-unique3lib2.cc: New file.
75133
75134         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75135
75136 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75137
75138         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75139         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75140         to _start.
75141
75142 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75143
75144         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75145         to-be-loaded object along a path to loader is ld.so.
75146
75147 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75148             Ulrich Drepper  <drepper@gmail.com>
75149
75150         * sysdeps/x86_64/memset.S: After aligning destination, code
75151         branches to different locations depending on the value of
75152         misalignment, when multiarch is enabled. Fix this.
75153
75154 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75155
75156         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75157         Set _x86_64_preferred_memory_instruction for AMD processsors.
75158         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75159         Set bit_Prefer_SSE_for_memop for AMD processors.
75160
75161 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75162
75163         * libio/fmemopen.c (fmemopen): Optimize a bit.
75164
75165 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75166
75167         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75168
75169 2011-03-03  Roland McGrath  <roland@redhat.com>
75170
75171         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75172
75173 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75174
75175         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75176         __bzero_ultra1 instead of __memset_ultra1.
75177
75178 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75179             Ulrich Drepper  <drepper@gmail.com>
75180
75181         [BZ #12509]
75182         * include/link.h (struct link_map): Add l_orig_initfini.
75183         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75184         returning unsuccessfully.
75185         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75186         close of a file loaded at startup, restore the original l_initfini
75187         list.
75188         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75189         list, store the pointer.
75190         * elf/Makefile ($(objpfx)noload-mem): New rule.
75191         (noload-ENV): Define.
75192         (tests): Add $(objpfx)noload-mem.
75193         * elf/noload.c: Include <memcheck.h>.
75194         (main): Call mtrace.  Close all opened handles.
75195
75196 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75197
75198         [BZ #12454]
75199         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75200         dependencies are missing.
75201
75202 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75203
75204         Fix __if_freereq crash: Unlike the generic version which uses free,
75205         Hurd needs munmap.
75206         * sysdeps/mach/hurd/ifreq.h: New file.
75207
75208 2011-01-27  Petr Baudis  <pasky@suse.cz>
75209             Ulrich Drepper  <drepper@gmail.com>
75210
75211         [BZ 12445]#
75212         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75213         to extend_alloca().
75214         * stdio-common/bug23.c: New file.
75215         * stdio-common/Makefile (tests): Add bug23.
75216
75217 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75218             Ulrich Drepper  <drepper@gmail.com>
75219
75220         [BZ #12489]
75221         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75222         before performing relro protection.  At old place add assertion
75223         to make sure nothing changed.
75224
75225 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75226             Glauber de Oliveira Costa  <glommer@gmail.com>
75227
75228         * elf/elf.h: Add new ARM TLS relocs.
75229
75230 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75231
75232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75233         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75234         cast from r3.
75235         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75236         'tests' variable.
75237         * sysdeps/wordsize-64/tst-writev.c: New file.
75238
75239 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75240
75241         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75242         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75243         insns in _dl_start to prevent a TOC reference before relocs are
75244         resolved.
75245
75246 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75247
75248         [BZ #12469]
75249         * Makeconfig: Remove RANLIB definition.
75250         * Makerules: Don't use RANLIB.
75251         * aclocal.m4: Remove ranlib test.
75252         * configure.in: No need to check for ranlib.
75253         * elf/rtld-Rules: Don't use RANLIB.
75254
75255 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75256
75257         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75258         protection macro.
75259         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75260         inclusion protection macro.
75261
75262         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75263         SIGRTMIN and SIGRTMAX and print information in that case only when
75264         SIGRTMIN is defined.
75265
75266 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75267
75268         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75269         arginfo fn returning -1.
75270
75271         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75272         and thousands string is zero terminated.
75273
75274 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75275
75276         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75277         sysdeps/unix/sysv/linux/bits/socket.h.
75278
75279 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75280
75281         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75282         (__CPU_COUNT): Remove old macros.
75283         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75284         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75285         (__CPU_ALLOC, __CPU_FREE): Add macros.
75286         (__sched_cpualloc, __sched_cpufree): Add declarations.
75287
75288 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75289
75290         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75291         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75292         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75293         (readdhstai): Return value of addhstaiX call.
75294         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75295         (addgrbyX): Return value returned by cache_addgr.
75296         (readdgrbyname): Return value returned by addgrbyX.
75297         (readdgrbygid): Likewise.
75298         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75299         (addpwbyX): Return value returned by cache_addpw.
75300         (readdpwbyname): Return value returned by addhstbyX.
75301         (readdpwbyuid): Likewise.
75302         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75303         (addservbyX): Return value returned by cache_addserv.
75304         (readdservbyname): Return value returned by addservbyX:
75305         (readdservbyport): Likewise.
75306         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75307         (addhstbyX): Return value returned by cache_addhst.
75308         (readdhstbyname): Return value returned by addhstbyX.
75309         (readdhstbyaddr): Likewise.
75310         (readdhstbynamev6): Likewise.
75311         (readdhstbyaddrv6): Likewise.
75312         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75313         (readdinitgroups): Return value returned by addinitgroupsX.
75314         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75315         (prune_cache): Keep track of timeout value of re-added entries.
75316         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75317         * nscd/nscd.h: Adjust prototypes of readd* functions.
75318
75319 2011-02-04  Roland McGrath  <roland@redhat.com>
75320
75321         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75322         (nis_stats): Likewise.
75323         * nis/nis_modify.c (nis_modify): Likewise.
75324         * nis/nis_remove.c (nis_remove): Likewise.
75325         * nis/nis_add.c (nis_add): Likewise.
75326
75327         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75328
75329         * posix/fnmatch_loop.c: Add some consts.
75330
75331         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75332
75333 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75334
75335         [BZ #12460]
75336         * config.make.in (config-cflags-novzeroupper): Define.
75337         * configure.in: Substitute libc_cv_cc_novzeroupper.
75338         * elf/Makefile (AVX-CFLAGS): Define.
75339         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75340         (CFLAGS-tst-auditmod4a.c): Likewise.
75341         (CFLAGS-tst-auditmod4b.c): Likewise.
75342         (CFLAGS-tst-auditmod6b.c): Likewise.
75343         (CFLAGS-tst-auditmod6c.c): Likewise.
75344         (CFLAGS-tst-auditmod7b.c): Likewise.
75345         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75346
75347 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75348
75349         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75350         function to the callback.
75351         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75352
75353 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75354
75355         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75356         of errno.
75357
75358 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75359
75360         [BZ #11724]
75361         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75362         of constructors.
75363         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75364         of destructors.
75365         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75366
75367         [BZ #11724]
75368         * elf/Makefile: Add rules to build and run new test.
75369         * elf/tst-initorder.c: New file.
75370         * elf/tst-initorder.exp: New file.
75371         * elf/tst-initordera1.c: New file.
75372         * elf/tst-initordera2.c: New file.
75373         * elf/tst-initordera3.c: New file.
75374         * elf/tst-initordera4.c: New file.
75375         * elf/tst-initorderb1.c: New file.
75376         * elf/tst-initorderb2.c: New file.
75377         * elf/tst-order-a1.c: New file.
75378         * elf/tst-order-a2.c: New file.
75379         * elf/tst-order-a3.c: New file.
75380         * elf/tst-order-a4.c: New file.
75381         * elf/tst-order-b1.c: New file.
75382         * elf/tst-order-b2.c: New file.
75383         * elf/tst-order-main.c: New file.
75384         New test case by George Gensure <werkt0@gmail.com>.
75385
75386 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75387
75388         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75389         decoding ACE if AI_CANONIDN.
75390
75391 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75392
75393         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75394
75395 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75396
75397         * version.h (RELEASE): Bump for 2.13 release.
75398         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75399
75400         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75401
75402         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75403         MADV_NOHUGEPAGE.
75404         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75405         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75406         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75407         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75408         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75409         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75410
75411         * posix/getconf.c: Update copyright year.
75412         * catgets/gencat.c: Likewise.
75413         * csu/version.c: Likewise.
75414         * debug/catchsegv.sh: Likewise.
75415         * debug/xtrace.sh: Likewise.
75416         * elf/ldconfig.c: Likewise.
75417         * elf/ldd.bash.in: Likewise.
75418         * elf/sprof.c (print_version): Likewise.
75419         * iconv/iconv_prog.c: Likewise.
75420         * iconv/iconvconfig.c: Likewise.
75421         * locale/programs/locale.c: Likewise.
75422         * locale/programs/localedef.c: Likewise.
75423         * malloc/memusage.sh: Likewise.
75424         * malloc/mtrace.pl: Likewise.
75425         * nscd/nscd.c (print_version): Likewise.
75426         * nss/getent.c: Likewise.
75427
75428         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75429         PF_CAIF, and PF_ALG.
75430         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75431
75432 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75433
75434         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75435         (modules-names): Use them.
75436         (ifunc-test-modules, ifunc-pie-tests): Define.
75437         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75438         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75439         (test-extras): Likewise.
75440         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75441         $(compile-command.c).
75442         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75443         (all-built-dso): Define.
75444         (check-textrel.out, check-execstack.out): Depend on it.
75445
75446         * configure.in: Don't override --enable-multi-arch.
75447
75448 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75449
75450         [BZ #6812]
75451         * nscd/hstcache.c (tryagain): Define.
75452         (cache_addhst): Return tryagain not notfound for temporary errors.
75453         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75454         failed.
75455
75456 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75457
75458         [BZ #10563]
75459         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75460         to make the syscall.
75461         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75462
75463         [BZ #12378]
75464         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75465         and fall back to matching as normal character if the string ends before
75466         the matching ']' is found.  This is what POSIX requires.
75467         * posix/testfnm.c: Adjust test result.
75468         * posix/globtest.sh: Adjust test result.  Add new test.
75469         * posix/tst-fnmatch.input: Likewise.
75470         * posix/tst-fnmatch2.c: Add new test.
75471
75472 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75473
75474         * elf/Makefile (check-execstack): Revert last change.  Depend on
75475         check-execstack.h.
75476         (check-execstack.h): New target.
75477         (generated): Add check-execstack.h.
75478         * elf/check-execstack.c: Include "check-execstack.h".
75479         (main): Revert last change.
75480         (handle_file): Return zero if GNU_STACK is absent and
75481         DEFAULT_STACK_PERMS doesn't include PF_X.
75482
75483 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75484
75485         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75486         in child fails because the descriptor is already closed.
75487         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75488         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75489         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75490
75491         [BZ #12397]
75492         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75493         syscall.
75494
75495         [BZ #10484]
75496         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75497         temporary buffer used to handle multi lookups locally.
75498         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75499
75500 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75501
75502         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75503         loader is ld.so.
75504
75505 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75506
75507         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75508         alignment for SSE2.
75509
75510 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75511
75512         [BZ #12394]
75513         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75514         characters.  When rounding increased number of integer digits recompute
75515         number of groups.
75516         * stdio-common/tst-grouping.c: New file.
75517         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75518
75519 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75520
75521         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75522         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75523
75524         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75525         void.
75526         * bits/select.h: Likewise.
75527
75528 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75529
75530         * po/ja.po: Update from translation team.
75531
75532 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75533
75534         [BZ #11155]
75535         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75536         implementation just like for lxstat, fxstatat, et al.
75537
75538 2010-12-27  Jim Meyering  <meyering@redhat.com>
75539
75540         [BZ #12348]
75541         * posix/regexec.c (build_trtable): Return failure indication upon
75542         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75543
75544 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75545
75546         [BZ #12201]
75547         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75548         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75549         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75550         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75551
75552         [BZ #12207]
75553         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75554
75555         [BZ #12204]
75556         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75557         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75558
75559 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75560
75561         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75562         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75563         script has SORT_BY_INIT_PRIORITY.
75564         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75565         NO_CTORS_DTORS_SECTIONS is defined.
75566         * elf/soinit.c: Likewise.
75567         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75568         NO_CTORS_DTORS_SECTIONS is defined.
75569         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75570         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75571         * sysdeps/sh/init-first.c: Likewise.
75572         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75573
75574 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75575
75576         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75577         always use the slow path.
75578
75579 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75580
75581         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75582         similar rule which adds the sysdep directories to the header search in
75583         order to pick up the correct platform stackinfo.h.
75584         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75585         perform test if it is, otherwise return successfully without testing.
75586         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75587         DEFAULT_STACK_PERMS define in stackinfo.h.
75588         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75589         defined in stackinfo.h.
75590         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75591         DEFAULT_STACK_PERMS defined in stackinfo.h.
75592         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75593         * sysdeps/ia64/stackinfo.h: Likewise.
75594         * sysdeps/s390/stackinfo.h: Likewise.
75595         * sysdeps/sh/stackinfo.h: Likewise.
75596         * sysdeps/sparc/stackinfo.h: Likewise.
75597         * sysdeps/x86_64/stackinfo.h: Likewise.
75598         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75599         PF_X for powerpc64.  Retain PF_X for powerpc32.
75600
75601 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75602
75603         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75604         accurately.
75605         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75606         GETDENTS_64BIT_ALIGNED.
75607
75608 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75609
75610         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75611
75612 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75613
75614         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75615         _GNU_SOURCE.
75616
75617         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75618         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75619         Remove __restrict.
75620         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75621         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75622
75623 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75624
75625         [BZ #11655]
75626         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75627         are initialized.
75628
75629 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75630
75631         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75632
75633 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75634
75635         * po/it.po: Update from translation team.
75636
75637 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75638
75639         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75640         unused codes.
75641
75642 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75643
75644         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75645
75646 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75647
75648         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75649         specially.
75650         (gaih_getanswer_slice): Likewise.
75651
75652 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75653
75654         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75655
75656 2010-05-31  Petr Baudis  <pasky@suse.cz>
75657
75658         [BZ #11149]
75659         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75660         silently even in the chroot mode.
75661
75662 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75663
75664         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75665         last patch a bit.  Pretty printing
75666
75667 2010-05-31  Petr Baudis <pasky@suse.cz>
75668
75669         [BZ #10085]
75670         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75671         initialization of skip_initgroups_dyn.
75672
75673 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75674
75675         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75676         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75677
75678 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75679
75680         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75681
75682 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75683
75684         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75685         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75686         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75687         ($(objpfx)tst-fnmatch-mem): New rule.
75688         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75689         * posix/tst-fnmatch.c (main): Call mtrace.
75690
75691 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75692
75693         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75694         Support Intel processor model 6 and model 0x2c.
75695
75696 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75697
75698         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75699           signed comparison.
75700
75701 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75702
75703         [BZ #12205]
75704         * string/test-strncasecmp.c (check_result): New function.
75705         (do_one_test): Use it.
75706         (check1): New function.
75707         (test_main): Use it.
75708         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75709         Support strcasecmp and strncasecmp.
75710
75711 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75712
75713         [BZ #12194]
75714         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75715         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75716
75717 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75718
75719         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75720         IFUNC support.
75721         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75722         memset-x86-64.
75723         * sysdeps/x86_64/multiarch/bzero.S: New file.
75724         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75725         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75726         * sysdeps/x86_64/multiarch/memset.S: New file.
75727         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75728         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75729         Set bit_Prefer_SSE_for_memop for Intel processors.
75730         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75731         Define.
75732         (index_Prefer_SSE_for_memop): Define.
75733         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75734
75735 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75736
75737         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75738         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75739
75740 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75741
75742         [BZ #12191]
75743         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75744         (__x86_64_raw_data_cache_size_half): Likewise.
75745         (__x86_64_raw_shared_cache_size): Likewise.
75746         (__x86_64_raw_shared_cache_size_half): Likewise.
75747
75748         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75749         (__x86_64_raw_data_cache_size_half): Likewise.
75750         (__x86_64_raw_shared_cache_size): Likewise.
75751         (__x86_64_raw_shared_cache_size_half): Likewise.
75752         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75753         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75754         and __x86_64_raw_shared_cache_size_half.  Round
75755         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75756         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75757         to multiple of 256 bytes.
75758
75759 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75760
75761         [BZ #12167]
75762         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75763         of inacessible symlinks.  Verify result of symlink before returning it.
75764         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75765         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75766
75767 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75768
75769         * math/math.h (isinf): Fix typo in comment.
75770
75771 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75772
75773         * po/da.po: Update from translation team.
75774
75775 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75776
75777         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75778         is added to the list.
75779
75780 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75781             Ulrich Drepper  <drepper@gmail.com>
75782
75783         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75784         the global list here.  Move code to...
75785         (_dl_add_to_namespace_list): ...here.  New function.
75786         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75787         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75788         * elf/dl-load.c (lose): Don't remove the element from the list.
75789         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75790         (_dl_map_object): Likewise.
75791
75792 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75793
75794         [BZ #12159]
75795         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75796         into all bytes of SSE register.
75797         Patch by Richard Li <richardpku@gmail.com>.
75798
75799 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75800
75801         [BZ #12140]
75802         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75803         perturbing.
75804
75805 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75806
75807         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75808         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75809         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75810         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75812         submachine.
75813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75814
75815 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75816
75817         * include/dlfcn.h (__RTLD_SECURE): Define.
75818         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75819         mode & __RTLD_SECURE instead.
75820         (open_path): Rename preloaded parameter to secure.
75821         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75822         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75823         * elf/dl-deps.c (openaux): Likewise.
75824         * elf/rtld.c (struct map_args): Remove is_preloaded.
75825         (map_doit): Don't use it.
75826         (dl_main): Likewise.
75827         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75828         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75829
75830 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75831
75832         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75833         (sysd-rules-targets): Remove duplicates.
75834         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75835         rtld-%.$o dependency.
75836
75837 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75838
75839         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75840         _dl_map_object do it.
75841
75842 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75843
75844         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75845         fast fma builtins, define the macros in the C99 standard.
75846         (FP_FAST_FMAF): Likewise.
75847         (FP_FAST_FMAL): Likewise.
75848         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75849
75850         * bits/mathdef.h: Update copyright year.
75851         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75852
75853 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75854
75855         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75856         builtins, define the macros in the C99 standard.
75857         (FP_FAST_FMAF): Likewise.
75858         (FP_FAST_FMAL): Likewise.
75859         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75860         multiply/add.
75861         (FP_FAST_FMAF): Likewise.
75862
75863 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75864
75865         [BZ #3268]
75866         * math/libm-test.inc (fma_test): Some new testcases.
75867         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75868         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75869         y and infinite z.  Do multiplication by C already in long double.
75870         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75871         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75872         y and infinite z.  Do bitwise or of inexact bit into u.d.
75873         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75874         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75875         * sysdeps/i386/fpu/s_fma.S: Removed.
75876         * sysdeps/i386/fpu/s_fmal.S: Removed.
75877
75878 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75879
75880         [BZ #3268]
75881         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75882         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75883         computation is not scheduled after fetestexcept.  Fix value
75884         of minimum denormal long double.
75885
75886 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75887
75888         [BZ #3268]
75889         * math/libm-test.inc (fma_test): Add some more tests.
75890         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75891         correctly.
75892
75893 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75894
75895         * scripts/data/localplt-s390-linux-gnu.data: New file.
75896         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75897
75898 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75899
75900         [BZ #3268]
75901         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75902         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75903         instead of dbl-64.
75904         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75905         inlines.
75906         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75907         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75908         if one of x and y is very large and the other is subnormal.
75909         * sysdeps/s390/fpu/s_fmaf.c: New file.
75910         * sysdeps/s390/fpu/s_fma.c: New file.
75911         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75912         * sysdeps/powerpc/fpu/s_fma.S: New file.
75913         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75914         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75915         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75916
75917 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75918
75919         [BZ #3268]
75920         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75921         fma tests.
75922         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75923         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75924         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75925         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75926         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75927         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75928         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75929
75930 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75931
75932         [BZ #12078]
75933         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75934         * posix/bug-regex31.input: Add test case.
75935
75936 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75937
75938         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75939         * posix/bug-regex31.input: New file.
75940
75941         [BZ #12078]
75942         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75943         (parse_sub_exp): Fix last change, use postorder.
75944
75945         * posix/bug-regex31.c: New file.
75946         * posix/Makefile: Add rules to build and run bug-regex31.
75947
75948         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75949
75950         [BZ #12078]
75951         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75952
75953         [BZ #12108]
75954         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75955         to have entries in sys_siglist.
75956
75957         [BZ #12093]
75958         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75959         be NULL.
75960
75961 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75962
75963         [BZ #3268]
75964         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75965         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75966         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75967         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75968         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75969         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75970         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75971         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75972         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75973         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75974         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75975         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75976         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75977         * math/ftestexcept.c (fetestexcept): Likewise.
75978         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75979         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75980         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75981         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75982         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75983         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75984         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75985
75986 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75987
75988         [BZ #12107]
75989         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75990         newline.
75991
75992 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75993
75994         * string/bug-strstr1.c: New file.
75995         * string/Makefile: Add rules to build and run bug-strstr1.
75996
75997 2010-10-05  Eric Blake  <eblake@redhat.com>
75998
75999         [BZ #12092]
76000         * string/str-two-way.h (two_way_long_needle): Always clear memory
76001         when skipping input due to the shift table.
76002
76003 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76004
76005         [BZ #12005]
76006         * malloc/mcheck.c: Handle large requests.
76007
76008         [BZ #12077]
76009         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76010         for strncmp and strncasecmp.
76011         * string/stratcliff.c: Add tests for strcmp and strncmp.
76012         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76013
76014 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76015
76016         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76017         __set_fpscr.
76018
76019 2010-09-30  Andreas Jaeger  <aj@suse.de>
76020
76021         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76022         (CGROUP_SUPER_MAGIC): Define.
76023         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76024         Handle btrfs and cgroup file systems.
76025         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76026         Likewise.
76027
76028 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76029
76030         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76031         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76032
76033 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76034
76035         [BZ #12067]
76036         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76037         trying to locate the ELF header.
76038
76039 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76040
76041         [BZ #11611]
76042         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76043         Mask out sign-bit copies when constructing f_fsid.
76044
76045 2010-09-24  Petr Baudis <pasky@suse.cz>
76046
76047         * debug/stack_chk_fail_local.c: Add missing licence exception.
76048         * debug/warning-nop.c: Likewise.
76049
76050 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76051
76052         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76053         implementing getdents64 using getdents syscall, set d_type if
76054         __ASSUME_GETDENTS32_D_TYPE.
76055
76056 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76057
76058         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76059         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76060
76061 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76062
76063         [BZ #12037]
76064         * posix/unistd.h: Undo change of feature selection for ftruncate from
76065         2010-01-11.
76066
76067 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76068
76069         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76070         detection.
76071
76072 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76073
76074         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76075         fanotify_mark.
76076         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76077
76078 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76079
76080         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76081         variables after CHECK_SP call.
76082         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76083
76084 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76085             Ulrich Drepper  <drepper@redhat.com>
76086
76087         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76088         re-relocationg ld.so.
76089         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76090         _dl_init_paths call.
76091         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76092         here anymore.
76093
76094 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76095
76096         * resolv/res_init.c (__res_vinit): Count the default server we added.
76097
76098 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76099             Ulrich Drepper  <drepper@redhat.com>
76100
76101         [BZ #11968]
76102         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76103         (____longjmp_chk): Use %ebx for saving value across system call.
76104         Add unwind info.
76105
76106 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76107
76108         * manual/Makefile: Don't mix pattern rules with normal rules.
76109
76110 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76111
76112         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76113         operation.
76114         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76115         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76116         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76117         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76118         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76119         Likewise.
76120
76121 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76122
76123         [BZ #11979]
76124         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76125         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76126
76127 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76128
76129         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76130         * sysdeps/x86_64/addmul_1.S: Likewise.
76131         * sysdeps/x86_64/lshift.S: Likewise.
76132         * sysdeps/x86_64/mul_1.S: Likewise.
76133         * sysdeps/x86_64/rshift.S: Likewise.
76134         * sysdeps/x86_64/sub_n.S: Likewise.
76135         * sysdeps/x86_64/submul_1.S: Likewise.
76136
76137 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76138
76139         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76140         Define __sched_param instead of SCHED_* and sched_param when
76141         <bits/sched.h> is included with __need_schedparam defined.
76142         * bits/sched.h [__need_schedparam]
76143         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76144         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76145         (__defined_schedparam): Define to 1.
76146         (__sched_param): New structure, identical to sched_param.
76147         (__need_schedparam): Undefine.
76148
76149 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76150
76151         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76152         (epoll_create1): Declare.
76153
76154         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76155
76156 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76157
76158         [BZ #7066]
76159         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76160         shifting retval into place.
76161
76162 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76163
76164         * nis/rpcsvc/nis.h: Update copyright notice.
76165         * nis/rpcsvc/nis.x: Likewise.
76166         * nis/rpcsvc/nis_callback.h: Likewise.
76167         * nis/rpcsvc/nis_callback.x: Likewise.
76168         * nis/rpcsvc/nis_object.x: Likewise.
76169         * nis/rpcsvc/nis_tags.h: Likewise.
76170         * nis/rpcsvc/yp.h: Likewise.
76171         * nis/rpcsvc/yp.x: Likewise.
76172         * nis/rpcsvc/ypupd.h: Likewise.
76173         * nis/yp_xdr.c: Likewise.
76174         * nis/ypupdate_xdr.c: Likewise.
76175
76176         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76177         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76178         (pmap_getport): Use __libc_rpc_getport.
76179         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76180         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76181         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76182
76183 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76184
76185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76186         fanotify_mark.
76187
76188 2010-08-27  Roland McGrath  <roland@redhat.com>
76189
76190         * sysdeps/i386/i686/multiarch/Makefile
76191         (CFLAGS-varshift.c): New variable.
76192
76193 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76194
76195         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76196         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76197
76198         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76199
76200         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76201
76202 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76203
76204         * sysdeps/x86_64/strlen.S: Unroll the loop.
76205         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76206         strlen-sse2 strlen-sse2-bsf.
76207         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76208         __strlen_no_bsf if bit_Slow_BSF is set.
76209         (__strlen_sse42): Removed.
76210         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76211         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76212
76213 2010-08-25  Roland McGrath  <roland@redhat.com>
76214
76215         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76216         * sysdeps/x86_64/multiarch/varshift.c: New file.
76217         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76218         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76219         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76220         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76221
76222 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76223
76224         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76225         strlen-sse2 strlen-sse2-bsf.
76226         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76227         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76228         (__strlen_sse2): Removed.
76229         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76230         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76231         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76232         bit_Slow_BSF for Atom.
76233         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76234         (index_Slow_BSF): Define.
76235         (HAS_SLOW_BSF): Define.
76236
76237 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76238
76239         [BZ #10851]
76240         * resolv/res_init.c (__res_vinit): When no server address at all
76241         is given default to loopback.
76242
76243 2010-08-24  Roland McGrath  <roland@redhat.com>
76244
76245         * configure.in: Remove config-name.h generation.
76246         * configure: Regenerated.
76247         * config-name.in: File removed.
76248         * scripts/config-uname.sh: New file.
76249         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76250         ($(objdir)config-name.h): New target.
76251
76252         * sunrpc/rpc_parse.h: Avoid nested comment.
76253
76254 2010-08-24  Richard Henderson  <rth@redhat.com>
76255             Ulrich Drepper  <drepper@redhat.com>
76256             H.J. Lu  <hongjiu.lu@intel.com>
76257
76258         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76259         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76260         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76261         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76262         _mm_alignr_epi8 with _mm_loadu_si128.
76263         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76264         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76265         (__m128i_shift_right): Removed.
76266         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76267         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76268         * sysdeps/x86_64/multiarch/varshift.h: New file.
76269         * sysdeps/x86_64/multiarch/varshift.S: New file.
76270
76271 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76272
76273         * configure.in: Move assembler checks to before sysdep dir checking.
76274
76275 2010-08-20  Petr Baudis  <pasky@suse.cz>
76276
76277         * LICENSES: Sync the sunrpc license.
76278
76279 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76280
76281         * sunrpc/auth_des.c: Update copyright notice once again.
76282         * sunrpc/auth_none.c: Likewise.
76283         * sunrpc/auth_unix.c: Likewise.
76284         * sunrpc/authdes_prot.c: Likewise.
76285         * sunrpc/authuxprot.c: Likewise.
76286         * sunrpc/bindrsvprt.c: Likewise.
76287         * sunrpc/clnt_gen.c: Likewise.
76288         * sunrpc/clnt_perr.c: Likewise.
76289         * sunrpc/clnt_raw.c: Likewise.
76290         * sunrpc/clnt_simp.c: Likewise.
76291         * sunrpc/clnt_tcp.c: Likewise.
76292         * sunrpc/clnt_udp.c: Likewise.
76293         * sunrpc/clnt_unix.c: Likewise.
76294         * sunrpc/des_crypt.c: Likewise.
76295         * sunrpc/des_soft.c: Likewise.
76296         * sunrpc/get_myaddr.c: Likewise.
76297         * sunrpc/getrpcport.c: Likewise.
76298         * sunrpc/key_call.c: Likewise.
76299         * sunrpc/key_prot.c: Likewise.
76300         * sunrpc/openchild.c: Likewise.
76301         * sunrpc/pm_getmaps.c: Likewise.
76302         * sunrpc/pm_getport.c: Likewise.
76303         * sunrpc/pmap_clnt.c: Likewise.
76304         * sunrpc/pmap_prot.c: Likewise.
76305         * sunrpc/pmap_prot2.c: Likewise.
76306         * sunrpc/pmap_rmt.c: Likewise.
76307         * sunrpc/rpc/auth.h: Likewise.
76308         * sunrpc/rpc/auth_unix.h: Likewise.
76309         * sunrpc/rpc/clnt.h: Likewise.
76310         * sunrpc/rpc/des_crypt.h: Likewise.
76311         * sunrpc/rpc/key_prot.h: Likewise.
76312         * sunrpc/rpc/netdb.h: Likewise.
76313         * sunrpc/rpc/pmap_clnt.h: Likewise.
76314         * sunrpc/rpc/pmap_prot.h: Likewise.
76315         * sunrpc/rpc/pmap_rmt.h: Likewise.
76316         * sunrpc/rpc/rpc.h: Likewise.
76317         * sunrpc/rpc/rpc_des.h: Likewise.
76318         * sunrpc/rpc/rpc_msg.h: Likewise.
76319         * sunrpc/rpc/svc.h: Likewise.
76320         * sunrpc/rpc/svc_auth.h: Likewise.
76321         * sunrpc/rpc/types.h: Likewise.
76322         * sunrpc/rpc/xdr.h: Likewise.
76323         * sunrpc/rpc_clntout.c: Likewise.
76324         * sunrpc/rpc_cmsg.c: Likewise.
76325         * sunrpc/rpc_common.c: Likewise.
76326         * sunrpc/rpc_cout.c: Likewise.
76327         * sunrpc/rpc_dtable.c: Likewise.
76328         * sunrpc/rpc_hout.c: Likewise.
76329         * sunrpc/rpc_main.c: Likewise.
76330         * sunrpc/rpc_parse.c: Likewise.
76331         * sunrpc/rpc_parse.h: Likewise.
76332         * sunrpc/rpc_prot.c: Likewise.
76333         * sunrpc/rpc_sample.c: Likewise.
76334         * sunrpc/rpc_scan.c: Likewise.
76335         * sunrpc/rpc_scan.h: Likewise.
76336         * sunrpc/rpc_svcout.c: Likewise.
76337         * sunrpc/rpc_tblout.c: Likewise.
76338         * sunrpc/rpc_util.c: Likewise.
76339         * sunrpc/rpc_util.h: Likewise.
76340         * sunrpc/rpcinfo.c: Likewise.
76341         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76342         * sunrpc/rpcsvc/key_prot.x: Likewise.
76343         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76344         * sunrpc/rpcsvc/mount.x: Likewise.
76345         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76346         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76347         * sunrpc/rpcsvc/rex.x: Likewise.
76348         * sunrpc/rpcsvc/rstat.x: Likewise.
76349         * sunrpc/rpcsvc/rusers.x: Likewise.
76350         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76351         * sunrpc/rpcsvc/spray.x: Likewise.
76352         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76353         * sunrpc/rtime.c: Likewise.
76354         * sunrpc/svc.c: Likewise.
76355         * sunrpc/svc_auth.c: Likewise.
76356         * sunrpc/svc_authux.c: Likewise.
76357         * sunrpc/svc_raw.c: Likewise.
76358         * sunrpc/svc_run.c: Likewise.
76359         * sunrpc/svc_simple.c: Likewise.
76360         * sunrpc/svc_tcp.c: Likewise.
76361         * sunrpc/svc_udp.c: Likewise.
76362         * sunrpc/svc_unix.c: Likewise.
76363         * sunrpc/svcauth_des.c: Likewise.
76364         * sunrpc/xcrypt.c: Likewise.
76365         * sunrpc/xdr.c: Likewise.
76366         * sunrpc/xdr_array.c: Likewise.
76367         * sunrpc/xdr_float.c: Likewise.
76368         * sunrpc/xdr_mem.c: Likewise.
76369         * sunrpc/xdr_rec.c: Likewise.
76370         * sunrpc/xdr_ref.c: Likewise.
76371         * sunrpc/xdr_sizeof.c: Likewise.
76372         * sunrpc/xdr_stdio.c: Likewise.
76373
76374         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76375         handling.
76376
76377 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76378
76379         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76380
76381 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76382
76383         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76384         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76385         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76386         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76387         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76388         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76389         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76390         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76391         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76392         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76393         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76394         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76395         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76396         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76397
76398 2010-07-26  Anton Blanchard  <anton@samba.org>
76399
76400         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76401         * malloc/arena.c (heap_trim): Likewise.
76402
76403 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76404
76405         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76406         here.  Not...
76407         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76408         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76409
76410 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76411
76412         * sysdeps/i386/elf/Makefile: New file.
76413
76414 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76415
76416         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76417         from fanotify_init.
76418         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76419         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76420
76421 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76422
76423         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76424         of strncasecmp_l.
76425         * sysdeps/multiarch/strcmp.S: Likewise.
76426
76427 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76428
76429         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76430         strncase_l-nonascii.
76431         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76432         Add strncase_l-ssse3.
76433         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76434         * sysdeps/x86_64/strcmp.S: Likewise.
76435         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76436         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76437         * sysdeps/x86_64/strncase.S: New file.
76438         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76439         * sysdeps/x86_64/strncase_l.S: New file.
76440         * string/Makefile (strop-tests): Add strncasecmp.
76441         * string/test-strncasecmp.c: New file.
76442
76443         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76444         warning.
76445
76446         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76447         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76448
76449 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76450
76451         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76452
76453 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76454
76455         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76456         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76457         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76458
76459 2010-05-01  Alan Modra  <amodra@gmail.com>
76460
76461         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76462         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76463         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76464         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76465         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76466         tidying.  Don't tail-call __sigjmp_save for static lib.
76467         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76468         save location.
76469         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76470         (CALL_MCOUNT): Add eh info, and nop after bl.
76471         (TAIL_CALL_SYSCALL_ERROR): New macro.
76472         (PSEUDO_RET): Use it.
76473         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76474         Correct save location of integer regs and cr.
76475         (_dl_profile_resolve): Correct cr save location.  Delete nops
76476         after bl when SHARED.  Reduce cfi size a little by better
76477         placement of cfi directives.
76478         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76479         make a stack frame.  Instead use parm save area as a temp.
76480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76481         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76483         Don't make a stack frame for parent, use parm save area.
76484         Increase child stack frame to 112 bytes.  Don't save unused reg,
76485         and adjust reg usage.  Set up cfi on error recovery and
76486         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76488         (__makecontext): Add dummy nop after jump to exit.
76489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76490         Use correct parm save area and cr save, reduce stack frame.
76491         Correct cfi for possible PSEUDO_RET frame setup.
76492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76493         Branch to local label emitted by PSEUDO_RET rather than
76494         __syscall_error.
76495
76496 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76497
76498         [BZ #11904]
76499         * locale/programs/locale.c (print_assignment): New function.
76500         (show_locale_vars): Use it.
76501
76502 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76503
76504         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76505         field.
76506         (struct statfs64): Likewise.
76507         (_STATFS_F_FLAGS): Define.
76508         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76509         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76510         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76511         (ST_VALID): Define locally.
76512         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76513         __statvfs_getflags, use the provided value.
76514         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76515         __ASSUME_STATFS_F_FLAGS.
76516
76517         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76518
76519         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76520         Add sys/fanotify.h.
76521         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76522         fanotify_mask for GLIBC_2.13.
76523         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76524         fanotify_init and fanotify_mark.
76525         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76526         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76527
76528         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76529         Add prlimit.
76530         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76531         prlimit64 for GLIBC_2.13.
76532         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76533         prlimit64.
76534         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76535         syscall.
76536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76537         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76538         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76539         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76540         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76541         add prlimit alias.
76542         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76543
76544         [BZ #11903]
76545         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76546         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76547
76548         * nss/Makefile: Add rules to build and run tst-nss-test1.
76549         * shlib-versions: Add entry for libnss_test1.
76550         * nss/nss_test1.c: New file.
76551         * nss/tst-nss-test1.c: New file.
76552
76553         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76554         (__nss_configure_lookup): Set appropriate entry in
76555         __nss_configure_lookup to true.
76556         * nss/nsswitch.h: Define enum with indeces of databases in
76557         databases and __nss_database_custom arrays.  Declare
76558         __nss_database_custom.
76559         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76560         to avoid using nscd when custom rules are installed.
76561         * nss/getXXbyYY_r.c: Likewise.
76562         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76563
76564         * nss/nss_files/files-parse.c: Whitespace fixes.
76565
76566 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76567
76568         [BZ #11883]
76569         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76570         * posix/fnmatch_loop.c: Likewise.
76571
76572 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76573
76574         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76575         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76576         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76577         * Versions.def [GLIBC_2.13]: Add.
76578
76579 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76580
76581         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76582         Also fail if tpwd after pwuid call is NULL.
76583
76584 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76585
76586         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76587         when converting to ms.
76588
76589 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76590
76591         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76592         EOPNOTSUPP errors with ENOTTY.
76593         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76594         EOPNOTSUPP errors with ENOTTY.
76595
76596 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76597
76598         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76599         Add strcasecmp_l-ssse3.
76600         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76601         strcasecmp.
76602         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76603         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76604         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76605
76606 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76607
76608         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76609
76610         * string/Makefile (strop-tests): Add strcasecmp.
76611         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76612         strcasecmp_l-nonascii.
76613         (gen-as-const-headers): Add locale-defines.sym.
76614         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76615         * sysdeps/x86_64/strcasecmp.S: New file.
76616         * sysdeps/x86_64/strcasecmp_l.S: New file.
76617         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76618         * sysdeps/x86_64/locale-defines.sym: New file.
76619         * string/test-strcasecmp.c: New file.
76620
76621         * string/test-strcasestr.c: Test both ends of the range of characters.
76622         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76623
76624 2010-07-29  Roland McGrath  <roland@redhat.com>
76625
76626         [BZ #11856]
76627         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76628
76629 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76630
76631         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76632         for ld.so.
76633
76634 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76635
76636         * manual/memory.texi (Malloc Tunable Parameters): Document
76637         M_PERTURB.
76638
76639 2010-07-26  Roland McGrath  <roland@redhat.com>
76640
76641         [BZ #11840]
76642         * configure.in (-fgnu89-inline check): Set and substitute
76643         gnu89_inline, not libc_cv_gnu89_inline.
76644         * configure: Regenerated.
76645         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76646
76647 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76648
76649         * string/test-strnlen.c: New file.
76650         * string/Makefile (strop-tests): Add strnlen.
76651         * string/tester.c (test_strnlen): Add a few more test cases.
76652         * string/tst-strlen.c: Better error reporting.
76653
76654         * sysdeps/x86_64/strnlen.S: New file.
76655
76656 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76657
76658         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76659         lower-latency instructions.
76660
76661 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76662
76663         * string/test-strcasestr.c: New file.
76664         * string/test-strstr.c: New file.
76665         * string/Makefile (strop-tests): Add strstr and strcasestr.
76666         * string/str-two-way.h: Don't undefine MAX.
76667         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76668
76669 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76670
76671         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76672         strcasestr-nonascii.
76673         (CFLAGS-strcasestr-nonascii.c): Define.
76674         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76675         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76676         Remove unused attribute.
76677
76678 2010-07-20  Roland McGrath  <roland@redhat.com>
76679
76680         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76681         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76682         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76683         like LD_HWCAP_MASK can disable hwcaps.
76684
76685 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76686
76687         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76688
76689 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76690
76691         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76692         call in strcasestr.
76693         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76694         __strcasestr_sse42_nonascii.
76695         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76696         strcasestr-nonascii.c.
76697         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76698
76699 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76700
76701         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76702         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76703         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76704         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76705
76706 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76707
76708         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76709         fcntl.
76710
76711 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76712
76713         [BZ #11577]
76714         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76715         dl_signal_cerror.
76716
76717 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76718
76719         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76720         _PC_PIPE_BUF using F_GETPIPE_SZ.
76721
76722 2010-07-05  Roland McGrath  <roland@redhat.com>
76723
76724         * manual/arith.texi (Rounding Functions): Fix rint description
76725         implicit in round description.
76726
76727 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76728
76729         * elf/Makefile: Fix linking for a few tests to make recent linker
76730         happy.
76731
76732 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76733
76734         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76735         $(common-objpfx)libc_nonshared.a.
76736
76737 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76738
76739         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76740         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76741         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76742         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76743         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76744         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76745         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76746         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76761         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76762         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76763         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76764         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76765         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76766         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76767         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76768         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76769         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76770         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76771         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76772         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76787
76788 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76789
76790         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76791         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76792         * string/memmove.c (memmove): Renamed to ...
76793         (MEMMOVE): ...this.  Default to memmove.
76794         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76795         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76796         (END_CHK): Define.
76797         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76798         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76799         mempcpy-ssse3-back memmove-ssse3-back.
76800         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76801         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76802         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76803         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76804         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76805         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76806         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76807         * sysdeps/x86_64/multiarch/memmove.c: New file.
76808         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76809         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76810         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76811         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76812         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76813         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76814         Define.
76815         (index_Fast_Copy_Backward): Define.
76816         (HAS_ARCH_FEATURE): Define.
76817         (HAS_FAST_REP_STRING): Define.
76818         (HAS_FAST_COPY_BACKWARD): Define.
76819
76820 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76821
76822         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76823         Restore proper fallback handling.
76824
76825 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76826
76827         [BZ #11701]
76828         * posix/group_member.c (__group_member): Correct checking loop.
76829
76830         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76831         OOM in getpwuid_r correctly.  Return error number when the caller
76832         should return, otherwise -1.
76833         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76834         call returning > 0 value.
76835         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76836
76837 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76838
76839         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76840         libc_nonshared.a from targets in modules-names.
76841
76842 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76843
76844         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76845         requires it.
76846
76847 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76848
76849         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76850         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76851         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76852         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76853
76854 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76855
76856         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76857
76858 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76859
76860         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76861         and F_GETPIPE_SZ.
76862         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76863         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76864         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76865         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76866         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76867         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76868
76869 2010-06-14  Roland McGrath  <roland@redhat.com>
76870
76871         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76872
76873 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76874
76875         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76876         __REDIRECT followed by __THROW.
76877         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76878         * posix/getopt.h (getopt): Likewise.
76879
76880 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76881
76882         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76883         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76884         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76885         in AT_FLAGS.
76886         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76887         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76888
76889 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76890
76891         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76892
76893 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76894
76895         [BZ #11640]
76896         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76897         Properly check family and model.
76898
76899 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76900
76901         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76902
76903 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76904
76905         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76906
76907 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76908
76909         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76910         symbol reference.
76911
76912 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76913
76914         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76915         symbol reference.
76916
76917 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76918
76919         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76920         and internal_recvmmsg.
76921         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76922         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76923         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76924         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76925
76926         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76927         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76928         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76929
76930 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76931
76932         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76933
76934 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76935
76936         POWER7 optimizations.
76937         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76938         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76939
76940 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76941
76942         * version.h: Update for 2.13 development version.
76943
76944 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76945
76946         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76947         exceptions.  Return 0.
76948
76949 2010-05-07  Roland McGrath  <roland@redhat.com>
76950
76951         * elf/ldconfig.c (main): Add a const.
76952
76953 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76954
76955         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76956         (args_options): Add no-idn option.
76957         (ahosts_keys_int): Add idn_flags to ai_flags.
76958         (parse_option): Handle 'i' option to clear idn_flags.
76959
76960         * malloc/malloc.c (_int_free): Possible race in the most recently
76961         added check.  Only act on the data if no current modification
76962         happened.
76963
76964 See ChangeLog.17 for earlier changes.