Correct bug number in ChangeLog [BZ #18960]
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #18645]
4         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
5         (test-extras): Add tst-cleanupx4aux.
6         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
7         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
8         tst-cleanupx4aux.o.
9         * nptl/tst-cleanupx4aux.c: New file.
10
11 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
12
13         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
14
15 2016-06-29  Andreas Schwab  <schwab@suse.de>
16
17         [BZ #20260]
18         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
19         address before the beginning of the string as an integer to avoid
20         array-bounds warning.
21
22 2016-06-28  Richard Henderson  <rth@redhat.com>
23
24         * elf/elf.h (EM_BPF): New.
25         (EM_NUM): Update.
26         (R_BPF_NONE, R_BPF_MAP_FD): New.
27
28         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
29         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
30         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
31         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
32         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
33         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
34         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
35         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
36         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
37         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
38         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
39         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
40         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
41         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
42         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
43         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
44         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
45         (EM_NUM): Update.
46
47 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
48
49         [BZ #18960]
50         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
51         Set _nl_current_LC_CATEGORY_used to two instead of one.
52
53 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
54
55         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
56         (do_test): ... this.
57         (TEST_FUNCTION): New macro.
58          Include test-skeleton.c.
59         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
60         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
61
62 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
63
64         [BZ #15479]
65         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
66         floating-point environment rather than just control word.
67         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
68         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
69         floating-point environment, with "invalid" exceptions merged in,
70         rather than just control word.
71         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
72         * math/libm-test.inc (trunc_test_data): Do not allow spurious
73         "inexact" exceptions.
74
75         [BZ #15479]
76         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
77         floating-point environment rather than just control word.
78         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
79         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
80         floating-point environment, with "invalid" exceptions merged in,
81         rather than just control word.
82         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
83         * math/libm-test.inc (floor_test_data): Do not allow spurious
84         "inexact" exceptions.
85
86         [BZ #15479]
87         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
88         floating-point environment rather than just control word.
89         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
90         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
91         floating-point environment, with "invalid" exceptions merged in,
92         rather than just control word.
93         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
94         * math/libm-test.inc (ceil_test_data): Do not allow spurious
95         "inexact" exceptions.
96
97 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
98
99         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
100         __libc_vfork.
101         (__vfork) [IS_IN (libc)]: Remove alias.
102         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
103         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
104         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
105
106 2016-06-24  Torvald Riegel  <triegel@redhat.com>
107
108         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
109         of atomic_compare_and_exchange_bool_rel.
110         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
111         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
112         catomic_compare_and_exchange_bool_rel): Remove.
113         * sysdeps/aarch64/atomic-machine.h
114         (atomic_compare_and_exchange_bool_rel): Likewise.
115         * sysdeps/alpha/atomic-machine.h
116         (atomic_compare_and_exchange_bool_rel): Likewise.
117         * sysdeps/arm/atomic-machine.h
118         (atomic_compare_and_exchange_bool_rel): Likewise.
119         * sysdeps/mips/atomic-machine.h
120         (atomic_compare_and_exchange_bool_rel): Likewise.
121         * sysdeps/microblaze/atomic-machine.h
122         ( __arch_compare_and_exchange_bool_8_rel,
123         __arch_compare_and_exchange_bool_16_rel): Likewise.
124         * sysdeps/powerpc/atomic-machine.h
125         ( __arch_compare_and_exchange_bool_8_rel,
126         __arch_compare_and_exchange_bool_16_rel): Likewise.
127         * sysdeps/powerpc/powerpc32/atomic-machine.h
128         ( __arch_compare_and_exchange_bool_32_rel,
129         __arch_compare_and_exchange_bool_64_rel): Likewise.
130         * sysdeps/powerpc/powerpc64/atomic-machine.h
131         ( __arch_compare_and_exchange_bool_32_rel,
132         __arch_compare_and_exchange_bool_64_rel): Likewise.
133         * sysdeps/tile/atomic-machine.h
134         (atomic_compare_and_exchange_bool_rel): Likewise.
135
136 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
137
138         [BZ #20296]
139         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
140         when either argument is a NaN.
141         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
142         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
143
144         * math/libm-test.inc (snan_value_ld): New macro.
145         (isgreater_test_data): Add sNaN tests.
146         (isgreaterequal_test_data): Likewise.
147         (isless_test_data): Likewise.
148         (islessequal_test_data): Likewise.
149         (islessgreater_test_data): Likewise.
150         (isunordered_test_data): Likewise.
151         (nextafter_test_data): Likewise.
152         (nexttoward_test_data): Likewise.
153         (remainder_test_data): Likewise.
154         (remquo_test_data): Likewise.
155         (significand_test_data): Likewise.
156         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
157
158 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
159
160         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
161         environment macros are defined.
162         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
163
164 2016-06-23  Florian Weimer  <fweimer@redhat.com>
165
166         [BZ #20191]
167         Implement vtable verification in libio.
168         * Makerules (shlib.lds): Place __libc_IO_vtables section.
169         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
170         * debug/vdprintf_chk.c (__vdprintf_chk): Call
171         _IO_new_file_init_internal instead of _IO_file_init.
172         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
173         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
174         * libio/Makefile (routines): Add vtables.
175         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
176         (_IO_init): Remove, not for internal use.
177         (_IO_init_internal): Declare, internal replacement for _IO_init.
178         (_IO_file_init): Remove, not for internal use.
179         (_IO_new_file_init): Remove, not for internal use.
180         (_IO_new_file_init_internal): Declare, internal replacement for
181         _IO_new_file_init.
182         (_IO_old_file_init): Remove, not for internal use.
183         (_IO_old_file_init_internal): Declare, internal replacement for
184         _IO_old_file_init.
185         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
186         internal use.
187         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
188         Declare.
189         (libio_vtable): New macro.
190         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
191         functions.
192         * libio/fileops.c (_IO_new_file_init_internal): Rename from
193         _IO_new_file_init.
194         (_IO_new_file_init): New externally visible wrapper which disables
195         vtable verification.
196         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
197         Define as vtables.
198         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
199         (_IO_init): New externally visible wrapper which disables
200         vtable verification.
201         * libio/iofdopen.c (_IO_new_fdopen): Call
202         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
203         comment.
204         * libio/iofopen.c (__fopen_internal): Call
205         _IO_new_file_init_internal instead of _IO_file_init.
206         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
207         Define as vtables.
208         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
209         _IO_new_file_init_internal instead of _IO_file_init.
210         * libio/iopopen.c (_IO_new_popen): Likewise.
211         (_IO_proc_jumps): Define as vtable.
212         * libio/iovdprintf.c (_IO_vdprintf): Call
213         _IO_new_file_init_internal instead of _IO_file_init.
214         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
215         (__open_memstream): Call _IO_init_internal instead of _IO_init.
216         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
217         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
218         _IO_old_file_init.
219         (_IO_old_file_init): New externally visible wrapper which disables
220         vtable verification.
221         (_IO_old_file_jumps): Define as vtable.
222         * libio/oldiofdopen.c (_IO_old_fdopen): Call
223         _IO_old_file_init_internal instead of _IO_old_file_init.
224         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
225         * libio/oldiopopen.c (_IO_old_popen): Likewise.
226         (_IO_old_proc_jumps): Define as vtable.
227         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
228         Define as vtables.
229         * libio/vtables.c: New file.
230         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
231         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
232         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
233         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
234         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
235         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
236         instead of _IO_init.
237
238 2016-06-23  Florian Weimer  <fweimer@redhat.com>
239
240         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
241
242 2016-06-23  Florian Weimer  <fweimer@redhat.com>
243
244         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
245         potentially unused.
246
247 2016-06-22  Florian Weimer  <fweimer@redhat.com>
248
249         * test-skeleton.c (write_message): New function.
250         * malloc/tst-mallocfork2.c (write_message): Remove.
251         * debug/tst-longjmp_chk2.c (write_indented): New function.
252         (write_message): Remove.
253         (stackoverflow_handler): Call write_indented.
254
255 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
256
257         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
258         "inexact" exceptions after fnstenv.
259         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
260         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
261         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
262
263 2015-06-22  Zack Weinberg  <zackw@panix.com>
264
265         * sysdeps/generic/bits/hwcap.h: Moved to ...
266         * bits/hwcap.h: Here.
267
268 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
269
270         * sysdeps/aarch64/memcpy.S (memcpy):
271         Further tuning for performance.
272
273 2016-06-21  Florian Weimer  <fweimer@redhat.com>
274
275         [BZ #20284]
276         * malloc/arena.c (reused_arena): Do not return NULL if we start
277         out with a non-corrupted arena.
278
279 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
280
281         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
282         * misc/tst-preadvwritev.c: New file.
283         * misc/tst-preadvwritev64.c: Likewise.
284         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
285         usage.
286         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
287         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
288         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
289         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
290
291 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
292
293         [BZ #19654]
294         * sysdeps/x86_64/fpu/Makefile: Added new tests.
295         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
296         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
297         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
298         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
299         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
300         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
301         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
302         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
303         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
304         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
305         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
306         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
307         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
308         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
309         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
310         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
311         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
312         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
313         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
314         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
315         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
316         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
317         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
318         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
319         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
320
321 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
322
323         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
324         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
325
326 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
327
328         * sysdeps/aarch64/memcpy.S (memcpy):
329         Rewrite of optimized memcpy and memmove.
330         * sysdeps/aarch64/memmove.S (memmove): Remove
331         memmove code (merged into memcpy.S).
332
333 2016-06-20  Florian Weimer  <fweimer@redhat.com>
334
335         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
336         * sysdeps/generic/dl-dtv.h: New file.
337         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
338         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
339         (dtv_t): Remove.
340         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
341         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
342         (dtv_t): Remove.
343         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
344         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
345         (dtv_t): Remove.
346         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
347         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
348         (dtv_t): Remove.
349         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
350         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
351         (dtv_t): Remove.
352         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
353         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
354         (dtv_t): Remove.
355         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
356         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
357         (dtv_t): Remove.
358         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
359         (dtv_t): Remove.
360         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
361         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
362         (dtv_t): Remove.
363         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
364         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
365         (dtv_t): Remove.
366         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
367         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
368         (dtv_t): Remove.
369         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
370         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
371         (dtv_t): Remove.
372         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
373         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
374         (dtv_t): Remove.
375         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
376         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
377         (dtv_t): Remove.
378         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
379         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
380         (dtv_t): Remove.
381         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
382         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
383         (dtv_t): Remove.
384
385 2016-06-20  Florian Weimer  <fweimer@redhat.com>
386
387         Revert symbol poisoning of  __malloc_initialize_hook.
388         * include/stdc-predef.h (__malloc_initialize_hook): Remove
389         poisoning.
390         * malloc/Makefile: Remove un-poisoning.
391         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
392         instead of old__malloc_initialize_hook.
393         * malloc/malloc-hooks.h: Likewise.
394         * malloc/malloc.c: Likewise.
395         * malloc/mcheck-init.c: Likewise.
396
397 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
398
399         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
400
401 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
402
403         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
404         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
405         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
406         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
407
408 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
409
410         * NEWS: Mention addition of nextup and nextdown.
411         * manual/arith.texi: Document nextup and nextdown.
412         * manual/libm-err-tab.pl: Add nextup and nextdown.
413         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
414         * math/Versions (libm): Add GLIBC_2.24.
415         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
416         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
417         Add new test.
418         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
419         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
420         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
421         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
422         (nextup_test_data): Likewise.
423         (nextdown_test_data): Likewise.
424         * math/s_nextdown.c: New file.
425         * math/s_nextdownf.c: Likewise.
426         * math/s_nextdownl.c: Likewise.
427         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
428         F(nextup): New function.
429         F(nextdown): Likewise.
430         * math/tgmath.h: Add nextup and nextdown.
431         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
432         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
433         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
434         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
435         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
436         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
437         Add nextup and nextdown.
438         (CFLAGS-nldbl-nextup.c): New variable.
439         (CFLAGS-nldbl-nextdown.c): Likewise.
440         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
441         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
442         * sysdeps/nacl/libm.abilist: Update.
443         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
444         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
445         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
446         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
447         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
448         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
449         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
450         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
451         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
452         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
453         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
454         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
457         Likewise.
458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
460         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
461         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
462         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
463         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
464         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
466         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
467         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
468         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
469         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
470         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
471
472 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
473
474         * manual/pattern.texi: Fix typos & grammar errors.
475
476 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
477
478         * manual/search.texi: Fix typos & grammar errors.
479
480 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
481
482         * manual/message.texi: Fix typos & grammar errors.
483
484 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
485
486         * manual/contrib.texi: Fix spelling typos.
487         * manual/crypt.texi: Likewise.
488         * manual/filesys.texi: Likewise.
489         * manual/locale.texi: Likewise.
490         * manual/message.texi: Likewise.
491         * manual/nss.texi: Likewise.
492         * manual/string.texi: Likewise.
493
494 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
495
496         * manual/locale.texi: Fix typos & grammar errors.
497
498 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
499
500         * manual/charset.texi: Fix typos & grammar errors.
501
502 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
503
504         * manual/string.texi: Fix typos.
505
506 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
507
508         * manual/ctype.texi: Fix typos.
509
510 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
511
512         * manual/memory.texi: Fix various typos & grammar errors.
513
514 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
515
516         [BZ #20255]
517         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
518         * math/libm-test.inc (fdim_test_data): Add another test.
519
520         [BZ #6796]
521         [BZ #20255]
522         [BZ #20256]
523         * math/s_fdim.c: Include <math_private.h>.
524         (__fdim): Use math_narrow_eval on result.
525         * math/s_fdimf.c: Include <math_private.h>.
526         (__fdimf): Use math_narrow_eval on result.
527         * sysdeps/i386/fpu/s_fdim.S: Remove file.
528         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
529         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
530         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
531         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
532         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
533         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
534         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
535         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
536         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
537         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
538         * math/libm-test.inc (fdim_test_data): Expect errno setting on
539         overflow.  Add sNaN tests.
540
541         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
542         fpclassify.
543         * math/s_fdimf.c (__fdimf): Likewise.
544         * math/s_fdiml.c (__fdiml): Likewise.
545
546 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
547
548         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
549         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
550         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
551         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
552         ifunc'ed strcasecmp/strncasecmp.
553         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
554         [EALIGN]: Removed.
555         [END]: Likewise.
556         [__strcasecmp]: Define instead of the above to control symbol name.
557         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
558         for __strcasecmp_power8.
559         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
560         for __strncasecmp_power8.
561         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
562         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
563         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
564         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
565         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
566         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
567
568 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
569
570         [BZ #20252]
571         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
572         arguments when second argument is a NaN.
573         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
574         qNaN tests.
575
576         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
577         (conj_test_data): Likewise.
578         (copysign_test_data): Likewise.
579         (creal_test_data): Likewise.
580         (fma_test_data): Likewise.
581         (fmod_test_data): Likewise.
582
583         [BZ #20250]
584         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
585         itself.
586         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
587         zero input to itself.
588         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
589         Likewise.
590         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
591         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
592         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
593         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
594         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
595
596 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
597
598         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
599         * nptl/tst-cancel4-common.c: New file.
600         * nptl/tst-cancel4-common.h: Likewise.
601         * nptl/tst-cancel4.c: Move common definitions to
602         tst-cancel4-common.{c,h} file.
603         * nptl/tst-cancel4_1.c: New test.
604         * nptl/tst-cancel4_2.c: New test.
605
606 2016-06-13  Florian Weimer  <fweimer@redhat.com>
607
608         [BZ #20248]
609         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
610         (write_message): New function.
611         (stackoverflow_handler): Call it instead of printf, to avoid
612         excessive stack usage by printf.
613         (do_test): Restore SIGSEGV, SIGBUS default handlers.
614
615 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
616
617         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
618         (prio_inherit_missing): Remove define.
619         * sysdeps/unix/sysv/linux/arm/kernel-features.h
620         (__ASSUME_FUTEX_LOCK_PI): Likewise.
621         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
622         Likewise.
623         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
624         (__ASSUME_FUTEX_LOCK_PI): Likewise.
625         * sysdeps/unix/sysv/linux/mips/kernel-features.h
626         (__ASSUME_FUTEX_LOCK_PI): Likewise.
627         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
628         (__ASSUME_FUTEX_LOCK_PI): Likewise.
629
630 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
631
632         [BZ #19670]
633         [BZ #19672]
634
635         * io/test-lfs.c (do_prepare): Use xmalloc.
636         * io/tst-fcntl.c (do_prepare): Likewise.
637         * libio/tst-fopenloc.c (do_bz17916): Likewise.
638         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
639         * login/tst-utmp.c (do_prepare): Likewise.
640         * posix/tst-exec.c (do_prepare): Likewise.
641         * posix/tst-pathconf.c (prepare): Likewise.
642         * posix/tst-spawn.c (do_prepare): Likewise.
643         * posix/tst-truncate.c (do_prepare): Likewise.
644         * rt/tst-aio.c (do_prepare): Likewise.
645         * rt/tst-aio64.c (do_prepare): Likewise.
646
647 2016-06-11  Florian Weimer  <fweimer@redhat.com>
648
649         [BZ #20237]
650         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
651         (get*ent): Set entidx to NULL during initialization.  If entidx is
652         NULL, start iteration from the beginning.
653
654 2016-06-11  Florian Weimer  <fweimer@redhat.com>
655
656         * malloc/malloc.c (musable): Return correct size for dumped fake
657         mmapped chunk.
658
659 2016-06-11  Florian Weimer  <fweimer@redhat.com>
660
661         [BZ #20222]
662         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
663         (_IO_cookie_write): Likewise.
664         (_IO_cookie_seek): Likewise.
665         (_IO_cookie_close): Likewise.
666         (_IO_old_cookie_seek): Likewise.
667         (set_callbacks): New function.
668         (_IO_cookie_init): Call set_callbacks to copy callbacks.
669
670 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
671
672         * locale/programs/localedef.c (oldstyle_tables): Remove.
673         * locale/programs/localedef.h (oldstyle_tables): Likewise.
674
675 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
676
677         [BZ #20240]
678         * math/Makefile (CFLAGS-s_modf.c): New variable.
679         (CFLAGS-s_modff.c): Likewise.
680         (CFLAGS-s_modfl.c): Likewise.
681         * math/libm-test.inc (modf_test_data): Add sNaN tests.
682
683 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
684
685         [BZ #20215]
686         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
687         [!__GNUC_PREREQ (3,2)]: Likewise.
688
689 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
690
691         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
692         (msghdr.msg_controllen): Likewise.
693         (cmsghdr.cmsg_len): Likewise.
694         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
695         ptw-oldsendmsg.
696         (CFLAGS-oldrecvmsg.c): Remove rule.
697         (CFLAGS-oldsendmsg.c): Likewise.
698         (CFLAGS-recvmsg.c): Add rule.
699         (CFLAGS-sendmsg.c): Likewise.
700         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
701         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
702         (CFLAGS-recvmsg.c): Remove rule.
703         (CFLAGS-sendmsg.c): Likewise.
704         (CFLAGS-oldrecvmsg.c): Likewise.
705         (CFLAGS-oldsendmsg.c): Likewise.
706         (CFLAGS-recvmmsg.c): Likewise.
707         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
708         to kernel defined interfaces.
709         (msghdr.msg_controllen): Likewise.
710         (cmsghdr.cmsg_len): Likewise.
711         (msghdr.__glibc_reserved1): Remove member.
712         (msghdr.__glibc_reserved2): Likewise.
713         (cmsghdr.__glibc_reserved1): Likewise.
714         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
715         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
716         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
717         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
718         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
719         version.
720         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
721         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
722         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
723         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
724         Remove recvmsg and sendmsg.
725         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
726         Likewise.
727         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
728         Likewise.
729         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
730         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
731         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
732         Likewise.
733         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
734         Likewise.
735         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
736         [libc] (GLIBC_2.24): Likewise.
737         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
738         Likewise.
739         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
740         Likewise.
741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
742         [libc] (GLIBC_2.24): Likewise.
743         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
744         Likewise.
745         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
746         Likewise.
747         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
748         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
749         Likewise.
750         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
751         Likewise.
752         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
753         Likewise.
754         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
755         Likewise.
756         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
757         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
758         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
759         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
760         version for {recv,send,recm,sendm}msg.
761         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
762         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
763         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
764         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
765         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
766         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
767         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
768         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
769         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
770         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
771         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
772         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
774         Likewise.
775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
776         Likewise.
777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
779         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
780         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
781         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
782         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
783         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
784         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
785         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
786         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
787         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
788         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
789         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
790
791 2016-06-10  Florian Weimer  <fweimer@redhat.com>
792
793         [BZ #19564]
794         Remove __malloc_initialize_hook from the API.
795         * malloc/malloc.h (__malloc_initialize_hook): Remove.
796         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
797         #pragma GCC poison.
798         * malloc/malloc-hooks.h: New file.
799         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
800         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
801         (old__malloc_initialize_hook): Rename from
802         __malloc_initialize_hook to evade poisoning.  Turn into compat
803         symbol.
804         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
805         __malloc_initialize_hook.
806         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
807         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
808         * manual/memory.texi (Hooks for Malloc): Remove
809         __malloc_initialize_hook.  Adjust hook example.
810
811 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
812
813         [BZ #20235]
814         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
815         itself.
816         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
817         * math/libm-test.inc (log2_test_data): Add sNaN tests.
818
819         [BZ #20234]
820         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
821         infinity or NaN input to itself.
822
823         [BZ #20233]
824         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
825         to itself.
826
827         [BZ #20232]
828         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
829         itself.
830
831 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
832
833         * sysdeps/x86_64/start.S (_start): Always indirect branch to
834         __libc_start_main via GOT.
835
836 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
837
838         * sysdeps/x86_64/memcopy.h: New file.
839         * sysdeps/x86_64/wordcopy.c: Likewise.
840
841 2016-06-09  Florian Weimer  <fweimer@redhat.com>
842
843         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
844         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
845         <cstdlib>.
846         (optimization_barrier): New.
847         (do_test): Use it.  Call quick_exit in the global namespace.
848         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
849         instead of <cstdlib>, <thread>.
850         (optimization_barrier): New.
851         (non_main_thread): Adjust declaration.  Call optimization_barrier.
852         Call quick_exit in the global namespace.
853         (do_test): Call optimization_barrier.  Use pthread_create,
854         pthread_join instead of std::thread.
855
856 2016-06-09  Andreas Schwab  <schwab@suse.de>
857
858         [BZ #19755]
859         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
860         new entries in auto-propagate mode.
861         * nscd/grpcache.c (cache_addgr): Likewise.
862
863 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
864
865         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
866         New functions.
867         (add_temp_file): Use them.
868
869 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
870
871         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
872
873 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
874
875         [BZ #20229]
876         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
877         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
878         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
879
880         [BZ #20228]
881         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
882         itself.
883         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
884         * math/libm-test.inc (log10_test_data): Add sNaN tests.
885
886         [BZ #20227]
887         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
888         itself.
889         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
890         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
891         * math/libm-test.inc (log_test_data): Add sNaN tests.
892
893         [BZ #20226]
894         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
895         itself.
896         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
897         * math/libm-test.inc (exp_test_data): Add sNaN tests.
898         (exp10_test_data): Likewise.
899         (expm1_test_data): Likewise.
900
901         [BZ #20225]
902         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
903         itself.
904         * math/s_ldexpf.c (__ldexpf): Likewise.
905         * math/s_ldexpl.c (__ldexpl): Likewise.
906         * math/w_scalbln.c (__w_scalbln): Likewise.
907         * math/w_scalblnf.c (__w_scalblnf): Likewise.
908         * math/w_scalblnl.c (__w_scalblnl): Likewise.
909         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
910         (scalbln_test_data): Likewise.
911
912         [BZ #20224]
913         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
914         argument to itself.
915         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
916
917 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
918
919         [BZ #19776]
920         * sysdeps/x86_64/memcpy.S: Make it dummy.
921         * sysdeps/x86_64/mempcpy.S: Likewise.
922         * sysdeps/x86_64/memmove.S: New file.
923         * sysdeps/x86_64/memmove_chk.S: Likewise.
924         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
925         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
926         * sysdeps/x86_64/memmove.c: Removed.
927         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
928         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
929         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
930         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
931         Likewise.
932         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
933         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
934         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
935         memcpy-sse2-unaligned, memmove-avx-unaligned,
936         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
937         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
938         (__libc_ifunc_impl_list): Replace
939         __memmove_chk_avx512_unaligned_2 with
940         __memmove_chk_avx512_unaligned.  Remove
941         __memmove_chk_avx_unaligned_2.  Replace
942         __memmove_chk_sse2_unaligned_2 with
943         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
944         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
945         with __memmove_avx512_unaligned.  Replace
946         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
947         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
948         with __memcpy_chk_avx512_unaligned.  Remove
949         __memcpy_chk_avx_unaligned_2.  Replace
950         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
951         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
952         Replace __memcpy_avx512_unaligned_2 with
953         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
954         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
955         with __mempcpy_chk_avx512_unaligned.  Remove
956         __mempcpy_chk_avx_unaligned_2.  Replace
957         __mempcpy_chk_sse2_unaligned_2 with
958         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
959         Replace __mempcpy_avx512_unaligned_2 with
960         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
961         Replace __mempcpy_sse2_unaligned_2 with
962         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
963         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
964         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
965         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
966         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
967         (ENTRY): Removed.
968         (END): Likewise.
969         (ENTRY_CHK): Likewise.
970         (libc_hidden_builtin_def): Likewise.
971         Don't include ../memcpy.S.
972         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
973         __memcpy_chk_avx512_unaligned_erms and
974         __memcpy_chk_avx512_unaligned.  Use
975         __memcpy_chk_avx_unaligned_erms and
976         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
977         Default to __memcpy_chk_sse2_unaligned.
978         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
979         Change function suffix from unaligned_2 to unaligned.
980         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
981         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
982         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
983         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
984         (ENTRY): Removed.
985         (END): Likewise.
986         (ENTRY_CHK): Likewise.
987         (libc_hidden_builtin_def): Likewise.
988         Don't include ../mempcpy.S.
989         (mempcpy): New.  Add a weak alias.
990         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
991         __mempcpy_chk_avx512_unaligned_erms and
992         __mempcpy_chk_avx512_unaligned.  Use
993         __mempcpy_chk_avx_unaligned_erms and
994         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
995         Default to __mempcpy_chk_sse2_unaligned.
996
997 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
998
999         [BZ #19881]
1000         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1001         into ...
1002         * sysdeps/x86_64/memset.S: This.
1003         (__bzero): Removed.
1004         (__memset_tail): Likewise.
1005         (__memset_chk): Likewise.
1006         (memset): Likewise.
1007         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1008         defined.
1009         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1010         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1011         (__memset_zero_constant_len_parameter): Check SHARED instead of
1012         PIC.
1013         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1014         memset-avx2 and memset-sse2-unaligned-erms.
1015         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1016         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1017         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1018         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1019         (__bzero): Enabled.
1020         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1021         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1022         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1023         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1024         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1025         (memset): Removed.
1026         (__memset_chk): Likewise.
1027         (MEMSET_SYMBOL): New.
1028         (libc_hidden_builtin_def): Replace __memset_sse2 with
1029         __memset_sse2_unaligned.
1030         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1031         __memset_chk_sse2 and __memset_chk_avx2 with
1032         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1033         Use __memset_chk_sse2_unaligned_erms or
1034         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1035         __memset_chk_avx512_unaligned_erms and
1036         __memset_chk_avx512_unaligned.
1037
1038 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1039
1040         * math/gen-auto-libm-test.c (fp_format_desc): remove
1041         suffix member.
1042         (output_generic_value): Remove usage of suffix member,
1043         and the resulting unuse of the fp_format argument.
1044         (output_for_one_input_case): Remove unused fp_format
1045         parameter.
1046
1047         * math/auto-libm-test-out: Regenerate.
1048
1049         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1050         usage with TEST_COND_ibm128.
1051         (TEST_COND_flt_32): Remove.
1052         (TEST_COND_dbl_64): Remove.
1053         (TEST_COND_ldbl_96_intel): Remove.
1054         (TEST_COND_ldbl_96_m68k): Remove.
1055         (TEST_COND_ldbl_128): Remove.
1056
1057 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1058
1059         * auto-libm-test-in:
1060         Replace flt-32 usage with binary32.
1061         Replace dbl-64 usage with binary64.
1062         Replace ldbl-intel-96 usage with intel96.
1063         Replace ldbl-m68k-96 usage with m68k96.
1064         Replace ldbl-128ibm usage with ibm128.
1065         Replace ldbl-128 usage with binary128.
1066
1067         * auto-libm-test-out: Regenerate.
1068
1069 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1070
1071         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1072         (parse_ulps): Dynamically generate type name matching
1073         string from all_floats.
1074         (get_ulps): Generate the ulps as an array instead.
1075         (output_ulps): Dynamically compose the type based
1076         on the number of supported formats, and print
1077         the indices as type specific helper macros.
1078
1079         * math/libm-test.inc: Remove comment about CHOOSE.
1080         (ulp_data): Generate the type in libm-test-ulps.h.
1081         (ULP_IDX): New macro.
1082         (find_ulps): Update usage of max_ulp.
1083
1084         * math/test-double-vlen2.h (CHOOSE): Remove.
1085         * math/test-double-vlen4.h (CHOOSE): Likewise.
1086         * math/test-double-vlen8.h (CHOOSE): Likewise.
1087         * math/test-float.c (CHOOSE): Likewise.
1088         * math/test-float-finite.c (CHOOSE): Likewise.
1089         * math/test-double.c (CHOOSE): Likewise.
1090         * math/test-double-finite.c (CHOOSE): Likewise.
1091         * math/test-idouble.c (CHOOSE): Likewise.
1092         * math/test-ifloat.c (CHOOSE): Likewise.
1093         * math/test-ildoubl.c (CHOOSE): Likewise.
1094         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1095         * math/test-ldouble.c (CHOOSE): Likewise.
1096
1097         * math/test-float.h (TEST_FLOAT): Remove.
1098         * math/test-double.h (TEST_DOUBLE): Likewise.
1099         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1100
1101 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1102
1103         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1104         (parse_args): Strip C suffix from floating point literals
1105         typed with 'f' and wrap them with LIT().
1106
1107         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1108         (test_ff_f_data_nexttoward): Rename to
1109         (test_fj_f_data): New struct.
1110         (nexttoward_test_data): Relabel tests as
1111         TEST_fj_f instead of TEST_ff_f.
1112
1113 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1114
1115         Emacs bug 23726.
1116         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1117         (__libc_realloc): Correct size computation for dumped fake mmapped
1118         chunks.
1119
1120 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1121
1122         [BZ #20219]
1123         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1124         to itself.
1125         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1126
1127         [BZ #20218]
1128         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1129         to itself.
1130         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1131
1132 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1133
1134         [BZ #20195]
1135         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1136         check to ...
1137         (init_cpu_features): Here.
1138
1139 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1140
1141         [BZ #20214]
1142         * sysdeps/unix/sysv/linux/bits/in.h
1143         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1144          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1145         Define to 1.
1146         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1147          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1148         Define to 0.
1149         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1150         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1151
1152 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1153
1154         [BZ #20198]
1155         * stdlib/Makefile (tests): Add tst-quick_exit, and
1156         tst-thread-quick_exit.
1157         [ifeq ($(have-cxx-thread_local),yes)]
1158         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1159         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1160         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1161         (LDLIBS-tst-thread-quick_exit): Likewise.
1162         [ifneq ($(have-cxx-thread_local),yes)]
1163         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1164         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1165         If run_dtors is true call __call_tls_dtors.
1166         (exit): Call __run_exit_handlers with run_dtors set to true.
1167         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1168         definition.
1169         * stdlib/quick_exit.c (quick_exit): Remove function.
1170         (__new_quick_exit): New function.
1171         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1172         function.
1173         * stdlib/tst-quick_exit.cc: New file.
1174         * stdlib/tst-thread-quick_exit.cc: New file.
1175         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1176         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1177         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1178         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1179         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1180         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1181         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1182         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1183         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1184         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1185         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1186         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1187         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1188         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1189         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1190         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1195         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1196         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1197         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1198         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1199         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1200         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1201         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1202         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1203         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1204         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1205
1206 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1207
1208         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1209         a typo in comments.
1210
1211 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1212
1213         [BZ #20213]
1214         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1215         argument to itself.
1216         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1217
1218 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1219
1220         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1221         required flags.
1222         (CFLAGS-pwritev64.c): Likewise.
1223         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1224         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1225         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1226         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1227         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1228         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1229         syscall from auto-generation.
1230         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1231         [WORDSIZE == 64] (pwritev64): Remove macro.
1232         [!PWRITEV] (PWRITEV): Likewise.
1233         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1234         [!PWRITEV] (PWRITE): Likewise.
1235         [!PWRITEV] (OFF_T): Likewise.
1236         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1237         (LO_HI_LONG): Remove macro.
1238         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1239         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1240         (PWRITEV): Remove macro.
1241         (PWRITEV_REPLACEMENTE): Likewise.
1242         (PWRITE): Likewise.
1243         (OFF_T): Likewise.
1244         (pwritev64): New function.
1245         * nptl/tst-cancel4.c (tf_writev): Add test.
1246
1247         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1248         required flags.
1249         (CFLAGS-preadv64.c): Likewise.
1250         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1251         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1252         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1253         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1254         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1255         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1256         syscall from auto-generation.
1257         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1258         [WORDSIZE == 64] (preadv64): Remove macro.
1259         [!PREADV] (PREADV): Likewise.
1260         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1261         [!PREADV] (PREAD): Likewise.
1262         [!PREADV] (OFF_T): Likewise.
1263         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1264         (LO_HI_LONG): Remove macro.
1265         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1266         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1267         (PREADV): Remove macro.
1268         (PREADV_REPLACEMENTE): Likewise.
1269         (PREAD): Likewise.
1270         (OFF_T): Likewise.
1271         (preadv64): New function.
1272         * nptl/tst-cancel4.c (tf_preadv): Add test.
1273
1274 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1275
1276         [BZ #20212]
1277         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1278         argument to itself.
1279         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1280
1281 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1282
1283         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1284         New symbol defined as libc_hidden_def.
1285         (strcasestr): Became a weak alias to __strcasestr.
1286         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1287         according to multi-arch support.  Move __stpncpy hidden
1288         definition from here to...
1289         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1290         symbol stpncpy.
1291         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1292         libc_hidden_builtin_def.
1293         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1294         memset symbol to use when multi-arch support is available.
1295
1296 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1297
1298         * dlfcn/tst-rec-dlopen.c: Include string.h.
1299
1300 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1301
1302         * manual/install.texi: Remove mention of --without-tls
1303         * INSTALL: Regenerate.
1304
1305 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1306
1307         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1308         Remove.
1309         (call_function, interposed_malloc_called): New variables.
1310         (malloc): New function.
1311         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1312         and clear call_function as needed.
1313
1314 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1315
1316         * include/wchar.h (__wmemset): Use __typeof.
1317
1318 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1319
1320         * include/wchar.h (__wmemset): Declare function without typeof.
1321
1322 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1323
1324         [BZ #20205]
1325         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1326         exponent when incrementing negative subnormal with low mantissa
1327         word zero.
1328         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1329         Add another test.
1330
1331 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1332
1333         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1334         __wmemset instead of wmemset.
1335
1336 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1337
1338         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1339         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1340         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1341         __USE_KERNEL_IPV6_DEFS to 0.
1342         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1343         Update comment.
1344
1345 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1346
1347         [BZ #19861]
1348         Do not use IFUNC resolver with potentially unrelocated symbol.
1349         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1350         (DEFINE_FORK): Remove macro and inline definition.
1351         (fork_alias): Renamed from fork_ifunc.
1352         (__fork_alias): Renamed from __fork_ifunc.
1353
1354 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1355
1356         [BZ 19653]
1357         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1358         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1359
1360 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1361
1362         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1363         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1364         i386-linux-gnu).
1365         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1366         Set to no.
1367         * sysdeps/mach/hurd/configure: Refresh.
1368
1369 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1370
1371         [BZ #20178]
1372         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1373         on failure instead of exit.
1374
1375 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1376
1377         [BZ #3629]
1378         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1379         of POSIX.1-2008.
1380
1381 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1382
1383         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1384           Use PLT entry for calling _hurd_self_sigstate.
1385
1386 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1387
1388         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1389         available logical processors with SMT level type sharing L2
1390         cache for Intel processors.
1391
1392 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1393
1394         [BZ #20160]
1395         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1396         argument to itself before returning the result.
1397         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1398         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1399         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1400         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1401         Likewise.
1402         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1403         Likewise.
1404         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1405         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1406         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1407         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1408         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1409         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1410
1411         [BZ #20160]
1412         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1413         argument to itself before returning the result.
1414         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1415         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1416         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1417         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1418         Likewise.
1419         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1420         Likewise.
1421         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1422         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1423         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1424         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1425         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1426         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1427
1428 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1429
1430         * libm-test.inc: Replace usage of M_El with
1431         (lit_e): New macro.
1432
1433 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1434
1435         * libm-test.inc: Replace usage of M_PI_4l with
1436         (lit_pi_4_d): New macro.
1437
1438 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1439
1440         * libm-test.inc: Replace usage of M_PIl with
1441         (lit_pi): New macro.
1442
1443 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1444
1445         * libm-test.inc: Replace usage of M_PI2l with
1446         (lit_pi_2_d): New macro.
1447
1448         * math/test-double.h (LITM): New macro.
1449         * math/test-float.h (LITM): Likewise.
1450         * math/test-ldouble.h (LITM): Likewise.
1451
1452 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1453
1454         * libm-test.inc (M_PI_34l): Rename to
1455         (lit_pi_3_m_4_d): New Macro.
1456         (M_PI_34_LOG10El): Rename to
1457         (lit_pi_3_m_4_ln10_m_d): New Macro.
1458         (M_PI2_LOG10El): Rename to
1459         (lit_pi_2_ln10_m_d):  New Macro.
1460         (M_PI4_LOG10El): Rename to
1461         (lit_pi_4_ln10_m_d):  New Macro.
1462         (M_PI_LOG10El): Rename to
1463         (lit_pi_ln10_d):  New Macro.
1464
1465 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1466
1467         [BZ #20157]
1468         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1469         determine whether to negate low half if [_ARCH_PPCGR], and integer
1470         comparison otherwise.
1471         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1472         determine whether to negate low half.
1473
1474         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1475         (NO_TEST_INLINE_DOUBLE): Likewise.
1476         (TEST_COND_x86_64): Likewise.
1477         (TEST_COND_x86): Likewise.
1478         (M_PI_6l): Likewise.
1479
1480 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1481
1482         * math/libm-test.inc:
1483         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1484         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1485         (TEST_LDOUBLE): Update usage to evaluate as true if
1486         the guarded tests match the property being tested.
1487         (LDBL_MAX_EXP): Change to MAX_EXP.
1488         (LDBL_MIN_EXP): Change to MIN_EXP.
1489         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1490         nexttoward tests.
1491
1492 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1493
1494         * math/libm-test.inc:
1495         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1496         (TYPE_MIN): Likewise.
1497         (TYPE_TRUE_MIN): Likewise.
1498         (TYPE_MAX): Likewise.
1499         (MIN_EXP): Likewise.
1500         (MAX_EXP): Likewise.
1501         (MANT_DIG): Likewise.
1502
1503         (FSTR_MAX): New macro.
1504         (__CONCATX): Likewise.
1505         (QTYPE_STR): Likewise.
1506         (TEST_COND_binary32): Likewise.
1507         (TEST_COND_binary64): Likewise.
1508         (TEST_COND_binary128): Likewise.
1509         (TEST_COND_ibm128): Likewise.
1510         (TEST_COND_intel96): Likewise.
1511         (TEST_COND_m68k96): Likewise.
1512
1513         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1514         (TEST_COND_dbl_64): Likewise.
1515         (TEST_COND_ldbl_96_intel): Likewise.
1516         (TEST_COND_ldbl_96_m68k): Likewise.
1517         (TEST_COND_ldbl_128): Likewise.
1518         (TEST_COND_ldbl_128ibm): Likewise.
1519
1520         (plus_zero): Redefine using LIT macro.
1521         (minus_zero): Likewise.
1522         (plus_infty): Redefine as (INF).
1523         (minux_infty): Redefine as (-INF).
1524         (max_value): Redefine as TYPE_MAX.
1525         (min_value): Redefine as TYPE_MIN.
1526         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1527
1528         (print_float): Refactor to use snprintf to convert FLOAT values
1529         to string. This brings it closer to dropin replacement of strtof
1530         for the TS 18661 defined types.
1531         (update_stats): Likewise.
1532         (print_complex_function_ulps): Likewise.
1533         (print_max_error): Likewise.
1534         (print_complex_max_error): Likewise.
1535         (check_float_internal): Likewise.
1536
1537         * math/test-float.h (PREFIX): New macro.
1538         (LIT): Likewise.
1539         (TYPE_STR): Likewise.
1540         (FTOSTR): Likewise.
1541
1542         * math/test-double.h (PREFIX): New macro.
1543         (LIT): Likewise.
1544         (TYPE_STR): Likewise.
1545         (FTOSTR): Likewise.
1546
1547         * math/test-ldouble.h (PREFIX): New macro.
1548         (LIT): Likewise.
1549         (TYPE_STR): Likewise.
1550         (FTOSTR): Likewise.
1551
1552 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1553
1554         [BZ #20156]
1555         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1556         to itself when zero or not finite.
1557         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1558         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1559         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1560         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1561
1562 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1563
1564         [BZ #20153]
1565         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1566         x * x + x for infinities and NaNs.
1567
1568         [BZ #20151]
1569         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1570         argument to itself before returning result.
1571         (__ieee754_y0l): Likewise.
1572         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1573         (__ieee754_y1l).
1574
1575         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1576         (atan_test_data): Likewise.
1577         (ceil_test_data): Likewise.
1578         (cos_test_data): Likewise.
1579         (cosh_test_data): Likewise.
1580         (erf_test_data): Likewise.
1581         (exp2_test_data): Likewise.
1582         (fabs_test_data): Likewise.
1583         (floor_test_data): Likewise.
1584         (ilogb_test_data): Likewise.
1585         (j0_test_data): Likewise.
1586         (j1_test_data): Likewise.
1587         (jn_test_data): Likewise.
1588         (lgamma_test_data): Likewise.
1589         (lrint_test_data): Likewise.
1590         (llrint_test_data): Likewise.
1591         (logb_test_data): Likewise.
1592         (lround_test_data): Likewise.
1593         (llround_test_data): Likewise.
1594         (nearbyint_test_data): Likewise.
1595         (rint_test_data): Likewise.
1596         (round_test_data): Likewise.
1597         (sin_test_data): Likewise.
1598         (sincos_test_data): Likewise.
1599         (sinh_test_data): Likewise.
1600         (sqrt_test_data): Likewise.
1601         (tan_test_data): Likewise.
1602         (tanh_test_data): Likewise.
1603         (tgamma_test_data): Likewise.
1604         (trunc_test_data): Likewise.
1605         (y0_test_data): Likewise.
1606         (y1_test_data): Likewise.
1607         (yn_test_data): Likewise.
1608
1609         * math/libm-test.inc: Update comment about NaN testing.
1610         (TEST_SNAN): New macro.
1611         (snan_value): Likewise.
1612         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1613         (fpclassify_test_data): Add sNaN tests.
1614         (isfinite_test_data): Likewise.
1615         (isinf_test_data): Likewise.
1616         (isnan_test_data): Likewise.
1617         (isnormal_test_data): Likewise.
1618         (issignaling_test_data): Likewise.
1619         (signbit_test_data): Likewise.
1620         * math/gen-libm-test.pl (%beautify): Add snan_value.
1621         (show_exceptions): Add argument $test_snan.
1622         (parse_args): Handle snan_value as non-finite.  Update call to
1623         show_exceptions.
1624         * math/Makefile (libm-test-no-inline-cflags): Add
1625         -fsignaling-nans.
1626
1627 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1628
1629         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1630         (CFLAGS-oldsendmsg.c): Add rule.
1631         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1632         Correct recvmsg symbol name.
1633         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1634         Likewise.
1635
1636 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1637
1638         * sysdeps/unix/sysv/linux/Makefile
1639         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1640         oldsendmmsg.
1641         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1642         sendmmsg.
1643         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1644         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1645         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1646         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1648         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1649         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1650         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1651         Likewise.
1652         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1653         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1654         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1655         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1656         iovlen and controllen fields to adjust to POSIX specification.
1657         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1658
1659         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1660         and change to correct expected type.
1661         (msghdr.msg_controllen): Likewise.
1662         (cmsghdr.cmsg_len): Likewise.
1663         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1664         expected POSIX assumption about the size.
1665         (msghdr.msg_controllen): Likewise.
1666         (msghdr.__glibc_reserved1): Likewise.
1667         (msghdr.__glibc_reserved2): Likewise.
1668         (cmsghdr.cmsg_len): Likewise.
1669         (cmsghdr.__glibc_reserved1): Likewise.
1670         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1671         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1672         (CFLAGS-sendmsg.c): Remove rule.
1673         (CFLAGS-recvmsg.c): Likewise.
1674         (CFLAGS-oldsendmsg.c): Add rule.
1675         (CFLAGS-oldrecvmsg.c): Likewise.
1676         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1677         recvmsg and sendmsg.
1678         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1679         Likewise.
1680         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1681         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1682         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1683         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1684         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1685         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1686         Likewise.
1687         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1688         Likewise.
1689         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1690         Likewise.
1691         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1692         Likewise.
1693         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1694         Likewise.
1695         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1696         Likewise.
1697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1698         (GLIBC_2.24): Likewise.
1699         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1700         Likewise.
1701         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1702         Likewise.
1703         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1704         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1705         Likewise.
1706         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1707         Likewise.
1708         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1709         Likewise.
1710         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1711         (GLIBC_2.24): Likewise.
1712         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1713         Likewise.
1714         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1715         Likewise.
1716         * sysdeps/unix/sysv/linux/Makefile
1717         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1718         (CFLAGS-sendmsg.c): Add rule.
1719         (CFLAGS-recvmsg.c): Likewise.
1720         (CFLAGS-oldsendmsg.c): Likewise.
1721         (CFLAGS-oldrecvmsg.c): Likewise.
1722         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1723         initialization.
1724         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1725         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1726         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1727         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1728         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1729         iovlen and controllen fields to adjust to POSIX specification.
1730         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1731         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1732         added recvmsg and sendmsg.
1733         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1734         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1735         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1736         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1737         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1738         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1739         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1740         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1741         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1742         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1743         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1744         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1746         Likewise.
1747         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1749         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1750         Likewise.
1751         Likewise.
1752         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1753         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1754         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1755         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1756         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1757         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1758         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1759         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1761         Likewise.
1762         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1763         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1764
1765         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1766         from auto-generation.
1767         (sendmsg): Likewise.
1768         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1769         (sendmsg): Likewise.
1770         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1771         (sendmsg): Likewise.
1772         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1773         (sendmsg): Likewise.
1774         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1775         (sendmsg): Likewise.
1776         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1777         (sendmsg): Likewise.
1778         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1779         Likewise.
1780         (sendmsg): Likewise.
1781         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1782         (sendmsg): Likewise.
1783         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1784         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1785         Remove.
1786         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1787         Likewise.
1788         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1789         Undefine.
1790         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1791         Likewise.
1792         * sysdeps/unix/sysv/linux/kernel-features.h
1793         (__ASSUME_SENDMSG_SYSCALL): Define.
1794         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1795         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1796         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1797         Remove.
1798         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1799         Likewise.
1800         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1801         Undefine.
1802         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1803         Likewise.
1804         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1805         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1806         Remove.
1807         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1808         Likewise.
1809         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1810         Undefine.
1811         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1812         Likewise.
1813         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1814         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1815         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1816         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1817         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1818         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1819         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1820         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1821         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1822
1823 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1824
1825         * stdlib/gen-tst-strtod-round.c: Add backslash to
1826         compile command in comment.
1827         (printfp): Remove the literal suffix, and define an infinite
1828         value as INF to avoid expansion clash with INFINITY.
1829         (round_str): Remove the literal suffix.
1830         (round_for_all): Likewise, remove the now duplicate ldbl-64
1831         entry, and remove some magic constants.
1832
1833         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1834         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1835         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1836         (_CONCAT): New macro.
1837         (CONCAT): Likewise.
1838         (CHOOSE_ld): Likewise.
1839         (CHOOSE_f): Likewise.
1840         (CHOOSE_d): Likewise.
1841         (FTYPE_MEMBER): Likewise.
1842         (BOOL_MEMBER): Likewise.
1843         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1844         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1845         (_XNTRY): Likewise.
1846         (XNTRY): Likewise.
1847         (_ENTRY): Likewise.
1848         (ENTRY): Likewise.
1849         (test_exactness): Generate members via macro.
1850         (test_results): Likewise.
1851         (test): Update members.
1852         (TEST): Redefine using new macros.
1853         (INF): New macro.
1854         (fetestmodes): New structure.
1855         (do_test): Refactor to be type generic.
1856         (test_in_one_mode): Refactor duplicate code into
1857         (GEN_ONE_TEST): New macro.
1858
1859         * stdlib/tst-strtod-round-data.h: Regenerate.
1860
1861         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1862         Extend to pass additional arbitrary parameters to
1863         generators.
1864
1865 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1866
1867         [BZ #15479]
1868         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1869         floating-point state after first floating-point operation on
1870         input.  Restore full floating-point state instead of just rounding
1871         mode.
1872         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1873         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1874         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1875         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1876         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1877
1878         [BZ #15479]
1879         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1880         floating-point state after first floating-point operation on
1881         input.  Restore full floating-point state instead of just rounding
1882         mode.
1883         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1884         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1885         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1886         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1887         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1888
1889 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1890
1891         [BZ #19727]
1892         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1893         valid high surrogate.
1894         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1895         of an utf16 surrogate.
1896         * iconv/gconv_simple.c (BODY): Likewise.
1897         * iconvdata/bug-iconv12.c: New file.
1898         * iconvdata/Makefile (tests): Add bug-iconv12.
1899
1900 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1901
1902         [BZ #19726]
1903         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1904         outptrp in case of an illegal input.
1905         * iconv/tst-iconv6.c: New file.
1906         * iconv/Makefile (tests): Add tst-iconv6.
1907
1908 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1909
1910         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1911         an error in case of a value in range of an utf16 low surrogate.
1912
1913 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1914
1915         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1916         an error in case of a value in range of an utf16 low surrogate.
1917
1918 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1919
1920         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1921         Move to ...
1922         * sysdeps/s390/Makefile: ... here.
1923         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1924         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1925         (BRANCH_ON_COUNT): New define.
1926         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1927         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1928         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1929         run on s390-32, too.
1930         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1931         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1932         run on s390-32, too.
1933         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1934         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1935         run on s390-32, too.
1936
1937 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1938
1939         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1940         etf3eh or new vector loop-variant.
1941
1942 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1943
1944         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1945         etf3eh or new vector loop-variant.
1946
1947 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1948
1949         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1950         or new vector loop-variant.
1951
1952 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1953
1954         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1955         Rename to TR_LOOP and usage of tr instead of troo instruction.
1956
1957 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1958
1959         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1960         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1961
1962 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1963
1964         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1965         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1966         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1967         New override define.
1968         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1969
1970 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1971
1972         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1973         * sysdeps/s390/configure.ac: Add test for S390 vector register
1974         support in gcc.
1975         * sysdeps/s390/configure: Regenerated.
1976
1977 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1978
1979         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1980         Install file from $(objpfx)gconv-modules.
1981         ($(objpfx)gconv-modules): Concatenate architecture specific file
1982         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1983         * sysdeps/s390/gconv-modules: New file.
1984         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1985         Deleted.
1986         ($(objpfx)gconv-modules-s390): Deleted.
1987         (sysdeps-gconv-modules): New variable.
1988
1989 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1990
1991         [BZ #15479]
1992         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1993         of immediate operand to rounding instruction.
1994         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1995         Likewise.
1996         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1997         Likewise.
1998         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1999         Likewise.
2000
2001 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2002
2003         * math/libm-test.inc (MIN_EXP): Directly define as
2004         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2005
2006 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2007
2008         * math/libm-test.inc (MANT_DIG): Directly define as
2009         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2010
2011 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2012
2013         * stdlib/gen-tst-strtod-round.c (main):
2014           Change usage to more closely match the generated
2015           output.  Add usage and compilation instructions.
2016           (string_to_fp): Add and use FILE* parameter as
2017           output target.
2018           (print_fp): Likewise.
2019           (round_str): Likewise.
2020           (round_for_all): Likewise.
2021         * stdlib/tst-strtod-round.c (tests): Move into
2022         * stdlib/tst-strtod-round-data.h: New file.
2023
2024 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2025
2026         [BZ #15479]
2027         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2028         (__round): Do not force "inexact" exception.
2029         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2030         variable.
2031         (__round): Do not force "inexact" exception.
2032         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2033         (__roundf): Do not force "inexact" exception.
2034         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2035         (__roundl): Do not force "inexact" exception.
2036         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2037         (__roundl): Do not force "inexact" exception.
2038         * math/libm-test.inc (round_test_data): Do not allow spurious
2039         "inexact" exceptions.
2040
2041         [BZ #15479]
2042         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2043         exception in comment.
2044         (huge): Remove variable.
2045         (__floor): Do not force "inexact" exception.
2046         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2047         "inexact" exception in comment.
2048         (huge): Remove variable.
2049         (__floor): Do not force "inexact" exception.
2050         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2051         exception in comment.
2052         (huge): Remove variable.
2053         (__floorf): Do not force "inexact" exception.
2054         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2055         exception in comment.
2056         (huge): Remove variable.
2057         (__floorl): Do not force "inexact" exception.
2058
2059         [BZ #15479]
2060         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2061         exception in comment.
2062         (huge): Remove variable.
2063         (__ceil): Do not force "inexact" exception.
2064         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2065         "inexact" exception in comment.
2066         (huge): Remove variable.
2067         (__ceil): Do not force "inexact" exception.
2068         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2069         (__ceilf): Do not force "inexact" exception.
2070         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2071         exception in comment.
2072         (huge): Remove variable.
2073         (__ceill): Do not force "inexact" exception.
2074
2075 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2076
2077         * config.h.in (BIND_NOW): New.
2078         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2079         * configure: Regenerated.
2080         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2081         indirect branch via the GOT slot.
2082
2083 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2084
2085         [BZ #19765]
2086         * sysdeps/s390/mempcpy.S: New File.
2087         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2088         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2089         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2090         Add mempcpy variants.
2091         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2092         (memcpy): Adjust to be usable from mempcpy entry point.
2093         (__memcpy_mvcle): Likewise.
2094         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2095         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2096         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2097         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2098         (__memcpy_z10): Likewise.
2099         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2100
2101 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2102
2103         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2104         Remove __GI_ symbol.
2105         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2106         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2107         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2108         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2109         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2110         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2111
2112 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2113
2114         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2115         Use cghi instead of chi to compare 64bit value.
2116
2117 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2118
2119         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2120         Jump to 1MB check before executing mvc-loop.
2121
2122 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2123
2124         [BZ #6527]
2125         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2126         unconditionally.
2127         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2128
2129 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2130
2131         * stdlib/tst-strtod6.c (do_test): Use new type generic
2132         invocation of the test function.
2133         (test): Refactor into ...
2134         (TEST_STRTOD): New macro base function.
2135
2136 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2137
2138         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2139         (TEST_STRTOD): New macro.
2140         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2141
2142 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2143
2144         * stdlib/tst-strtod6.c (do_test): Use new type generic
2145         invocation of the test function.
2146         (test): Refactor into ...
2147         (TEST_STRTOD): New macro base function.
2148
2149 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2150
2151         CVE-2016-4429
2152         [BZ #20112]
2153         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2154         payload.
2155
2156 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2157
2158         [BZ #20111]
2159         * bits/sockaddr.h (_SS_SIZE): Define.
2160         * bits/socket.h (_SS_SIZE): Remove.
2161         (_SS_PADSIZE): Adjust to account for all padding.
2162         (struct sockaddr_storage): Update comment.  Avoid implicit
2163         padding.
2164         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2165         (_SS_PADSIZE): Adjust to account for all padding.
2166         (struct sockaddr_storage): Update comment.  Avoid implicit
2167         padding.
2168         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2169         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2170         (_SS_PADSIZE): Adjust to account for all padding.
2171         (struct sockaddr_storage): Update comment.  Avoid implicit
2172         padding.
2173         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2174         __SS_SIZE is 126 in this version.
2175         * inet/tst-sockaddr.c: New file.
2176         * inet/Makefile (tests): Add tst-sockaddr.c
2177         (tst-sockaddr.c): Compile with non-strict aliasing.
2178
2179 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2182         [XPG3 || XPG4].
2183         (NL_ARGMAX): Also expect for [XPG3].
2184         (NL_LANGMAX): Likewise.
2185         (NL_MSGMAX): Likewise.
2186         (NL_NMAX): Likewise.
2187         (NL_SETMAX): Likewise.
2188         (NL_TEXTMAX): Likewise.
2189         (NZERO): Likewise.
2190         (TMP_MAX): Likewise.
2191         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2192         variable.
2193
2194         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2195         (PF_MAX): Update value.
2196         (AF_KCM): New macro.
2197         (SOL_NETBEUI): Likewise.
2198         (SOL_LLC): Likewise.
2199         (SOL_DCCP): Likewise.
2200         (SOL_NETLINK): Likewise.
2201         (SOL_TIPC): Likewise.
2202         (SOL_RXRPC): Likewise.
2203         (SOL_PPPOL2TP): Likewise.
2204         (SOL_BLUETOOTH): Likewise.
2205         (SOL_PNPIPE): Likewise.
2206         (SOL_RDS): Likewise.
2207         (SOL_IUCV): Likewise.
2208         (SOL_CAIF): Likewise.
2209         (SOL_ALG): Likewise.
2210         (SOL_NFC): Likewise.
2211         (SOL_KCM): Likewise.
2212         (MSG_BATCH): New enum value and macro.
2213
2214 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2215
2216         [BZ #18185]
2217         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2218         sharing L2 cache to 2 for Knights Landing.
2219
2220 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2221
2222         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2223         (FTW_DP): Do not expect for [XPG3 || XPG4].
2224         (FTW_SL): Do not expect for [XPG3].
2225         (FTW_SLN): Likewise.
2226         (FTW_PHYS): Likewise.
2227         (FTW_MOUNT): Likewise.
2228         (FTW_DEPTH): Likewise.
2229         (FTW_CHDIR): Likewise.
2230         (nftw): Likewise.
2231         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2232         variable.
2233
2234 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2235
2236         * manual/errno.texi: Fix various typos & grammar errors.
2237
2238 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2239
2240         * manual/intro.texi: Fix duplicated typo.
2241
2242 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2243
2244         [BZ #13304]
2245         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2246         <float.h>, <math_private.h> and <stdlib.h>.
2247         (add_split): New function.
2248         (mul_split): Likewise.
2249         (ext_val): New typedef.
2250         (store_ext_val): New function.
2251         (mul_ext_val): New function.
2252         (compare): New function.
2253         (add_split_ext): New function.
2254         (__fmal): After checking for Inf, NaN and zero, compute result as
2255         an exact sum of scaled double values in round-to-nearest before
2256         adding those up and adjusting for other rounding modes.
2257         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2258         tests of fma.
2259         * math/auto-libm-test-out: Regenerated.
2260
2261 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2262
2263         [BZ #20119]
2264         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2265         processor level type mask for CPUID with EAX == 11.
2266
2267 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2268
2269         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2270         logical threads if the HTT bit is 0.
2271         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2272         (index_cpu_HTT): Likewise.
2273         (reg_HTT): Likewise.
2274
2275 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2276
2277         [BZ #20115]
2278         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2279         Remove alignments on jump targets.
2280
2281 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2282
2283         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2284         (getpwent): Likewise.
2285         (setpwent): Likewise.
2286         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2287         variable.
2288
2289         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2290         (remque): Likewise.
2291         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2292         variable.
2293
2294 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2295
2296         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2297         not being tested.
2298
2299 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2300
2301         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2302         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2303         call.
2304         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2305         (__condvar_cleanup1): Likewise.
2306
2307 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2308
2309         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2310         New
2311         (__pthread_unwind): Renamed to ...
2312         (PTHREAD_UNWIND): This.
2313         (__pthread_enable_asynccancel): Replace
2314         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2315
2316 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2317
2318         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2319         (CLONE_NEWCGROUP): New macro.
2320
2321         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2322         (Q_GETNEXTQUOTA): New macro.
2323
2324 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2325
2326         [BZ #19907]
2327         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2328         buffer updated by the previous run.
2329         * string/test-memcpy.c (do_one_test): Likewise.
2330         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2331         * string/test-memmove.c (do_one_test): Likewise.
2332
2333 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2334
2335         [BZ #20094]
2336         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2337         not [__USE_XOPEN].
2338         (unlockpt): Likewise.
2339         (ptsname): Likewise.
2340         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2341         variable.
2342
2343         [BZ #20076]
2344         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2345         instead of [__USE_UNIX98].
2346         (S_ISSOCK): Likewise.
2347         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2348         variable.
2349
2350         [BZ #20074]
2351         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2352         [__USE_POSIX].
2353         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2354         variable.
2355
2356         [BZ #20051]
2357         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2358         (ttyslot): Do not declare.
2359         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2360         (ttyslot): New prototype.
2361         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2362         variable.
2363         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2364
2365 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2366
2367         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2368
2369 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2370
2371         Fix race condition in tst-mallocfork2, use fewer resources.
2372         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2373         to current process group.
2374         (signal_sender): Yield in the non-sleeping case.
2375
2376 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2377
2378         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2379         (ecvt): Likewise.
2380         (fcvt): Likewise.
2381         (gcvt): Likewise.
2382         (getsubopt): Likewise.
2383         (grantpt): Likewise.
2384         (initstate): Likewise.
2385         (l64a): Likewise.
2386         (mktemp): Likewise.
2387         (mkstemp): Likewise.
2388         (ptsname): Likewise.
2389         (random): Likewise.
2390         (realpath): Likewise.
2391         (setstate): Likewise.
2392         (srandom): Likewise.
2393         (ttyslot): Likewise.
2394         (unlockpt): Likewise.
2395         (valloc): Likewise.
2396
2397         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2398         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2399         variable.
2400
2401 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2402
2403         [BZ #20072]
2404         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2405         init_cpu_features only if SHARED is defined.
2406         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2407
2408 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2409
2410         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2411         non-inclusive caches on Intel processors.
2412
2413 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2414
2415         * malloc/malloc.c (dumped_main_arena_start)
2416         (dumped_main_arena_end): New variables.
2417         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2418         (do_check_chunk): Skip dumped fake mmapped chunks.
2419         (munmap_chunk): Likewise.
2420         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2421         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2422         mmapped chunks.
2423         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2424         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2425         and dumped_main_arena_end to cover the dumped heap.
2426
2427 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2428
2429         * conform/data/time.h-data (getdate_err): Do not expect for
2430         [XPG3].
2431         (getdate): Likewise.
2432         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2433         variable.
2434
2435         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2436         (F_ULOCK): Likewise.
2437         (F_TEST): Likewise.
2438         (F_TLOCK): Likewise.
2439         (useconds_t): Likewise.
2440         (intptr_t): Do not expect for [XPG3] or [XPG4].
2441         (brk): Do not expect for [XPG3]
2442         (fchown): Likewise.
2443         (fchdir): Likewise.
2444         (ftruncate): Likewise.
2445         (getdtablesize): Likewise.
2446         (gethostid): Likewise.
2447         (getpagesize): Likewise.
2448         (getpgid): Likewise.
2449         (getsid): Likewise.
2450         (getwd): Likewise.
2451         (lchown): Likewise.
2452         (lockf): Likewise.
2453         (readlink): Likewise.
2454         (sbrk): Likewise.
2455         (setpgrp): Likewise.
2456         (setregid): Likewise.
2457         (setreuid): Likewise.
2458         (symlink): Likewise.
2459         (sync): Likewise.
2460         (truncate): Likewise.
2461         (ualarm): Likewise.
2462         (usleep): Likewise.
2463         (vfork): Likewise.
2464         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2465         variable.
2466
2467         [BZ #20054]
2468         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2469         not [__USE_UNIX98].
2470         * conform/data/unistd.h-data (gethostname): Do not expect for
2471         [XPG3].
2472
2473         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2474         [!POSIX] (S_IFBLK): Likewise.
2475         [!POSIX] (S_IFCHR): Likewise.
2476         [!POSIX] (S_IFIFO): Likewise.
2477         [!POSIX] (S_IFREG): Likewise.
2478         [!POSIX] (S_IFDIR): Likewise.
2479         [!POSIX] (S_IFLNK): Likewise.
2480         [!POSIX] (S_IFSOCK): Likewise.
2481         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2482         variable.
2483         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2484
2485 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2486
2487         * sysdeps/aarch64/memset.S (__memset):
2488         Rewrite of optimized memset.
2489
2490 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2491
2492         [BZ #19703]
2493         Partially async-signal-safe fork for single-threaded processes.
2494         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2495         variable.  Do not acquire and reset/release malloc and libio locks
2496         in single-threaded processes.
2497         * malloc/tst-mallocfork2.c: New file.
2498         * malloc/Makefile (tests): Add it.
2499
2500 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2501
2502         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2503         argument.  Use scratch buffer instead of extend_alloca.
2504         (gethosts): Use scratch buffer instead of extend_alloca.
2505         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2506         extend_alloca.
2507         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2508
2509 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2510
2511         [BZ #20055]
2512         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2513         instead of [__USE_UNIX98].
2514         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2515         [__USE_UNIX98].
2516         * conform/data/termios.h-data (tcgetsid): Do not expect for
2517         [XPG3].
2518         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2519         variable.
2520         (test-xfail-XPG4/termios.h/conform): Likewise.
2521
2522 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2523
2524         Do not use mcheck in localedef.
2525         * locale/programs/localedef.c (turn_on_mcheck)
2526         (__malloc_initialize_hook): Remove.
2527
2528 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2529
2530         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2531         * sysdeps/s390/s390-64/Makefile: Likewise.
2532
2533 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2534
2535         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2536         Remove ifunc-defines.sym.
2537         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2538         Likewise.
2539         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2540         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2541         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2542         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2543         rtld-global-offsets.sym.
2544         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2545         * sysdeps/x86/cpu-features-offsets.sym: This.
2546         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2547         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2548
2549 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2550
2551         [BZ #20073]
2552         * io/sys/stat.h (fchmod): Declare for
2553         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2554         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2555         variable.
2556
2557         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2558         [XPG3] (S_IFSOCK): Likewise.
2559         [XPG3] (S_ISVTX): Likewise.
2560         [XPG3] (S_ISLNK): Likewise.
2561         [XPG3] (S_ISSOCK): Likewise.
2562         [XPG3] (fchmod): Likewise.
2563         [XPG3] (lstat): Likewise.
2564         [XPG3] (mknod): Likewise.
2565
2566         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2567         [XPG3].  Expect type long and XFAIL for [XPG4].
2568         (st_blocks): Likewise.
2569
2570         [BZ #20044]
2571         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2572         (pthread_atfork): New prototype.
2573         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2574         variable.
2575
2576         [BZ #20043]
2577         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2578         prototype.
2579
2580 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2581
2582         [BZ #20017]
2583         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2584         gmtime.
2585
2586 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2587
2588         [BZ #19994]
2589         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2590         flag in _res.options.
2591
2592 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2593
2594         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2595         [XPG3 || XPG4].
2596         (blksize_t): Likewise.
2597         (clockid_t): Likewise.
2598         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2599         variable.
2600         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2601
2602 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2603
2604         * sysdeps/unix/sysv/linux/s390/init-first.c:
2605         Add VDSO_SYMBOL(getcpu).
2606         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2607         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2608         Add VDSO_SYMBOL(getcpu).
2609         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2610         New define HAVE_GETCPU_VSYSCALL.
2611         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2612
2613 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2614
2615         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2616         instead of <sysdeps/x86_64/cacheinfo.c>.
2617         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2618         * sysdeps/x86/cacheinfo.c: Here.
2619
2620 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2621
2622         * malloc/malloc-internal.h: Adjust header file guard.
2623
2624 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2625
2626         [BZ #19787]
2627         * inet/getnameinfo.c (check_sprintf_result): New function.
2628         (CHECKED_SNPRINTF): New macro.
2629         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2630         to the host buffer.
2631         (gni_host_local): Use checked_copy to copy the host name.
2632         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2633         (gni_serv_local): Use checked_copy to copy the service name.
2634         (getnameinfo): Remove unnecessary truncation of result buffers.
2635
2636 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2637
2638         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2639         in case of inet_ntop failure.
2640
2641 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2642
2643         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2644         avoid long lines.
2645         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2646         variables.
2647         (gni_host_inet, gni_host_local): Add comment.
2648         (gni_host): Add comment.  Use temporary to avoid long lines.
2649
2650 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2651
2652         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2653         registers specifiers where general purpose registers specifiers should
2654         have been used.
2655
2656 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2657
2658         [BZ #19779]
2659         CVE-2016-1234
2660         Avoid copying names of directory entries.
2661         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2662         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2663         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2664         (struct readdir_result): New type.
2665         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2666         (GL_READDIR): New macros.
2667         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2668         (convert_dirent, convert_dirent64): New functions.
2669         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2670         convert_dirent64.  Adjust references to the readdir result.
2671         * sysdeps/unix/sysv/linux/i386/glob64.c:
2672         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2673         * posix/bug-glob2.c (LONG_NAME): Define.
2674         (filesystem): Add LONG_NAME.
2675         (my_DIR): Increase the size of room_for_dirent.
2676
2677 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2678
2679         [BZ #20041]
2680         * misc/sys/select.h (__need_timespec): Only define if
2681         [__USE_XOPEN2K].
2682         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2683         variable.
2684         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2685         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2686         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2687
2688 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2689             Segher Boessenkool  <segher@gcc.gnu.org>
2690
2691         [BZ #20004]
2692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2693         (__novec_swapcontext): Add missing load.
2694
2695 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2696
2697         [BZ #20023]
2698         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2699         <time.h>.
2700         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2701         variable.
2702         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2703
2704 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2705
2706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2707         flags CLONE_VM compare.
2708
2709 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2710
2711         [BZ #20031]
2712         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2713         completely empty.
2714
2715 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2716
2717         [BZ #19573]
2718         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2719         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2720         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2721         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2722         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2723         (hesiod_free_list): Mark as hidden.
2724         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2725         res_set, res_get.
2726         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2727         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2728         (hesiod_init): Remove obsolete res_ninit call.
2729         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2730         (hesiod_bind): Do not call init.
2731         (get_txt_records): Use res_mkquery, res_send instead of
2732         res_nmkquery, res_nsend.
2733         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2734         instead of _nss_hesiod_init.
2735         (_nss_hesiod_initgroups_dyn): Likewise.
2736         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2737         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2738         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2739
2740 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2741
2742         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2743         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2744
2745 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2746
2747         * hesiod/hesiod.h: Remove RCS keyword.
2748         * hesiod/hesiod_p.h: Likewise.
2749
2750         * hesiod/hesiod.c: Likewise.
2751
2752 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2753
2754         [BZ #12450]
2755         * locale/iso-639.def: Add Samogitian/sgs.
2756
2757 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2758
2759         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2760
2761         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2762
2763 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2764             Carlos O'Donell  <carlos@redhat.com>
2765
2766         [BZ #19072]
2767         * grp/Makefile (headers): Add grp-merge.h
2768         (routines): Add grp-merge.
2769         * grp/getgrgid_r.c: Include grp-merge.h.
2770         (DEEPCOPY_FN): Define.
2771         (MERGE_FN): Define.
2772         * grp/getgrname_r.c: Include grp-merge.h.
2773         (DEEPCOPY_FN): Define.
2774         (MERGE_FN): Define.
2775         * grp/grp-merge.c: New file.
2776         * grp/grp-merge.h: New file.
2777         * include/grp-merge.h: New file.
2778         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2779         __copy_grp@GLIBC_PRIVATE.
2780         * manual/nss.texi (Actions in the NSS configuration): Describe
2781         return, continue, and merge.
2782         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2783         (DEEPCOPY_FN): Define.
2784         (MERGE_FN): Define.
2785         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2786         (DEEPCOPY_FN): Define.
2787         (MERGE_FN): Define.
2788         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2789         [!MERGE_FN]: Define __merge_einval.
2790         (CHECK_MERGE): Define.
2791         (REENTRANT_NAME): Process merge if do_merge is true.
2792         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2793         (__nss_getent_r): Likewise.
2794         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2795         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2796
2797 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2798
2799         [BZ #20012]
2800         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2801         length to calculate the buffer to read.
2802         (fmemopen_write): Set the buffer position based on bytes written.
2803         (fmemopen_seek): Return EINVAL for invalid whence modes.
2804
2805         [BZ #19957]
2806         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2807         tst-getpid2.
2808         (test): Add tst-clone2.
2809         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2810         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2811         pid/tid fields for CLONE_VM.
2812         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2813         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2814         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2815         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2816         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2817         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2818         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2819         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2821         Likewise.
2822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2823         Likewise.
2824         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2825         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2826         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2827         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2828         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2829         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2830         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2831         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2832
2833 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2834
2835         [BZ #19642]
2836         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2837         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2838         (gni_serv_local, gni_serv): New functions extracted from
2839         getnameinfo.
2840         (getnameinfo): Call gni_host and gni_serv to perform the
2841         processing.  Always free scratch buffer.
2842
2843 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2844
2845         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2846         remaining bytes in the dest string, with zeros.
2847
2848 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2849
2850         [BZ #20010]
2851         CVE-2016-3706
2852         * sysdeps/posix/getaddrinfo.c
2853         (convert_hostent_to_gaih_addrtuple): New function.
2854         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2855         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2856         AF_INET data.
2857
2858 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2859
2860         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2861         callback function gl_readdir.
2862         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2863         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2864         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2865         memcpy to copy the name.
2866         * manual/pattern.texi (Calling Glob): Document requirements for
2867         implementations of the gl_readdir callback function.
2868         * manual/examples/mkdirent.c: New example.
2869         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2870         per the manual guidance.
2871         * posix/tst-gnuglob.c (my_readdir): Likewise.
2872
2873 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2874
2875         [BZ #20014]
2876         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2877         not [__USE_POSIX].
2878         (getchar_unlocked): Likewise.
2879         (putc_unlocked): Likewise.
2880         (putchar_unlocked): Likewise.
2881         (flockfile): Likewise.
2882         (ftrylockfile): Likewise.
2883         (funlockfile): Likewise.
2884         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2885         variable.
2886         (test-xfail-XPG4/stdio.h/conform): Likewise.
2887
2888         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2889         Expect constant.
2890         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2891         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2892         variable.
2893         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2894         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2895
2896         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2897         [__USE_LARGEFILE64] (off64_t): Likewise.
2898         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2899         variable.
2900
2901 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2902
2903         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2904
2905 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2906
2907         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2908         * resolv/res_init.c: Likewise.
2909         * resolv/res_mkquery.c: Likewise.
2910
2911 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2912
2913         * resolv/res_init.c (isascii): Do not define.  Use definition in
2914         <ctype.h>.
2915         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2916         (LOG_AUTH): Remove.
2917         (SPRINTF): Remove, adjust caller.
2918         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2919
2920 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2921
2922         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2923         SUNSECURITY conditional.
2924         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2925
2926 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2927
2928         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2929         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2930         Remove BSD-related preprocessor conditionals.
2931         * conf/portability.h: Remove.
2932
2933 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2934
2935         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2936         * resolv/res_data.c: Likewise.
2937
2938 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2939
2940         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2941         * resolv/res_data.c: Remove code conditional on ultrix.
2942
2943 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2944
2945         * resolv/res_init.c (RFC1535): Do not define.  Remove
2946         RFC1535 preprocessor conditionals.
2947         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2948         because there configuration options which make the resolver
2949         behavior different.
2950
2951 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2952
2953         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2954         RESOLVSORT preprocessor conditionals.
2955         * resolv/nss_dns/dns-host.c: Likewise.
2956         * resolv/res_init.c: Likewise.
2957
2958 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2959
2960         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2961         is never defined.
2962
2963 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2964
2965         * inet/inet_lnaof.c: Remove SCSS keyword.
2966         * inet/inet_mkadr.c: Likewise.
2967         * inet/inet_net.c: Likewise.
2968         * inet/inet_netof.c: Likewise.
2969         * inet/rcmd.c: Likewise.
2970         * inet/rexec.c: Likewise.
2971         * inet/ruserpass.c: Likewise.
2972
2973 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2974
2975         * resolv/inet_addr.c: Remove _LIBC conditionals.
2976         * resolv/res_data.c: Likewise.
2977         * resolv/res_init.c: Likewise.
2978         * resolv/res_mkquery.c: Likewise.
2979         * resolv/res_libc.c: Update comment.
2980         * resolv/README: Update.
2981
2982 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2983
2984         * resolv/gethnamaddr.c: Remove SCSS keyword.
2985         * resolv/herror.c: Likewise.
2986         * resolv/inet_addr.c: Likewise.
2987         * resolv/inet_net_ntop.c: Likewise.
2988         * resolv/inet_net_pton.c: Likewise.
2989         * resolv/inet_neta.c: Likewise.
2990         * resolv/inet_ntop.c: Likewise.
2991         * resolv/inet_pton.c: Likewise.
2992         * resolv/ns_date.c: Remove RCS keyword.
2993         * resolv/ns_name.c: Likewise.
2994         * resolv/ns_netint.c: Likewise.
2995         * resolv/ns_parse.c: Likewise.
2996         * resolv/ns_print.c: Likewise.
2997         * resolv/ns_samedomain.c: Likewise.
2998         * resolv/ns_ttl.c: Likewise.
2999         * resolv/nsap_addr.c: Likewise.
3000         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3001         * resolv/res_data.c: Remove RCS keyword.
3002         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3003         * resolv/res_init.c: Likewise.
3004         * resolv/res_mkquery.c: Likewise.
3005         * resolv/res_query.c: Likewise.
3006         * resolv/res_send.c: Likewise.
3007
3008 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3009
3010         * conform/data/stdio.h-data (fdopen): Expect also for
3011         [XPG3 || XPG4].
3012
3013         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3014         (fseeko): Likewise.
3015         (ftello): Likewise.
3016         (ftrylockfile): Likewise.
3017         (funlockfile): Likewise.
3018         (getc_unlocked): Likewise.
3019         (getchar_unlocked): Likewise.
3020         (putc_unlocked): Likewise.
3021         (putchar_unlocked): Likewise.
3022
3023 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3024
3025         [BZ #19868]
3026         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3027         DNS packet syntax checks (which were not needed before).  Skip
3028         over non-PTR records.
3029
3030 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3031
3032         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3033         definition.  Include <stddef.h> instead.
3034
3035 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3036
3037         [BZ #19831]
3038         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3039         function.
3040         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3041         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3042
3043 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3044
3045         [BZ #19862]
3046         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3047         (getanswer_r): Do not call syslog.
3048         (gaih_getanswer_slice): Likewise.
3049         * resolv/gethnamaddr.c (AskedForGot): Remove.
3050         (getanswer): Do not call syslog.
3051         (gethostbyaddr): Likewise.
3052
3053 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3054
3055         * conform/data/signal.h-data (union sigval): Expect also if
3056         [XOPEN2K].
3057         (struct sigevent): Likewise.
3058         (SIGEV_NONE): Likewise.
3059         (SIGEV_SIGNAL): Likewise.
3060         (SIGEV_THREAD): Likewise.
3061         (SIGRTMIN): Likewise.
3062         (SIGRTMAX): Likewise.
3063         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3064         variable.
3065         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3066
3067 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3068
3069         [BZ #19830]
3070         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3071         (gaih_getanswer_slice): Likewise.
3072         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3073         Also check for availability of RR metadata.
3074
3075 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3076
3077         [BZ #19825]
3078         * resolv/res_send.c (send_vc): Remove early *resplen2
3079         initialization.  Set *resplen2 on socket error.  Call
3080         close_and_return_error for other errors.
3081
3082 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3083
3084         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3085         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3086         (SCM_IUCV_TRGCLS): New define.
3087
3088 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3089
3090         [BZ #20005]
3091         * libio/fmemopen.c (fmemopen_write): Update internal position after
3092         write.
3093         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3094         * stdio-common/tst-fmemopen4.c: New file..
3095
3096 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3097
3098         [BZ #19996]
3099         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3100         not [__USE_XOPEN2K].
3101         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3102         variable.
3103
3104         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3105         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3106         variable.
3107
3108         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3109         [__USE_XOPEN2K8].
3110         [__USE_LARGEFILE64] (off64_t): Likewise.
3111         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3112         variable.
3113
3114 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3115
3116         [BZ #19989]
3117         * libio/stdio.h (cuserid): Do not declare if
3118         [__USE_XOPEN2K && !__USE_GNU].
3119         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3120         variable.
3121
3122 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3123
3124         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3125         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3126         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3127         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3128         ifunc'ed strcspn.
3129         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3130         [EALIGN]: Removed.
3131         [END]: Likewise
3132         [STRSPN]: Define instead of the above to control symbol name.
3133         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3134         New file.
3135         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3136         Likewise.
3137         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3138         Likewise.
3139         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3140         Likewise.
3141         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3142         [INITIAL_MASK]: New macro.
3143         [STRCSPN]: Likewise.
3144         [UPDATE_MASK]: Likewise.
3145         [USE_AS_STRCSPN]: Lisewise.
3146
3147 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3148
3149         [BZ #19931]
3150         * stdio-common/tst-vfprintf-width-prec.c: New file.
3151         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3152         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3153         (generated): Add mtrace-related files.
3154         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3155         (tst-%-mem.out): New pattern rule, replaces
3156         tst-printf-bz18872-mem.out.
3157         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3158         specifier, deallocate any previously allocated work buffer.
3159
3160 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3161
3162         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3163         Add nop before __startcontext, add explaining comments.
3164
3165 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3166
3167         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3168         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3169         completely different API.
3170
3171         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3172         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3173         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3174         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3175         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3176         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3177         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3178         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3179         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3180         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3181
3182 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3183
3184         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3185
3186 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3187
3188         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3189         when it is the default of 0.
3190
3191 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3192
3193         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3194         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3195         (sysdep_routines): Add new strcasestr targets.
3196         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3197         (__libc_ifunc_impl_list): Likewise.
3198         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3199         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3200         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3201         * sysdeps/powerpc/powerpc64/power8/Makefile:
3202         New file to add strcasestr-ppc64 to sysdep_routines.
3203         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3204         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3205
3206 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3207
3208         * benchtests/Makefile (wcsmbs-benchset): Include only for
3209         native builds and runs.
3210         (LOCALES): Likewise.
3211         (bench-build): Build timing-type here instead of the bench
3212         target.  Generate locale only for native builds.
3213         * benchtests/README: Add note for cross-building.
3214
3215         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3216
3217         * benchtests/README: Update README to include instructions on
3218         using bench-build.
3219
3220         * Makefile.in (bench-build): New target.
3221         * Rules (PHONY): Add bench-build target.
3222         * benchtests/Makefile (bench): Depend on bench-build.
3223         (bench-build): New target.
3224
3225 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3226
3227         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3228         profil_reply_port.
3229         (profile_waiter): Do not initialize profil_reply_port.
3230         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3231         frequency instead of tick length in us.
3232
3233 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3234
3235         [BZ #18712]
3236         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3237         (__old_mempcpy_small): Likewise.
3238         (__old_strcpy_small): Likewise.
3239         (__old_stpcpy_small): Likewise.
3240         (__old_strpbrk_c2): Fix compat symbol name.
3241         (__old_strpbrk_c3): Likewise.
3242         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3243         (__mempcpy_small): Remove.
3244         (__strcpy_small): Remove.
3245         (__stpcpy_small): Remove.
3246
3247 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3248
3249         [BZ #19400]
3250         * locale/iso-639.def: Add the Talossan/tzl language.
3251
3252 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3253
3254         [BZ #16983]
3255         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3256         comment.  Add "ln" to strchr check on postal_fmt.
3257
3258 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3259
3260         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3261         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3262         tel_dom_fmt.
3263
3264 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3265
3266         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3267         (sysdep_routines): Added __strlen_power8.
3268         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3269         __strlen_power8 entry.
3270         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3271         Implementation for POWER8.
3272         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3273         for __strlen_power8.
3274         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3275         Implementation for POWER8.
3276
3277 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3278
3279         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3280
3281 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3282
3283         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3284         Goldmont and Airmont processors.
3285
3286 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3287
3288         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3289         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3290         (__STRING2_SMALL_GET32): Remove.
3291         (memset): Remove.
3292         (__memset_1): Remove.
3293         (__memset_gc): Remove.
3294         (__mempcpy): Remove.
3295         (mempcpy): Remove.
3296         (__mempcpy_args): Remove.
3297         (strchr): Remove.
3298         (strcpy): Remove.
3299         (strcpy_args): Remove.
3300         (__stpcpy_args): Remove.
3301         (__strcmp_cc): Remove.
3302         (__strcmp_gc): Remove.
3303         (strstr): Remove.
3304
3305 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3306
3307         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3308         * nis/nis_call.c (nis_server_cache_add): Likewise.
3309
3310 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3311
3312         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3313
3314 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3315
3316         * malloc/arena.c (__malloc_fork_lock_parent)
3317         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3318         internal_function attribute.
3319
3320 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3321
3322         * stdio-common/printf_fp.c (__printf_fp_l):
3323         Rename ___printf_fp_l to __printf_fp_l and
3324         remove strong alias. Use libc_hidden_def instead
3325         of ldbl_hidden_def macro.
3326
3327 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3328
3329         Remove malloc hooks from fork handler.  They are no longer needed
3330         because malloc runs right before fork, and no malloc calls from
3331         other fork handlers are not possible anymore.
3332         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3333         declarations.
3334         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3335         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3336         (atfork_recursive_cntr): Remove.
3337         (__malloc_fork_lock_parent): Do not override malloc hooks and
3338         thread_arena.
3339         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3340         thread_arena.
3341         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3342         thread_arena instead of save_arena.
3343
3344 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3345
3346         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3347         (thread_atfork, thread_atfork_static): Remove.
3348         * sysdeps/mach/hurd/malloc-machine.h:
3349         (thread_atfork, thread_atfork_static): Remove.
3350
3351 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3352
3353         [BZ #19431]
3354         Run the malloc fork handler as late as possible to avoid deadlocks.
3355         * malloc/malloc-internal.h: New file.
3356         * malloc/malloc.c: Include it.
3357         * malloc/arena.c (ATFORK_MEM): Remove.
3358         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3359         Update comment.
3360         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3361         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3362         Remove outdated comment.
3363         (ptmalloc_init): Do not call thread_atfork.  Remove
3364         thread_atfork_static.
3365         * malloc/tst-malloc-fork-deadlock.c: New file.
3366         * Makefile (tests): Add tst-malloc-fork-deadlock.
3367         (tst-malloc-fork-deadlock): Link against libpthread.
3368         * manual/memory.texi (Aligned Memory Blocks): Update safety
3369         annotation comments.
3370         * sysdeps/nptl/fork.c (__libc_fork): Call
3371         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3372         __malloc_fork_unlock_child.
3373         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3374
3375 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3376
3377         [BZ #19613]
3378         Remove union wait.
3379         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3380         (w_stopsig, w_stopval): Remove.
3381         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3382         stat_loc argument.
3383         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3384         (__WAIT_STATUS_DEFN): Remove.
3385         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3386         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3387         (wait, wait3, wait4): Use int * for the stat_loc argument.
3388         * posix/wait.c (__wait): Likewise.
3389         * posix/wait3.c (__wait3): Likewise.
3390         * posix/wait4.c (__wait4): Likewise.
3391         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3392         (__WAIT_STATUS_DEFN): Remove.
3393         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3394         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3395         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3396         argument.
3397         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3398         * sysdeps/posix/wait3.c (__wait3): Likewise.
3399         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3400         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3401         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3402         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3403         stat_loc argument.
3404         * manual/process.texi (BSD Wait Functions): Remove union wait.
3405
3406 2016-04-13  Andreas Schwab  <schwab@suse.de>
3407
3408         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3409         (test-extras): Add tst-tlsalign-vars.
3410         * math/Makefile: Wrap long lines.
3411         (libm-vec-test-wrappers): Define.
3412         (test-extras): Add $(libm-vec-test-wrappers).
3413         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3414         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3415         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3416         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3417         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3418         (extra-test-objs): Add corresponding objects.
3419
3420 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3421
3422         [BZ #19928]
3423         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3424         New.
3425         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3426         times of shared cache size.
3427         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3428         (VMOVNT): New.
3429         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3430         (VMOVNT): Likewise.
3431         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3432         (VMOVNT): Likewise.
3433         (VMOVU): Changed to movups for smaller code sizes.
3434         (VMOVA): Changed to movaps for smaller code sizes.
3435         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3436         comments.
3437         (PREFETCH): New.
3438         (PREFETCH_SIZE): Likewise.
3439         (PREFETCHED_LOAD_SIZE): Likewise.
3440         (PREFETCH_ONE_SET): Likewise.
3441         Rewrite to use forward and backward loops, which move 4 vector
3442         registers at a time, to support overlapping addresses and use
3443         non temporal store if size is above the threshold and there is
3444         no overlap between destination and source.
3445
3446 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3447
3448         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3449         Include dl-vdso.
3450         * sysdeps/unix/sysv/linux/mips/Versions: Add
3451         __vdso_clock_gettime.
3452         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3453         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3454         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3455         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3456         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3457         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3458         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3459         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3460         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3461
3462 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3463
3464         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3465         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3466         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3467         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3468         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3469         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3472         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3473         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3474         syscalls generation.
3475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3476         [__NR_pwrite64] (__NR_write): Remove define.
3477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3478         [__NR_pwrite64] (__NR_write): Remove define.
3479         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3480         Remove define.
3481         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3482         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3483         Remove define.
3484         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3485         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3486         Linux implementation as base.
3487         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3488
3489         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3490         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3491         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3492         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3495         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3496         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3497         syscall generation.
3498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3499         [__NR_pread64] (__NR_pread): Remove define.
3500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3501         [__NR_pread64] (__NR_pread): Likewise.
3502         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3503         define.
3504         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3505         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3506         Remove define.
3507         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3508         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3509         Linux implementation as base.
3510         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3511         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3512         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3513
3514         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3515         definition.
3516         (__ALIGNMENT_COUNT): Likewise.
3517         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3518         (__ALIGNMENT_COUNT): Likewise.
3519         (SYSCALL_LL): New define.
3520         (SYSCALL_LL64): Likewise.
3521         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3522         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3523         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3524         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3525
3526         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3527         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3528         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3529         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3530         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3531         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3532
3533 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3534
3535         [BZ #19865]
3536         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3537         original buffer before retry.
3538
3539 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3540
3541         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3542         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3543         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3544         GLRO(dl_auxv) list.
3545         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3546         including <ldsodefs.h>.
3547         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3548
3549 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3550
3551         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3552         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3553         $(CPPFLAGS).
3554
3555 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3556
3557         [BZ #17950]
3558         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3559         Add -mfpmath=387.
3560
3561 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3562
3563         * sysdeps/i386/configure.ac: Change == to = when calling test.
3564         * sysdeps/x86_64/configure.ac: Likewise.
3565         * sysdeps/i386/configure: Regenerated.
3566         * sysdeps/x86_64/configure: Likewise.
3567
3568 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3569
3570         [BZ #16137]
3571         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3572         * benchtests/bench-strcoll.c (input_files): Likewise.
3573         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3574         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3575         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3576
3577 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3578
3579         [BZ #19929]
3580         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3581         [__USE_XOPEN2K8 && !__USE_GNU].
3582         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3583         variable.
3584
3585         [BZ #19925]
3586         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3587         define if [!__USE_MISC && __USE_XOPEN2K].
3588         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3589         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3590         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3591         Likewise.
3592         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3593         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3594         variable.
3595         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3596
3597 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3598
3599         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3600         (sysdep_routines): Add new strspn targets.
3601         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3602         (__libc_ifunc_impl_list): Add strspn.
3603         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3604         New file.
3605         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3606         Likewise.
3607         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3608         Likewise.
3609         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3610         Likewise.
3611
3612 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3613
3614         * misc/hsearch_r.c: Include <limits.h>.
3615
3616 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3617
3618         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3619
3620 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3621
3622         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3623         (MEMCPY_SYMBOL): New.
3624         (MEMPCPY_SYMBOL): Likewise.
3625         (MEMMOVE_CHK_SYMBOL): Likewise.
3626         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3627         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3628         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3629         Provide alias for memcpy in libc.a and ld.so.
3630
3631 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3632
3633         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3634         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3635         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3636         Disabled fro now.
3637         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3638         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3639
3640 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3641
3642         * benchtests/Makefile (string-benchset): Add memcpy-large,
3643         memmove-large and memset-large.
3644         * benchtests/bench-memcpy-large.c: New file.
3645         * benchtests/bench-memmove-large.c: Likewise.
3646         * benchtests/bench-memmove-large.c: Likewise.
3647         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3648
3649 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3650
3651         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3652         32-bit displacement to avoid long nop between instructions.
3653
3654 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3655
3656         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3657         a comment on VMOVU and VMOVA.
3658
3659 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3660
3661         [BZ #19633]
3662         Use specified locale for number formatting in strfmon_l.
3663         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3664         (__nl_lookup_word): New inline functions.
3665         * include/printf.h (__print_fp_l): Declare.
3666         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3667         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3668         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3669         (___printf_fp): New function.
3670         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3671         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3672         * stdlib/tst-strfmon_l.c (do_test): New test.
3673         * stdlib/Makefile (tests): Add kt.
3674         (LOCALES): Build additional locales.
3675         (tst-strfmon_l.out): Require locales.
3676
3677 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3678
3679         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3680         if not in libc.
3681         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3682         Likewise.
3683         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3684         Likewise.
3685         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3686         Likewise.
3687
3688 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3689
3690         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3691         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3692         with unaligned_erms.
3693         (__memmove_erms): Skip if source == destination.
3694         (__memmove_unaligned_erms): Don't check source == destination
3695         first.
3696
3697 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3698
3699         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3700         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3701
3702 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3703
3704         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3705         * string/strspn.c (strspn): Likewise.
3706
3707 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3708
3709         * benchtests/bench-memset.c (do_test): Support 64-byte
3710         alignment.
3711         (test_main): Test 64-byte alignment.
3712
3713 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3714
3715         * benchtests/bench-memmove.c (test_main): Test 64-byte
3716         alignment.
3717
3718 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3719
3720         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3721
3722 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3723
3724         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3725         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3726         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3727
3728         * string/strpbrk.c (strpbrk): Rewrite function.
3729         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3730         (__strpbrk_c2): Likewise.
3731         (__strpbrk_c3): Likewise.
3732         * string/string-inlines.c
3733         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3734         Likewise.
3735         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3736         Likewise.
3737
3738         * string/strspn.c (strcspn): Rewrite function.
3739         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3740         (__strspn_c1): Remove inline function.
3741         (__strspn_c2): Likewise.
3742         (__strspn_c3): Likewise.
3743         * string/string-inlines.c
3744         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3745         compatibility symbol.
3746         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3747         Likewise.
3748         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3749         Likewise.
3750         * string/string-inlines.c: Include generic version.
3751
3752 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3753             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3754
3755         * string/Version (libc): Add GLIBC_2.24.
3756         * string/strcspn.c (strcspn): Rewrite function.
3757         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3758         (__strcspn_c1): Remove inline function.
3759         (__strcspn_c2): Likewise.
3760         (__strcspn_c3): Likewise.
3761         * string/string-inline.c
3762         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3763         compatibility symbol.
3764         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3765         Likewise.
3766         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3767         Likewise.
3768         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3769
3770 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3771
3772         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3773         Use ahi instead of aghi to adjust stack pointer.
3774
3775 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3776
3777         [BZ #19853]
3778         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3779         TEST to take significant digits as second parameter.
3780         [TEST]: Redefine in terms of TEST_N taking 30
3781         significant digits.
3782         (do_test): Add test case to demonstrate precision
3783         failure in the ldbl-128ibm printf.
3784         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3785         (__mpn_extract_long_double): Carry 7 extra intermediate
3786         bits of precision to aide computing difference when
3787         signs differ.
3788
3789 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3790
3791         [BZ #19881]
3792         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3793         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3794         memset-avx512-unaligned-erms.
3795         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3796         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3797         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3798         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3799         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3800         __memset_sse2_unaligned_erms, __memset_erms,
3801         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3802         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3803         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3804         file.
3805         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3806         Likewise.
3807         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3808         Likewise.
3809         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3810         Likewise.
3811
3812 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3813
3814         [BZ #19776]
3815         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3816         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3817         memmove-avx512-unaligned-erms.
3818         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3819         (__libc_ifunc_impl_list): Test
3820         __memmove_chk_avx512_unaligned_2,
3821         __memmove_chk_avx512_unaligned_erms,
3822         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3823         __memmove_chk_sse2_unaligned_2,
3824         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3825         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3826         __memmove_avx512_unaligned_erms, __memmove_erms,
3827         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3828         __memcpy_chk_avx512_unaligned_2,
3829         __memcpy_chk_avx512_unaligned_erms,
3830         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3831         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3832         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3833         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3834         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3835         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3836         __mempcpy_chk_avx512_unaligned_erms,
3837         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3838         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3839         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3840         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3841         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3842         __mempcpy_erms.
3843         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3844         file.
3845         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3846         Likwise.
3847         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3848         Likwise.
3849         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3850         Likwise.
3851
3852 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3853
3854         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3855         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3856         (La_s390_64_regs): Likewise.
3857         (La_s390_32_retval): Append vector register lrv_v24.
3858         (La_s390_64_retval): Likeweise.
3859         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3860         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3861         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3862         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3863
3864 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3865
3866         [BZ #19916]
3867         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3868         to create a non-vector/vector version for _dl_runtime_resolve and
3869         _dl_runtime_profile. Move implementation to ...
3870         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3871         (_dl_runtime_resolve) Save and restore fpr/vrs.
3872         (_dl_runtime_profile) Save and restore vrs and fix some issues
3873         if _dl_call_pltexit is called.
3874         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3875         Choose the correct resolver function if running on a machine with vx.
3876         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3877         to create a non-vector/vector version for _dl_runtime_resolve and
3878         _dl_runtime_profile. Move implementation to ...
3879         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3880         (_dl_runtime_resolve) Save and restore fpr/vrs.
3881         (_dl_runtime_profile) Save and restore vrs and fix some issues
3882         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3883         Choose the correct resolver function if running on a machine with vx.
3884
3885 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3886
3887         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3888
3889 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3890
3891         [BZ #19509]
3892         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3893         skip_map != NULL.
3894         * elf/tst-dlsym-error.c: New file.
3895         * elf/Makefile (tests): Add tst-dlsym-error.
3896         (tst-dlsym-error): Link against libdl.
3897
3898 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3899
3900         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3901         (__ASSUME_FUTIMESAT): Remove macro.
3902         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3903
3904 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3905
3906         [BZ #19879]
3907         CVE-2016-3075
3908         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3909         copy name.
3910
3911 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3912
3913         [BZ #19837]
3914         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3915         error if parse_line fails.
3916
3917 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3918
3919         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3920         (index_cpu_ERMS): Likewise.
3921         (reg_ERMS): Likewise.
3922
3923 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3924
3925         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3926         PER_LINUX_FDPIC): Add.
3927
3928 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3929
3930         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3931         memcpy-avx512-no-vzeroupper.
3932         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3933         to ...
3934         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3935         (MEMCPY): Don't define.
3936         (MEMCPY_CHK): Likewise.
3937         (MEMPCPY): Likewise.
3938         (MEMPCPY_CHK): Likewise.
3939         (MEMPCPY_CHK): Renamed to ...
3940         (__mempcpy_chk_avx512_no_vzeroupper): This.
3941         (MEMPCPY_CHK): Renamed to ...
3942         (__mempcpy_chk_avx512_no_vzeroupper): This.
3943         (MEMCPY_CHK): Renamed to ...
3944         (__memmove_chk_avx512_no_vzeroupper): This.
3945         (MEMCPY): Renamed to ...
3946         (__memmove_avx512_no_vzeroupper): This.
3947         (__memcpy_avx512_no_vzeroupper): New alias.
3948         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3949
3950 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3951
3952         [BZ #18858]
3953         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3954         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3955         and mempcpy-avx512-no-vzeroupper.
3956         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3957         New.
3958         (MEMPCPY): Likewise.
3959         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3960         (MEMPCPY_CHK): New.
3961         (MEMPCPY): Likewise.
3962         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3963         (MEMPCPY): Likewise.
3964         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3965         (MEMPCPY): Likewise.
3966         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3967         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3968         Likewise.
3969         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3970         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3971
3972 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3973              Amit Pawar  <Amit.Pawar@amd.com>
3974
3975         [BZ #19583]
3976         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3977         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3978         processors.  Set Fast_Copy_Backward for AMD Excavator
3979         processors.
3980         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3981         New.
3982         (index_arch_Fast_Unaligned_Copy): Likewise.
3983         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3984         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3985
3986 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3987
3988         [BZ #19791]
3989         * resolv/res_send.c (close_and_return_error): New function.
3990         (send_dg): Initialize *resplen2 after reopen failure.  Call
3991         close_and_return_error for error returns.  On error paths without
3992         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3993         successful return.
3994
3995 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3996
3997         [BZ# 19860]
3998         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3999         zero if the compiler does not provide the AVX512F bit.
4000
4001 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4002
4003         [BZ #19848]
4004         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4005         from 8 to 4.
4006         (__ieee754_powl): Compare integer exponent against 4 not 8.
4007         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4008         from 8 to 4.
4009         (__ieee754_powl): Compare integer exponent against 4 not 8.
4010         * math/auto-libm-test-in: Add more tests of pow.
4011         * math/auto-libm-test-out: Regenerated.
4012         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4014
4015 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4016
4017         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4018         Make code unconditional.
4019         [!__NR_utimensat]: Remove conditional code.
4020         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4021         Make code unconditional.
4022         [!__NR_utimensat]: Remove conditional code.
4023         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4024         Make code unconditional.
4025         [!__NR_utimensat]: Remove conditional code.
4026
4027 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4028
4029         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4030         Make code unconditional.
4031
4032 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4033
4034         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4035         call-clobbered %eax on retry path.
4036         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4037
4038 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4039
4040         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4041         Don't set %rcx twice before "rep movsb".
4042
4043 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4044
4045         [BZ #19583]
4046         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4047         inline.  Check family before setting family, model and
4048         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4049         bits here.
4050         (init_cpu_features): Replace HAS_CPU_FEATURE and
4051         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4052         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4053         for Intel processors with usable AVX2.  Call get_common_indeces
4054         for other processors with family == NULL.
4055         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4056         (CPU_FEATURES_ARCH_P): Likewise.
4057         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4058         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4059
4060 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4061
4062         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4063         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4064         $(shared-thread-library) instead of hardcoding the path to libpthread.
4065
4066 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4067
4068         * sysdeps/unix/sysv/linux/kernel-features.h
4069         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4070         * sysdeps/unix/sysv/linux/getdents.c
4071         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4072         [!have_no_getdents64_defined]: Likewise.
4073         (__GETDENTS): Remove __have_no_getdents64 conditional.
4074
4075 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4076
4077         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4078         Remove macro.
4079         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4080         <kernel-features.h>.
4081         (signalfd) [__NR_signalfd4]: Make code unconditional.
4082         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4083
4084 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4085
4086         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4087         style.
4088
4089 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4090
4091         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4092         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4093         __pthread_unwind.
4094         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4095         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4096         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4097         (__condvar_cleanup1): Likewise.
4098
4099 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4100
4101         [BZ #19822]
4102         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4103         move it to the final $@ location.
4104
4105 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4106
4107         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4108         access where posix_spawn success and pid argument is null.
4109         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4110         success case.
4111
4112 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4113
4114         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4115
4116         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4117
4118         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4119         and __fcntl.
4120         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4121         __fcntl only.
4122         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4123         adding attribute_hidden to __open and __fcntl.
4124
4125         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4126         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4127         depend on libc-modules.h,
4128         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4129
4130 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4131
4132         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4133         Remove macro.
4134         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4135         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4136         entry.
4137
4138         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4139         Remove macro.
4140         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4141         include <kernel-features.h>.
4142         [!__ASSUME_FALLOCATE]: Remove conditional code.
4143         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4144
4145 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4146
4147         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4148         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4149         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4150         (_ZGVdN4v_cos_avx2): Likewise.
4151         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4152         (_ZGVdN4v_cos): Likewise.
4153         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4154         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4155         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4156         (_ZGVdN4v_exp_avx2): Likewise.
4157         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4158         (_ZGVdN4v_exp): Likewise.
4159         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4160         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4161         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4162         (_ZGVdN4v_log_avx2): Likewise.
4163         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4164         (_ZGVdN4v_log): Likewise.
4165         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4166         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4167         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4168         (_ZGVdN4vv_pow_avx2): Likewise.
4169         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4170         (_ZGVdN4vv_pow): Likewise.
4171         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4172         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4173         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4174         (_ZGVdN4v_sin_avx2): Likewise.
4175         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4176         (_ZGVdN4v_sin): Likewise.
4177         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4178         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4179         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4180         (_ZGVdN4vvv_sincos_avx2): Likewise.
4181         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4182         (_ZGVdN4vvv_sincos): Likewise.
4183         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4184         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4185         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4186         (_ZGVbN4v_cosf_sse4): Likewise.
4187         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4188         (_ZGVdN8v_cosf_avx2): Likewise.
4189         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4190         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4191         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4192         (_ZGVbN4v_expf_sse4): Likewise.
4193         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4194         (_ZGVdN8v_expf_avx2): Likewise.
4195         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4196         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4197         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4198         (_ZGVbN4v_logf_sse4): Likewise.
4199         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4200         (_ZGVdN8v_logf_avx2): Likewise.
4201         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4202         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4203         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4204         (_ZGVbN4vv_powf_sse4): Likewise.
4205         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4206         (_ZGVdN8vv_powf_avx2): Likewise.
4207         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4208         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4209         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4210         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4211         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4212         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4213         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4214         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4215         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4216         (_ZGVbN4v_sinf_sse4): Likewise.
4217         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4218         (_ZGVdN8v_sinf_avx2): Likewise.
4219         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4220         Use JUMPTARGET to call callee.
4221         (WRAPPER_IMPL_SSE2_ff): Likewise.
4222         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4223         (WRAPPER_IMPL_AVX): Likewise.
4224         (WRAPPER_IMPL_AVX_ff): Likewise.
4225         (WRAPPER_IMPL_AVX_fFF): Likewise.
4226         (WRAPPER_IMPL_AVX512): Likewise.
4227         (WRAPPER_IMPL_AVX512_ff): Likewise.
4228         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4229         Likewise.
4230         (WRAPPER_IMPL_SSE2_ff): Likewise.
4231         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4232         (WRAPPER_IMPL_AVX): Likewise.
4233         (WRAPPER_IMPL_AVX_ff): Likewise.
4234         (WRAPPER_IMPL_AVX_fFF): Likewise.
4235         (WRAPPER_IMPL_AVX512): Likewise.
4236         (WRAPPER_IMPL_AVX512_ff): Likewise.
4237         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4238
4239 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4240
4241         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4242         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4243         qualifier.
4244         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4245         internal_function qualifiers.
4246
4247 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4248
4249         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4250         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4251         * math/atest-exp.c (exp_mpn): Mark chk unused.
4252         * math/atest-exp2.c (exp_mpn): Likwise.
4253         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4254         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4255
4256 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4257
4258         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4259         Remove macro.
4260         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4261         <kernel-features.h>.
4262         [__NR_ppoll]: Make code unconditional.
4263         [!__ASSUME_PPOLL]: Remove conditional code.
4264
4265         * sysdeps/unix/sysv/linux/kernel-features.h
4266         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4267         (__ASSUME_ACCEPT4): Likewise.
4268         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4269         Define.
4270         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4271         Likewise.
4272         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4273         Likewise.
4274         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4275         Likewise.
4276         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4277         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4278         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4279         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4280         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4281         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4282         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4283         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4284         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4285         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4286         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4287         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4288         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4289         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4290         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4291         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4292         Likewise.
4293         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4294         Likewise.
4295         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4296         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4297         0x040300].
4298         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4299         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4300         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4301         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4302         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4303         0x030300].
4304         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4305         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4306         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4307         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4308         0x040300].
4309         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4310         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4311         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4312         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4313         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4314         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4315         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4316         0x030300].
4317         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4318         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4319         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4320         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4321         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4322         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4323         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4324         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4325         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4326         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4327         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4328         0x040300].
4329         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4330         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4331         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4332         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4333         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4334         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4335         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4336         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4337         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4338         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4339         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4340         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4341         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4342         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4343         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4344         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4345         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4346         Likewise.
4347         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4348         Likewise.
4349
4350 2016-03-15  Andreas Schwab  <schwab@suse.de>
4351
4352         [BZ #19257]
4353         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4354         statp->_u._ext.nscount as loop count.
4355
4356 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4357
4358         * math/test-signgam-finite-c99.c: Also #undef
4359         __LIBC_INTERNAL_MATH_INLINES.
4360         * math/test-signgam-main.c: Likewise.
4361
4362 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4363
4364         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4365         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4366         (MADV_FREE): Likewise.
4367         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4368         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4369         EPOLLEXCLUSIVE.
4370
4371 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4372
4373         * timezone/README: Remove mention of checktab.awk. Mention wiki
4374         SharedSourceFiles.
4375
4376 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4377
4378         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4379         WUNTRACED.
4380
4381 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4382
4383         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4384         order to match the type of p when calling atomic_exchange_acq().
4385
4386 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4387
4388         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4389         cfi_offset calls.
4390         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4391         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4392         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4393         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4394         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4395
4396 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4397
4398         * timezone/checktab.awk: Removed.
4399
4400 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4401
4402         * manual/math.texi (Errors in Math Functions): Document relaxed
4403         accuracy goals for IBM long double.
4404         * math/libm-test.inc (test_exceptions): Always allow spurious
4405         "underflow" and "inexact" exceptions for IBM long double.
4406
4407 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4408
4409         [BZ #19762]
4410         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4411         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4412         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4413         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4414         (bit_arch_*): This for feature array.
4415         (bit_*): Renamed to ...
4416         (bit_cpu_*): This for cpu array.
4417         (index_*): Renamed to ...
4418         (index_arch_*): This for feature array.
4419         (index_*): Renamed to ...
4420         (index_cpu_*): This for cpu array.
4421         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4422         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4423         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4424         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4425         bit_##name with index_cpu_##name and bit_cpu_##name.
4426         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4427         bit_##name with index_arch_##name and bit_arch_##name.
4428
4429 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4430
4431         [BZ #19792]
4432         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4433         Terminate FDE before return label.
4434
4435 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4436
4437         [BZ #19790]
4438         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4439         (rintl): Define as macro.
4440         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4441         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4442         of fesetround.  Ensure results are evaluated before end of scope.
4443         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4444         USE_AS_NEARBYINTL and include s_rintl.c.
4445         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4446         Disable exception traps in new environment.
4447         (libc_feholdsetround_ppc_ctx): Likewise.
4448
4449 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4450
4451         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4452         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4453         (tst_audit10_aux) [__AVX512F__]: ... here.
4454
4455 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4456
4457         * include/sys/auxv.h: New file.
4458
4459 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4460
4461         [BZ #19759]
4462         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4463
4464 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4465
4466         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4467         operand modifier.
4468         (feclearexcept): Likewise.
4469
4470 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4471
4472         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4473         to reflect the entire 32-bit HWCAP.
4474         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4475         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4476
4477 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4478
4479         [BZ #19783]
4480         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4481         $(test-via-rtld-prefix).
4482         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4483
4484 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4485
4486         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4487         union wait.  Report any non-zero exit status as error.
4488
4489 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4490
4491         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4492         configured with --enable-hardcoded-path-in-tests.
4493
4494 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4495
4496         [BZ #19677]
4497         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4498         (__ieee754_remainderl): Put zero low parts in canonical form.
4499         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4500         file.  Based on
4501         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4502         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4503         with wrapper round test-fmodrem-ldbl-128ibm.c.
4504         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4505         file.
4506         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4507         Likewise.
4508         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4509         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4510
4511 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4512
4513         [BZ #19610]
4514         * elf/ldconfig.c (opt_link): Update comment.
4515         (options): Update help string for option -X.
4516         (search_dir): Unlink stale symbolic link only if updating symbolic
4517         links.
4518         * elf/tst-ldconfig-X.sh: New file.
4519         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4520         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4521
4522 2016-03-07  Andreas Schwab  <schwab@suse.de>
4523
4524         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4525         needed arguments.
4526
4527 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4528
4529         [BZ #15333]
4530         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4531         to lstat64.
4532
4533 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4534
4535         * libio/filedoalloc.c (isatty): Remove.
4536         (local_isatty): Add comment.  Call __isatty directly.
4537         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4538         * libio/wfiledoalloc.c (isatty): Remove.
4539         (_IO_wfile_doallocate): Update comment.
4540
4541 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4542
4543         [BZ #19269]
4544         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4545         tst-audit4-aux.o.
4546         (tst-audit10): Depend on tst-audit10-aux.o.
4547         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4548         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4549         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4550         instead of inline AVX code.
4551         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4552         instead of inline AVX512 code.
4553         * sysdeps/x86_64/tst-audit4-aux.c: New file
4554         * sysdeps/x86_64/tst-audit10-aux.c: New file
4555
4556         [BZ #19648]
4557         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4558
4559 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4560
4561         [BZ #14750]
4562         [BZ #10354]
4563         [BZ #18433]
4564         * include/sched.h (__clone): Add hidden prototype.
4565         (__clone2): Likewise.
4566         * include/unistd.h (__dup): Likewise.
4567         * posix/Makefile (tests): Add tst-spawn2.
4568         * posix/tst-spawn2.c: New file.
4569         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4570         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4571         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4572         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4573         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4574         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4575         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4576         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4577         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4578         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4579         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4581         Likewise.
4582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4583         Likewise.
4584         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4585         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4586         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4587         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4588         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4589         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4590         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4591         * sysdeps/unix/sysv/linux/nptl-signals.h
4592         (____nptl_is_internal_signal): New function.
4593         * sysdeps/unix/sysv/linux/spawni.c: New file.
4594
4595         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4596         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4597         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4598         * posix/tst-execvp2.c (do_test): Likewise.
4599         * posix/tst-execvp3.c (do_test): Likewise.
4600         * posix/tst-execvp4.c (do_test): Likewise.
4601         * posix/tst-execvpe1.c: New file.
4602         * posix/tst-execvpe2.c: Likewise.
4603         * posix/tst-execvpe3.c: Likewise.
4604         * posix/tst-execvpe4.c: Likewise.
4605         * posix/tst-execvpe5.c: Likewise.
4606         * posix/tst-execvpe6.c: Likewise.
4607
4608         [BZ #19534]
4609         * posix/execl.c (execl): Remove dynamic memory allocation.
4610         * posix/execle.c (execle): Likewise.
4611         * posix/execlp.c (execlp): Likewise.
4612
4613 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4614
4615         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4616         Replace .text with .text.avx512.
4617         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4618         Likewise.
4619
4620 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4621
4622         * sysdeps/generic/libnsl.abilist: New file.
4623         * sysdeps/generic/libutil.abilist: New file.
4624
4625 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4626
4627         [BZ #19762]
4628         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4629         HAS_ARCH_FEATURE with Fast_Rep_String.
4630         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4631         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4632         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4633         Likewise.
4634         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4635         Likewise.
4636         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4637         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4638         Likewise.
4639         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4640         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4641         Likewise.
4642
4643 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4644
4645         [BZ #19745]
4646         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4647         with *%rax in call.
4648
4649 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4650
4651         [BZ #19745]
4652         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4653         with *__libc_start_main@GOTPCREL(%rip) in call.
4654
4655 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4656
4657         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4658         inside conditional for nonempty $(CXX).
4659
4660         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4661         nonempty.
4662
4663         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4664         to test for empty $(CXX) rather than $(CXX) of "no".
4665
4666 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4667
4668         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4669
4670 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4671             H.J. Lu  <hongjiu.lu@intel.com>
4672
4673         [BZ #18880]
4674         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4675         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4676         enable __memcpy_ssse3_back.
4677
4678 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4679
4680         [BZ #19758]
4681         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4682         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4683
4684 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4685
4686         [BZ #19490]
4687         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4688         (__fentry__): Likewise.
4689
4690 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4691
4692         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4693         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4694
4695 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4696
4697         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4698         __mcount_internal directly.
4699         (C_LABEL(__fentry__)): Likewise.
4700         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4701         directly.
4702
4703 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4704
4705         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4706         (__start_context): Call __setcontext directly.
4707
4708 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4709
4710         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4711         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4712         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4713         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4714         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4715         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4716         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4717         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4718         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4719         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4720         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4721         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4722         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4723         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4724         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4725         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4726         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4727         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4728         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4729         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4730         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4731         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4732         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4733         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4734         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4735         Remove conditional code.
4736         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4737         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4738         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4739         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4740         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4741         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4742         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4743         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4744         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4745         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4746         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4747         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4748
4749 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4750
4751         * NEWS (2.23): Fix typo in bug 19048 text.
4752
4753 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4754
4755         [BZ #14259]
4756         * Makeconfig: Rename msgcatdir to localedir.
4757         Rename inst_msgcatdir to inst_localedir.
4758         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4759         * config.make.in: Add localedir.
4760         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4761         (ldd-rewrite): Likewise.
4762         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4763         (install-others): Use inst_localedir.
4764         (CPPFLAGS): Use localedir.
4765         * locale/Makefile (locale-CPPFLAGS): Likewise.
4766         * po/Makefile (mo-installed): Use inst_localedir.
4767
4768         [BZ #19575]
4769         * localedata/charmaps/GB18030: Update comments regarding PAU to
4770         non-PUA mappings.
4771
4772 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4773
4774         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4775         test for header.
4776         * sysdeps/unix/sysv/linux/configure: Regenerated.
4777         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4778         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4779         Remove conditional code.
4780         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4781
4782         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4783         Define to 3.2.0.
4784         (arch_minimum_kernel): Likewise.
4785         * sysdeps/unix/sysv/linux/configure: Regenerated.
4786         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4787         Define to 2.6.32.
4788         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4789         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4790         (arch_minimum_kernel): Define to 2.6.32.
4791         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4792         * README: Document Linux 3.2 requirement.
4793         * manual/install.texi (Linux): Document Linux 3.2 headers
4794         requirement.
4795         * INSTALL: Regenerated.
4796
4797 2016-02-24  Andreas Schwab  <schwab@suse.de>
4798
4799         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4800         if !NO_LONG_DOUBLE.
4801
4802 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4803
4804         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4805         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4806
4807 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4808
4809         [BZ #19512]
4810         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4811
4812 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4813
4814         * posix/tst-dir.c: Include libc-internal.h.
4815
4816 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4817
4818         [BZ #19056]
4819         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4820         * manual/filesys.texi (Reading/Closing Directory): Mention
4821         deprecaion.
4822         * posix/tst-dir.c (main): Disable deprecation warning in test.
4823
4824 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4825
4826         [BZ #19679]
4827         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4828         Renamed to ...
4829         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4830         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4831         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4832         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4833         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4834         * sysdeps/x86_64/dl-trampoline.h
4835         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4836         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4837
4838 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4839
4840         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4841
4842 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4843
4844         * elf/elf.h (R_386_GOT32X): New.
4845         (R_386_NUM): Update.
4846         (R_X86_64_GOTPCRELX: New.
4847         (R_X86_64_REX_GOTPCRELX): New.
4848         (R_X86_64_NUM): Update.
4849
4850 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4851
4852         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4853
4854 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4855
4856         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4857         assign attr->stackaddr to it, and adjust it down when
4858         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4859         [_STACK_GROWS_UP]: Delete assert.
4860         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4861         Implement stack grows up logic.
4862         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4863         stack grows up logic.
4864
4865 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4866
4867         * NEWS: Update with 2.24 template.
4868
4869 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4870
4871         [BZ #19678]
4872         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4873         Ensure +0.0 is returned when taking the next value below the least
4874         positive value.
4875
4876 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4877
4878         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4879         available.  Do not define NO_THREADS.
4880         * malloc/malloc.c: Do not check NO_THREADS.
4881         * malloc/arena.c: Likewise.
4882
4883 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4884
4885         * malloc/malloc.c (__libc_mallinfo): Update comment.
4886         (struct malloc_par): Remove max_total_mem member, it was always 0.
4887         (int_mallinfo): Store 0 into usmblks (no functional change).
4888         * malloc/hooks.c (struct malloc_state): Document that
4889         max_total_mem is always 0.
4890         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4891         always 0.
4892         * manual/memory.texi (Statistics of Malloc): Likewise.
4893
4894 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4895
4896         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4897         * malloc/arena.c (arena_max): Remove.
4898         (heap_trim, _int_new_arena): Do not update arena_max.
4899
4900 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4901
4902         * resolv/res_init.c (res_ninit): Update comment.
4903
4904 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4905
4906         [BZ #19505]
4907         * posix/spawn_int.h: Add headers and include guard.
4908         (__spawn_valid_fd): New function.
4909         * posix/spawn_faction_addopen.c
4910         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4911         * posix/spawn_faction_addclose.c
4912         (posix_spawn_file_actions_addclose): Likewise.
4913         * posix/spawn_faction_adddup2.c
4914         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4915         second file descriptor.
4916         * posix/spawn_valid_fd.c: New file.
4917         * posix/tst-posix_spawn-fd.c: New file.
4918         * posix/Makefile (routines): Add spawn_valid_fd.
4919         (tests): Add tst-posix_spawn-fd.
4920
4921 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4922
4923         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4924         (do_test): Limit the number of arenas, so that we can use fewer
4925         outer threads.  Limit timeout to 3 seconds, in preparation for a
4926         larger TIMEOUT value.
4927
4928 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4929
4930         [BZ #19674]
4931         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4932         sign in overflowing and underflowing results when overflow or
4933         underflow is detected early.  Include sign in result before rather
4934         than after scaling.
4935
4936         [BZ #19603]
4937         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4938         (__ieee754_remainderl): Adjust sign of integer version of low part
4939         when taking absolute value of high part.
4940         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4941         * math/libm-test.inc (remainder_test_data): Add another test.
4942         (remquo_test_data): Likewise.
4943
4944 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4945
4946         [BZ #19602]
4947         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4948         equal high parts and both low parts zero specially.
4949         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4950         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4951         Add test-fmodl-ldbl-128ibm.
4952
4953         [BZ #19595]
4954         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4955         common logic for all cases of shifting subnormal results.  Do not
4956         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4957         exponent to ldbl_insert_mantissa in subnormal case.
4958
4959         [BZ #19594]
4960         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4961         on high and low parts then adjust result and use
4962         ldbl_canonicalize_int if needed.
4963
4964         [BZ #19593]
4965         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4966         on high part and __floor or __ceil on low part then use
4967         ldbl_canonicalize_int if needed.
4968
4969         [BZ #19592]
4970         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4971         high and low parts then use ldbl_canonicalize_int if needed.
4972
4973         [BZ #17899]
4974         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4975         New function.
4976         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4977         on high and low parts then use ldbl_canonicalize_int if needed.
4978
4979 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4980
4981         * configure: Regenerated.
4982
4983         * po/libc.pot: Regenerated.
4984
4985         * po/be.po: Updated translation.
4986         * po/bg.po: Likewise.
4987         * po/ca.po: Likewise.
4988         * po/cs.po: Likewise.
4989         * po/da.po: Likewise.
4990         * po/el.po: Likewise.
4991         * po/eo.po: Likewise.
4992         * po/es.po: Likewise.
4993         * po/fi.po: Likewise.
4994         * po/fr.po: Likewise.
4995         * po/gl.po: Likewise.
4996         * po/hr.po: Likewise.
4997         * po/hu.po: Likewise.
4998         * po/ia.po: Likewise.
4999         * po/id.po: Likewise.
5000         * po/it.po: Likewise.
5001         * po/ja.po: Likewise.
5002         * po/lt.po: Likewise.
5003         * po/nb.po: Likewise.
5004         * po/nl.po: Likewise.
5005         * po/pt_BR.po: Likewise.
5006         * po/rw.po: Likewise.
5007         * po/sk.po: Likewise.
5008         * po/sl.po: Likewise.
5009         * po/sv.po: Likewise.
5010         * po/tr.po: Likewise.
5011         * po/zh_CN.po: Likewise.
5012         * po/zh_TW.po: Likewise.
5013
5014         * version.h (RELEAES): Set to "development".
5015         (VERSION): Set to 2.23.90.
5016
5017         * version.h (RELEASE): Set to "stable".
5018         (VERSION): Set to 2.23.
5019         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5020
5021         * NEWS: Updated fixed bugs.
5022
5023 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5024             Wilco Dijkstra  <wdijkstr@arm.com>
5025
5026         [BZ #19462]
5027         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5028         (_STRING_INLINE_unaligned): This.
5029         * include/string.h: Include <string_private.h>.
5030         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5031         _STRING_INLINE_unaligned.
5032         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5033         (_STRING_INLINE_unaligned): New.
5034         * sysdeps/aarch64/string_private.h: New file.
5035         * sysdeps/generic/string_private.h: Likewise.
5036         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5037         * sysdeps/s390/string_private.h: Likewise.
5038         * sysdeps/x86/string_private.h: Likewise.
5039         * sysdeps/m68k/m680x0/m68020/bits/string.h
5040         (_STRING_ARCH_unaligned): Renamed to ...
5041         (_STRING_INLINE_unaligned): This.
5042         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5043         to ...
5044         (_STRING_INLINE_unaligned): This.
5045         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5046         to ...
5047         (_STRING_INLINE_unaligned): This.
5048         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5049         to ...
5050         (_STRING_INLINE_unaligned): This.
5051
5052 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5053             H.J. Lu  <hongjiu.lu@intel.com>
5054
5055         [BZ #19590]
5056         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5057         relocation.
5058
5059 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5060
5061         [BZ #18665]
5062         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5063         *herrno_p.
5064         (gaih_getanswer): Document functional behviour. Return tryagain
5065         if any result is tryagain.
5066         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5067         when freed.
5068         * resolv/res_send.c: Add copyright text.
5069         (__libc_res_nsend): Document that MAXPACKET is expected.
5070         (send_vc): Document. Remove buffer reuse.
5071         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5072         size of the buffer. Add Dprint for truncated UDP buffer.
5073
5074 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5075
5076         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5077         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5078         * INSTALL: Regenerate.
5079
5080 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5081             Jonathan Wakely  <jwakely@redhat.com>
5082             Carlos O'Donell  <carlos@redhat.com>
5083
5084         [BZ 19439]
5085         * math/Makefile (tests): Add test-math-isinff.
5086         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5087         * math/bits/mathcalls.h [__USE_MISC]: Use
5088         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5089         functions not in C++11 and which don't conflict e.g. isinff,
5090         isinfl etc.
5091         * math/test-math-isinff.cc: New file.
5092
5093 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5094
5095         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5096
5097 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5098
5099         [BZ #19529]
5100         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5101
5102 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5103
5104         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5105
5106 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5107
5108         [BZ #19550]
5109         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5110         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5111         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5112         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5113         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5114         New syscall entry.
5115         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5116         New syscall entry.
5117         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5118         syscall entry.
5119
5120 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         [BZ #18240]
5123         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5124         unsigned int wraparound.
5125
5126 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5127
5128         [BZ #18240]
5129         * misc/bug18240.c: New test.
5130         * misc/Makefile (tests): Add it.
5131
5132 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5133             Joseph Myers  <joseph@codesourcery.com>
5134
5135         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5136         load in branch delay slot when less than a word of input left.
5137
5138 2016-01-27  Andreas Schwab  <schwab@suse.de>
5139
5140         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5141         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5142         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5143         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5144
5145 2016-01-26  David S. Miller  <davem@davemloft.net>
5146
5147         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5148
5149 2016-01-25  David S. Miller  <davem@davemloft.net>
5150
5151         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5152         __sqrtl_finite.
5153         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5154         instead using versioned_symbol.
5155         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5156         of entries.
5157
5158         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5159         __sqrtl_finite to GLIBC_2.23
5160
5161 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5162
5163         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5164
5165 2016-01-25  Andreas Schwab  <schwab@suse.de>
5166
5167         [BZ #17514]
5168         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5169         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5170         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5171         * nptl/tst-mutex-errorcheck.c: New file.
5172
5173 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5174
5175         [BZ #18560]
5176         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5177         (IPCOP_semop): Likewise.
5178         (IPCOP_semget): Likewise.
5179         (IPCOP_semctl): Likewise.
5180         (IPCOP_msgsnd): Likewise.
5181         (IPCOP_msgrcv): Likewise.
5182         (IPCOP_msgget): Likewise.
5183         (IPCOP_msgctl): Likewise.
5184         (IPCOP_shmat): Likewise.
5185         (IPCOP_shmdt): Likewise.
5186         (IPCOP_shmget): Likewise.
5187         (IPCOP_shmctl): Likewise.
5188
5189 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5190
5191         * string/tst-endian.c: Include <libc-internal.h>.
5192         (do_test): Ignore tautological-compare warnings around
5193         "htobeXX (beXXtoh (i)) != i" and
5194         "htoleXX (leXXtoh (i)) != i" if-statements.
5195
5196 2016-01-24  David S. Miller  <davem@davemloft.net>
5197
5198         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5199         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5200         alias.
5201         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5202         __sqrtl_finite.
5203
5204         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5205
5206 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5207
5208         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5209         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5210         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5211
5212 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5213
5214         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5215         (thread_func): Use new function to simplify barrier check.
5216         (do_test): Use new function to simplify checking barrier exit
5217         code, and actually join the child thread.
5218
5219 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5220
5221         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5222         semicolon.
5223         (__libc_tend): Likewise.
5224         (__libc_tabort): Likewise.
5225
5226 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5227
5228         * sysdeps/nios2/libm-test-ulps: Update.
5229         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5230         (__gtsf2): Likewise.
5231         (__unorddf2): Likewise.
5232         (__unordsf2): Likewise.
5233         (__ledf2): Likewise.
5234
5235 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5236
5237         * nis/nis_table.c (__follow_path): Disable diagnostic for
5238         uninitialized variable that is a false positive for gcc 4.7.
5239         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5240
5241 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5242
5243         * sysdeps/nacl/lowlevellock-futex.h
5244         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5245         Always evaluate PRIVATE argument.
5246
5247 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5248
5249         [BZ #19490]
5250         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5251         (pthread_cond_broadcast): Use ENTRY/END
5252         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5253         (pthread_cond_signal): Likewise.
5254         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5255         Likewise.
5256         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5257         Likewise.
5258         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5259         Likewise.
5260
5261 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5262
5263         * sysdeps/ieee754/dbl-64/s_finite.c
5264         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5265         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5266         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5267         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5268         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5269
5270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5271         (__gtsf2): Add as optional for libc.so.
5272         (__unordsf2): Likewise.
5273         (__signbit): Remove for libc.so.
5274         (__signbitl): Likewise.
5275
5276 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5277
5278         * iconvdata/bug-iconv11.c (test_ibm93x):
5279         Use %zu printf format specifier for size_t argument.
5280
5281 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5282
5283         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5284         already-recorded ulps.
5285         * sysdeps/arm/libm-test-ulps: Regenerated.
5286         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5287         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5288         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5289
5290 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5291             Paul Pluzhnikov  <ppluzhnikov@google.com>
5292
5293         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5294         assembler not supporting AVX-512.
5295
5296 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5297
5298         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5299
5300 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5301
5302         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5303         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5304
5305         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5306
5307         * sysdeps/arm/libm-test-ulps: Regenerated.
5308
5309 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5310
5311         [BZ #19451]
5312         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5313
5314 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5315
5316         [BZ #19486]
5317         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5318         * sysdeps/generic/fix-fp-int-convert-overflow.h
5319         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5320         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5321         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5322         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5323         Likewise.
5324         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5325         Avoid conversions to long int where inexact exceptions
5326         could be raised.
5327         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5328         Likewise.
5329         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5330         Avoid conversions to long long int where inexact exceptions
5331         could be raised.
5332         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5333         Likewise.
5334
5335 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5336
5337         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5338         * configure: Regenerated.
5339
5340 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5341
5342         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5343
5344 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5345
5346         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5347         outside of comment.
5348
5349 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5350
5351         * nptl/tst-barrier1.c: Add description on first line.
5352         * nptl/tst-barrier2.c: Likewise.
5353         * nptl/tst-barrier3.c: Likewise.
5354         * nptl/tst-barrier4.c: Likewise.
5355         * nptl/tst-barrier5.c: Likewise.
5356
5357 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5358
5359         [BZ #18868]
5360         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5361
5362 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5363
5364         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5365         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5366         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5367         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5368         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5369         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5370         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5371         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5372         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5373         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5374         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5375
5376 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5377
5378         [BZ #13065]
5379         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5380         new implementation.
5381         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5382         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5383         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5384         (BARRIER_IN_THRESHOLD): New macro.
5385         * nptl/pthread_barrierattr_setpshared.c
5386         (pthread_barrierattr_setpshared): Clean up.
5387         * nptl/tst-barrier4.c: Correct comment.
5388         * nptl/tst-barrier5.c: New file.
5389         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5390         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5391         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5392         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5393         * nptl/lowlevelbarrier.sym: Remove.
5394         * nptl/DESIGN-barrier.txt: Remove.
5395         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5396         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5397         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5398         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5399         error.
5400         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5401         implementation.
5402
5403 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5404
5405         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5406         (do_child): Mask SIGRTMIN while thr is running.
5407
5408 2016-01-15  Martin Sebor  <msebor@redhat.com>
5409
5410         [BZ #19432]
5411         * iconvdata/Makefile: Add bug-iconv11.
5412         * iconvdata/bug-iconv11.c: New test.
5413         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5414         * iconvdata/ibm933.c: Same.
5415         * iconvdata/ibm935.c: Same.
5416         * iconvdata/ibm937.c: Same.
5417         * iconvdata/ibm939.c: Same.
5418
5419 2016-01-15  Martin Sebor  <msebor@redhat.com>
5420
5421         [BZ #19443]
5422         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5423         [DEBUG] (_ufc_set_bits): Declare used.
5424         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5425         [DEBUG] (print_all): Declare used.
5426         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5427         operands of the ternary ?: expression to target type.
5428         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5429         calling the undeclared abort.
5430         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5431
5432 2016-01-15  Martin Sebor  <msebor@redhat.com>
5433
5434         [BZ #18755]
5435         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5436         warnings.
5437         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5438         (__gai_create_helper_thread): Same.
5439         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5440         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5441         to suppress -Wmaybe-uninitialized warnings.
5442
5443 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5444
5445         [BZ #19465]
5446         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5447         inside if.
5448         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5449         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5450         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5451
5452 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5453
5454         [BZ #19466]
5455         * time/tst-mktime2.c (time_t_max): Removed.
5456         (time_t_min): Likewise.
5457         (TYPE_SIGNED): New.
5458         (TYPE_MINIMUM): Likewise.
5459         (TYPE_MAXIMUM): Likewise.
5460         (TIME_T_MIN): Likewise.
5461         (TIME_T_MAX): Likewise.
5462         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5463         and TIME_T_MIN.
5464         (do_test): Likewise.
5465
5466 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5467
5468         [BZ #19467]
5469         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5470         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5471
5472 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5473
5474         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5475
5476 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5477
5478         * benchtests/Makefile (PYTHON): Define.
5479         (bench-func): Use $(PYTHON) to run python scripts.
5480         ($(objpfx)bench-%.c): Likewise.
5481
5482 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5483
5484         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5485         leading slash when `file_name' is "/".
5486
5487 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5488
5489         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5490         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5491         Likewise.
5492         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5493         Likewise.
5494         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5495         Likewise.
5496         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5497         enum constant and macro.
5498         (PTRACE_SETSIGMASK): Likewise.
5499         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5500         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5501         (PTRACE_GETSIGMASK): Likewise.
5502         (PTRACE_SETSIGMASK): Likewise.
5503         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5504         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5505         Likewise.
5506         (PTRACE_SETSIGMASK): Likewise.
5507         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5508         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5509         (PTRACE_GETSIGMASK): Likewise.
5510         (PTRACE_SETSIGMASK): Likewise.
5511         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5512         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5513         Likewise.
5514         (PTRACE_SETSIGMASK): Likewise.
5515         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5516         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5517         Likewise.
5518         (PTRACE_SETSIGMASK): Likewise.
5519         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5520         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5521         Likewise.
5522         (PTRACE_SETSIGMASK): Likewise.
5523         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5524
5525 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5526             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5527
5528         [BZ #19439]
5529         * math/bits/mathcalls.h
5530         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5531         prototype.
5532         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5533
5534 2016-01-11  Andreas Schwab  <schwab@suse.de>
5535
5536         [BZ #19253]
5537         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5538         cache when TZDEFRULES was used.
5539         * time/tst-tzname.c: New file.
5540         * time/Makefile (test): Add tst-tzname.
5541         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5542         * timezone/Makefile (test-zones): Add $(posixrules-file).
5543         ($(testdata)/$(posixrules-file)): New rule.
5544
5545 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5546
5547         Fix doc quoting problems with Texinfo 5
5548         Without this change, in the info file output, Texinfo 5 quotes code
5549         in text with undirected single quotes 'like this' and generates
5550         code examples that with many PDF readers cannot be cut out of PDFs
5551         and pasted into code.
5552         * manual/libc.texinfo: Configure the libc manual like the GNU
5553         Emacs manual, by using @documentencoding and setting
5554         txicodequoteundirected and txicodequotebacktick.  This way,
5555         Texinfo 5 quotes code in text with directed single quotes ‘like
5556         this’ and produces examples that can be cut out of PDFs.  This
5557         change causes Texinfo 5 to generate info files that contain UTF-8
5558         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5559         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5560
5561 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5562
5563         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5564         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5565         barriers to their respective compiler built-ins.
5566         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5567         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5568         * sysdeps/powerpc/sysdep.h: Likewise.
5569         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5570         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5571         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5572
5573 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5574
5575         * scripts/config.guess: Revert previous shebang change.
5576         * scripts/config.sub: Likewise.
5577         * scripts/mkinstalldirs: Likewise.
5578
5579 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5580
5581         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5582         PPC_FEATURE2_HAS_IEEE128.
5583         * sysdeps/powerpc/dl-procinfo.c:
5584         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5585
5586 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5587
5588         [BZ #19415]
5589         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5590         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5591         (_dl_lookup_address): Rewrite using function resolver trampoline.
5592         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5593         two bits in address.
5594
5595 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5596
5597         * longlong.h: Change !__SHMEDIA__ to
5598         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5599         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5600
5601 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5602             Joseph Myers  <joseph@codesourcery.com>
5603             Mark Shinwell  <shinwell@codesourcery.com>
5604             Andrew Stubbs  <ams@codesourcery.com>
5605             Rich Felker <dalias@libc.org>
5606
5607         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5608
5609 2016-01-07  Richard Henderson  <rth@redhat.com>
5610
5611         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5612
5613 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5614
5615         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5616         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5617         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5618         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5619         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5620
5621 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5622             Joseph Myers  <joseph@codesourcery.com>
5623
5624         * timezone/private.h: Update from tzcode 2015g.
5625         * timezone/tzfile.h: Likewise.
5626         * timezone/tzselect.ksh: Likewise.
5627         * timezone/zdump.c: Likewise.
5628         * timezone/zic.c: Likewise.
5629         * timezone/ialloc.c: Remove file.
5630         * timezone/scheck.c: Likewise.
5631         * timezone/Makefile (extra-objs): Remove variable.
5632         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5633         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5634         -Wno-maybe-uninitialized.
5635         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5636         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5637         (CFLAGS-ialloc.c): Remove variable.
5638         (CFLAGS-scheck.c): Likewise.
5639         * timezone/README: Update list of files from tzcode.
5640
5641 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5642
5643         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5644         instead of __fxprintf when _LIBC is undefined.
5645
5646 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5647
5648         * catgets/test-gencat.sh: Remove space after shebang.
5649         * conform/GlibcConform.pm: Likewise.
5650         * conform/check-header-lists.sh: Likewise.
5651         * conform/conformtest.pl: Likewise.
5652         * conform/linknamespace.pl: Likewise.
5653         * conform/list-header-symbols.pl: Likewise.
5654         * debug/catchsegv.sh: Likewise.
5655         * elf/genrtldtbl.awk: Likewise.
5656         * elf/tst-pathopt.sh: Likewise.
5657         * elf/tst-rtld-load-self.sh: Likewise.
5658         * grp/tst_fgetgrent.sh: Likewise.
5659         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5660         * iconvdata/gen-8bit-gap.sh: Likewise.
5661         * iconvdata/gen-8bit.sh: Likewise.
5662         * iconvdata/run-iconv-test.sh: Likewise.
5663         * intl/tst-gettext.sh: Likewise.
5664         * intl/tst-gettext2.sh: Likewise.
5665         * intl/tst-gettext4.sh: Likewise.
5666         * intl/tst-gettext6.sh: Likewise.
5667         * intl/tst-translit.sh: Likewise.
5668         * io/ftwtest-sh: Likewise.
5669         * libio/test-freopen.sh: Likewise.
5670         * locale/gen-translit.pl: Likewise.
5671         * malloc/tst-mtrace.sh: Likewise.
5672         * manual/check-safety.sh: Likewise.
5673         * manual/libc-texinfo.sh: Likewise.
5674         * manual/tsort.awk: Likewise.
5675         * manual/xtract-typefun.awk: Likewise.
5676         * nptl/tst-cancel-wrappers.sh: Likewise.
5677         * nptl/tst-tls6.sh: Likewise.
5678         * posix/globtest.sh: Likewise.
5679         * posix/tst-getconf.sh: Likewise.
5680         * posix/wordexp-tst.sh: Likewise.
5681         * scripts/check-c++-types.sh: Likewise.
5682         * scripts/check-local-headers.sh: Likewise.
5683         * scripts/config.guess: Likewise.
5684         * scripts/config.sub: Likewise.
5685         * scripts/cpp: Likewise.
5686         * scripts/cross-test-ssh.sh: Likewise.
5687         * scripts/documented.sh: Likewise.
5688         * scripts/evaluate-test.sh: Likewise.
5689         * scripts/gen-libc-abis: Likewise.
5690         * scripts/gen-sorted.awk: Likewise.
5691         * scripts/list-fixed-bugs.py: Likewise.
5692         * scripts/merge-test-results.sh: Likewise.
5693         * scripts/mkinstalldirs: Likewise.
5694         * scripts/rellns-sh: Likewise.
5695         * scripts/test-installation.pl: Likewise.
5696         * scripts/update-copyrights: Likewise.
5697         * stdio-common/tst-printf.sh: Likewise.
5698         * stdio-common/tst-unbputc.sh: Likewise.
5699         * stdlib/tst-fmtmsg.sh: Likewise.
5700         * stdlib/tst-setcontext3.sh: Likewise.
5701         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5702         * sysdeps/unix/make-syscalls.sh: Likewise.
5703
5704 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5705
5706         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5707         asm stw with atomic_exchange_rel.  Add explanatory comment.
5708         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5709         Likewise.
5710
5711 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5712
5713         [BZ #19122]
5714         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5715         * sysdeps/generic/dl-unistd.h: New file.
5716         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5717
5718 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5719
5720          [BZ #19122]
5721          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5722          * sysdeps/generic/dl-mman.h: New file.
5723          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5724
5725 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5726
5727         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5728         trailing whitespace removed.
5729         * scripts/config.guess: Update to version 2016-01-01.
5730         * scripts/config.sub: Update to version 2016-01-01.
5731         * scripts/move-if-change: Update from gnulib.
5732
5733 2016-01-04  Anton Blanchard  <anton@samba.org>
5734
5735         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5736         for array indices.
5737         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5738
5739 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5740
5741         * NEWS: Update copyright dates.
5742         * catgets/gencat.c (print_version): Likewise.
5743         * csu/version.c (banner): Likewise.
5744         * debug/catchsegv.sh: Likewise.
5745         * debug/pcprofiledump.c (print_version): Likewise.
5746         * debug/xtrace.sh (do_version): Likewise.
5747         * elf/ldconfig.c (print_version): Likewise.
5748         * elf/ldd.bash.in: Likewise.
5749         * elf/pldd.c (print_version): Likewise.
5750         * elf/sotruss.sh: Likewise.
5751         * elf/sprof.c (print_version): Likewise.
5752         * iconv/iconv_prog.c (print_version): Likewise.
5753         * iconv/iconvconfig.c (print_version): Likewise.
5754         * locale/programs/locale.c (print_version): Likewise.
5755         * locale/programs/localedef.c (print_version): Likewise.
5756         * login/programs/pt_chown.c (print_version): Likewise.
5757         * malloc/memusage.sh (do_version): Likewise.
5758         * malloc/memusagestat.c (print_version): Likewise.
5759         * malloc/mtrace.pl: Likewise.
5760         * manual/libc.texinfo: Likewise.
5761         * nptl/version.c (banner): Likewise.
5762         * nscd/nscd.c (print_version): Likewise.
5763         * nss/getent.c (print_version): Likewise.
5764         * nss/makedb.c (print_version): Likewise.
5765         * posix/getconf.c (main): Likewise.
5766         * scripts/test-installation.pl: Likewise.
5767         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5768
5769         * All files with FSF copyright notices: Update copyright dates
5770         using scripts/update-copyrights.
5771         * intl/plural.c: Regenerated.
5772         * locale/programs/charmap-kw.h: Likewise.
5773         * locale/programs/locfile-kw.h: Likewise.
5774
5775 2016-01-02  Helge Deller  <deller@gmx.de>
5776
5777         [BZ #19285]
5778         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5779         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5780         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5781         (MADV_xxK_PAGES): Remove.
5782
5783 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5784
5785         [BZ #15421]
5786         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5787         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5788         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5789         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5790
5791 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5792
5793         [BZ #19408]
5794         * sysdeps/unix/sysv/linux/personality.c: New file.
5795         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5796         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5797         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5798         (sysdep_routines): Add personality.
5799         (tests): Add tst-personality.
5800         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5801         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5802         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5803         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5804         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5805         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5806         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5807         Likewise.
5808         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5809         Likewise.
5810         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5811         Likewise.
5812         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5813         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5814         Likewise.
5815
5816 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5817
5818         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5819         (PATH_ARM_SYSTYPE): Remove.
5820         (PATH_CPUINFO): Likewise.
5821         (IO_BASE_FOOTBRIDGE): Likewise.
5822         (IO_SHIFT_FOOTBRIDGE): Likewise.
5823         (struct platform): Likewise.
5824         (init_iosys): Remove compatibility code for 2.4 kernels.
5825         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5826
5827 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5828
5829         * malloc/tst-malloc-thread-fail.c: New file.
5830         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5831         (tst-malloc-thread-fail): Link against libpthread.
5832
5833 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5834
5835         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5836         (get_parser): New function.
5837         (main): New function.
5838
5839 2015-12-29  Rob Wu  <rob@robwu.nl>
5840
5841         [BZ #19369]
5842         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5843
5844 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5845
5846         [BZ #19270]
5847         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5848
5849 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5850
5851         [BZ #15421]
5852         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5853
5854 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5855
5856         [BZ #13690]
5857         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5858         after releasing it.
5859         (__lll_robust_unlock): Likewise.
5860         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5861         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5862         (lll_robust_unlock): Likewise.
5863         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5864         Prevent warnings in callers.
5865
5866 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5867
5868         * malloc/arena.c (list_lock): Update comment.
5869
5870 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5871
5872         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5873         __parse_hwcap_and_convert_at_platform to libc.a.
5874
5875 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5876
5877         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5878         platform and feature support for POWER9.
5879         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5880         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5881         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5882         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5883         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5884         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5885         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5886         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5887
5888 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5889
5890         Harmonize generic stdio-lock support with nptl
5891
5892         This fixes build when _IO_funlockfile is a macro, fixes build where
5893         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5894         stack unwind.
5895
5896         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5897         _IO_release_lock ): Use cleanup attribute on new
5898         _IO_acquire_lock_file variable instead of assuming that
5899         _IO_release_lock will be called.
5900         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5901         _IO_acquire_lock_needs_exceptions_enabled.
5902         (_IO_acquire_lock_clear_flags2): New macro.
5903
5904 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5905
5906         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5907
5908 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5909
5910         [BZ #19182]
5911         * malloc/arena.c (list_lock): Document lock ordering requirements.
5912         (free_list_lock): New lock.
5913         (ptmalloc_lock_all): Comment on free_list_lock.
5914         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5915         (detach_arena): Update comment.  free_list_lock is now needed.
5916         (_int_new_arena): Use free_list_lock around detach_arena call.
5917         Acquire arena lock after list_lock.  Add comment, including FIXME
5918         about incorrect synchronization.
5919         (get_free_list): Switch to free_list_lock.
5920         (reused_arena): Acquire free_list_lock around detach_arena call
5921         and attached threads counter update.  Add two FIXMEs about
5922         incorrect synchronization.
5923         (arena_thread_freeres): Switch to free_list_lock.
5924         * malloc/malloc.c (struct malloc_state): Update comments to
5925         mention free_list_lock.
5926
5927 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5928
5929         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5930         Remove functions.
5931         (sloww, sloww1): Accept argument to offset quadrant.
5932         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5933         quadrant.
5934         (__sin, __cos): Consolidate common code into new functions.
5935         (reduce_sincos_1, do_sincos_1): New functions.
5936         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5937
5938         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5939         code to new functions.
5940         (reduce_sincos_2, do_sincos_2): New functions.
5941         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5942
5943         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5944         common code for sincos.
5945         (__cos) [!IN_SINCOS]: Likewise.
5946         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5947         New function.
5948         (__sincos): Use it.
5949
5950 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5951
5952         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5953         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5954         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5955
5956 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5957
5958         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5959         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5960         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5961         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5962         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5963         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5964         index_Prefer_No_VZEROUPPER): New feature.
5965         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5966         Prefer_No_VZEROUPPER for Knights Landing.
5967
5968 015-12-18  Torvald Riegel  <triegel@redhat.com>
5969
5970         * math/atest-exp2.c (mp_exp_m1): Remove.
5971
5972 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5973
5974         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5975         syscalls.
5976         (__SYSCALL0): New macro.
5977         (__SYSCALL1): Likewise.
5978         (__SYSCALL2): Likewise.
5979         (__SYSCALL3): Likewise.
5980         (__SYSCALL4): Likewise.
5981         (__SYSCALL5): Likewise.
5982         (__SYSCALL6): Likewise.
5983         (__SYSCALL_CONCAT_X): Likewise.
5984         (__SYSCALL_CONCAT): Likewise.
5985         (__SYSCALL_DIST): Likewise.
5986         (__SYSCALL_CALL): Likewise.
5987
5988 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5989
5990         [BZ #19363]
5991         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5992
5993 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5994
5995         [BZ #19375]
5996         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5997         negative subnormals.
5998
5999 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6000
6001         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6002         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6003         (INTERNAL_SYSCALL_NCS): Use it.
6004         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6005
6006 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6007
6008         [BZ #19243]
6009         * malloc/arena.c (get_free_list): Remove assert and adjust
6010         reference count handling.  Add comment about reused_arena
6011         interaction.
6012         (reused_arena): Add comments abount get_free_list interaction.
6013         * malloc/tst-malloc-thread-exit.c: New file.
6014         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6015         (tst-malloc-thread-exit): Link against libpthread.
6016
6017 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6018
6019         [BZ #19367]
6020         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6021         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6022         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6023         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6024         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6025
6026 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6027
6028         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6029         Silvermont optimizations for Knights Landing.
6030
6031 2015-12-15  Andreas Schwab  <schwab@suse.de>
6032
6033         [BZ #17197]
6034         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6035         immediately after emitting SI.
6036         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6037         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6038         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6039         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6040         * iconvdata/bug-iconv10.c: New file.
6041         * iconvdata/Makefile (tests): Add bug-iconv10.
6042         ($(objpfx)bug-iconv10.out): New rule.
6043
6044 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6045
6046         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6047         aliasing violation.
6048
6049 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6050
6051         [BZ #18472]
6052         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6053         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6054         conditionals for them.
6055         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6056         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6057         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6058         sys/kdaemon.h.
6059         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6060         compat-only syscall, obsoleted in glibc 2.23.
6061         (create_module): Likewise.
6062         (get_kernel_syms): Likewise.
6063         (query_module): Likewise.
6064         (uselib): Likewise.
6065         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6066
6067 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6068
6069         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6070         <linux/version.h>.
6071         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6072         conditional code.
6073         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6074         and ioshift_name initialization.
6075
6076 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6077
6078         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6079         Fix indentation.
6080
6081 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6082
6083         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6084
6085 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6086
6087         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6088
6089 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6090             Jakub Wilk  <jwilk@debian.org>
6091
6092         [BZ #19347]
6093         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6094         to change the group of the device to the tty group.
6095
6096 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6097
6098         Split large string section; add truncation advice
6099         * manual/examples/strncat.c: Remove.
6100         This example was misleading, as the code would have undefined
6101         behavior if "hello" was longer than SIZE.  Anyway, the manual
6102         shouldn't encourage strncpy+strncat for this sort of thing.
6103         * manual/string.texi (Copying Strings and Arrays): Split into
6104         three sections Copying Strings and Arrays, Concatenating Strings,
6105         and Truncating Strings, as this section was way too long.  All
6106         cross-referenced changed.  Add advice about string-truncation
6107         functions.  Remove misleading strncat example.
6108
6109 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6110
6111         * manual/nss.texi (NSS Modules Interface): Document
6112         NSS_STATUS_NOTFOUND and SUCCESS.
6113
6114 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6115
6116         [BZ 18568]
6117         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6118         201505L, for Unicode 8.
6119
6120 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6121
6122         * locale/C-translit.h: Regenerate.
6123
6124 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6125
6126         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6127         and U+0153.
6128
6129 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6130
6131         [BZ #19351]
6132         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6133         expanding log(1+z), compare z rather than its square with epsilon
6134         to determine when to avoid evaluating the expansion.
6135
6136         [BZ #19350]
6137         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6138         Increase overflow threshold.
6139
6140         [BZ #19349]
6141         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6142         when small.
6143
6144         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6145         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6146         New macro.
6147         [__LINUX_KERNEL_VERSION >= 0x040300]
6148         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6149         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6150         Likewise.
6151         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6152         Likewise.
6153         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6154         Likewise.
6155         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6156         Likewise.
6157         [__LINUX_KERNEL_VERSION >= 0x040300]
6158         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6159         [__LINUX_KERNEL_VERSION >= 0x040300]
6160         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6161         [__LINUX_KERNEL_VERSION >= 0x040300]
6162         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6163         [__LINUX_KERNEL_VERSION >= 0x040300]
6164         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6165         [__LINUX_KERNEL_VERSION >= 0x040300]
6166         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6167         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6168         Likewise.
6169         [__LINUX_KERNEL_VERSION >= 0x040300]
6170         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6171         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6172         Likewise.
6173         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6174         Likewise.
6175         [__LINUX_KERNEL_VERSION >= 0x040300]
6176         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6177         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6178         Likewise.
6179         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6180         Likewise.
6181         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6182         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6183         Likewise.
6184         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6185         Likewise.
6186         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6187         Likewise.
6188         [__LINUX_KERNEL_VERSION >= 0x040300]
6189         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6190         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6191         Likewise.
6192         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6193         Likewise.
6194         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6195         Likewise.
6196         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6197         Likewise.
6198         [__LINUX_KERNEL_VERSION >= 0x040300]
6199         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6200         [__LINUX_KERNEL_VERSION >= 0x040300]
6201         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6202         [__LINUX_KERNEL_VERSION >= 0x040300]
6203         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6204         [__LINUX_KERNEL_VERSION >= 0x040300]
6205         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6206         [__LINUX_KERNEL_VERSION >= 0x040300]
6207         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6208         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6209         Likewise.
6210         [__LINUX_KERNEL_VERSION >= 0x040300]
6211         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6212         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6213         Likewise.
6214         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6215         Likewise.
6216         [__LINUX_KERNEL_VERSION >= 0x040300]
6217         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6218         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6219         Likewise.
6220         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6221         Likewise.
6222         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6223         (__ASSUME_SOCKET_SYSCALL): Likewise.
6224         (__ASSUME_BIND_SYSCALL): Likewise.
6225         (__ASSUME_CONNECT_SYSCALL): Likewise.
6226         (__ASSUME_LISTEN_SYSCALL): Likewise.
6227         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6228         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6229         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6230         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6231         (__ASSUME_SEND_SYSCALL): Likewise.
6232         (__ASSUME_SENDTO_SYSCALL): Likewise.
6233         (__ASSUME_RECV_SYSCALL): Likewise.
6234         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6235         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6236         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6237         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6238         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6239         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6240         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6241         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6242         Likewise.
6243         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6244         Likewise.
6245         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6246         Likewise.
6247         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6248         Likewise.
6249         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6250         Likewise.
6251         [__LINUX_KERNEL_VERSION >= 0x020625]
6252         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6253         [__LINUX_KERNEL_VERSION >= 0x020625]
6254         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6255         [__LINUX_KERNEL_VERSION >= 0x020625]
6256         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6257         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6258         Likewise.
6259         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6260         Likewise.
6261         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6262         Likewise.
6263         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6264         Likewise.
6265         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6266         Likewise.
6267         [__LINUX_KERNEL_VERSION >= 0x020625]
6268         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6269         [__LINUX_KERNEL_VERSION >= 0x020625]
6270         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6271         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6272         Likewise.
6273         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6274         Likewise.
6275
6276 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6277
6278         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6279         record the current if the current ABI and CPU support the FP64
6280         extension.
6281         (has-modd-spreg): Define to record the current if the current ABI and
6282         CPU support 32-bit floating point values in odd FPU registers.
6283         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6284         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6285         $(has-modd-spreg) equals yes.
6286         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6287         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6288         $(has-modd-spreg) equal yes.
6289
6290 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6291
6292         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6293         basename.
6294
6295 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6296
6297         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6298         (bench-string): ... here.
6299         (bench): Add bench-string.
6300         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6301         to *-benchset to reflect what they are.
6302         (benchset): Adjust.
6303
6304         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6305         cos-inputs.
6306
6307 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6308
6309         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6310         __attribute__ ((__simd__)) for vector math function declarations.
6311
6312 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6313
6314         Fix typo in strncat, wcsncat manual entries
6315         * manual/string.texi (Copying and Concatenation): Fix typos in
6316         sample implementations of strncat and wcsncat, by having them use
6317         the old value of the destination length, not the new one.
6318
6319 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6320
6321         [BZ #16961]
6322         [BZ #16962]
6323         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6324         string on the stack for strtod.
6325         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6326         a string on the stack for strtof.
6327         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6328         constructing a string on the stack for strtold.
6329         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6330         __strtold_nan to GLIBC_PRIVATE.
6331         * math/test-nan-overflow.c: New file.
6332         * math/test-nan-payload.c: Likewise.
6333         * math/Makefile (tests): Add test-nan-overflow and
6334         test-nan-payload.
6335
6336 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6337
6338         Consistency about byte vs character in string.texi
6339         * manual/string.texi (String and Array Utilities):
6340         Distinguish more carefully among bytes, multibyte characters,
6341         and wide characters.  Use "byte" when talking about C 'char',
6342         to distinguish it more clearly from multibyte characters.
6343         Say "wide character" or "multibyte character" instead of
6344         "character", when a wide or multibyte character is intended.
6345         Similarly for "multibyte string" versus "string".
6346         Define these terms more carefully.
6347
6348 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6349
6350         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6351         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6352         Likewise.
6353         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6354         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6355         * sysdeps/sh/math_private.h: New file.
6356         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6357         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6358         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6359         long double function name.
6360         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6361         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6362         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6363         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6364         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6365         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6366         Remove __finitel, __isinfl, and __isnanl.
6367         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6368         Likewise.
6369         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6370         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6371         Remove __finitel.
6372         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6373         Likewise.
6374         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6375
6376 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6377
6378         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6379         installed libmvec_nonshared.a.
6380
6381 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6382
6383         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6384         (sysdep_routines): Likewise.
6385         (sysdep-rtld-routines): Likewise.
6386         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6387         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6388         * sysdeps/powerpc/Versions: Added new
6389         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6390         * sysdeps/powerpc/hwcapinfo.c: New file.
6391         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6392         and parse hwcap, hwcap2 and platform number information.
6393         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6394         to store HWCAP+HWCAP2 and platform number.
6395         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6396         for HWCAP+HWCAP2 and platform number in the TCB.
6397         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6398         the HWCAP, HWCAP2 and platform number in the TCB.
6399         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6400         (TLS_INIT_TP): Included calls to add the hwcap and
6401         at_platform values in the TCB in TP initialization.
6402         (TLS_DEFINE_INIT_TP): Likewise.
6403         (THREAD_GET_HWCAP): New macro.
6404         (THREAD_SET_HWCAP): Likewise.
6405         (THREAD_GET_AT_PLATFORM): Likewise.
6406         (THREAD_SET_AT_PLATFORM): Likewise.
6407         * sysdeps/powerpc/powerpc32/dl-machine.h:
6408         (dl_platform_init): New function that calls
6409         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6410         powerpc32.
6411         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6412         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6413         this functionality, static linking case.
6414         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6415         linking case.
6416         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6417         __parse_hwcap_and_convert_at_platform for the static linking case.
6418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6419         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6420         ABI list for GLIBC 2.23.
6421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6422         Likewise.
6423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6424         Likewise.
6425
6426 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6427
6428         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6429         * configure: Regenerate.
6430         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6431         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6432
6433 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6434
6435         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6436         * iconvdata/ibm933.c: Likewise.
6437         * iconvdata/ibm935.c: Likewise.
6438         * iconvdata/ibm937.c: Likewise.
6439         * iconvdata/ibm939.c: Likewise.
6440
6441 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6442
6443         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6444         pthread_join.
6445         * nptl/tst-cancel21.c (tf): Likewise.
6446
6447 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6448
6449         [BZ #19313]
6450         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6451         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6452         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6453         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6454         Likewise.
6455         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6456         Likewise.
6457         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6458         Likewise.
6459         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6460         Likewise.
6461         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6462         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6463         unsigned long int with __CPU_MASK_TYPE.
6464
6465 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6466
6467         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6468
6469 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6470
6471         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6472         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6473         t512.x.
6474         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6475
6476 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6477
6478         [BZ #19214]
6479         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6480         argument to return extended model.  Update family and model
6481         with extended family and model when family == 0x0f.
6482         (init_cpu_features): Updated.
6483
6484 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6485
6486         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6487         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6488
6489         * sysdeps/mach/hurd/mmap64.c: New file.
6490
6491 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6492
6493         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6494         rights for its main user thread in NEWTASK.
6495
6496 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6497
6498         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6499         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6500
6501 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6502
6503         [BZ #14259]
6504         * Makeconfig: Rename localedir to complocaledir.
6505         Rename inst_localedir to inst_complocaledir.
6506         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6507         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6508         * configure.ac: Use libc_cv_complocaledir.
6509         * configure: Regenerate.
6510         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6511         -DCOMPLOCALEDIR.
6512         * locale/findlocale.c: Use COMPLOCALEDIR.
6513         * locale/loadarchive.c: Likewise.
6514         * locale/programs/locale.c: Likewise.
6515         * locale/programs/localedef.c: Likewise.
6516         * locale/programs/locarchive.c: Likewise.
6517         * localedata/Makefile: Use inst_complocaledir.
6518         * sysdeps/gnu/configure: Regenerate.
6519         * sysdeps/hppa/configure: Regenerate.
6520         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6521         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6523         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6524         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6525         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6526         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6527
6528 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6529
6530         [BZ #19058]
6531         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6532         AS_NEEDED.
6533         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6534         workaround.
6535         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6536         libmvec-static-only-routines): Added new file.
6537         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6538
6539 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6540
6541         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6542         of interrupted RPC instead of restoring it.
6543
6544         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6545         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6546         libc_hidden_def.
6547         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6548         into initialized data instead of common. Define rtld_hidden_data_def.
6549         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6550         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6551         libc_hidden_def.
6552         (if_freenameindex): Add libc_hidden_weak.
6553         (if_nameindex): Add libc_hidden_weak.
6554         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6555         __open64.
6556         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6557         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6558         * sysdeps/mach/nanosleep.c: Include <time.h>
6559         (__nanosleep): Rename to __libc_nanosleep.
6560         (__nanosleep): Add weak_alias.
6561         (nanosleep): Update alias.
6562
6563 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6564
6565         * stdlib/strtod_nan.c: New file.
6566         * stdlib/strtod_nan_double.h: Likewise.
6567         * stdlib/strtod_nan_float.h: Likewise.
6568         * stdlib/strtod_nan_main.c: Likewise.
6569         * stdlib/strtod_nan_narrow.h: Likewise.
6570         * stdlib/strtod_nan_wide.h: Likewise.
6571         * stdlib/strtof_nan.c: Likewise.
6572         * stdlib/strtold_nan.c: Likewise.
6573         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6574         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6575         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6576         * wcsmbs/wcstod_nan.c: Likewise.
6577         * wcsmbs/wcstof_nan.c: Likewise.
6578         * wcsmbs/wcstold_nan.c: Likewise.
6579         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6580         strtold_nan.
6581         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6582         wcstof_nan.
6583         * include/stdlib.h (__strtof_nan): Declare and use
6584         libc_hidden_proto.
6585         (__strtod_nan): Likewise.
6586         (__strtold_nan): Likewise.
6587         (__wcstof_nan): Likewise.
6588         (__wcstod_nan): Likewise.
6589         (__wcstold_nan): Likewise.
6590         * include/wchar.h (____wcstoull_l_internal): Declare.
6591         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6592         (____strtoull_l_internal): Remove declaration.
6593         (STRTOF_NAN): Define macro.
6594         (SET_MANTISSA): Remove macro.
6595         (STRTOULL): Likewise.
6596         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6597         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6598         (STRTOF_NAN): Define macro.
6599         (SET_MANTISSA): Remove macro.
6600         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6601         (SET_MANTISSA): Remove macro.
6602         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6603         macro.
6604         (SET_MANTISSA): Remove macro.
6605         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6606         macro.
6607         (SET_MANTISSA): Remove macro.
6608         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6609         (SET_MANTISSA): Remove macro.
6610         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6611         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6612         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6613
6614         [BZ #19266]
6615         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6616         upper case and lower case letters inside NAN(), not using TOLOWER.
6617         * stdlib/tst-strtod-nan-locale-main.c: New file.
6618         * stdlib/tst-strtod-nan-locale.c: Likewise.
6619         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6620         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6621         Depend on $(gen-locales).
6622         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6623         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6624         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6625         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6626         Depend on $(gen-locales).
6627         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6628
6629 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6630
6631         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6632
6633         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6634         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6635         __finitel, __isinfl, and __isnanl.
6636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6637         Likewise.
6638         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6639         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6640         __finitel.
6641         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6642         Likewise.
6643         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6644
6645 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6646
6647         * malloc/memusage.c (me): Remove redundant getenv call.
6648
6649 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6650
6651         [BZ #19143]
6652         [BZ #19164]
6653         * nptl/check-cpuset.h: Remove.
6654         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6655         Remove CPU set size check.
6656         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6657         Likewise.
6658         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6659         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6660         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6661         (__pthread_setaffinity_new): Remove CPU set size check.
6662         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6663         (__kernel_cpumask_size): Remove.
6664         (__sched_setaffinity_new): Remove CPU set size check.
6665         * manual/threads.texi (Default Thread Attributes): Remove stale
6666         reference to check_cpuset_attr, determine_cpumask_size in comment.
6667         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6668         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6669         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6670         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6671         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6672         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6673         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6674         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6675         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6676         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6677         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6678         skeleton test file.
6679         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6680         tst-affinity-pid.
6681
6682 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6683
6684         * scripts/update-abilist.sh: New file.
6685         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6686         * Makerules (update-all-abi-%, update-all-abi)
6687         (subdir_update-all-abi): New targets.
6688         * elf/Makefile (update-all-abi): New target.
6689
6690 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6691
6692         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6693         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6694         (__libc_lock_define_initialized): Use it.
6695         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6696         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6697         * malloc/malloc.c (main_arena): Likewise.
6698         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6699         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6700
6701 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6702
6703         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6704         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6705         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6706         (PTRACE_O_MASK): Update value.
6707         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6708         New value in enum __ptrace_setoptions.
6709         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6710         (PTRACE_O_MASK): Update value.
6711         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6712         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6713         (PTRACE_O_MASK): Update value.
6714         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6715         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6716         (PTRACE_O_MASK): Update value.
6717         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6718         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6719         (PTRACE_O_MASK): Update value.
6720         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6721         New value in enum __ptrace_setoptions.
6722         (PTRACE_O_MASK): Update value.
6723         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6724         New value in enum __ptrace_setoptions.
6725         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6726         (PTRACE_O_MASK): Update value.
6727
6728         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6729         New macro.
6730         (PACKET_AUXDATA): Likewise.
6731         (PACKET_ORIGDEV): Likewise.
6732         (PACKET_VERSION): Likewise.
6733         (PACKET_HDRLEN): Likewise.
6734         (PACKET_RESERVE): Likewise.
6735         (PACKET_TX_RING): Likewise.
6736         (PACKET_LOSS): Likewise.
6737         (PACKET_VNET_HDR): Likewise.
6738         (PACKET_TX_TIMESTAMP): Likewise.
6739         (PACKET_TIMESTAMP): Likewise.
6740         (PACKET_FANOUT): Likewise.
6741         (PACKET_TX_HAS_OFF): Likewise.
6742         (PACKET_QDISC_BYPASS): Likewise.
6743         (PACKET_ROLLOVER_STATS): Likewise.
6744         (PACKET_FANOUT_DATA): Likewise.
6745         (PACKET_MR_UNICAST): Likewise.
6746
6747         [BZ #19242]
6748         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6749         (TOUPPER): Likewise.
6750         * stdlib/tst-strtol-locale-main.c: New file.
6751         * stdlib/tst-strtol-locale.c: Likewise.
6752         * stdlib/Makefile (tests): Add tst-strtol-locale.
6753         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6754         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6755         Depend on $(gen-locales).
6756         * wcsmbs/tst-wcstol-locale.c: New file.
6757         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6758         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6759         tr_TR.ISO-8859-9.
6760         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6761         Depend on $(gen-locales).
6762
6763 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6764
6765         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6766         __glibc_likely instead of __builtin_expect.  After falling back to
6767         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6768         system interface to register the code pages as occupied.
6769
6770 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6771
6772         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6773         [!ARM_MATH_PRIVATE_H].
6774         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6775         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6776         [!HPPA_MATH_PRIVATE_H].
6777         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6778         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6779         to [!I386_MATH_PRIVATE_H].
6780         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6781         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6782         Change guard to [!M68K_MATH_PRIVATE_H].
6783         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6784         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6785         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6786         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6787         macro.
6788         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6789         [!MIPS_MATH_PRIVATE_H].
6790         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6791         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6792         [!NIO2_MATH_PRIVATE_H].
6793         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6794         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6795         [!TILE_MATH_PRIVATE_H].
6796         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6797
6798         [BZ #15421]
6799         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6800         initialize with 0 and define as weak alias of __signgam.
6801         * include/math.h [!_ISOMAC] (__signgam): Declare.
6802         * math/Makefile (libm-calls): Add w_lgamma_compat.
6803         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6804         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6805         test-signgam-ullong-init.
6806         (tests-static): Add test-signgam-uchar-static,
6807         test-signgam-uchar-init-static, test-signgam-uint-static,
6808         test-signgam-uint-init-static, test-signgam-ullong-static and
6809         test-signgam-ullong-init-static.
6810         (CFLAGS-test-signgam-uchar.c): New variable.
6811         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6812         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6813         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6814         (CFLAGS-test-signgam-uint.c): Likewise.
6815         (CFLAGS-test-signgam-uint-init.c): Likewise.
6816         (CFLAGS-test-signgam-uint-static.c): Likewise.
6817         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6818         (CFLAGS-test-signgam-ullong.c): Likewise.
6819         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6820         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6821         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6822         * math/Versions (libm): Add GLIBC_2.23.
6823         * math/lgamma-compat.h: New file.
6824         * math/test-signgam-main.c: Likewise.
6825         * math/test-signgam-uchar-init-static.c: Likewise.
6826         * math/test-signgam-uchar-init.c: Likewise.
6827         * math/test-signgam-uchar-static.c: Likewise.
6828         * math/test-signgam-uchar.c: Likewise.
6829         * math/test-signgam-uint-init-static.c: Likewise.
6830         * math/test-signgam-uint-init.c: Likewise.
6831         * math/test-signgam-uint-static.c: Likewise.
6832         * math/test-signgam-uint.c: Likewise.
6833         * math/test-signgam-ullong-init-static.c: Likewise.
6834         * math/test-signgam-ullong-init.c: Likewise.
6835         * math/test-signgam-ullong-static.c: Likewise.
6836         * math/test-signgam-ullong.c: Likewise.
6837         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6838         wrapper of w_lgamma_main.c.
6839         * math/w_lgamma_compat.c: New file.
6840         * math/w_lgamma_compatf.c: Likewise.
6841         * math/w_lgamma_compatl.c: Likewise.
6842         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6843         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6844         defining compatibility symbols.
6845         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6846         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6847         wrapper of w_lgammaf_main.c.
6848         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6849         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6850         defining compatibility symbols.
6851         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6852         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6853         wrapper of w_lgammal_main.c.
6854         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6855         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6856         defining compatibility symbols.
6857         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6858         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6859         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6860         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6861         <lgamma-compat.h>.
6862         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6863         (__ieee754_gamma): Define as alias.
6864         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6865         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6866         <lgamma-compat.h>.
6867         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6868         (__ieee754_gammaf): Define as alias.
6869         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6870         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6871         <lgamma-compat.h>.
6872         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6873         (__ieee754_gammal): Define as alias.
6874         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6875         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6876         <math/w_lgamma_compat.c>.
6877         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6878         Define as alias of __lgamma_compat and use in defining lgammal.
6879         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6880         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6881         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6882         (USE_AS_COMPAT): New macro.
6883         (LGAMMA_OLD_VER): Undefine and redefine.
6884         (lgammal): Do not define here.
6885         (gammal): Only define here if [GAMMA_ALIAS].
6886         * conform/linknamespace.pl (@whitelist): Remove signgam.
6887         * sysdeps/nacl/libm.abilist: Update.
6888         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6889         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6890         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6891         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6892         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6893         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6894         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6895         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6896         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6897         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6898         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6899         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6901         Likewise.
6902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6903         Likewise.
6904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6905         Likewise.
6906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6907         Likewise.
6908         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6909         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6910         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6911         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6912         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6913         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6914         Likewise.
6915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6916         Likewise.
6917         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6918         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6919         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6920
6921 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6922
6923         [BZ #16364]
6924         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6925         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6926
6927 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6928
6929         * sysdeps/s390/fpu/bits/mathinline.h:
6930         Use __asm__ [__volatile__] instead of asm [volatile].
6931         * sysdeps/s390/abort-instr.h: Likewise.
6932         * sysdeps/s390/atomic-machine.h: Likewise.
6933         * sysdeps/s390/bits/string.h: Likewise.
6934         * sysdeps/s390/dl-tls.h: Likewise.
6935         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6936         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6937         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6938         * sysdeps/s390/fpu/fesetround.c: Likewise.
6939         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6940         * sysdeps/s390/fpu/s_fma.c: Likewise.
6941         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6942         * sysdeps/s390/memusage.h: Likewise.
6943         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6944         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6945         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6946         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6947         * sysdeps/s390/nptl/tls.h: Likewise.
6948         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6949         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6950         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6951         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6952         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6953         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6954         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6955         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6956         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6957         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6958         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6959         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6960         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6961         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6962         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6963         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6964         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6965         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6966         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6967         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6968         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6969         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6970         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6971
6972 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6973             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6974
6975         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6976         Add lwarx hint, and use macro for acquire instruction.
6977         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6978         Likewise.
6979         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6980         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6981         update to use new atomic macros.
6982
6983 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6984
6985         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6986         (__lll_trylock_elision): Fix setting of adapt_count.
6987         * sysdeps/unix/sysv/linux/powerpc/htm.h
6988         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6989         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6990         (_ABORT_SYSCALL): Renumber, and clarify definition.
6991         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6992
6993 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6994
6995         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6996         after system headers to prevent MIN/MAX redefinition.  Define
6997         HAVE_ALLOCA to preserve builtin alloca usage.
6998
6999 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7000
7001         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7002         static and don't set or restore rounding.
7003         (__cos)[IN_SINCOS]: Likewise.
7004         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7005         (__sincos): Set and restore rounding mode.  Remove check for infinite
7006         or NaN input.
7007
7008         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7009
7010         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7011         as used.
7012
7013 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7014
7015         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7016
7017 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7018
7019         * config.make.in (have-glob-dat-reloc): New.
7020         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7021         target supports GLOB_DAT relocaton. AC_SUBST.
7022         * configure: Regenerated.
7023         * elf/Makefile (tests): Add tst-prelink.
7024         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7025         (tst-prelink-ENV): New.
7026         ($(objpfx)tst-prelink-conflict.out): Likewise.
7027         ($(objpfx)tst-prelink-cmp.out): Likewise.
7028         * sysdeps/x86/tst-prelink.c: Moved to ...
7029         * elf/tst-prelink.c: Here.
7030         * sysdeps/x86/tst-prelink.exp: Moved to ...
7031         * elf/tst-prelink.exp: Here.
7032         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7033         (tst-prelink-ENV): Removed.
7034         ($(objpfx)tst-prelink-conflict.out): Likewise.
7035         ($(objpfx)tst-prelink-cmp.out): Likewise.
7036         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7037
7038 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7039
7040         [BZ #14551]
7041         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7042         (__mpn_construct_long_double): If high part overflows to infinity,
7043         set errno and recompute overflowed result of the correct sign.
7044         * sysdeps/ieee754/ldbl-128ibm/Makefile
7045         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7046         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7047         $(libm).
7048         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7049
7050 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7051
7052         [BZ #15479]
7053         [BZ #19238]
7054         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7055         floating-point state after first operation on input.  Restore full
7056         state rather than just rounding mode.
7057         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7058         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7059         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7060
7061         [BZ #19235]
7062         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7063         add 0.5 to integer arguments.
7064         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7065         Likewise.
7066         (.LC2): New object.
7067
7068 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7069
7070         * scripts/pylintrc (reports): Set to no.
7071
7072 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7073
7074         * elf/dl-load.c (open_verify): Take new argument FD.
7075         Skip __open call if passed FD is not -1.
7076         (_dl_map_object, open_path): Update callers.
7077         * elf/dl-sysdep-open.h: New file.
7078         * elf/dl-load.c: Include it.
7079         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7080         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7081         * sysdeps/nacl/dl-sysdep-open.h: New file.
7082         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7083         from libc to rtld.
7084
7085 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7086
7087         [BZ #19228]
7088         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7089         and restore full floating-point state.
7090         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7091         Likewise.
7092         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7093         Likewise.
7094         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7095         Likewise.
7096         * math/test-nearbyint-except-2.c: New file.
7097         * math/Makefile (tests): Add test-nearbyint-except-2.
7098
7099 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7100
7101         [BZ #19178]
7102         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7103         (tst-prelink-ENV): New.
7104         ($(objpfx)tst-prelink-conflict.out): Likewise.
7105         ($(objpfx)tst-prelink-cmp.out): Likewise.
7106         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7107         * sysdeps/x86/tst-prelink.c: New file.
7108         * sysdeps/x86/tst-prelink.exp: Likewise.
7109
7110 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7111
7112         * math/auto-libm-test-in: Add another test of pow.
7113         * math/auto-libm-test-out: Regenerated.
7114         * math/libm-test.inc (pow_test_data): Add another test.
7115
7116 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7117
7118         [BZ #19219]
7119         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7120         weak_alias to nearbyintl.
7121
7122 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7123
7124         * sysdeps/aarch64/bits/string.h: New file.
7125         (_STRING_ARCH_unaligned): Define.
7126
7127 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7128
7129         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7130         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7131         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7132         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7134
7135 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7136
7137         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7138         for original name of the DSO.  Add it to the name list of the DSO
7139         if it is actually given.
7140         (_dl_map_object): Keep track of whether an audit module rewrote
7141         the file name.  If yes, pass the original name to
7142         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7143         debugging is enabled, log the change of the file name.
7144         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7145         _dl_map_object_from_fd.
7146         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7147         * elf/tst-audit11.c: New file
7148         * elf/tst-auditmod11.c: New file.
7149         * elf/tst-audit11mod1.c: New file.
7150         * elf/tst-audit11mod2.c: New file.
7151         * elf/tst-audit11mod2.map: New file.
7152         * elf/tst-audit12.c: New file
7153         * elf/tst-auditmod12.c: New file.
7154         * elf/tst-audit12mod1.c: New file.
7155         * elf/tst-audit12mod2.c: New file.
7156         * elf/tst-audit12mod2.map: New file.
7157         * elf/tst-audit12mod3.c: New file.
7158
7159 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7160
7161         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7162         Don't create weak aliases,
7163         because versioned symbols are created later.
7164         * sysdeps/s390/s390-32/setjmp.S
7165         (setjmp, _setjmp): Remove weak and rename to an unique name
7166         in SHARED case due to existing versioned symbols.
7167         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7168         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7169         (getcontext): Create weak alias only in non SHARED case.
7170         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7171
7172 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7173
7174         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7175         (__ASSUME_*_SYSCALL) Define new macros.
7176         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7177         Remove socketcall syscalls.
7178         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7179         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7180         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7181         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7182         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7183         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7184
7185 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7186
7187         [BZ #12926]
7188         Terminate process on invalid netlink response.
7189         * sysdeps/unix/sysv/linux/netlinkaccess.h
7190         (__netlink_assert_response): Declare.
7191         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7192         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7193         (sysdep_routines): Add netlink_assert_response.
7194         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7195         __netlink_assert_response.
7196         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7197         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7198         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7199         __netlink_assert_response.
7200
7201 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7202
7203         [BZ #19178]
7204         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7205         (RTYPE_CLASS_PLT): Likewise.
7206         (RTYPE_CLASS_COPY): Likewise.
7207         (RTYPE_CLASS_TLS): Likewise.
7208         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7209         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7210         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7211         DL_DEBUG_PRELINK.
7212
7213 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7214
7215         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7216         calls with argument -0.5.
7217         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7218
7219         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7220         (libc_cv_z_nodlopen): Likewise.
7221         (libc_cv_z_initfirst): Likewise.
7222         * configure: Regenerated.
7223
7224 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7225
7226         Simplify abilist format to be line-based.
7227         * scripts/abilist.awk: Collect descriptors in the descs variable.
7228         (emit): Write descs variable and sort it
7229         externally, with sort.
7230         * sysdeps/**/*.abilist: Convert to new format.
7231
7232 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7233
7234         [BZ #11460]
7235         * io/Makefile (routines): Add fts64.
7236         (tests): Add tst-fts and tst-fts-lfs.
7237         (CFLAGS-fts64.c): New.
7238         * io/Versions (GLIBC_2.23): New.
7239         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7240         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7241         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7242         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7243         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7244         (FTSENT64): Likewise.
7245         (fts64_children): Likewise.
7246         (fts64_close): Likewise.
7247         (fts64_open): Likewise.
7248         (fts64_read): Likewise.
7249         (fts64_set): Likewise.
7250         * io/fts64.c: New file.
7251         * io/tst-fts.c: New test.
7252         * io/tst-fts-lfs.c: Likewise.
7253         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7254         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7255         fts64_set.
7256         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7257         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7258         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7259         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7260         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7261         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7262         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7263         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7264         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7265         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7266         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7267         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7268         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7270         Likewise.
7271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7272         Likewise.
7273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7275         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7276         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7277         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7278         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7279         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7280         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7281         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7282         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7283         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7284         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7285         * sysdeps/wordsize-64/fts.c: New file.
7286         * sysdeps/wordsize-64/fts64.c: Likewise.
7287         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7288         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7289         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7290         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7291
7292 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7293
7294         * math/libm-test.inc (NON_FINITE): New macro.
7295         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7296         * math/gen-libm-test.pl (show_exceptions): Add argument
7297         $non_finite.
7298         (parse_args): Update call to show_exceptions.
7299         * math/test-math-finite.h: New file.
7300         * math/test-math-no-finite.h: Likewise.
7301         * math/test-double-finite.c: Likewise.
7302         * math/test-float-finite.c: Likewise.
7303         * math/test-ldouble-finite.c: Likewise.
7304         * math/test-double.c: Include "test-math-no-finite.h".
7305         * math/test-float.c: Include "test-math-no-finite.h".
7306         * math/test-ldouble.c: Include "test-math-no-finite.h".
7307         * math/test-math-inline.h (TEST_FINITE): New macro.
7308         * math/test-math-vector.h (TEST_FINITE): Likewise.
7309         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7310         (libm-tests): Add test-float-finite and test-double-finite.
7311         ($(objpfx)test-float-finite.o): New dependency on
7312         $(objpfx)libm-test.stmp.
7313         ($(objpfx)test-double-finite.o): Likewise.
7314         ($(objpfx)test-ldouble-finite.o): Likewise.
7315         (libm-test-no-inline-cflags): New variable.
7316         (libm-test-finite-cflags): Likewise.
7317         (CFLAGS-test-float-finite.c): Likewise.
7318         (CFLAGS-test-double-finite.c): Likewise.
7319         (CFLAGS-test-ldouble-finite.c): Likewise.
7320         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7321         (CFLAGS-test-double.c): Likewise.
7322         (CFLAGS-test-ldouble.c): Likewise.
7323
7324 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7325
7326         * io/fcntl.c (__fcntl): Add ... to prototype.
7327         * misc/ioctl.c (__ioctl): Likewise.
7328         * misc/syscall.c (syscall): Likewise.
7329
7330 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7331
7332         * scripts/list-fixed-bugs.py: New file.
7333
7334         [BZ #19213]
7335         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7336         returned for argument 1.
7337         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7338         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7339         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7340         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7341         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7342         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7343
7344         [BZ #19211]
7345         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7346         __USE_XOPEN], not if [!__USE_ISOC99].
7347         (lgammaf): Likewise.
7348         (lgammal): Likewise.
7349         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7350         (gammaf): Likewise.
7351         (gammal): Likewise.
7352         * math/test-signgam-finite-c11.c: New file.
7353         * math/test-signgam-finite-c99.c: Likewise.
7354         * math/test-signgam-finite.c: Likewise.
7355         * math/Makefile (tests): Add test-signgam-finite,
7356         test-signgam-finite-c99 and test-signgam-finite-c11.
7357         (CFLAGS-test-signgam-finite.c): New variable.
7358         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7359         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7360
7361         [BZ #19212]
7362         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7363         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7364         500].
7365         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7366         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7367         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7368         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7369         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7370         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7371         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7372         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7373         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7374         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7375
7376         [BZ #19209]
7377         * math/bits/math-finite.h (ldexp): Remove declaration.
7378         (ldexpf): Likewise.
7379         (ldexpl): Likewise.
7380
7381         [BZ #19205]
7382         * math/bits/math-finite.h (acosf): Condition declaration on
7383         [__USE_ISOC99].
7384         (acosl): Likewise.
7385         (acoshf): Likewise.
7386         (acoshl): Likewise.
7387         (asinf): Likewise.
7388         (asinl): Likewise.
7389         (atan2f): Likewise.
7390         (atan2l): Likewise.
7391         (atanhf): Likewise.
7392         (atanhl): Likewise.
7393         (coshf): Likewise.
7394         (coshl): Likewise.
7395         (expf): Likewise.
7396         (expl): Likewise.
7397         (fmodf): Likewise.
7398         (fmodl): Likewise.
7399         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7400         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7401         (j0l): Likewise.
7402         (y0f): Likewise.
7403         (y0l): Likewise.
7404         (j1f): Likewise.
7405         (j1l): Likewise.
7406         (y1f): Likewise.
7407         (y1l): Likewise.
7408         (jnf): Likewise.
7409         (jnl): Likewise.
7410         (ynf): Likewise.
7411         (ynl): Likewise.
7412         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7413         (lgammal_r): Likewise.
7414         (__lgamma_r_finite): New declaration.
7415         (__lgammaf_r_finite): Likewise.
7416         (__lgammal_r_finite): Likewise.
7417         (lgamma): Use __lgamma_r_finite.
7418         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7419         __lgammaf_r_finite.
7420         (lgammal): Condition definition on [__USE_ISOC99].  Use
7421         __lgammal_r_finite.
7422         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7423         __lgamma_r_finite.
7424         (gammaf): Condition definition on [__USE_ISOC99].  Use
7425         __lgammaf_r_finite.
7426         (gammal): Condition definition on [__USE_ISOC99].  Use
7427         __lgammal_r_finite.
7428         (logf): Condition declaration on [__USE_ISOC99].
7429         (logl): Likewise.
7430         (log10f): Likewise.
7431         (log10l): Likewise.
7432         (ldexpf): Likewise.
7433         (ldexpl): Likewise.
7434         (powf): Likewise.
7435         (powl): Likewise.
7436         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7437         __USE_ISOC99].
7438         (remainderf): Condition declaration on [__USE_ISOC99].
7439         (remainderl): Likewise.
7440         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7441         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7442         (scalbl): Likewise.
7443         (sinhf): Condition declaration on [__USE_ISOC99].
7444         (sinhl): Likewise.
7445         (sqrtf): Likewise.
7446         (sqrtl): Likewise.
7447
7448 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7449
7450         * sysdeps/arm/atomic-machine.h
7451         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7452         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7453         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7454         Remove conditional code.
7455         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7456         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7457         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7458         Change conditional to [__ASSEMBLER__].
7459         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7460         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7461         [!__ASSEMBLER__].
7462         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7463         code.
7464         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7465         conditional macro definitions.
7466         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7467         (__arch_compare_and_exchange_val_16_acq): Likewise.
7468         (__arch_compare_and_exchange_val_32_acq): Likewise.
7469         (atomic_exchange_and_add): Likewise.
7470         (atomic_add): Likewise.
7471         (atomic_add_negative): Likewise.
7472         (atomic_add_zero): Likewise.
7473         (atomic_bit_set): Likewise.
7474         (atomic_bit_test_set): Likewise.
7475         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7476         code unconditional.
7477         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7478
7479         * math/test-math-errno.h: New file.
7480         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7481         empty.
7482         (TEST_ERRNO): New macro.
7483         (TEST_EXCEPTIONS): Likewise.
7484         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7485         (TEST_EXCEPTIONS): Likewise.
7486         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7487         * math/test-double.c: Include "test-math-errno.h".
7488         * math/test-float.c: Likewise.
7489         * math/test-ldouble.c: Likewise.
7490         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7491         code unconditional.
7492         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7493         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7494         unconditional.
7495         (test_errno): Only run code if TEST_ERRNO.
7496         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7497
7498 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7499
7500         * nptl/tst-once5.cc: Remove attribution.
7501
7502 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7503
7504         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7505         sqrt, tan, tanh, y0, y1 and yn.
7506         * math/auto-libm-test-out: Regenerated.
7507         * math/libm-test.inc (scalb_test_data): Add more tests.
7508         (scalbn_test_data): Likewise.
7509         (scalbln_test_data): Likewise.
7510         (signbit_test_data): Likewise.
7511         (sin_test_data): Likewise.
7512         (sincos_test_data): Likewise.
7513         (sinh_test_data): Likewise.
7514         (sqrt_test_data): Likewise.
7515         (tan_test_data): Likewise.
7516         (tanh_test_data): Likewise.
7517         (tgamma_test_data): Likewise.
7518         (y0_test_data): Likewise.
7519         (y1_test_data): Likewise.
7520         (yn_test_data): Likewise.
7521         (significand_test_data): Likewise.
7522         * sysdeps/i386/fpu/libm-test-ulps: Update.
7523
7524 2015-11-03  David Kastrup  <dak@gnu.org>
7525
7526         [BZ #18604]
7527         * assert/assert.h (assert): Don't macro-expand failed assertion
7528         expression in error message.
7529         * malloc/malloc.c (assert): Likewise.
7530
7531 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7532
7533         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7534         test.
7535         * configure: Regenerated.
7536
7537 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7538
7539         * math/libm-test.inc (modf_test_data): Add more tests.
7540         (nearbyint_test_data): Likewise.
7541         (nextafter_test_data): Likewise.
7542         (nexttoward_test_data): Likewise.
7543         (pow_test_data): Likewise.
7544         (remainder_test_data): Likewise.
7545         (remquo_test_data): Likewise.
7546         (rint_test_data): Likewise.
7547
7548         [BZ #19201]
7549         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7550         Check for zero remainder in case of large exponents and ensure
7551         correct sign of result in that case.
7552         * math/libm-test.inc (remainder_test_data): Add more tests.
7553
7554         [BZ #6799]
7555         * math/s_nextafter.c: Include <errno.h>.
7556         (__nextafter): Set errno on overflow and underflow.
7557         * math/s_nexttowardf.c: Include <errno.h>.
7558         (__nexttowardf): Set errno on overflow and underflow.
7559         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7560         (__nextafterl): Set errno on overflow and underflow.
7561         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7562         (__nexttoward): Set errno on overflow and underflow.
7563         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7564         (__nexttowardf): Set errno on overflow and underflow.
7565         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7566         (__nextafterf): Set errno on overflow and underflow.
7567         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7568         (__nextafterl): Set errno on overflow and underflow.
7569         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7570         (__nexttoward): Set errno on overflow and underflow.
7571         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7572         (__nexttowardf): Set errno on overflow and underflow.
7573         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7574         (__nextafterl): Set errno on overflow and underflow.
7575         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7576         (__nexttoward): Set errno on overflow and underflow.
7577         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7578         (__nexttowardf): Set errno on overflow and underflow.
7579         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7580         (__nexttoward): Set errno on overflow and underflow.
7581         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7582         (__nexttowardf): Set errno on overflow and underflow.
7583         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7584         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7585         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7586         (__nextafterl): Set errno on overflow and underflow.
7587         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7588         setting to be missing on overflow.  Add more tests.
7589         (nexttoward_test_data): Likewise.
7590
7591         * configure.ac (libc_cv_initfini_array): Remove configure test.
7592         * configure: Regenerated.
7593
7594 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7595
7596         [BZ #19189]
7597         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7598         non-finite argument handle arguments with negative sign.
7599
7600         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7601         result from infinite argument.
7602         (j1_test_data): Likewise.
7603         (jn_test_data): Likewise.
7604         (y0_test_data): Likewise.
7605         (y1_test_data): Likewise.
7606         (yn_test_data): Likewise.
7607
7608         [BZ #16171]
7609         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7610         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7611         * math/w_remainderf.c (dremf): Define as weak alias of
7612         __remainderf.
7613         * math/w_remainderl.c (dreml): Define as weak alias of
7614         __remainderl.
7615         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7616         __remainder.
7617         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7618         __remainderf.
7619         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7620         __remainderl.
7621         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7622         weak alias of remainderl.
7623         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7624         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7625         alias of __remainder.
7626         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7627         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7628         strong alias of __remainderl.
7629         (dreml): Use long_double_symbol.
7630         * math/Makefile (libm-calls): Remove w_drem.
7631         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7632         (CFLAGS-nldbl-drem.c): Remove variable.
7633         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7634         * math/w_drem.c: Remove file.
7635         * math/w_dremf.c: Likewise.
7636         * math/w_dreml.c: Likewise.
7637         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7638         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7639         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7640
7641         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7642         * sysdeps/i386/configure: Regenerated.
7643         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7644         * sysdeps/x86_64/configure: Regenerated.
7645
7646         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7647         test.
7648         (libc_cv_visibility_attribute): Likewise.
7649         (libc_cv_protected_data): Test unconditionally.
7650         (libc_cv_broken_visibility_attribute): Remove configure test.
7651         (libc_cv_have_sdata_section): Test unconditionally.
7652         * configure: Regenerated.
7653
7654         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7655         * include/scratch_buffer.h: Include <stddef.h> instead of
7656         <libc-internal.h>.
7657         (struct scratch_buffer): Use max_align_t instead of
7658         libc_max_align_t.
7659
7660 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7661
7662         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7663         instead of extend_alloca.  Change control flow to avoid a goto.
7664         Remove assert which is trivially always true.
7665
7666 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7667
7668         [BZ #16068]
7669         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7670         (FE_ALL_EXCEPT_X86): New macro.
7671         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7672         FE_ALL_EXCEPT.  Ensure precision control is included in
7673         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7674         handle "denormal operand exception" and clear FZ and DAZ bits.
7675         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7676         (FE_ALL_EXCEPT_X86): New macro.
7677         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7678         FE_ALL_EXCEPT.  Ensure precision control is included in
7679         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7680         handle "denormal operand exception" and clear FZ and DAZ bits.
7681         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7682         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7683         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7684         test-fenv-x87 and test-fenv-sse-2.
7685         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7686
7687         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7688         * math/test-double.h (BUILD_COMPLEX): New macro.
7689         * math/test-float.h (BUILD_COMPLEX): Likewise.
7690         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7691
7692         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7693         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7694         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7695         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7696         instead of DBL_DENORM_MIN in comment.
7697         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7698         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7699         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7700         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7701         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7702         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7703
7704 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7705
7706         [BZ# 19048]
7707         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7708         attached_threads member.
7709         (main_arena): Initialize attached_threads.
7710         * malloc/arena.c (list_lock): Update comment.
7711         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7712         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7713         (deattach_arena): New function.
7714         (_int_new_arena): Initialize arena reference count and deattach
7715         replaced arena.
7716         (get_free_list, reused_arena): Update reference count and deattach
7717         replaced arena.
7718         (arena_thread_freeres): Update arena reference count and only put
7719         unreferenced arenas on the free list.
7720
7721 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7722
7723         [BZ #19181]
7724         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7725         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7726         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7727         * math/test-fenv-clear-main.c: New file.
7728         * math/test-fenv-clear.c: Likewise.
7729         * math/Makefile (tests): Add test-fenv-clear.
7730         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7731         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7732         test-fenv-clear-sse.
7733         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7734
7735         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7736         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7737         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7738
7739 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7740
7741         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7742         static libc.
7743
7744 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7745
7746         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7747         test.
7748         * sysdeps/i386/configure: Regenerated.
7749         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7750         test.
7751         * sysdeps/x86_64/configure: Regenerated.
7752         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7753         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7754         memset-avx2 unconditionally instead of conditionally on
7755         [$(config-cflags-avx2) = yes].
7756         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7757         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7758         unconditional.
7759         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7760         * sysdeps/x86_64/multiarch/memset_chk.S
7761         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7762         to [IS_IN (libc) && SHARED].
7763
7764 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7765
7766         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7767         configure test.
7768         * sysdeps/arm/configure: Regenerated.
7769         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7770         Define variable if not already defined.
7771
7772         [BZ #17404]
7773         * sysdeps/mips/atomic-machine.h
7774         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7775         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7776         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7777
7778         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7779         unconditional.
7780         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7781         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7782         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7783         unconditional.
7784         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7785         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7786         unconditional.
7787         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7788         * stdlib/setenv.c
7789         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7790         code unconditional.
7791         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7792         Remove conditional code.
7793         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7794         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7795         unconditional.
7796         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7797         code.
7798         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7799         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7800         unconditional.
7801         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7802         code.
7803         * sysdeps/ieee754/ldbl-128/k_tanl.c
7804         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7805         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7806         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7807         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7808         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7809         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7810         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7811         unconditional.
7812         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7813         code.
7814         * sysdeps/ieee754/ldbl-96/k_tanl.c
7815         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7816         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7817
7818         * nptl/tst-initializers1-c11.c: New file.
7819         * nptl/tst-initializers1-gnu11.c: Likewise.
7820         * nptl/Makefile (tests): Add these new tests.
7821         (CFLAGS-tst-initializers1-c11.c): New variable.
7822         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7823
7824         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7825         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7826         instead of -std=gnu99.
7827         * configure.ac (systemtap): Test with -std=gnu11 instead of
7828         -std=gnu99.
7829         * configure: Regenerated.
7830         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7831         in compilation command in comment.
7832
7833         * sysdeps/nptl/configure.ac: Remove file.
7834         * sysdeps/nptl/configure: Remove generated file.
7835         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7836         * configure: Regenerated.
7837         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7838         * config.make.in (have-forced-unwind): Remove variable.
7839         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7840         unconditional.
7841         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7842         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7843         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7844         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7845         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7846         unconditional.
7847
7848 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7849
7850         [BZ #19174]
7851         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7852         .skip_lock_out_of_tbegin_retries.
7853         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7854         (__lll_lock_elision): Likewise, and respect a value of
7855         try_tbegin <= 0.
7856
7857 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7858
7859         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7860         statement.
7861
7862 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7863
7864         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7865         variable.
7866         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7867         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7868
7869         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7870         of -std=c1x -D_ISOC11_SOURCE.
7871
7872         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7873         * configure: Regenerated.
7874         * manual/install.texi (Tools for Compilation): Document
7875         requirement for GCC 4.7 or later.
7876         * INSTALL: Regenerated.
7877
7878 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7879
7880         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7881         on CNT to a conditional jump to 'puntdata'.
7882
7883 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7884
7885         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7886         (libc_cv_gcc_tls_model_attr): Likewise.
7887         * configure: Regenerated.
7888
7889         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7890         * configure: Regenerated.
7891         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7892
7893 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7894
7895         * configure.ac (old_glibc_headers): Remove configure test.
7896         * configure: Regenerated.
7897         * config.make.in (old-glibc-headers): Remove variable.
7898         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7899         (install): Remove dependency on remove-old-headers.
7900         (headers2_0): Remove variable.
7901         (remove-old-headers): Remove rule.
7902
7903         * configure.ac (libc_cv_dot_text): Remove configure test.
7904         (libc_cv_asm_set_directive): Use .text instead of
7905         ${libc_cv_dot_text} in configure test.
7906         * configure: Regenerated.
7907
7908 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7909
7910         [BZ #19168]
7911         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7912
7913 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7914
7915         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7916         not support static linking.
7917         * configure: Regenerate.
7918
7919 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7920
7921         * math/libm-test.inc (check_float_internal): Do not special-case
7922         errors up to 0.5 ulp.
7923
7924         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7925         log2.
7926         * math/auto-libm-test-out: Regenerated.
7927         * math/libm-test.inc (MAX_EXP): New macro.
7928         (ilogb_test_data): Add more tests.
7929         (isfinite_test_data): Likewise.
7930         (isgreater_test_data): Likewise.
7931         (isgreaterequal_test_data): Likewise.
7932         (isinf_test_data): Likewise.
7933         (isless_test_data): Likewise.
7934         (islessequal_test_data): Likewise.
7935         (islessgreater_test_data): Likewise.
7936         (isnan_test_data): Likewise.
7937         (isnormal_test_data): Likewise.
7938         (issignaling_test_data): Likewise.
7939         (isunordered_test_data): Likewise.
7940         (j0_test_data): Likewise.
7941         (j1_test_data): Likewise.
7942         (jn_test_data): Likewise.
7943         (lgamma_test_data): Likewise.
7944         (log_test_data): Likewise.
7945         (log10_test_data): Likewise.
7946         (log1p_test_data): Likewise.
7947         (log2_test_data): Likewise.
7948         (logb_test_data): Likewise.
7949         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7950
7951         [BZ #18611]
7952         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7953         avoid excess range and precision on underflow.
7954         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7955         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7956         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7957         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7958         underflow.
7959         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7960         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7961         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7962         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7963         * math/auto-libm-test-in: Do not allow missing errno setting for
7964         tests of j1 and jn.
7965         * math/auto-libm-test-out: Regenerated.
7966
7967 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7968
7969         [BZ #15491]
7970         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7971         floating-point environment instead of clearing all exceptions.
7972         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7973         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7974         merging in "invalid" exceptions from frndint.
7975         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7976         * math/test-nearbyint-except.c: New file.
7977         * math/Makefile (tests): Add test-nearbyint-except.
7978
7979 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7980
7981         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7982
7983         * sysdeps/tile/libm-test-ulps: Regenerated.
7984
7985 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7986
7987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7988         (__NR_sync_file_range2): Assume it is always defined.
7989         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7990         (__NR_sync_file_range): Assume it is always defined.
7991
7992 2015-10-22  Andreas Schwab  <schwab@suse.de>
7993
7994         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7995         INTERNAL_SYSCALL_ERRNO.
7996         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7997         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7998         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7999         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8000         Likewise.
8001         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8002
8003 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8004
8005         * io/tst-fcntl.c (fd): New static variable.
8006         (do_prepare): Open temporary file here....
8007         (do_test): ...not here.
8008
8009         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8010
8011 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8012
8013         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8014         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8015         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8016         Moved before "#ifdef __ASSEMBLER__".
8017
8018 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8019
8020         [BZ #19156]
8021         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8022         arguments very close to 0.
8023
8024 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8025
8026         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8027         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8028
8029 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8030
8031         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8032         New.  Defined for GCC 5 and above when not compiling for
8033         profiling.
8034         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8035
8036         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8037         Renamed to ...
8038         (CFLAGS-epoll_pwait.o): This.
8039         (CFLAGS-mmap.c): Renamed to ...
8040         (CFLAGS-mmap.o): This.
8041         (CFLAGS-mmap64.c): Renamed to ...
8042         (CFLAGS-mmap64.o): This.
8043         (CFLAGS-epoll_pwait.os): New.
8044         (CFLAGS-mmap.os): Likewise.
8045         (CFLAGS-mmap64.os): Likewise.
8046         (CFLAGS-semtimedop.os): Likewise.
8047         (CFLAGS-semtimedop.c): Renamed to ...
8048         (CFLAGS-semtimedop.o): This.
8049
8050 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8051
8052         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8053         warning message.
8054
8055 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8056
8057         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8058         * Makefile ($(objpfx)c++-types-check.out): Filter out
8059         $(+gccwarn-c) instead of -Wstrict-prototypes.
8060
8061         * io/fts.c (fts_open): Convert to prototype-style function
8062         definition.
8063         * malloc/mcheck.c (mcheck): Likewise.
8064         (mcheck_pedantic): Likewise.
8065         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8066         internal_function.
8067         (re_search_internal): Likewise.
8068         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8069         prototype-style function definition.
8070         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8071         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8072         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8073         (xdr_utmpptr): Likewise.
8074         (xdr_utmparr): Likewise.
8075         (xdr_utmpidle): Likewise.
8076         (xdr_utmpidleptr): Likewise.
8077         (xdr_utmpidlearr): Likewise.
8078
8079         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8080         log, log10 and log2.
8081         * math/auto-libm-test-out: Regenerated.
8082         * math/libm-test.inc (fmod_test_data): Add more tests.
8083         (fpclassify_test_data): Likewise.
8084         (frexp_test_data): Likewise.
8085         (hypot_test_data): Likewise.
8086         (ilogb_test_data): Likewise.
8087
8088 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8089
8090         * debug/fortify_fail.c (__fortify_fail): Convert to
8091         prototype-style function definition.  Use internal_function.
8092         * libio/genops.c (save_for_backup): Convert to prototype-style
8093         function definition.
8094         * libio/wgenops.c (save_for_wbackup): Likewise.
8095         * login/grantpt.c (grantpt): Likewise.
8096         * login/ptsname.c (ptsname): Likewise.
8097         (__ptsname_r): Likewise.
8098         * login/unlockpt.c (unlockpt): Likewise.
8099         * mach/msgserver.c (__mach_msg_server): Likewise.
8100         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8101         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8102         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8103         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8104         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8105         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8106         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8107         Likewise.
8108         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8109         internal_function.
8110         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8111         prototype-style function definition.
8112         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8113         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8114         (__pthread_create_2_0): Likewise.
8115         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8116         * nptl/register-atfork.c (__register_atfork): Likewise.
8117         * posix/glob.c (glob): Likewise.
8118         * posix/regcomp.c (re_comp): Likewise.
8119         * posix/regexec.c (re_exec): Likewise.
8120         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8121         [!__STDC__]: Remove conditional code.
8122         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8123         [!__STDC__]: Remove conditional code.
8124         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8125         [!__STDC__]: Remove conditional code.
8126         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8127         [!__STDC__]: Remove conditional code.
8128         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8129         [!__STDC__]: Remove conditional code.
8130         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8131         [!__STDC__]: Remove conditional code.
8132         * stdlib/mul.c [__STDC__]: Make code unconditional.
8133         [!__STDC__]: Remove conditional code.
8134         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8135         [!__STDC__]: Remove conditional code.
8136         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8137         [!__STDC__]: Remove conditional code.
8138         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8139         function definition.
8140         (STRTOF): Likewise.
8141         * stdlib/strtod_l.c (__STRTOF): Likewise.
8142         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8143         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8144         (__strtol_l): Likewise.
8145         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8146         [!__STDC__]: Remove conditional code.
8147         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8148         definition.
8149         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8150         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8151         type.
8152         (__strcasecmp): Convert to prototype-style function definition.
8153         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8154         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8155         type.
8156         (__strncasecmp): Convert to prototype-style function definition.
8157         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8158         * sunrpc/xdr.c (xdr_union): Likewise.
8159         * sunrpc/xdr_array.c (xdr_array): Likewise.
8160         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8161         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8162         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8163         Likewise.
8164         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8165         Likewise.
8166         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8167         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8168         Likewise.
8169         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8170         (LOCALE_PARAM_PROTO): Likewise.
8171         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8172         argument type.
8173         (ut_argument_spec): Remove macro.
8174         (ut_argument_spec_iso): Rename to ut_argument_spec.
8175         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8176         prototype-style function definition.
8177         (memcpy_uppcase): Likewise.
8178         (__strftime_internal): Likewise.
8179         (my_strftime): Likewise.
8180         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8181         (LOCALE_PARAM_DECL): Likewise.
8182         [_LIBC] (LOCALE_PARAM): Include argument type.
8183         (__strptime_internal): Convert to prototype-style function
8184         definition.
8185         (strptime): Likewise.
8186         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8187         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8188         type.
8189         (__wcscasecmp): Convert to prototype-style function definition.
8190         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8191         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8192         type.
8193         (__wcsncasecmp): Convert to prototype-style function definition.
8194
8195         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8196         function definition.
8197         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8198         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8199         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8200         * elf/dl-minimal.c (_itoa): Likewise.
8201         * hurd/hurdmalloc.c (malloc): Likewise.
8202         (free): Likewise.
8203         (realloc): Likewise.
8204         * inet/inet6_option.c (inet6_option_space): Likewise.
8205         (inet6_option_init): Likewise.
8206         (inet6_option_append): Likewise.
8207         (inet6_option_alloc): Likewise.
8208         (inet6_option_next): Likewise.
8209         (inet6_option_find): Likewise.
8210         * io/ftw.c (FTW_NAME): Likewise.
8211         (NFTW_NAME): Likewise.
8212         (NFTW_NEW_NAME): Likewise.
8213         (NFTW_OLD_NAME): Likewise.
8214         * libio/iofwide.c (_IO_fwide): Likewise.
8215         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8216         (_IO_str_init_static): Likewise.
8217         (_IO_str_init_readonly): Likewise.
8218         (_IO_str_overflow): Likewise.
8219         (_IO_str_underflow): Likewise.
8220         (_IO_str_count): Likewise.
8221         (_IO_str_seekoff): Likewise.
8222         (_IO_str_pbackfail): Likewise.
8223         (_IO_str_finish): Likewise.
8224         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8225         (_IO_wstr_overflow): Likewise.
8226         (_IO_wstr_underflow): Likewise.
8227         (_IO_wstr_count): Likewise.
8228         (_IO_wstr_seekoff): Likewise.
8229         (_IO_wstr_pbackfail): Likewise.
8230         (_IO_wstr_finish): Likewise.
8231         * locale/programs/localedef.c (normalize_codeset): Likewise.
8232         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8233         (add_locales_to_archive): Likewise.
8234         (delete_locales_from_archive): Likewise.
8235         * malloc/malloc.c (__libc_mallinfo): Likewise.
8236         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8237         * misc/tsearch.c (__tfind): Likewise.
8238         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8239         * nptl/pthread_attr_getdetachstate.c
8240         (__pthread_attr_getdetachstate): Likewise.
8241         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8242         Likewise.
8243         * nptl/pthread_attr_getinheritsched.c
8244         (__pthread_attr_getinheritsched): Likewise.
8245         * nptl/pthread_attr_getschedparam.c
8246         (__pthread_attr_getschedparam): Likewise.
8247         * nptl/pthread_attr_getschedpolicy.c
8248         (__pthread_attr_getschedpolicy): Likewise.
8249         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8250         Likewise.
8251         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8252         Likewise.
8253         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8254         Likewise.
8255         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8256         Likewise.
8257         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8258         (__pthread_attr_init_2_0): Likewise.
8259         * nptl/pthread_attr_setdetachstate.c
8260         (__pthread_attr_setdetachstate): Likewise.
8261         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8262         Likewise.
8263         * nptl/pthread_attr_setinheritsched.c
8264         (__pthread_attr_setinheritsched): Likewise.
8265         * nptl/pthread_attr_setschedparam.c
8266         (__pthread_attr_setschedparam): Likewise.
8267         * nptl/pthread_attr_setschedpolicy.c
8268         (__pthread_attr_setschedpolicy): Likewise.
8269         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8270         Likewise.
8271         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8272         Likewise.
8273         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8274         Likewise.
8275         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8276         Likewise.
8277         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8278         Likewise.
8279         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8280         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8281         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8282         use internal_function.
8283         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8284         prototype-style function definition.
8285         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8286         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8287         internal_function.
8288         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8289         Convert to prototype-style function definition.
8290         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8291         Likewise.
8292         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8293         Likewise.
8294         (__pthread_mutex_unlock): Likewise.
8295         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8296         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8297         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8298         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8299         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8300         * nss/makedb.c (process_input): Likewise.
8301         * posix/fnmatch.c (__strchrnul): Likewise.
8302         (__wcschrnul): Likewise.
8303         (fnmatch): Likewise.
8304         * posix/fnmatch_loop.c (FCT): Likewise.
8305         * posix/glob.c (globfree): Likewise.
8306         (__glob_pattern_type): Likewise.
8307         (__glob_pattern_p): Likewise.
8308         * posix/regcomp.c (re_compile_pattern): Likewise.
8309         (re_set_syntax): Likewise.
8310         (re_compile_fastmap): Likewise.
8311         (regcomp): Likewise.
8312         (regerror): Likewise.
8313         (regfree): Likewise.
8314         * posix/regexec.c (regexec): Likewise.
8315         (re_match): Likewise.
8316         (re_search): Likewise.
8317         (re_match_2): Likewise.
8318         (re_search_2): Likewise.
8319         (re_search_stub): Likewise.  Use internal_function
8320         (re_copy_regs): Likewise.
8321         (re_set_registers): Convert to prototype-style function
8322         definition.
8323         (prune_impossible_nodes): Likewise.  Use internal_function.
8324         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8325         prototype-style function definition.
8326         (inet_net_pton_ipv4): Likewise.
8327         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8328         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8329         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8330         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8331         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8332         Make variadic.
8333         * time/strptime_l.c (localtime_r): Convert to prototype-style
8334         function definition.
8335         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8336         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8337         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8338         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8339
8340         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8341         definition.
8342         (_ufc_doit_r): Likewise.
8343         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8344         (_ufc_output_conversion_r): Likewise.
8345         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8346         * inet/rcmd.c (rcmd_af): Likewise.
8347         (rcmd): Likewise.
8348         (ruserok_af): Likewise.
8349         (ruserok): Likewise.
8350         (ruserok2_sa): Likewise.
8351         (ruserok_sa): Likewise.
8352         (iruserok_af): Likewise.
8353         (iruserok): Likewise.
8354         (__ivaliduser): Likewise.
8355         (__validuser2_sa): Likewise.
8356         * inet/rexec.c (rexec_af): Likewise.
8357         (rexec): Likewise.
8358         * inet/ruserpass.c (ruserpass): Likewise.
8359         * locale/programs/xmalloc.c (xcalloc): Likewise.
8360         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8361         * math/w_drem.c (__drem): Likewise.
8362         * math/w_dremf.c (__dremf): Likewise.
8363         * math/w_dreml.c (__dreml): Likewise.
8364         * misc/daemon.c (daemon): Likewise.
8365         * resolv/res_debug.c (p_fqnname): Likewise.
8366         * stdlib/div.c (div): Likewise.
8367         * string/memcmp.c (memcmp_bytes): Likewise.
8368         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8369         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8370
8371         * crypt/cert.c (main): Convert to prototype-style function
8372         definition.
8373         * io/pipe.c (__pipe): Likewise.
8374         * io/pipe2.c (__pipe2): Likewise.
8375         * misc/futimesat.c (futimesat): Likewise.
8376         * misc/utimes.c (__utimes): Likewise.
8377         * posix/execve.c (__execve): Likewise.
8378         * posix/execvp.c (execvp): Likewise.
8379         * posix/execvpe.c (__execvpe): Likewise.
8380         * posix/fexecve.c (fexecve): Likewise.
8381         * socket/socketpair.c (socketpair): Likewise.
8382         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8383         * stdlib/erand48.c (erand48): Likewise.
8384         * stdlib/erand48_r.c (__erand48_r): Likewise.
8385         * stdlib/jrand48.c (jrand48): Likewise.
8386         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8387         * stdlib/lcong48.c (lcong48): Likewise.
8388         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8389         * stdlib/nrand48.c (nrand48): Likewise.
8390         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8391         * stdlib/seed48.c (seed48): Likewise.
8392         * stdlib/seed48_r.c (__seed48_r): Likewise.
8393         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8394         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8395         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8396
8397 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8398
8399         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8400         * configure: Regenerated.
8401         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8402         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8403         unconditional.
8404         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8405         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8406         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8407         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8408         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8409         unconditional.
8410         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8411
8412         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8413         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8414
8415         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8416         function definition.
8417         * crypt/crypt_util.c (__encrypt_r): Likewise.
8418         * libio/genops.c (_IO_no_init): Likewise.
8419         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8420         (_IO_old_fopencookie): Likewise.
8421         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8422         * libio/iogetline.c (_IO_getline): Likewise.
8423         (_IO_getline_info): Likewise.
8424         * libio/iogetwline.c (_IO_getwline): Likewise.
8425         (_IO_getwline_info): Likewise.
8426         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8427         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8428         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8429         (find_entry): Likewise.
8430         (iterate_table): Likewise.
8431         (lookup): Likewise.
8432         * login/forkpty.c (forkpty): Likewise.
8433         * misc/hsearch_r.c (__hsearch_r): Likewise.
8434         * misc/select.c (__select): Likewise.
8435         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8436         Likewise.
8437         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8438         Likewise.
8439         * nptl/old_pthread_cond_timedwait.c
8440         (__pthread_cond_timedwait_2_0): Likewise.
8441         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8442         * nptl/pthread_barrierattr_getpshared.c
8443         (pthread_barrierattr_getpshared): Likewise.
8444         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8445         Likewise.
8446         * nptl/pthread_mutex_setprioceiling.c
8447         (pthread_mutex_setprioceiling): Likewise.
8448         * nptl/pthread_mutexattr_getprioceiling.c
8449         (pthread_mutexattr_getprioceiling): Likewise.
8450         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8451         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8452         Likewise.
8453         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8454         Likewise.
8455         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8456         Likewise.
8457         * socket/recvfrom.c (__recvfrom): Likewise.
8458         * socket/sendto.c (__sendto): Likewise.
8459         * socket/setsockopt.c (__setsockopt): Likewise.
8460         * stdio-common/_itoa.c (_itoa): Likewise.
8461         * stdio-common/_itowa.c (_itowa): Likewise.
8462         * stdio-common/reg-printf.c (__register_printf_specifier):
8463         Likewise.
8464         (__register_printf_function): Likewise.
8465         * stdio-common/tempname.c (__path_search): Likewise.
8466         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8467         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8468         * stdlib/random_r.c (__initstate_r): Likewise.
8469         * stdlib/setenv.c (__add_to_environ): Likewise.
8470         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8471         * streams/getpmsg.c (getpmsg): Likewise.
8472         * streams/putmsg.c (putmsg): Likewise.
8473         * streams/putpmsg.c (putpmsg): Likewise.
8474         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8475         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8476         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8477         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8478         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8479         * sunrpc/svc_udp.c (cache_get): Likewise.
8480         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8481         * sysdeps/mach/hurd/getcwd.c
8482         (__canonicalize_directory_name_internal): Likewise.
8483         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8484         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8485         * sysdeps/mach/hurd/select.c (__select): Likewise.
8486         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8487         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8488         * sysdeps/sparc/nptl/pthread_barrier_init.c
8489         (__pthread_barrier_init): Likewise.
8490         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8491         (__pthread_cond_timedwait): Likewise.
8492         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8493         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8494         Likewise.
8495         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8496         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8497         Likewise.
8498         * sysvipc/semtimedop.c (semtimedop): Likewise.
8499         * time/setitimer.c (__setitimer): Likewise.
8500         * time/strftime_l.c (emacs_strftime): Likewise.
8501
8502 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8503
8504         * config.make.in (have-ssp): Delete.
8505         (stack-protector): New variable.
8506         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8507         cache test for -fstack-protector-strong.  Export stack_protector to
8508         the best ssp flag.
8509         * configure: Regenerated.
8510         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8511         * nscd/Makefile (CFLAGS-nscd): Likewise.
8512         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8513
8514 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8515
8516         [BZ #19122]
8517         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8518         attribute_hidden.
8519
8520 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8521
8522         [BZ #18743]
8523         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8524         code to...
8525         (ELIDE_LOCK): ...here.
8526         (__get_new_count): New function with part of the code from
8527         __elide_lock that updates the value of adapt_count after a
8528         transaction abort.
8529         (__elided_trylock): Moved this code to...
8530         (ELIDE_TRYLOCK): ...here.
8531
8532 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8533
8534         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8535         * configure: Regenerate.
8536         * INSTALL: Regenerate.
8537         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8538         and tweak grammar.
8539
8540 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8541
8542         * login/programs/pt_chown.c: Include signal.h
8543         (main): Clear any signal mask from the parent process.
8544
8545 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8546
8547         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8548         * configure: Regenerated.
8549         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8550         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8551         $(gnu89-inline-CFLAGS).
8552
8553         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8554         test.
8555         (libc_cv_asm_weakext_directive): Likewise.
8556         * configure: Regenerated.
8557         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8558         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8559         * include/libc-symbols.h
8560         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8561         #error.
8562         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8563         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8564
8565         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8566         prototype-style function definition.
8567         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8568         * sysdeps/i386/ffs.c (__ffs): Likewise.
8569         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8570         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8571         Likewise.
8572         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8573         Likewise.
8574         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8575         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8576         Likewise.
8577         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8578         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8579         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8580         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8581         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8582         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8583         * sysdeps/mach/hurd/access.c (__access): Likewise.
8584         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8585         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8586         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8587         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8588         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8589         (cthread_getspecific): Likewise.
8590         (cthread_setspecific): Likewise.
8591         (__libc_getspecific): Likewise.
8592         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8593         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8594         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8595         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8596         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8597         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8598         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8599         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8600         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8601         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8602         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8603         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8604         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8605         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8606         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8607         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8608         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8609         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8610         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8611         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8612         * sysdeps/mach/hurd/link.c (__link): Likewise.
8613         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8614         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8615         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8616         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8617         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8618         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8619         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8620         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8621         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8622         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8623         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8624         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8625         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8626         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8627         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8628         * sysdeps/mach/hurd/send.c (__send): Likewise.
8629         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8630         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8631         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8632         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8633         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8634         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8635         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8636         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8637         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8638         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8639         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8640         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8641         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8642         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8643         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8644         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8645         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8646         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8647         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8648         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8649         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8650         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8651         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8652         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8653         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8654         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8655         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8656         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8657         * sysdeps/posix/alarm.c (alarm): Likewise.
8658         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8659         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8660         * sysdeps/posix/dup.c (__dup): Likewise.
8661         * sysdeps/posix/dup2.c (__dup2): Likewise.
8662         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8663         (main): Likewise.
8664         * sysdeps/posix/flock.c (__flock): Likewise.
8665         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8666         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8667         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8668         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8669         * sysdeps/posix/isatty.c (__isatty): Likewise.
8670         * sysdeps/posix/killpg.c (killpg): Likewise.
8671         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8672         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8673         * sysdeps/posix/raise.c (raise): Likewise.
8674         * sysdeps/posix/remove.c (remove): Likewise.
8675         * sysdeps/posix/rename.c (rename): Likewise.
8676         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8677         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8678         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8679         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8680         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8681         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8682         * sysdeps/posix/sigset.c (sigset): Likewise.
8683         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8684         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8685         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8686         * sysdeps/posix/time.c (time): Likewise.
8687         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8688         (ttyname): Likewise.
8689         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8690         * sysdeps/posix/utime.c (utime): Likewise.
8691         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8692         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8693         Likewise.
8694         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8695         (pthread_spin_trylock): Likewise.
8696         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8697         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8698         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8699         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8700         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8701         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8702         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8703         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8704         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8705         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8706         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8707         * sysdeps/s390/ffs.c (__ffs): Likewise.
8708         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8709         Likewise.
8710         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8711         Likewise.
8712         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8713         Likewise.
8714         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8715         (pthread_barrier_destroy): Likewise.
8716         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8717         (__pthread_barrier_wait): Likewise.
8718         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8719         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8720         (__pthread_barrier_wait): Likewise.
8721         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8722         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8723         (memcmp_not_common_alignment): Likewise.
8724         (MEMCMP): Likewise.
8725         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8726         (_wordcopy_fwd_dest_aligned): Likewise.
8727         (_wordcopy_bwd_aligned): Likewise.
8728         (_wordcopy_bwd_dest_aligned): Likewise.
8729         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8730         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8731         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8732         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8733         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8734         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8735         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8736         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8737         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8738         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8739         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8740         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8741         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8742         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8743         * sysdeps/unix/stime.c (stime): Likewise.
8744         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8745         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8746         Likewise.  Use internal_function.
8747         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8748         Convert to prototype-style function definition.
8749         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8750         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8751         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8752         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8753         Likewise.  Use internal_function.
8754         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8755         prototype-style function definition
8756         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8757         Likewise.
8758         (__getlogin_r): Likewise.
8759         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8760         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8761         (__pthread_cond_broadcast): Likewise.
8762         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8763         (__pthread_cond_destroy): Likewise.
8764         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8765         (__pthread_cond_init): Likewise.
8766         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8767         (__pthread_cond_signal): Likewise.
8768         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8769         (__pthread_cond_wait): Likewise.
8770         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8771         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8772         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8773         Likewise.
8774         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8775         Likewise.
8776         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8777         Likewise.
8778         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8779         Likewise.
8780         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8782         (__ftruncate64): Likewise.
8783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8784         (truncate64): Likewise.
8785         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8786         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8787         (pthread_getcpuclockid): Likewise.
8788         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8789         Likewise.
8790         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8791         Likewise.
8792         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8793         Likewise.
8794         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8795         Likewise.
8796         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8797         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8798         (__libc_sigaction): Likewise.
8799         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8800         Likewise.
8801         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8802         (__sigprocmask): Likewise.
8803         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8804         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8805         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8806         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8807         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8808         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8809         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8810         Likewise.
8811         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8812         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8813         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8814         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8815         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8816         Likewise.
8817         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8818         (__sigprocmask): Likewise.
8819         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8820         (cfgetispeed): Likewise.
8821         (cfsetospeed): Likewise.
8822         (cfsetispeed): Likewise.
8823         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8824         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8825         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8826         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8827         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8828         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8829         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8830         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8831         Likewise.
8832         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8833         Likewise.
8834         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8835         Likewise.
8836         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8837         Likewise.
8838         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8839
8840 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8841
8842         sunrpc: Rewrite with explicit TLS access using __thread.
8843         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8844         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8845         directly.
8846         (__rpc_thread_variables): Access thread_rpc_vars directly.
8847         Eliminate redundant assignment of the tvp variable.
8848
8849 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8850
8851         malloc: Rewrite with explicit TLS access using __thread.
8852         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8853         (tsd_setspecific, tsd_getspecific): Remove.
8854         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8855         (tsd_setspecific, tsd_getspecific): Likewise.
8856         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8857         (tsd_setspecific, tsd_getspecific): Likewise.
8858         * malloc/arena.c (thread_arena): New TLS variable.
8859         (arena_key): Remove variable.
8860         (arena_get): Use thread_arena.
8861         (arena_lookup): Remove macro.
8862         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8863         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8864         (_int_new_arena, get_free_list, reused_arena)
8865         (arena_thread_freeres): Use thread_arena.
8866         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8867         tsd_getspecific, tsd_setspecific from safety annotations.
8868         (Allocating Cleared Space): Remove arena_lookup from safety
8869         annotations.
8870
8871 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8872
8873         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8874         struct scratch_buffer instead of extend_alloca.
8875
8876 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8877
8878         * sysdeps/unix/sysv/linux/kernel-features.h
8879         (__ASSUME_SOCK_CLOEXEC): Remove.
8880         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8881         (__have_paccept): Remove unused macro.
8882         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8883         * misc/syslog.c (openlog_internal): Remove fallback code for
8884         !__ASSUME_SOCK_CLOEXEC.
8885         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8886         missing SOCK_CLOEXEC.
8887         * nscd/connections.c (have_sock_cloexec): Remove definition.
8888         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8889         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8890         !__ASSUME_SOCK_CLOEXEC.
8891         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8892         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8893         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8894         definition.
8895         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8896         code for !__ASSUME_SOCK_CLOEXEC.
8897
8898 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8899
8900         [BZ #18982]
8901         * manual/stdio.texi (Variable Arguments Output): Add portability
8902         note, explaining that vfprintf clobbers the va_list pointer.
8903
8904 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8905
8906         * math/libm-test.inc (fabs_test_data): Add more tests.
8907         (fdim_test_data): Likewise.
8908         (fma_test_data): Likewise.
8909         (fmax_test_data): Likewise.
8910         (fmin_test_data): Likewise.
8911         (fmod_test_data): Likewise.
8912
8913 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8914
8915         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8916         data.
8917
8918 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8919
8920         * math/libm-test.inc (ceil_test_data): Add more tests and more
8921         expectations for "inexact".
8922         (floor_test_data): Add more tests.
8923         (round_test_data): Likewise.
8924         (trunc_test_data): Likewise.
8925
8926         * crypt/cert.c (good_bye): Convert to prototype-style function
8927         definition.
8928         (get8): Likewise.
8929         (put8): Likewise.
8930         * crypt/crypt-entry.c (crypt): Likewise.
8931         (__fcrypt): Likewise.
8932         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8933         (_ufc_set_bits): Likewise.
8934         (_ufc_clearmem): Likewise.
8935         (__init_des_r): Likewise.
8936         (shuffle_sb): Likewise.
8937         (shuffle_sb): Likewise.
8938         (_ufc_setup_salt_r): Likewise.
8939         (_ufc_mk_keytab_r): Likewise.
8940         (_ufc_dofinalperm_r): Likewise.
8941         (encrypt): Likewise.
8942         (__setkey_r): Likewise.
8943         (setkey): Likewise.
8944         * crypt/md5.c (md5_init_ctx): Likewise.
8945         (md5_read_ctx): Likewise.
8946         (md5_finish_ctx): Likewise.
8947         (md5_stream): Likewise.
8948         (md5_buffer): Likewise.
8949         (md5_process_bytes): Likewise.
8950         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8951         (__sha256_finish_ctx): Likewise.
8952         (__sha256_process_bytes): Likewise.
8953         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8954         (__sha512_finish_ctx): Likewise.
8955         (__sha512_process_bytes): Likewise.
8956         * ctype/isctype.c (__isctype): Likewise.
8957         * debug/backtrace.c (__backtrace): Likewise.
8958         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8959         * debug/fgets_chk.c (__fgets_chk): Likewise.
8960         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8961         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8962         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8963         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8964         * debug/memset_chk.c (__memset_chk): Likewise.
8965         * debug/strcat_chk.c (__strcat_chk): Likewise.
8966         * debug/strncat_chk.c (__strncat_chk): Likewise.
8967         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8968         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8969         * dirent/dirfd.c (dirfd): Likewise.
8970         * dirent/getdents.c (__getdirentries): Likewise.
8971         * dirent/getdents64.c (getdirentries64): Likewise.
8972         * dirent/rewinddir.c (__rewinddir): Likewise.
8973         * dirent/seekdir.c (seekdir): Likewise.
8974         * dirent/telldir.c (telldir): Likewise.
8975         * elf/sln.c (makesymlinks): Likewise.
8976         (makesymlink): Likewise.
8977         * gmon/gmon.c (__moncontrol): Likewise.
8978         (__monstartup): Likewise.
8979         (write_hist): Likewise.
8980         (write_call_graph): Likewise.
8981         (write_bb_counts): Likewise.
8982         * grp/setgroups.c (setgroups): Likewise.
8983         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8984         * inet/inet_net.c (inet_network): Likewise.
8985         * inet/inet_netof.c (inet_netof): Likewise.
8986         * inet/rcmd.c (rresvport_af): Likewise.
8987         (rresvport): Likewise.
8988         * io/access.c (__access): Likewise.
8989         * io/chdir.c (__chdir): Likewise.
8990         * io/chmod.c (__chmod): Likewise.
8991         * io/chown.c (__chown): Likewise.
8992         * io/close.c (__close): Likewise.
8993         * io/creat.c (creat): Likewise.
8994         * io/creat64.c (creat64): Likewise.
8995         * io/dup.c (__dup): Likewise.
8996         * io/dup2.c (__dup2): Likewise.
8997         * io/dup3.c (__dup3): Likewise.
8998         * io/euidaccess.c (__euidaccess): Likewise.
8999         * io/faccessat.c (faccessat): Likewise.
9000         * io/fchmod.c (__fchmod): Likewise.
9001         * io/fchmodat.c (fchmodat): Likewise.
9002         * io/fchown.c (__fchown): Likewise.
9003         * io/fchownat.c (fchownat): Likewise.
9004         * io/fcntl.c (__fcntl): Likewise.
9005         * io/flock.c (__flock): Likewise.
9006         * io/fts.c (fts_load): Likewise.
9007         (fts_close): Likewise.
9008         (fts_read): Likewise.
9009         (fts_set): Likewise.
9010         (fts_children): Likewise.
9011         (fts_build): Likewise.
9012         (fts_stat): Likewise.
9013         (fts_sort): Likewise.
9014         (fts_alloc): Likewise.
9015         (fts_lfree): Likewise.
9016         (fts_palloc): Likewise.
9017         (fts_padjust): Likewise.
9018         (fts_maxarglen): Likewise.
9019         (fts_safe_changedir): Likewise.
9020         * io/getwd.c (getwd): Likewise.
9021         * io/isatty.c (__isatty): Likewise.
9022         * io/lchown.c (__lchown): Likewise.
9023         * io/link.c (__link): Likewise.
9024         * io/linkat.c (linkat): Likewise.
9025         * io/lseek.c (__libc_lseek): Likewise.
9026         * io/mkdir.c (__mkdir): Likewise.
9027         * io/mkdirat.c (mkdirat): Likewise.
9028         * io/mkfifo.c (mkfifo): Likewise.
9029         * io/mkfifoat.c (mkfifoat): Likewise.
9030         * io/open.c (__libc_open): Likewise.
9031         * io/open64.c (__libc_open64): Likewise.
9032         * io/readlink.c (__readlink): Likewise.
9033         * io/readlinkat.c (readlinkat): Likewise.
9034         * io/rmdir.c (__rmdir): Likewise.
9035         * io/symlink.c (__symlink): Likewise.
9036         * io/symlinkat.c (symlinkat): Likewise.
9037         * io/ttyname.c (ttyname): Likewise.
9038         * io/ttyname_r.c (__ttyname_r): Likewise.
9039         * io/umask.c (__umask): Likewise.
9040         * io/unlink.c (__unlink): Likewise.
9041         * io/unlinkat.c (unlinkat): Likewise.
9042         * io/utime.c (utime): Likewise.
9043         * libio/clearerr.c (clearerr): Likewise.
9044         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9045         * libio/feof.c (_IO_feof): Likewise.
9046         * libio/feof_u.c (feof_unlocked): Likewise.
9047         * libio/ferror.c (_IO_ferror): Likewise.
9048         * libio/ferror_u.c (ferror_unlocked): Likewise.
9049         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9050         * libio/fileno.c (__fileno): Likewise.
9051         * libio/fputc.c (fputc): Likewise.
9052         * libio/fputc_u.c (fputc_unlocked): Likewise.
9053         * libio/fputwc.c (fputwc): Likewise.
9054         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9055         * libio/freopen.c (freopen): Likewise.
9056         * libio/freopen64.c (freopen64): Likewise.
9057         * libio/fseek.c (fseek): Likewise.
9058         * libio/fseeko.c (fseeko): Likewise.
9059         * libio/fseeko64.c (fseeko64): Likewise.
9060         * libio/ftello.c (__ftello): Likewise.
9061         * libio/ftello64.c (ftello64): Likewise.
9062         * libio/fwide.c (fwide): Likewise.
9063         * libio/genops.c (_IO_un_link): Likewise.
9064         (_IO_link_in): Likewise.
9065         (_IO_least_marker): Likewise.
9066         (_IO_switch_to_main_get_area): Likewise.
9067         (_IO_switch_to_backup_area): Likewise.
9068         (_IO_switch_to_get_mode): Likewise.
9069         (_IO_free_backup_area): Likewise.
9070         (_IO_switch_to_put_mode): Likewise.
9071         (__overflow): Likewise.
9072         (__underflow): Likewise.
9073         (__uflow): Likewise.
9074         (_IO_setb): Likewise.
9075         (_IO_doallocbuf): Likewise.
9076         (_IO_default_underflow): Likewise.
9077         (_IO_default_uflow): Likewise.
9078         (_IO_default_xsputn): Likewise.
9079         (_IO_sgetn): Likewise.
9080         (_IO_default_xsgetn): Likewise.
9081         (_IO_sync): Likewise.
9082         (_IO_default_setbuf): Likewise.
9083         (_IO_default_seekpos): Likewise.
9084         (_IO_default_doallocate): Likewise.
9085         (_IO_init): Likewise.
9086         (_IO_old_init): Likewise.
9087         (_IO_default_sync): Likewise.
9088         (_IO_default_finish): Likewise.
9089         (_IO_default_seekoff): Likewise.
9090         (_IO_sputbackc): Likewise.
9091         (_IO_sungetc): Likewise.
9092         (_IO_set_column): Likewise.
9093         (_IO_set_column): Likewise.
9094         (_IO_adjust_column): Likewise.
9095         (_IO_get_column): Likewise.
9096         (_IO_init_marker): Likewise.
9097         (_IO_remove_marker): Likewise.
9098         (_IO_marker_difference): Likewise.
9099         (_IO_marker_delta): Likewise.
9100         (_IO_seekmark): Likewise.
9101         (_IO_unsave_markers): Likewise.
9102         (_IO_nobackup_pbackfail): Likewise.
9103         (_IO_default_pbackfail): Likewise.
9104         (_IO_default_seek): Likewise.
9105         (_IO_default_stat): Likewise.
9106         (_IO_default_read): Likewise.
9107         (_IO_default_write): Likewise.
9108         (_IO_default_showmanyc): Likewise.
9109         (_IO_default_imbue): Likewise.
9110         (_IO_iter_next): Likewise.
9111         (_IO_iter_file): Likewise.
9112         * libio/getc.c (_IO_getc): Likewise.
9113         * libio/getwc.c (_IO_getwc): Likewise.
9114         * libio/iofclose.c (_IO_new_fclose): Likewise.
9115         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9116         * libio/iofflush.c (_IO_fflush): Likewise.
9117         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9118         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9119         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9120         * libio/iofgets.c (_IO_fgets): Likewise.
9121         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9122         * libio/iofgetws.c (fgetws): Likewise.
9123         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9124         * libio/iofopen64.c (_IO_fopen64): Likewise.
9125         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9126         (_IO_cookie_write): Likewise.
9127         (_IO_cookie_seek): Likewise.
9128         (_IO_cookie_close): Likewise.
9129         (_IO_cookie_seekoff): Likewise.
9130         (_IO_old_cookie_seek): Likewise.
9131         * libio/iofputs.c (_IO_fputs): Likewise.
9132         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9133         * libio/iofputws.c (fputws): Likewise.
9134         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9135         * libio/iofread.c (_IO_fread): Likewise.
9136         * libio/iofread_u.c (__fread_unlocked): Likewise.
9137         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9138         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9139         * libio/ioftell.c (_IO_ftell): Likewise.
9140         * libio/iofwrite.c (_IO_fwrite): Likewise.
9141         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9142         * libio/iogets.c (_IO_gets): Likewise.
9143         * libio/iopadn.c (_IO_padn): Likewise.
9144         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9145         (_IO_new_popen): Likewise.
9146         (_IO_new_proc_close): Likewise.
9147         * libio/ioputs.c (_IO_puts): Likewise.
9148         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9149         (_IO_seekoff): Likewise.
9150         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9151         (_IO_seekpos): Likewise.
9152         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9153         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9154         * libio/ioungetc.c (_IO_ungetc): Likewise.
9155         * libio/ioungetwc.c (ungetwc): Likewise.
9156         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9157         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9158         * libio/iowpadn.c (_IO_wpadn): Likewise.
9159         * libio/libc_fatal.c (__libc_fatal): Likewise.
9160         * libio/memstream.c (__open_memstream): Likewise.
9161         (_IO_mem_sync): Likewise.
9162         (_IO_mem_finish): Likewise.
9163         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9164         (_IO_old_file_close_it): Likewise.
9165         (_IO_old_file_finish): Likewise.
9166         (_IO_old_file_fopen): Likewise.
9167         (_IO_old_file_attach): Likewise.
9168         (_IO_old_file_setbuf): Likewise.
9169         (_IO_old_do_write): Likewise.
9170         (old_do_write): Likewise.
9171         (_IO_old_file_underflow): Likewise.
9172         (_IO_old_file_overflow): Likewise.
9173         (_IO_old_file_sync): Likewise.
9174         (_IO_old_file_seekoff): Likewise.
9175         (_IO_old_file_write): Likewise.
9176         (_IO_old_file_xsputn): Likewise.
9177         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9178         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9179         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9180         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9181         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9182         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9183         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9184         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9185         (_IO_old_popen): Likewise.
9186         (_IO_old_proc_close): Likewise.
9187         * libio/oldpclose.c (__old_pclose): Likewise.
9188         * libio/pclose.c (__new_pclose): Likewise.
9189         * libio/peekc.c (_IO_peekc_locked): Likewise.
9190         * libio/putc.c (_IO_putc): Likewise.
9191         * libio/putc_u.c (putc_unlocked): Likewise.
9192         * libio/putchar.c (putchar): Likewise.
9193         * libio/putchar_u.c (putchar_unlocked): Likewise.
9194         * libio/putwc.c (putwc): Likewise.
9195         * libio/putwc_u.c (putwc_unlocked): Likewise.
9196         * libio/putwchar.c (putwchar): Likewise.
9197         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9198         * libio/rewind.c (rewind): Likewise.
9199         * libio/setbuf.c (setbuf): Likewise.
9200         * libio/setlinebuf.c (setlinebuf): Likewise.
9201         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9202         * libio/vscanf.c (_IO_vscanf): Likewise.
9203         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9204         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9205         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9206         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9207         (_IO_switch_to_main_wget_area): Likewise.
9208         (_IO_switch_to_wbackup_area): Likewise.
9209         (_IO_wsetb): Likewise.
9210         (_IO_wdefault_pbackfail): Likewise.
9211         (_IO_wdefault_finish): Likewise.
9212         (_IO_wdefault_uflow): Likewise.
9213         (__woverflow): Likewise.
9214         (__wuflow): Likewise.
9215         (__wunderflow): Likewise.
9216         (_IO_wdefault_xsputn): Likewise.
9217         (_IO_wdefault_xsgetn): Likewise.
9218         (_IO_wdoallocbuf): Likewise.
9219         (_IO_wdefault_doallocate): Likewise.
9220         (_IO_switch_to_wget_mode): Likewise.
9221         (_IO_free_wbackup_area): Likewise.
9222         (_IO_switch_to_wput_mode): Likewise.
9223         (_IO_sputbackwc): Likewise.
9224         (_IO_sungetwc): Likewise.
9225         (_IO_adjust_wcolumn): Likewise.
9226         (_IO_init_wmarker): Likewise.
9227         (_IO_wmarker_delta): Likewise.
9228         (_IO_seekwmark): Likewise.
9229         (_IO_unsave_wmarkers): Likewise.
9230         * libio/wmemstream.c (open_wmemstream): Likewise.
9231         (_IO_wmem_sync): Likewise.
9232         (_IO_wmem_finish): Likewise.
9233         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9234         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9235         * locale/programs/simple-hash.c (init_hash): Likewise.
9236         (delete_hash): Likewise.
9237         (insert_entry): Likewise.
9238         (set_entry): Likewise.
9239         (next_prime): Likewise.
9240         (is_prime): Likewise.
9241         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9242         (xmalloc): Likewise.
9243         (xrealloc): Likewise.
9244         * locale/programs/xstrdup.c (xstrdup): Likewise.
9245         * localedata/collate-test.c (xstrcoll): Likewise.
9246         * localedata/xfrm-test.c (xstrcmp): Likewise.
9247         * login/getlogin_r.c (__getlogin_r): Likewise.
9248         * login/getpt.c (__posix_openpt): Likewise.
9249         * login/login_tty.c (login_tty): Likewise.
9250         * login/setlogin.c (setlogin): Likewise.
9251         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9252         (mach_msg_destroy_port): Likewise.
9253         (mach_msg_destroy_memory): Likewise.
9254         * malloc/mcheck.c (flood): Likewise.
9255         * misc/acct.c (acct): Likewise.
9256         * misc/brk.c (__brk): Likewise.
9257         * misc/chflags.c (chflags): Likewise.
9258         * misc/chroot.c (chroot): Likewise.
9259         * misc/fchflags.c (fchflags): Likewise.
9260         * misc/fstab.c (getfsspec): Likewise.
9261         (getfsfile): Likewise.
9262         * misc/fsync.c (fsync): Likewise.
9263         * misc/ftruncate.c (__ftruncate): Likewise.
9264         * misc/ftruncate64.c (__ftruncate64): Likewise.
9265         * misc/getdomain.c (getdomainname): Likewise.
9266         (getdomainname): Likewise.
9267         * misc/gethostname.c (__gethostname): Likewise.
9268         * misc/getpass.c (getpass): Likewise.
9269         * misc/getttyent.c (skip): Likewise.
9270         (value): Likewise.
9271         * misc/gtty.c (gtty): Likewise.
9272         * misc/hsearch.c (hsearch): Likewise.
9273         (hcreate): Likewise.
9274         * misc/hsearch_r.c (__hcreate_r): Likewise.
9275         (__hdestroy_r): Likewise.
9276         * misc/ioctl.c (__ioctl): Likewise.
9277         * misc/mkdtemp.c (mkdtemp): Likewise.
9278         * misc/mkostemp.c (mkostemp): Likewise.
9279         * misc/mkostemp64.c (mkostemp64): Likewise.
9280         * misc/mkostemps.c (mkostemps): Likewise.
9281         * misc/mkostemps64.c (mkostemps64): Likewise.
9282         * misc/mkstemp.c (mkstemp): Likewise.
9283         * misc/mkstemp64.c (mkstemp64): Likewise.
9284         * misc/mkstemps.c (mkstemps): Likewise.
9285         * misc/mkstemps64.c (mkstemps64): Likewise.
9286         * misc/mktemp.c (__mktemp): Likewise.
9287         * misc/preadv.c (preadv): Likewise.
9288         * misc/preadv64.c (preadv64): Likewise.
9289         * misc/pwritev.c (pwritev): Likewise.
9290         * misc/pwritev64.c (pwritev64): Likewise.
9291         * misc/readv.c (__readv): Likewise.
9292         * misc/revoke.c (revoke): Likewise.
9293         * misc/setdomain.c (setdomainname): Likewise.
9294         * misc/setegid.c (setegid): Likewise.
9295         * misc/seteuid.c (seteuid): Likewise.
9296         * misc/sethostid.c (sethostid): Likewise.
9297         * misc/sethostname.c (sethostname): Likewise.
9298         * misc/setregid.c (__setregid): Likewise.
9299         * misc/setreuid.c (__setreuid): Likewise.
9300         * misc/sstk.c (sstk): Likewise.
9301         * misc/stty.c (stty): Likewise.
9302         * misc/syscall.c (syscall): Likewise.
9303         * misc/syslog.c (setlogmask): Likewise.
9304         * misc/truncate.c (__truncate): Likewise.
9305         * misc/truncate64.c (truncate64): Likewise.
9306         * misc/ualarm.c (ualarm): Likewise.
9307         * misc/usleep.c (usleep): Likewise.
9308         * misc/ustat.c (ustat): Likewise.
9309         * misc/writev.c (__writev): Likewise.
9310         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9311         * nptl/old_pthread_cond_broadcast.c
9312         (__pthread_cond_broadcast_2_0): Likewise.
9313         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9314         Likewise.
9315         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9316         Likewise.
9317         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9318         Likewise.
9319         * nptl/pt-raise.c (raise): Likewise.
9320         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9321         Likewise.
9322         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9323         * nptl/pthread_barrierattr_destroy.c
9324         (pthread_barrierattr_destroy): Likewise.
9325         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9326         Likewise.
9327         * nptl/pthread_barrierattr_setpshared.c
9328         (pthread_barrierattr_setpshared): Likewise.
9329         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9330         Likewise.
9331         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9332         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9333         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9334         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9335         Likewise.
9336         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9337         Likewise.
9338         * nptl/pthread_condattr_getpshared.c
9339         (pthread_condattr_getpshared): Likewise.
9340         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9341         Likewise.
9342         * nptl/pthread_condattr_setpshared.c
9343         (pthread_condattr_setpshared): Likewise.
9344         * nptl/pthread_detach.c (pthread_detach): Likewise.
9345         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9346         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9347         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9348         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9349         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9350         Likewise.
9351         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9352         Likewise.
9353         * nptl/pthread_mutex_getprioceiling.c
9354         (pthread_mutex_getprioceiling): Likewise.
9355         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9356         Likewise.
9357         * nptl/pthread_mutexattr_getprotocol.c
9358         (pthread_mutexattr_getprotocol): Likewise.
9359         * nptl/pthread_mutexattr_getpshared.c
9360         (pthread_mutexattr_getpshared): Likewise.
9361         * nptl/pthread_mutexattr_getrobust.c
9362         (pthread_mutexattr_getrobust): Likewise.
9363         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9364         Likewise.
9365         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9366         Likewise.
9367         * nptl/pthread_mutexattr_setprioceiling.c
9368         (pthread_mutexattr_setprioceiling): Likewise.
9369         * nptl/pthread_mutexattr_setprotocol.c
9370         (pthread_mutexattr_setprotocol): Likewise.
9371         * nptl/pthread_mutexattr_setpshared.c
9372         (pthread_mutexattr_setpshared): Likewise.
9373         * nptl/pthread_mutexattr_setrobust.c
9374         (pthread_mutexattr_setrobust): Likewise.
9375         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9376         Likewise.
9377         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9378         Likewise.
9379         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9380         Likewise.
9381         * nptl/pthread_rwlockattr_getkind_np.c
9382         (pthread_rwlockattr_getkind_np): Likewise.
9383         * nptl/pthread_rwlockattr_getpshared.c
9384         (pthread_rwlockattr_getpshared): Likewise.
9385         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9386         Likewise.
9387         * nptl/pthread_rwlockattr_setkind_np.c
9388         (pthread_rwlockattr_setkind_np): Likewise.
9389         * nptl/pthread_rwlockattr_setpshared.c
9390         (pthread_rwlockattr_setpshared): Likewise.
9391         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9392         Likewise.
9393         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9394         Likewise.
9395         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9396         Likewise.
9397         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9398         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9399         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9400         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9401         * nptl/sem_close.c (sem_close): Likewise.
9402         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9403         * nptl/sem_init.c (__old_sem_init): Likewise.
9404         * nptl/sigaction.c (__sigaction): Likewise.
9405         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9406         * posix/_exit.c (_exit): Likewise.
9407         * posix/alarm.c (alarm): Likewise.
9408         * posix/confstr.c (confstr): Likewise.
9409         * posix/fpathconf.c (__fpathconf): Likewise.
9410         * posix/getgroups.c (__getgroups): Likewise.
9411         * posix/getpgid.c (__getpgid): Likewise.
9412         * posix/group_member.c (__group_member): Likewise.
9413         * posix/pathconf.c (__pathconf): Likewise.
9414         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9415         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9416         * posix/setgid.c (__setgid): Likewise.
9417         * posix/setpgid.c (__setpgid): Likewise.
9418         * posix/setuid.c (__setuid): Likewise.
9419         * posix/sleep.c (__sleep): Likewise.
9420         * posix/sysconf.c (__sysconf): Likewise.
9421         * posix/times.c (__times): Likewise.
9422         * posix/uname.c (__uname): Likewise.
9423         * posix/waitid.c (__waitid): Likewise.
9424         * pwd/getpw.c (__getpw): Likewise.
9425         * resolv/base64.c (b64_pton): Likewise.
9426         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9427         * resolv/gethnamaddr.c (Dprintf): Likewise.
9428         (gethostbyname): Likewise.
9429         (gethostbyname2): Likewise.
9430         (gethostbyaddr): Likewise.
9431         (_sethtent): Likewise.
9432         (_gethtbyname): Likewise.
9433         (_gethtbyname2): Likewise.
9434         (_gethtbyaddr): Likewise.
9435         (map_v4v6_address): Likewise.
9436         (map_v4v6_hostent): Likewise.
9437         (addrsort): Likewise.
9438         (ht_sethostent): Likewise.
9439         (ht_gethostbyname): Likewise.
9440         (ht_gethostbyaddr): Likewise.
9441         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9442         (inet_net_ntop_ipv4): Likewise.
9443         * resolv/inet_neta.c (inet_neta): Likewise.
9444         * resolv/inet_ntop.c (inet_ntop): Likewise.
9445         (inet_ntop4): Likewise.
9446         (inet_ntop6): Likewise.
9447         * resolv/inet_pton.c (__inet_pton): Likewise.
9448         (inet_pton4): Likewise.
9449         (inet_pton6): Likewise.
9450         * resolv/res_debug.c (loc_aton): Likewise.
9451         (loc_ntoa): Likewise.
9452         * resource/getpriority.c (__getpriority): Likewise.
9453         * resource/getrusage.c (__getrusage): Likewise.
9454         * resource/nice.c (nice): Likewise.
9455         * resource/setpriority.c (__setpriority): Likewise.
9456         * resource/setrlimit64.c (setrlimit64): Likewise.
9457         * resource/vlimit.c (vlimit): Likewise.
9458         * resource/vtimes.c (vtimes): Likewise.
9459         * rt/aio_error.c (aio_error): Likewise.
9460         * rt/aio_return.c (aio_return): Likewise.
9461         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9462         * signal/kill.c (__kill): Likewise.
9463         * signal/killpg.c (killpg): Likewise.
9464         * signal/raise.c (raise): Likewise.
9465         * signal/sigaction.c (__sigaction): Likewise.
9466         * signal/sigaddset.c (sigaddset): Likewise.
9467         * signal/sigaltstack.c (sigaltstack): Likewise.
9468         * signal/sigandset.c (sigandset): Likewise.
9469         * signal/sigblock.c (__sigblock): Likewise.
9470         * signal/sigdelset.c (sigdelset): Likewise.
9471         * signal/sigempty.c (sigemptyset): Likewise.
9472         * signal/sigfillset.c (sigfillset): Likewise.
9473         * signal/sighold.c (sighold): Likewise.
9474         * signal/sigignore.c (sigignore): Likewise.
9475         * signal/sigintr.c (siginterrupt): Likewise.
9476         * signal/sigisempty.c (sigisemptyset): Likewise.
9477         * signal/sigismem.c (sigismember): Likewise.
9478         * signal/signal.c (signal): Likewise.
9479         * signal/sigorset.c (sigorset): Likewise.
9480         * signal/sigpause.c (__sigpause): Likewise.
9481         * signal/sigpending.c (sigpending): Likewise.
9482         * signal/sigprocmask.c (__sigprocmask): Likewise.
9483         * signal/sigrelse.c (sigrelse): Likewise.
9484         * signal/sigreturn.c (__sigreturn): Likewise.
9485         * signal/sigset.c (sigset): Likewise.
9486         * signal/sigsetmask.c (__sigsetmask): Likewise.
9487         * signal/sigstack.c (sigstack): Likewise.
9488         * signal/sigsuspend.c (__sigsuspend): Likewise.
9489         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9490         * signal/sysv_signal.c (__sysv_signal): Likewise.
9491         * socket/accept.c (accept): Likewise.
9492         * socket/accept4.c (__libc_accept4): Likewise.
9493         * socket/bind.c (__bind): Likewise.
9494         * socket/connect.c (__connect): Likewise.
9495         * socket/getpeername.c (getpeername): Likewise.
9496         * socket/getsockname.c (__getsockname): Likewise.
9497         * socket/getsockopt.c (getsockopt): Likewise.
9498         * socket/listen.c (__listen): Likewise.
9499         * socket/recv.c (__recv): Likewise.
9500         * socket/recvmsg.c (__recvmsg): Likewise.
9501         * socket/send.c (__send): Likewise.
9502         * socket/sendmsg.c (__sendmsg): Likewise.
9503         * socket/shutdown.c (shutdown): Likewise.
9504         * socket/sockatmark.c (sockatmark): Likewise.
9505         * socket/socket.c (__socket): Likewise.
9506         * stdio-common/ctermid.c (ctermid): Likewise.
9507         * stdio-common/cuserid.c (cuserid): Likewise.
9508         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9509         * stdio-common/remove.c (remove): Likewise.
9510         * stdio-common/rename.c (rename): Likewise.
9511         * stdio-common/renameat.c (renameat): Likewise.
9512         * stdio-common/tempname.c (__gen_tempname): Likewise.
9513         * stdio-common/xbug.c (InitBuffer): Likewise.
9514         (AppendToBuffer): Likewise.
9515         (ReadFile): Likewise.
9516         * stdlib/a64l.c (a64l): Likewise.
9517         * stdlib/drand48_r.c (drand48_r): Likewise.
9518         * stdlib/getcontext.c (getcontext): Likewise.
9519         * stdlib/getenv.c (getenv): Likewise.
9520         * stdlib/l64a.c (l64a): Likewise.
9521         * stdlib/llabs.c (llabs): Likewise.
9522         * stdlib/lldiv.c (lldiv): Likewise.
9523         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9524         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9525         * stdlib/putenv.c (putenv): Likewise.
9526         * stdlib/random.c (__srandom): Likewise.
9527         (__initstate): Likewise.
9528         (__setstate): Likewise.
9529         * stdlib/random_r.c (__srandom_r): Likewise.
9530         (__setstate_r): Likewise.
9531         (__random_r): Likewise.
9532         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9533         * stdlib/setcontext.c (setcontext): Likewise.
9534         * stdlib/setenv.c (setenv): Likewise.
9535         (unsetenv): Likewise.
9536         * stdlib/srand48.c (srand48): Likewise.
9537         * stdlib/srand48_r.c (__srand48_r): Likewise.
9538         * stdlib/swapcontext.c (swapcontext): Likewise.
9539         * stdlib/system.c (__libc_system): Likewise.
9540         * stdlib/tst-strtod.c (expand): Likewise.
9541         * stdlib/tst-strtol.c (expand): Likewise.
9542         * stdlib/tst-strtoll.c (expand): Likewise.
9543         * streams/fattach.c (fattach): Likewise.
9544         * streams/fdetach.c (fdetach): Likewise.
9545         * streams/getmsg.c (getmsg): Likewise.
9546         * streams/isastream.c (isastream): Likewise.
9547         * string/ffs.c (__ffs): Likewise.
9548         * string/ffsll.c (ffsll): Likewise.
9549         * string/memcmp.c (memcmp_common_alignment): Likewise.
9550         (memcmp_not_common_alignment): Likewise.
9551         (MEMCMP): Likewise.
9552         * string/memcpy.c (memcpy): Likewise.
9553         * string/memmove.c (MEMMOVE): Likewise.
9554         * string/memset.c (memset): Likewise.
9555         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9556         * string/strchrnul.c (STRCHRNUL): Likewise.
9557         * string/strerror.c (strerror): Likewise.
9558         * string/strndup.c (__strndup): Likewise.
9559         * string/strverscmp.c (__strverscmp): Likewise.
9560         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9561         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9562         (clnttcp_freeres): Likewise.
9563         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9564         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9565         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9566         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9567         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9568         (xdr_callhdr): Likewise.
9569         * sunrpc/rpcinfo.c (udpping): Likewise.
9570         (tcpping): Likewise.
9571         (pstatus): Likewise.
9572         (pmapdump): Likewise.
9573         (brdcst): Likewise.
9574         (deletereg): Likewise.
9575         (getprognum): Likewise.
9576         (getvers): Likewise.
9577         (get_inet_address): Likewise.
9578         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9579         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9580         (svcudp_stat): Likewise.
9581         (svcudp_recv): Likewise.
9582         (svcudp_reply): Likewise.
9583         (svcudp_getargs): Likewise.
9584         (svcudp_freeargs): Likewise.
9585         (svcudp_destroy): Likewise.
9586         * sunrpc/xdr.c (xdr_bytes): Likewise.
9587         (xdr_netobj): Likewise.
9588         (xdr_string): Likewise.
9589         (xdr_wrapstring): Likewise.
9590         * sunrpc/xdr_float.c (xdr_float): Likewise.
9591         (xdr_double): Likewise.
9592         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9593         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9594         * sysvipc/ftok.c (ftok): Likewise.
9595         * sysvipc/msgctl.c (msgctl): Likewise.
9596         * sysvipc/msgget.c (msgget): Likewise.
9597         * sysvipc/msgrcv.c (msgrcv): Likewise.
9598         * sysvipc/msgsnd.c (msgsnd): Likewise.
9599         * sysvipc/semget.c (semget): Likewise.
9600         * sysvipc/semop.c (semop): Likewise.
9601         * sysvipc/shmat.c (shmat): Likewise.
9602         * sysvipc/shmctl.c (shmctl): Likewise.
9603         * sysvipc/shmdt.c (shmdt): Likewise.
9604         * sysvipc/shmget.c (shmget): Likewise.
9605         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9606         * termios/speed.c (cfgetospeed): Likewise.
9607         (cfgetispeed): Likewise.
9608         (cfsetospeed): Likewise.
9609         (cfsetispeed): Likewise.
9610         * termios/tcflow.c (tcflow): Likewise.
9611         * termios/tcflush.c (tcflush): Likewise.
9612         * termios/tcgetattr.c (__tcgetattr): Likewise.
9613         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9614         * termios/tcgetsid.c (tcgetsid): Likewise.
9615         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9616         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9617         * time/adjtime.c (__adjtime): Likewise.
9618         * time/dysize.c (dysize): Likewise.
9619         * time/ftime.c (ftime): Likewise.
9620         * time/getitimer.c (__getitimer): Likewise.
9621         * time/gettimeofday.c (__gettimeofday): Likewise.
9622         * time/gmtime.c (__gmtime_r): Likewise.
9623         (gmtime): Likewise.
9624         * time/localtime.c (__localtime_r): Likewise.
9625         (localtime): Likewise.
9626         * time/offtime.c (__offtime): Likewise.
9627         * time/settimeofday.c (__settimeofday): Likewise.
9628         * time/stime.c (stime): Likewise.
9629         * time/strftime_l.c (tm_diff): Likewise.
9630         (iso_week_days): Likewise.
9631         * time/strptime.c (strptime): Likewise.
9632         * time/time.c (time): Likewise.
9633         * time/timespec_get.c (timespec_get): Likewise.
9634         * time/tzset.c (tzset_internal): Likewise.
9635         (compute_change): Likewise.
9636         (__tz_compute): Likewise.
9637         * wcsmbs/btowc.c (__btowc): Likewise.
9638         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9639         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9640         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9641         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9642         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9643         * wcsmbs/wcscat.c (__wcscat): Likewise.
9644         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9645         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9646         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9647         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9648         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9649         * wcsmbs/wcslen.c (__wcslen): Likewise.
9650         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9651         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9652         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9653         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9654         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9655         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9656         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9657         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9658         * wcsmbs/wcstok.c (wcstok): Likewise.
9659         * wcsmbs/wctob.c (wctob): Likewise.
9660         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9661         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9662         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9663         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9664         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9665         * wcsmbs/wmemset.c (__wmemset): Likewise.
9666         * wctype/wcfuncs.c (__towlower): Likewise.
9667         (__towupper): Likewise.
9668
9669         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9670         (lll_unlock_elision): Add adapt_count parameter.
9671
9672 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9673
9674         * sysdeps/nptl/configure.ac: Do not give errors based on the
9675         results of top-level configure tests.
9676         * sysdeps/nptl/configure: Regenerated.
9677
9678         * configure.ac (libc_cv_Bgroup): Remove configure test.
9679         * configure: Regenerated.
9680         * config.make.in (have-Bgroup): Remove variable.
9681
9682         * configure.ac (sizeof_long_double): Remove configure test.
9683         * configure: Regenerated.
9684         * config.make.in (sizeof-long-double): Remove variable.
9685
9686         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9687         * configure: Regenerated.
9688         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9689         variable.
9690         (exceptions): Likewise.
9691         * sysdeps/arm/configure: Regenerated.
9692         * config.make.in (exceptions): Remove variable.
9693         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9694         $(exceptions).
9695         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9696         (CFLAGS-vdprintf_chk.c): Likewise.
9697         (CFLAGS-printf_chk.c): Likewise.
9698         (CFLAGS-fprintf_chk.c): Likewise.
9699         (CFLAGS-vprintf_chk.c): Likewise.
9700         (CFLAGS-vfprintf_chk.c): Likewise.
9701         (CFLAGS-gets_chk.c): Likewise.
9702         (CFLAGS-fgets_chk.c): Likewise.
9703         (CFLAGS-fgets_u_chk.c): Likewise.
9704         (CFLAGS-fread_chk.c): Likewise.
9705         (CFLAGS-fread_u_chk.c): Likewise.
9706         (CFLAGS-wprintf_chk.c): Likewise.
9707         (CFLAGS-fwprintf_chk.c): Likewise.
9708         (CFLAGS-vwprintf_chk.c): Likewise.
9709         (CFLAGS-vfwprintf_chk.c): Likewise.
9710         (CFLAGS-fgetws_chk.c): Likewise.
9711         (CFLAGS-fgetws_u_chk.c): Likewise.
9712         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9713         (CFLAGS-fputc.c): Likewise.
9714         (CFLAGS-fputwc.c): Likewise.
9715         (CFLAGS-freopen64.c): Likewise.
9716         (CFLAGS-freopen.c): Likewise.
9717         (CFLAGS-fseek.c): Likewise.
9718         (CFLAGS-fseeko64.c): Likewise.
9719         (CFLAGS-fseeko.c): Likewise.
9720         (CFLAGS-ftello64.c): Likewise.
9721         (CFLAGS-ftello.c): Likewise.
9722         (CFLAGS-fwide.c): Likewise.
9723         (CFLAGS-genops.c): Likewise.
9724         (CFLAGS-getc.c): Likewise.
9725         (CFLAGS-getchar.c): Likewise.
9726         (CFLAGS-getwc.c): Likewise.
9727         (CFLAGS-getwchar.c): Likewise.
9728         (CFLAGS-iofclose.c): Likewise.
9729         (CFLAGS-iofflush.c): Likewise.
9730         (CFLAGS-iofgetpos64.c): Likewise.
9731         (CFLAGS-iofgetpos.c): Likewise.
9732         (CFLAGS-iofgets.c): Likewise.
9733         (CFLAGS-iofgetws.c): Likewise.
9734         (CFLAGS-iofputs.c): Likewise.
9735         (CFLAGS-iofputws.c): Likewise.
9736         (CFLAGS-iofread.c): Likewise.
9737         (CFLAGS-iofsetpos64.c): Likewise.
9738         (CFLAGS-iofsetpos.c): Likewise.
9739         (CFLAGS-ioftell.c): Likewise.
9740         (CFLAGS-iofwrite.c): Likewise.
9741         (CFLAGS-iogetdelim.c): Likewise.
9742         (CFLAGS-iogetline.c): Likewise.
9743         (CFLAGS-iogets.c): Likewise.
9744         (CFLAGS-iogetwline.c): Likewise.
9745         (CFLAGS-ioputs.c): Likewise.
9746         (CFLAGS-ioseekoff.c): Likewise.
9747         (CFLAGS-ioseekpos.c): Likewise.
9748         (CFLAGS-iosetbuffer.c): Likewise.
9749         (CFLAGS-iosetvbuf.c): Likewise.
9750         (CFLAGS-ioungetc.c): Likewise.
9751         (CFLAGS-ioungetwc.c): Likewise.
9752         (CFLAGS-oldfileops.c): Likewise.
9753         (CFLAGS-oldiofclose.c): Likewise.
9754         (CFLAGS-oldiofgetpos64.c): Likewise.
9755         (CFLAGS-oldiofgetpos.c): Likewise.
9756         (CFLAGS-oldiofsetpos64.c): Likewise.
9757         (CFLAGS-oldiofsetpos.c): Likewise.
9758         (CFLAGS-peekc.c): Likewise.
9759         (CFLAGS-putc.c): Likewise.
9760         (CFLAGS-putchar.c): Likewise.
9761         (CFLAGS-putwc.c): Likewise.
9762         (CFLAGS-putwchar.c): Likewise.
9763         (CFLAGS-rewind.c): Likewise.
9764         (CFLAGS-wfileops.c): Likewise.
9765         (CFLAGS-wgenops.c): Likewise.
9766         (CFLAGS-oldiofopen.c): Likewise.
9767         (CFLAGS-iofopen.c): Likewise.
9768         (CFLAGS-iofopen64.c): Likewise.
9769         (CFLAGS-oldtmpfile.c): Likewise.
9770         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9771         (CFLAGS-fprintf.c): Likewise.
9772         (CFLAGS-printf.c): Likewise.
9773         (CFLAGS-vfwprintf.c): Likewise.
9774         (CFLAGS-vfscanf.c): Likewise.
9775         (CFLAGS-vfwscanf.c): Likewise.
9776         (CFLAGS-fscanf.c): Likewise.
9777         (CFLAGS-scanf.c): Likewise.
9778         (CFLAGS-isoc99_vfscanf.c): Likewise.
9779         (CFLAGS-isoc99_vscanf.c): Likewise.
9780         (CFLAGS-isoc99_fscanf.c): Likewise.
9781         (CFLAGS-isoc99_scanf.c): Likewise.
9782         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9783         (CFLAGS-isoc99_fwscanf.c): Likewise.
9784         (CFLAGS-isoc99_vwscanf.c): Likewise.
9785         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9786
9787         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9788         after mkstemp64.
9789         * login/tst-utmp.c (do_prepare): Likewise.
9790         * rt/tst-aio.c (do_prepare): Likewise.
9791         * rt/tst-aio64.c (do_prepare): Likewise.
9792
9793 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9794
9795         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9796         (__lll_lock_elision): Remove adapt_count decrement...
9797         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9798         (__lll_trylock_elision): Likewise.
9799         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9800         (__lll_unlock_elision): ... to here. And utilize
9801         new adapt_count parameter.
9802         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9803         (__lll_unlock_elision): Update to include adapt_count
9804         parameter.
9805         (lll_unlock_elision): Pass pointer to adapt_count
9806         variable.
9807
9808 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9809
9810         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9811         Add elision adapt_count parameter to list of arguments.
9812         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9813         (lll_unlock_elision): Update with new parameter list
9814         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9815         (lll_unlock_elision): Likewise.
9816         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9817         (lll_unlock_elision): Likewise.
9818
9819 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9820
9821         [BZ #19122]
9822         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9823         attribute_hidden.
9824
9825         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9826         attribute_hidden.
9827         [IS_IN (rtld)] (__strdup): Likewise.
9828         [IS_IN (rtld)] (__strerror_r): Likewise.
9829         [IS_IN (rtld)] (__strsep_g): Likewise.
9830         [IS_IN (rtld)] (memchr): Likewise.
9831         [IS_IN (rtld)] (memcmp): Likewise.
9832         [IS_IN (rtld)] (memcpy): Likewise.
9833         [IS_IN (rtld)] (memmove): Likewise.
9834         [IS_IN (rtld)] (memset): Likewise.
9835         [IS_IN (rtld)] (rawmemchr): Likewise.
9836         [IS_IN (rtld)] (stpcpy): Likewise.
9837         [IS_IN (rtld)] (strchr): Likewise.
9838         [IS_IN (rtld)] (strcmp): Likewise.
9839         [IS_IN (rtld)] (strlen): Likewise.
9840         [IS_IN (rtld)] (strnlen): Likewise.
9841         [IS_IN (rtld)] (strsep): Likewise.
9842
9843         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9844         attribute_hidden.
9845         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9846
9847         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9848         attribute_hidden.
9849         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9850
9851         * include/setjmp.h (__longjmp): Add attribute_hidden.
9852         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9853
9854         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9855         Add attribute_hidden.
9856
9857         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9858         [IS_IN (rtld)] (__open): Likewise.
9859         [IS_IN (rtld)] (__fcntl): Likewise.
9860
9861         * include/dirent.h (__opendirat): Add attribute_hidden.
9862         (__getdents): Likewise.
9863         (__getdents64): Likewise.
9864         (__alloc_dir): Likewise.
9865         [IS_IN (rtld)] (__closedir): Likewise.
9866         [IS_IN (rtld)] (__fdopendir): Likewise.
9867         [IS_IN (rtld)] (__readdir): Likewise.
9868         [IS_IN (rtld)] (__readdir64): Likewise.
9869         [IS_IN (rtld)] (__rewinddir): Likewise.
9870
9871         * include/dlfcn.h (_dl_catch_error): Moved to ...
9872         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9873         attribute_hidden.
9874
9875         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9876         (_itoa_word): Likewise.
9877
9878         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9879         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9880         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9881         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9882         (_dl_higher_prime_number): Likewise.
9883         (_dl_debug_printf_c): Likewise.
9884         (_dl_signal_cerror): Likewise.
9885         (_dl_receive_error): Likewise.
9886         (_dl_reloc_bad_type): Likewise.
9887         (_dl_resolve_conflicts): Likewise.
9888         (_dl_check_all_versions): Likewise.
9889         (_dl_check_map_versions): Likewise.
9890         (_dl_sort_fini): Likewise.
9891         (_dl_debug_initialize): Likewise.
9892         (_dl_init_paths): Likewise.
9893         (_dl_show_auxv): Likewise.
9894         (_dl_next_ld_env_entry): Likewise.
9895         (_dl_important_hwcaps): Likewise.
9896         (_dl_load_cache_lookup): Likewise.
9897         (_dl_update_slotinfo): Likewise.
9898         (_dl_show_scope): Likewise.
9899
9900         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9901         attribute_hidden.
9902         (_wordcopy_fwd_dest_aligned): Likewise.
9903         (_wordcopy_bwd_aligned): Likewise.
9904         (_wordcopy_bwd_dest_aligned): Likewise.
9905
9906         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9907         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9908         Likewise.
9909         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9910         Likewise.
9911         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9912
9913 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9914
9915         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9916         GCC 5 requirement.
9917
9918 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9919
9920         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9921         test.
9922         * sysdeps/i386/configure: Regenerated.
9923         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9924         code unconditional.
9925
9926         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9927         test.
9928         (libc_cv_asm_popsection_directive): Likewise.
9929         * configure: Regenerated.
9930         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9931         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9932         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9933         (__make_section_unallocated): Make definition unconditional.
9934         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9935         Remove conditional definition.
9936         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9937         (__make_section_unallocated): Likewise.
9938
9939         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9940         * configure: Regenerated.
9941         * config.make.in (static-libgcc): Remove variable.
9942         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9943         $(static-libgcc).
9944         (build-module-helper): Likewise.
9945
9946         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9947         * configure: Regenerated.
9948
9949 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9950
9951         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9952         (struct char_buffer): New type.
9953         (char_buffer_start, char_buffer_size, char_buffer_error)
9954         (char_buffer_rewind, char_buffer_add): New functions.
9955         (ADDW): Remove macro, replaced by the char_buffer_add function.
9956         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9957         of extend_alloca.  Make control flow more explicit.
9958
9959 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9960
9961         [BZ #19137]
9962         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9963         Add -fomit-frame-pointer.
9964         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9965
9966 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9967
9968         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9969         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9970         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9971         only if !__GNUC_PREREQ (5,0).
9972         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9973         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9974         (INTERNAL_SYSCALL_NCS): Likewise.
9975         (LOADREGS_0): New macro for GCC 5.
9976         (ASMARGS_0): Likewise.
9977         (LOADREGS_1): Likewise.
9978         (ASMARGS_1): Likewise.
9979         (LOADREGS_2): Likewise.
9980         (ASMARGS_2): Likewise.
9981         (LOADREGS_3): Likewise.
9982         (ASMARGS_3): Likewise.
9983         (LOADREGS_4): Likewise.
9984         (ASMARGS_4): Likewise.
9985         (LOADREGS_5): Likewise.
9986         (ASMARGS_5): Likewise.
9987         (LOADREGS_6): Likewise.
9988         (ASMARGS_6): Likewise.
9989
9990 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9991
9992         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9993         -fomit-frame-pointer.
9994         (CFLAGS-mmap64.c): Likewise.
9995         (CFLAGS-semtimedop.c): Likewise.
9996         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9997         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9998         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9999         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10000
10001 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10002
10003         [BZ #18928]
10004         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10005         _dl_pointer_guard member.
10006         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10007         initializer.
10008         (security_init): Always set up pointer guard.
10009         (process_envvars): Do not process LD_POINTER_GUARD.
10010
10011 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10012
10013         [BZ #19134]
10014         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10015         (.LC2): Likewise.
10016         (.LC3): Likewise.
10017         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10018
10019 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10020
10021         [BZ #19129]
10022         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10023         r0 and r1.
10024
10025 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10026
10027         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10028
10029 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10030
10031         * include/stap-probe.h: Fix macro definition formatting.
10032
10033 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10034
10035         [BZ #19074]
10036         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10037         load and store num_ifs.
10038
10039 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10040
10041         [BZ #18822]
10042         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10043         (__sched_getaffinity_new): Add libc_hidden_proto and
10044         libc_hidden_def.
10045
10046 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10047
10048         [BZ #19007]
10049         * scripts/localplt.awk: Also allow GOT references.
10050         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10051         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10052         with "+ REL R_386_GLOB_DAT".
10053         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10054         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10055
10056 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10057
10058         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10059         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10060         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10061         Likewise.
10062         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10063         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10064         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10065         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10066         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10067         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10068         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10069         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10070         Likewise.
10071         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10072
10073 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10074
10075         [BZ #19125]
10076         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10077         <math_private.h> and <stdint.h>.
10078         (__llround): Avoid conversions to and from long long int, and
10079         subtractions, where those might raise spurious exceptions.
10080         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10081         <math_private.h> and <stdint.h>.
10082         (__llroundf): Avoid conversions to and from long long int, and
10083         subtractions, where those might raise spurious exceptions.
10084
10085 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10086
10087         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10088         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10089         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10090         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10091         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10092         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10093         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10094         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10095         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10096         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10097         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10098         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10099         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10100         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10101         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10102         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10103         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10104         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10105         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10106         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10107         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10108         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10109         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10110         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10111         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10112         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10113         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10114         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10115         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10116         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10117         (__xstat64_conv): Likewise.
10118         (__xstat32_conv): Likewise.
10119
10120 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10121
10122         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10123         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10124         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10125         <sysdeps/unix/sysv/linux/sysdep.h>.
10126         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10127         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10128         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10129         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10130         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10131         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10132         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10133         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10134         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10137         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10138         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10139         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10140         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10141         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10142         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10143         (sysdep-dl-routines): Add sysdep.
10144         [$(subdir) == nptl] (libpthread-routines): Likewise.
10145         [$(subdir) == rt] (librt-routines): Likewise.
10146         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10147         PIC when branching to SYSCALL_ERROR_LABEL.
10148         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10149         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10150         <sysdeps/unix/sysv/linux/sysdep.h>.
10151         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10152         (SYSCALL_ERROR_ERRNO): Removed.
10153         (SYSCALL_ERROR_HANDLER): Changed to empty.
10154         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10155         (__syscall_error): New prototype.
10156         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10157         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10158
10159 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10160
10161         [BZ #19124]
10162         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10163         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10164         _dl_runtime_resolve_avx.
10165         (_dl_runtime_profile_avx512): Make it a hidden alias of
10166         _dl_runtime_profile_avx.
10167
10168 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10169
10170         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10171         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10172         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10173         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10174
10175         [BZ #16422]
10176         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10177         New configure test.
10178         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10179         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10180         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10181         <math_private.h> and <stdint.h>.
10182         (__llrint): Avoid conversions to long long int where those might
10183         raise spurious exceptions.
10184         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10185         <math_private.h> and <stdint.h>.
10186         (__llrintf): Avoid conversions to long long int where those might
10187         raise spurious exceptions.
10188
10189 2015-10-12  Andreas Schwab  <schwab@suse.de>
10190
10191         [BZ #18969]
10192         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10193         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10194         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10195         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10196         $(gen-locales).
10197         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10198         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10199         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10200         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10201         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10202         $(gen-locales).
10203         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10204         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10205         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10206         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10207         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10208         ($(objpfx)tst-ftell-active-handler.out)
10209         ($(objpfx)tst-ftell-append.out)
10210         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10211         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10212         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10213         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10214         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10215         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10216         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10217         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10218         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10219         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10220         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10221         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10222         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10223         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10224         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10225         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10226         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10227         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10228         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10229         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10230         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10231         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10232         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10233         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10234         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10235         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10236         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10237         $(gen-locales).
10238         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10239         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10240         $(gen-locales).
10241         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10242         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10243         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10244         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10245         $(gen-locales).
10246         * libio/tst_wprintf2.c (main): Use explicit locale.
10247         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10248
10249 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10250
10251         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10252         __msg_sig_post.
10253         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10254
10255 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10256
10257         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10258         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10259
10260         * sysdeps/arm/libm-test-ulps: Regenerated.
10261
10262         [BZ #15470]
10263         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10264
10265         [BZ #16399]
10266         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10267         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10268         and <fix-fp-int-convert-overflow.h>.
10269         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10270         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10271         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10272         and <fix-fp-int-convert-overflow.h>.
10273         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10274         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10275         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10276         <fix-fp-int-convert-overflow.h>.
10277         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10278         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10279         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10280         <fix-fp-int-convert-overflow.h>.
10281         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10282         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10283         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10284         and <fix-fp-int-convert-overflow.h>.
10285         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10286         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10287         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10288         <limits.h> and <fix-fp-int-convert-overflow.h>.
10289         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10290         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10291         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10292         and <fix-fp-int-convert-overflow.h>.
10293         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10294         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10295         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10296         and <fix-fp-int-convert-overflow.h>.
10297         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10298         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10299         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10300
10301 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10302
10303         [BZ #18589]
10304         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10305         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10306         $(gen-locales).
10307
10308 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10309             Phil Blundell <pb@pbcl.net>
10310
10311         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10312         * nptl/tst-cancel26.c: New file.
10313         * nptl/tst-cancel27.c: Likewise.
10314
10315 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10316
10317         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10318         __ILP32__ isn't defined.
10319         (lrint): Likewise.
10320         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10321         (lrintf): Likewise.
10322         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10323         (lrintl): Likewise.
10324         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10325         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10326         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10327
10328 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10329
10330         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10331         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10332
10333         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10334         file.
10335         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10336         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10337
10338 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10339
10340         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10341         configure test.
10342         * sysdeps/i386/configure: Regenerated.
10343         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10344         configure test.
10345         * sysdeps/x86_64/configure: Regenerated.
10346         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10347         Make code unconditional.
10348
10349         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10350         test.
10351         * sysdeps/i386/configure: Regenerated.
10352         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10353         test.
10354         * sysdeps/x86_64/configure: Regenerated.
10355         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10356         Make code unconditional.
10357         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10358         Likewise.
10359         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10360         Likewise.
10361         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10362         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10363         code unconditional.
10364         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10365         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10366         code unconditional.
10367         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10368         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10369         code unconditional.
10370         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10371         code unconditional.
10372         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10373         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10374         code unconditional.
10375         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10376         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10377         code unconditional.
10378         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10379         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10380         code unconditional.
10381         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10382         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10383         code unconditional.
10384         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10385         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10386
10387         [BZ #19095]
10388         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10389         mantissa to long int before shifting left.
10390
10391 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10392
10393         [BZ #19094]
10394         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10395         <limits.h>.
10396         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10397         when result overflows but exception would not result from cast.
10398         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10399         <limits.h>.
10400         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10401         when result overflows but exception would not result from cast.
10402         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10403         <limits.h>.
10404         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10405         when result overflows but exception would not result from cast.
10406         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10407         <limits.h>.
10408         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10409         when result overflows but exception would not result from cast.
10410         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10411         <limits.h>.
10412         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10413         when result overflows but exception would not result from cast.
10414         * math/libm-test.inc (lrint_test_data): Add more tests.
10415         (llrint_test_data): Likewise.
10416
10417 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10418
10419         [BZ #18872]
10420         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10421         Move out from under [$(run-built-tests) = yes] conditional.
10422         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10423         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10424
10425 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10426
10427         [BZ #18589]
10428         * string/Makefile (tests): Add bug-strcoll2.
10429         (LOCALES): Add cs_CZ.UTF-8.
10430         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10431
10432         [BZ #18589]
10433         * string/bug-strcoll2.c: New file.
10434         * locale/categories.def: Revert commit
10435         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10436         * locale/langinfo.h: Likewise.
10437         * locale/localeinfo.h: Likewise.
10438         * locale/C-collate.c: Likewise.
10439         * locale/programs/ld-collate.c (collate_output): Likewise.
10440         * string/strcoll_l.c (STRDIFF): Likewise.
10441         (STRCOLL): Likewise.
10442         * wcsmbs/wcscoll_l.c: Likewise.
10443
10444 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10445
10446         * math/libm-test.inc (lround_test_data): Do not expect the absence
10447         of "inexact" for some tests with non-integer arguments.
10448         (llround_test_data): Likewise.
10449
10450         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10451         test.
10452         (libc_cv_cc_sse2avx): Likewise.
10453         * sysdeps/i386/configure: Regenerated.
10454         * sysdeps/i386/i686/multiarch/Makefile
10455         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10456         [$(subdir) = math].
10457         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10458         code unconditional.
10459         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10460         Likewise.
10461         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10462         Likewise.
10463         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10464         Likewise.
10465         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10466         test.
10467         (libc_cv_cc_sse2avx): Likewise.
10468         * sysdeps/x86_64/configure: Regenerated.
10469         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10470         unconditional.
10471         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10472         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10473         unconditional.
10474         (_dl_runtime_profile)
10475         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10476         conditional code.
10477         * sysdeps/x86_64/fpu/multiarch/Makefile
10478         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10479         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10480         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10481         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10482         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10483         * sysdeps/x86_64/fpu/multiarch/e_log.c
10484         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10485         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10486         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10487         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10488         Likewise.
10489         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10490         Likewise.
10491         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10492         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10493         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10494         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10495         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10496         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10497         (HAVE_SSE2AVX_SUPPORT): Likewise.
10498
10499 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10500
10501         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10502         instead of #pragma optimize.
10503
10504 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10505
10506         [BZ #17195]
10507         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10508         as is similarly done in systrim and _int_free already.
10509
10510 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10511
10512         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10513
10514 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10515
10516         [BZ #19088]
10517         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10518         <limits.h>.
10519         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10520         overflows but exception would not result from cast.
10521         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10522         and <limits.h>.
10523         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10524         overflows but exception would not result from cast.
10525         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10526         <limits.h>.
10527         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10528         overflows but exception would not result from cast.
10529         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10530         <limits.h>.
10531         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10532         overflows but exception would not result from cast.
10533         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10534         <limits.h>.
10535         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10536         overflows but exception would not result from cast.
10537         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10538         <limits.h>.
10539         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10540         overflows but exception would not result from cast.
10541         * math/libm-test.inc (lround_test_data): Add more tests.
10542         (llround_test_data): Likewise.
10543
10544 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10545
10546         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10547         (CFLAGS-ialloc.c): Ditto.
10548         (CFLAGS-scheck.c): Ditto.
10549
10550 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10551
10552         [BZ #19086]
10553         * manual/filesys.texi (Storage Allocation): Fix argument order for
10554         posix_fallocate64.
10555
10556 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10557
10558         [BZ #19085]
10559         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10560         exponent below 48 inside case for non-overflowing exponent.
10561         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10562
10563 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10564
10565         * iconvdata/cp737.h (from_idx): Add const.
10566         * iconvdata/cp775.h (from_idx): Likewise.
10567
10568 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10569
10570         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10571         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10572         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10573
10574         [BZ #19079]
10575         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10576         file, conditioned on [!_LP64].
10577         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10578         [!_LP64] (__lround): Do not define as function or alias.
10579         [!_LP64] (lround): Likewise.
10580         [!_LP64] (__lroundl): Likewise.
10581         [!_LP64] (lroundl): Likewise.
10582         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10583         macro.
10584         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10585         Likewise.
10586
10587 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10588
10589         * math/libm-test.inc (lrint_test_data): Add more tests.
10590         (llrint_test_data): Likewise.
10591         (lround_test_data): Likewise.
10592         (llround_test_data): Likewise.
10593
10594         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10595         (llrint_test_data): Add tests used for lrint.
10596
10597         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10598         test.
10599         * sysdeps/i386/configure: Regenerated.
10600         * sysdeps/i386/i686/multiarch/Makefile
10601         [$(config-cflags-sse4) = yes]: Make code unconditional.
10602         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10603         Likewise.
10604         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10605         Likewise.
10606         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10607         test.
10608         * sysdeps/x86_64/configure: Regenerated.
10609         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10610         Make code unconditional.
10611         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10612         Likewise.
10613         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10614         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10615
10616         * scripts/rpm2dynsym.sh: Remove file.
10617
10618 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10619
10620         * configure.ac (libc_cv_cxx_thread_local): Define.
10621         * configure: Regenerate.
10622         * config.make.in (have-cxx-thread_local): Define.
10623         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10624         (LDLIBS-tst-thread_local1): Define.
10625         (tests): Add tst-thread_local1.
10626         [have-cxx-thread_local != yes] (tests-unsupported): Add
10627         tst-thread_local1.
10628         * nptl/tst-thread_local1.cc: New file.
10629
10630 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10631
10632         [BZ #19078]
10633         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10634         (u_thres): Likewise.
10635         (__expl): Determine whether to call __kernel_standard_l based on
10636         value of result, not argument.
10637
10638         * math/libm-test.inc (scalb_test_data): Add more expectations for
10639         the "inexact" exception.
10640
10641         [BZ #19077]
10642         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10643         0.0L for argument 1.0L.
10644
10645         [BZ #19076]
10646         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10647         constant 0.0L when computing infinite result.
10648
10649 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10650
10651         [BZ #10432]
10652         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10653         malloc_usable_size.
10654
10655 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10656
10657         [BZ #19018]
10658         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10659         Mangle function pointer before storing it.
10660         (__call_tls_dtors): Demangle function pointer before calling it.
10661
10662 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10663
10664         [BZ #19012]
10665         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10666         Clean up on failure.
10667
10668 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10669
10670         [BZ #19071]
10671         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10672         long int variable to store possibly incremented high part of
10673         mantissa.
10674         * math/libm-test.inc (lround_test_data): Add tests used for
10675         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10676         for tests requiring 64-bit long.  Do not condition tests on
10677         [TEST_FLOAT] unnecessarily.
10678         (llround_test_data): Add tests used for lround.  Add another
10679         expectation for the "inexact" exception.  Do not condition tests
10680         on [TEST_FLOAT] unnecessarily.
10681
10682         [BZ #887]
10683         [BZ #19049]
10684         [BZ #19050]
10685         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10686         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10687         <fix-int-fp-convert-zero.h>.
10688         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10689         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10690         <fix-int-fp-convert-zero.h>.
10691         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10692         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10693         <fix-int-fp-convert-zero.h>.
10694         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10695         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10696         <fix-int-fp-convert-zero.h>.
10697         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10698         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10699         <fix-int-fp-convert-zero.h>.
10700         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10701         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10702         <fix-int-fp-convert-zero.h>.
10703         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10704         * sysdeps/ieee754/flt-32/s_erff.c: Include
10705         <fix-int-fp-convert-zero.h>.
10706         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10707         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10708         <fix-int-fp-convert-zero.h>.
10709         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10710         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10711         <fix-int-fp-convert-zero.h>.
10712         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10713         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10714         <fix-int-fp-convert-zero.h>.
10715         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10716         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10717         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10718         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10719         file.
10720         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10721
10722 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10723
10724         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10725
10726 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10727
10728         [BZ #19059]
10729         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10730         overflowing computation.
10731         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10732         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10733         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10734         Likewise.
10735         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10736         Likewise.
10737         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10738         Likewise.
10739         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10740         Likewise.
10741         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10742         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10743         Likewise.
10744         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10745         Likewise.
10746         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10747
10748         * nss/rewrite_field.c (__nss_rewrite_field): Use
10749         internal_function.
10750         * nss/valid_field.c (__nss_valid_field): Likewise.
10751         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10752
10753 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10754
10755         [BZ #18724]
10756         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10757         (__nss_invalid_field_characters, __nss_valid_field)
10758         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10759         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10760         tst-field.c: New file.
10761         * nss/Makefile (routines): Add valid_field, rewrite_field.
10762         (tests-static): Define unconditionally.
10763         (tests): Include tests-static.
10764         [build-static-nss] (tests-static): Use append.
10765         [build-static-nss] (tests): Remove modification.
10766         * nss/getent.c (print_group): Call putgrent.  Report error.
10767         (print_gshadow): Call putsgent.  Report error.
10768         (print_passwd): Call putpwent.  Report error.
10769         (print_shadow): Call putspent.  Report error.
10770         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10771         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10772         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10773         name, password, directory, shell fields for valid syntax.  Rewrite
10774         GECOS field to match syntax.
10775         * pwd/Makefile (tests): Add tst-putpwent.
10776         * pwd/tst-putpwent.c: New file.
10777         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10778         Check grName, grpasswd, gr_mem fields for valid syntax.
10779         Change loop variable i to size_t.
10780         * grp/Makefile (tests): Add tst-putgrent.
10781         * grp/tst-putgrent.c: New file.
10782         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10783         valid syntax.
10784         * shadow/Makefile (tests): Add tst-putspent.
10785         * shadow/tst-putspent.c: New file.
10786         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10787         sg_mem fields for valid syntax.
10788         * gshadow/Makefile (tests): Add tst-putsgent.
10789         * gshadow/tst-putsgent.c: New file.
10790
10791 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10792
10793         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10794         assembly instructions.
10795
10796 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10797
10798         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10799         prefix from operands.
10800
10801 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10802
10803         [BZ #16347]
10804         [BZ #19046]
10805         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10806         <libc-internal.h>.
10807         (MAXLGM): Do not use diagnostic control macros.
10808         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10809         threshold for ldbl-128ibm.
10810         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10811         instead of multiplying by log then subtracting.
10812         * math/auto-libm-test-in: Add more tests of lgamma.
10813         * math/auto-libm-test-out: Regenerated.
10814
10815         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10816         (TYPE_HEX_DIG): Likewise.
10817         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10818         precisions when printing floating-point numbers.
10819         (check_float_internal): Likewise.
10820
10821 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10822
10823         [BZ #16620]
10824         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10825         of log (10) rounded downward to 48 bits.
10826         (log10_low): Use corresponding low part of log (10).
10827
10828         [BZ #19032]
10829         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10830         compute result as (x - x) / (x - x) not as 0 / 0.
10831         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10832         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10833
10834         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10835         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10836         and expm1.
10837         * math/auto-libm-test-out: Regenerated.
10838         * math/libm-test.inc (acos_test_data): Add more tests.
10839         (asin_test_data): Likewise.
10840         (asinh_test_data): Likewise.
10841         (atan_test_data): Likewise.
10842         (atanh_test_data): Likewise.
10843         (atan2_test_data): Likewise.
10844         (cbrt_test_data): Likewise.
10845         (ceil_test_data): Likewise.
10846         (copysign_test_data): Likewise.
10847         (cos_test_data): Likewise.
10848         (cosh_test_data): Likewise.
10849         (erf_test_data): Likewise.
10850         (erfc_test_data): Likewise.
10851         (exp_test_data): Likewise.
10852         (exp10_test_data): Likewise.
10853         (exp2_test_data): Likewise.
10854         (expm1_test_data): Likewise.
10855         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10856
10857 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10858
10859         [BZ #19006]
10860         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10861         to ...
10862         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10863         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10864         to ...
10865         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10866         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10867         to ...
10868         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10869         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10870         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10871         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10872         to ...
10873         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10874         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10875         Moved to ...
10876         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10877         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10878         Moved to ...
10879         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10880         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10881         to ...
10882         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10883         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10884         Moved to ...
10885         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10886         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10887         to ...
10888         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10889         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10890         Removed.
10891         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10892         Likewise.
10893         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10894         Likewise.
10895         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10896         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10897         Likewise.
10898         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10899         Likewise.
10900         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10901         Likewise.
10902         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10903         Likewise.
10904         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10905         Likewise.
10906         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10907         Likewise.
10908         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10909         Likewise.
10910         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10911         Likewise.
10912         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10913         Likewise.
10914         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10915         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10916         Likewise.
10917         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10918         Likewise.
10919         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10920         Likewise.
10921         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10922         Likewise.
10923         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10924         Likewise.
10925         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10926         Replace ../i486/pthread_cond_timedwait.S with
10927         ../pthread_cond_timedwait.S.
10928
10929 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10930
10931         * math/libm-test.inc (acos_test_data): Refine expectations for
10932         errno and "inexact" exceptions.
10933         (acosh_test_data): Likewise.
10934         (asin_test_data): Likewise.
10935         (asinh_test_data): Likewise.
10936         (atan_test_data): Likewise.
10937         (atanh_test_data): Likewise.
10938         (atan2_test_data): Likewise.
10939         (cbrt_test_data): Likewise.
10940         (ceil_test_data): Likewise.
10941         (copysign_test_data): Likewise.
10942         (cosh_test_data): Likewise.
10943         (erf_test_data): Likewise.
10944         (erfc_test_data): Likewise.
10945         (exp_test_data): Likewise.
10946         (exp10_test_data): Likewise.
10947         (exp2_test_data): Likewise.
10948         (expm1_test_data): Likewise.
10949         (fabs_test_data): Likewise.
10950         (floor_test_data): Likewise.
10951         (fma_test_data): Likewise.
10952         (fmax_test_data): Likewise.
10953         (fmin_test_data): Likewise.
10954         (fmod_test_data): Likewise.
10955         (fpclassify_test_data): Likewise.
10956         (frexp_test_data): Likewise.
10957         (hypot_test_data): Likewise.
10958         (ilogb_test_data): Likewise.
10959         (isgreater_test_data): Likewise.
10960         (isgreaterequal_test_data): Likewise.
10961         (isinf_test_data): Likewise.
10962         (isless_test_data): Likewise.
10963         (islessequal_test_data): Likewise.
10964         (islessgreater_test_data): Likewise.
10965         (isnan_test_data): Likewise.
10966         (isnormal_test_data): Likewise.
10967         (issignaling_test_data): Likewise.
10968         (isunordered_test_data): Likewise.
10969         (j0_test_data): Likewise.
10970         (j1_test_data): Likewise.
10971         (jn_test_data): Likewise.
10972         (lgamma_test_data): Likewise.
10973         (lrint_test_data): Likewise.
10974         (llrint_test_data): Likewise.
10975         (log_test_data): Likewise.
10976         (log10_test_data): Likewise.
10977         (log1p_test_data): Likewise.
10978         (log2_test_data): Likewise.
10979         (logb_test_data): Likewise.
10980         (lround_test_data): Likewise.
10981         (llround_test_data): Likewise.
10982         (modf_test_data): Likewise.
10983         (nearbyint_test_data): Likewise.
10984         (nextafter_test_data): Likewise.
10985         (nexttoward_test_data): Likewise.
10986         (pow_test_data): Likewise.
10987         (remainder_test_data): Likewise.
10988         (remquo_test_data): Likewise.
10989         (rint_test_data): Likewise.
10990         (round_test_data): Likewise.
10991         (signbit_test_data): Likewise.
10992         (sinh_test_data): Likewise.
10993         (sqrt_test_data): Likewise.
10994         (tanh_test_data): Likewise.
10995         (tgamma_test_data): Likewise.
10996         (trunc_test_data): Likewise.
10997         (y0_test_data): Likewise.
10998         (y1_test_data): Likewise.
10999         (yn_test_data): Likewise.
11000         (significand_test_data): Likewise.
11001
11002 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11003
11004         * manual/filesys.texi (Storage Allocation): Document that
11005         posix_fallocate emulation fails when fd is open with O_WRONLY.
11006
11007 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11008
11009         [BZ #19016]
11010         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11011         allow more cases with X^2 + Y^2 >= 0.5.
11012         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11013         normal element in sum instead of special-casing based on values of
11014         arguments.
11015         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11016         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11017         -1 as normal element in sum instead of special-casing based on
11018         values of arguments.
11019         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11020         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11021         (__x2y2m1): Update comment.
11022         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11023         as normal element in sum instead of special-casing based on values
11024         of arguments.
11025         * math/s_clog.c (__clog): Handle more cases using log1p without
11026         hypot.
11027         * math/s_clog10.c (__clog10): Likewise.
11028         * math/s_clog10f.c (__clog10f): Likewise.
11029         * math/s_clog10l.c (__clog10l): Likewise.
11030         * math/s_clogf.c (__clogf): Likewise.
11031         * math/s_clogl.c (__clogl): Likewise.
11032         * math/auto-libm-test-in: Add more tests of clog and clog10.
11033         * math/auto-libm-test-out: Regenerated.
11034         * sysdeps/i386/fpu/libm-test-ulps: Update.
11035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11036
11037 2015-09-28  Martin Sebor  <msebor@redhat.com>
11038
11039         [BZ #18969]
11040         * string/Makefile (LOCALES): Define.
11041         (gen-locales.mk): Include.
11042         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11043         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11044         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11045         on setlocale failure.
11046
11047 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11048
11049         [BZ #18985]
11050         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11051         (__strftime_internal): Likewise.
11052         * time/tst-strftime.c (do_bz18985): New test.
11053         (do_test): Call it.
11054
11055 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11056
11057         [BZ #18956]
11058         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11059         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11060         extracting high part.
11061         * math/auto-libm-test-in: Add another test of pow.
11062         * math/auto-libm-test-out: Regenerated.
11063         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11064
11065 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11066
11067         [BZ #18825]
11068         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11069         New macro.
11070         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11071         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11072         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11073         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11074         DBL_NARROW_EVAL, reloading the PIC register as needed.
11075         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11076         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11077         FLT_NARROW_EVAL.  Use separate return path for case when first
11078         argument is NaN.
11079         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11080         DEFINE_LDBL_MIN.
11081         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11082         PIC register.
11083         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11084         math_check_force_underflow_nonneg.
11085         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11086         underflow for subnormal result.
11087         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11088         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11089         math_check_force_underflow_nonneg.
11090         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11091         math_check_force_underflow.
11092         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11093         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11094         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11095         DEFINE_LDBL_MIN.
11096         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11097         * math/auto-libm-test-in: Add more tests of pow.
11098         * math/auto-libm-test-out: Regenerated.
11099
11100 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11101
11102         * nss/bug17079.c (init_test_items): Add diagnostic for
11103         inconsistent entries.
11104         (test_buffer_size): Skip inconsistent entries.
11105
11106 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11107
11108         [BZ #13304]
11109         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11110         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11111         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11112
11113         [BZ #13304]
11114         * sysdeps/microblaze/s_fma.c: New file.
11115         * sysdeps/microblaze/s_fmaf.c: Likewise.
11116         * sysdeps/microblaze/sfp-machine.h: Likewise.
11117
11118 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11119
11120         [BZ #17250]
11121         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11122         member.
11123
11124 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11125
11126         [BZ #18803]
11127         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11128         (MO): New macro.
11129         (__ieee754_hypot) [PIC]: Load PIC register.
11130         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11131         DBL_NARROW_EVAL.
11132         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11133         math_check_force_underflow_nonneg in case where result might be
11134         tiny.
11135         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11136         Likewise.
11137         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11138         Likewise.
11139         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11140         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11141         * math/auto-libm-test-in: Add more tests of hypot.
11142         * math/auto-libm-test-out: Regenerated.
11143
11144 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11145
11146         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11147
11148 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11149
11150         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11151         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11152         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11153         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11154         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11155         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11156         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11157
11158         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11159         LOAD_PIC_REG.
11160
11161         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11162         (FLT_CHECK_FORCE_UFLOW): Likewise.
11163         (DBL_CHECK_FORCE_UFLOW): Likewise.
11164         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11165         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11166         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11167         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11168         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11169         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11170         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11171         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11172         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11173         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11174         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11175         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11176         (flt_min): Replace with use of DEFINE_FLT_MIN.
11177         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11178         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11179         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11180         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11181         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11182         (flt_min): Replace with use of DEFINE_FLT_MIN.
11183         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11184         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11185         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11186         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11187         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11188         (flt_min): Replace with use of DEFINE_FLT_MIN.
11189         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11190         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11191         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11192         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11193         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11194         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11195         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11196         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11197         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11198         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11199         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11200         (flt_min): Replace with use of DEFINE_FLT_MIN.
11201         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11202         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11203         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11204         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11205         main computation.
11206         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11207         (flt_min): Replace with use of DEFINE_FLT_MIN.
11208         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11209         main computation.
11210         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11211         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11212         (MO): New macro.
11213         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11214         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11215         (flt_min): Replace with use of DEFINE_FLT_MIN.
11216         (MO): New macro.
11217         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11218         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11219         (__log1pl): Use MO.
11220
11221         [BZ #19003]
11222         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11223         $(config-cflags-nofma).
11224
11225 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11226
11227         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11228
11229 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11230
11231         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11232         (TWO127): Likewise.
11233
11234         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11235         (min_of_type): Likewise.
11236         (math_check_force_underflow): Likewise.
11237         (math_check_force_underflow_nonneg): Likewise.
11238         (math_check_force_underflow_complex): Likewise.
11239         * math/e_exp2l.c (__ieee754_exp2l): Use
11240         math_check_force_underflow_nonneg.
11241         * math/k_casinh.c (__kernel_casinh): Likewise.
11242         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11243         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11244         * math/s_catan.c (__catan): Use
11245         math_check_force_underflow_complex.
11246         * math/s_catanf.c (__catanf): Likewise.
11247         * math/s_catanh.c (__catanh): Likewise.
11248         * math/s_catanhf.c (__catanhf): Likewise.
11249         * math/s_catanhl.c (__catanhl): Likewise.
11250         * math/s_catanl.c (__catanl): Likewise.
11251         * math/s_ccosh.c (__ccosh): Likewise.
11252         * math/s_ccoshf.c (__ccoshf): Likewise.
11253         * math/s_ccoshl.c (__ccoshl): Likewise.
11254         * math/s_cexp.c (__cexp): Likewise.
11255         * math/s_cexpf.c (__cexpf): Likewise.
11256         * math/s_cexpl.c (__cexpl): Likewise.
11257         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11258         * math/s_clog10.c (__clog10): Likewise.
11259         * math/s_clog10f.c (__clog10f): Likewise.
11260         * math/s_clog10l.c (__clog10l): Likewise.
11261         * math/s_clogf.c (__clogf): Likewise.
11262         * math/s_clogl.c (__clogl): Likewise.
11263         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11264         * math/s_csinf.c (__csinf): Likewise.
11265         * math/s_csinh.c (__csinh): Likewise.
11266         * math/s_csinhf.c (__csinhf): Likewise.
11267         * math/s_csinhl.c (__csinhl): Likewise.
11268         * math/s_csinl.c (__csinl): Likewise.
11269         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11270         * math/s_csqrtf.c (__csqrtf): Likewise.
11271         * math/s_csqrtl.c (__csqrtl): Likewise.
11272         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11273         * math/s_ctanf.c (__ctanf): Likewise.
11274         * math/s_ctanh.c (__ctanh): Likewise.
11275         * math/s_ctanhf.c (__ctanhf): Likewise.
11276         * math/s_ctanhl.c (__ctanhl): Likewise.
11277         * math/s_ctanl.c (__ctanl): Likewise.
11278         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11279         instead of volatile.
11280         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11281         math_check_force_underflow.
11282         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11283         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11284         volatile when forcing underflow.
11285         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11286         math_check_force_underflow_nonneg.
11287         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11288         Likewise.
11289         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11290         math_check_force_underflow.
11291         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11292         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11293         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11294         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11295         math_check_force_underflow_nonneg.
11296         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11297         math_check_force_underflow.
11298         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11299         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11300         instead of volatile.
11301         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11302         math_check_force_underflow.
11303         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11304         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11305         math_check_force_underflow_nonneg.
11306         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11307         math_check_force_underflow.
11308         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11309         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11310         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11311         math_check_force_underflow_nonneg.
11312         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11313         Likewise.
11314         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11315         math_check_force_underflow.
11316         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11317         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11318         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11319         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11320         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11321         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11322         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11323         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11324         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11325         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11326         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11327         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11328         Likewise.
11329         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11330         math_check_force_underflow_nonneg.
11331         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11332         Likewise.
11333         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11334         math_check_force_underflow.
11335         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11336         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11337         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11338         Likewise.
11339         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11340         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11341         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11342         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11343         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11344         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11345         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11346         instead of volatile.
11347         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11348         math_check_force_underflow.
11349         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11350         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11351         math_check_force_underflow.
11352         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11353         Likewise.
11354         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11355         Use math_check_force_underflow_nonneg.
11356         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11357         math_check_force_underflow.
11358         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11359         Likewise.
11360         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11361         Likewise.
11362         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11363         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11364         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11365         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11366         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11367         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11368         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11369         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11370         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11371         math_check_force_underflow_nonneg.
11372         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11373         math_check_force_underflow.
11374         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11375         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11376         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11377         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11378         math_check_force_underflow_nonneg.
11379         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11380         math_check_force_underflow.
11381         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11382         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11383         instead of volatile.
11384         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11385         math_check_force_underflow.
11386
11387         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11388         * stdlib/strtod_l.c: Include <math_private.h>.
11389         (overflow_value): Use math_narrow_eval.
11390         (underflow_value): Likewise.
11391         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11392         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11393         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11394         (__ieee754_gamma_r): Likewise.
11395         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11396         Likewise.
11397         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11398         Likewise.
11399         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11400         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11401         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11402         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11403         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11404         (__ieee754_gammaf_r): Likewise.
11405         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11406         Likewise.
11407         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11408         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11409         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11410         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11411         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11412         volatile.
11413         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11414         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11415         math_narrow_eval.
11416         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11417         Likewise.
11418         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11419         Likewise.
11420         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11421         Likewise.
11422         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11423         volatile.
11424         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11425         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11426         math_narrow_eval.
11427         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11428         Likewise.
11429         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11430         Likewise.
11431
11432 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11433
11434         * nptl/Versions: Remove ignored symbols.
11435
11436 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11437
11438         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11439         * nss/Makefile (tests): Update.
11440
11441 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11442
11443         * nss/bug18287.c: New file.
11444         * nss/Makefile (tests): Add bug18287.
11445
11446 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11447
11448         * mach/Versions (__mach_host_self_): Add symbol.
11449
11450 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11451
11452         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11453         vm_page_size.
11454
11455 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11456
11457         Really fix sysdeps/i386/fpu/s_scalbn.S build
11458
11459         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11460         (libc: GLIBC_2_22): Remove unused version set.
11461
11462 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11463
11464         * config.make.in (enable-timezone-tools): New variable.
11465         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11466         (enable_timezone_tools): Export to generated files.
11467         * configure: Regenerate.
11468         * INSTALL: Regenerate.
11469         * manual/install.texi (--disable-timezone-tools): Document new flag.
11470         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11471         ifeq ($(enable-timezone-tools),yes) check.
11472
11473 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11474
11475         * timezone/Makefile: Revert previous change.
11476
11477         [BZ #18980]
11478         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11479         (DEFINE_DBL_MIN): Likewise.
11480         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11481         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11482         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11483         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11484         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11485         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11486         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11487         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11488         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11489         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11490         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11491         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11492         (flt_min): Replace with use of DEFINE_FLT_MIN.
11493         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11494         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11495         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11496         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11497         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11498         (flt_min): Replace with use of DEFINE_FLT_MIN.
11499         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11500         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11501         (flt_min): Replace with use of DEFINE_FLT_MIN.
11502         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11503         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11504         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11505         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11506         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11507         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11508         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11509         (__ieee754_pow): Use DBL_NARROW_EVAL.
11510         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11511         (__ieee754_powf): Use FLT_NARROW_EVAL.
11512         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11513         (__ieee754_expf_sse2): Convert double-precision result to single
11514         precision.
11515         * sysdeps/i386/fpu/libm-test-ulps: Update.
11516
11517 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11518
11519         * timezone/Makefile: Ignore unused variable errors due to private.h
11520         (time_t_min) and (time_t_max).
11521         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11522         Likewise.
11523
11524 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11525
11526         [BZ #18981]
11527         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11528         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11529         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11530         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11531         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11532         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11533         (__scalbn): Use DBL_NARROW_EVAL.
11534         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11535         (__scalbnf): Use FLT_NARROW_EVAL.
11536
11537 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11538
11539         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11540         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11541         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11542         * stdio-common/printf_fp.c (___printf_fp):
11543         Use signbit to get the sign. Use isinf macro to allow inlining.
11544         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11545         * stdio-common/printf_size.c (__printf_size): Likewise.
11546
11547 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11548
11549         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11550
11551 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11552
11553         [BZ #18980]
11554         * sysdeps/generic/math_private.h: Include <float.h>.
11555         (math_narrow_eval): New macro.
11556         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11557         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11558         math_narrow_eval on overflowing return value.
11559         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11560         Likewise.
11561         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11562         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11563         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11564         Likewise.
11565         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11566
11567 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11568
11569         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11570         * math/Makefile: Remove isinf_ns.c.
11571         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11572         * math/multc3.c (__multc3): Likewise.
11573         * math/s_casin.c (__casin): Likewise.
11574         * math/s_casinf.c (__casinf): Likewise.
11575         * math/s_casinl.c (__casinl): Likewise.
11576         * math/s_cproj.c (__cproj): Likewise.
11577         * math/s_cprojf.c (__cprojf): Likewise.
11578         * math/s_cprojl.c (__cprofl): Likewise.
11579         * math/s_ctan.c (__ctan): Likewise.
11580         * math/s_ctanf.c (__ctanf): Likewise.
11581         * math/s_ctanh.c (__ctanh): Likewise.
11582         * math/s_ctanhf.c (__ctanhf): Likewise.
11583         * math/s_ctanhl.c (__ctanhl): Likewise.
11584         * math/s_ctanl.c (__ctanl): Likewise.
11585         * math/w_fmod.c (__fmod): Likewise.
11586         * math/w_fmodf.c (__fmodf): Likewise.
11587         * math/w_fmodl.c (_fmodl): Likewise.
11588         * math/w_remainder.c (__remainder): Likewise.
11589         * math/w_remainderf.c (__remainderf): Likewise.
11590         * math/w_remainderl.c (__remainderl): Likewise.
11591         * math/w_scalb.c (__scalb): Likewise.
11592         * math/w_scalbf.c (__scalbf): Likewise.
11593         * math/w_scalbl.c (__scalbl): Likewise.
11594         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11595         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11596         with isinf.
11597         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11598         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11599         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11600         __isinf_nsf with isinf.
11601         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11602         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11603         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11604         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11605         with isinf.
11606         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11607         __isinf_nsl with isinf.
11608         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11609         with isinf.
11610         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11611         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11612         __isinf_nsl with isinf.
11613         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11614         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11615         with isinf.
11616
11617 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11618
11619         * resolv/base64.c (rcsid): Remove unused static.
11620         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11621         static.  (tqpi1): Likewise.
11622         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11623         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11624         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11625         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11626         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11627         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11628         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11629         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11630         Likewise.
11631
11632 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11633
11634         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11635         <nptl/pthreadP.h>.
11636         (_longjmp_unwind): Use __libc_ptf_call.
11637         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11638
11639 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11640
11641         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11642         * sysdeps/arm/__longjmp.S: Likewise.
11643
11644 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11645
11646         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11647         Use __builtin_signbit.
11648         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11649         Use __builtin_signbitf.
11650         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11651         Use __builtin_signbitl.
11652         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11653         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11654
11655 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11656
11657         [BZ #15367]
11658         [BZ #17441]
11659
11660         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11661         * math/math.h (fpclassify): Use __builtin_fpclassify when
11662         available.  (signbit): Use __builtin_signbit(f/l).
11663         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11664         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11665         (isinf): Use __builtin_isinf_sign.
11666
11667 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11668
11669         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11670         * benchtests/bench-math-inlines.c: New benchmark.
11671         * benchtests/bench-util.h: New file.
11672         * benchtests/bench-util.c: New file.
11673         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11674
11675 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11676
11677         * elf/tst-dlmopen1.c: Define TEST_SO.
11678         (do_test): Use TEST_SO.
11679
11680         * elf/dl-load.c: Include libc-internal.h.
11681         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11682
11683 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11684
11685         [BZ #17887]
11686         * time/strptime_l.c (__strptime_internal): Make %z accept
11687         [+-]HH:MM time zones.
11688
11689 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11690
11691         [BZ #17886]
11692         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11693         valid time zone.
11694
11695 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11696
11697         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11698         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11699         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11700         (__ASSUME_FDATASYNC): Delete.
11701
11702 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11703
11704         * conform/linknamespace.pl: Require weak undefined symbols to be
11705         in the standard namespace.
11706         (%strong_syms): Rename to %seen_syms.
11707         (%strong_seen): Rename to %seen_where.
11708
11709 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11710
11711         [BZ #18970]
11712         * misc/error.c (error): Replace pthread_setcancelstate with
11713         __pthread_setcancelstate.
11714         (error_at_line): Likewise.
11715         * posix/wordexp.c (parse_comm): Likewise.
11716         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11717         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11718         (__pthread_setcancelstate): This.
11719         (pthread_setcancelstate): Add an alias.
11720         * nptl/nptl-init.c (pthread_functions): Replace
11721         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11722         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11723         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11724         hidden_proto.
11725         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11726         it with hidden_def.
11727         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11728         (pthread_setcancelstate): Renamed to ...
11729         (__pthread_setcancelstate): This.
11730         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11731         __libc_ptf_call with __pthread_setcancelstate.
11732
11733 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11734             Andreas Schwab  <schwab@suse.de>
11735
11736         [BZ #17118]
11737         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11738         result when imaginary part of argument is infinite using sine and
11739         cosine.
11740         * math/s_ctanf.c (__ctanf): Likewise.
11741         * math/s_ctanl.c (__ctanl): Likewise.
11742         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11743         of result when real part of argument is infinite using sine and
11744         cosine.
11745         * math/s_ctanhf.c (__ctanhf): Likewise.
11746         * math/s_ctanhl.c (__ctanhl): Likewise.
11747         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11748         (ctanh_test_data): Add more tests of ctanh.
11749
11750 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11751
11752         [BZ #15384]
11753         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11754         bit-mask as in subtraction.
11755         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11756         Likewise.
11757         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11758         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11759         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11760
11761         [BZ #18951]
11762         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11763         underflow exception for small results.
11764         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11765         Likewise.
11766         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11767         Likewise.
11768         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11769         Likewise.
11770         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11771         Likewise.
11772         * math/auto-libm-test-in: Add more tests of tgamma.
11773         * math/auto-libm-test-out: Regenerated.
11774
11775 2015-09-17  Andreas Schwab  <schwab@suse.de>
11776
11777         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11778
11779 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11780
11781         [BZ #18977]
11782         * math/bits/mathcalls.h
11783         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11784         not declare.
11785         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11786         Likewise.
11787         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11788         Likewise.
11789         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11790         Likewise.
11791         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11792         Likewise.
11793         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11794         Likewise.
11795         * conform/data/math.h-data
11796         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11797         function.
11798         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11799         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11800         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11801         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11802         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11803         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11804         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11805         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11806         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11807         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11808         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11809
11810         [BZ #6803]
11811         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11812         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11813         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11814         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11815         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11816         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11817         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11818         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11819         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11820         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11821         Likewise.
11822         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11823         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11824         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11825         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11826         long_double_symbol calls.
11827         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11828         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11829         strong alias of __ldexpl.
11830         (scalbnl): Define using long_double_symbol.
11831         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11832         Remove alias.
11833         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11834         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11835         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11836         (scalbln_test_data): Add more errno expectations.
11837
11838 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11839
11840         Cache the host port like we cache the task port.  This way we do not
11841         need to call the kernel just to get the port.  Furthermore, we no
11842         longer increase the reference count on every invocation of
11843         `mach_host_self'.
11844
11845         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11846         Protect declarations against the macro expansion.
11847         * mach/mach_init.c (__mach_host_self_): New variable.
11848         (mach_init): Initialize `__mach_host_self_'.
11849         * mach/mach_init.h (__mach_host_self_): New declaration.
11850         (__mach_host_self, mach_host_self): New macros.
11851         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11852         Release reference.
11853
11854 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11855
11856         [BZ #4404]
11857         * po/de.po: Update from Translation Project.
11858
11859         [BZ #16415]
11860         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11861         (__expm1l): Remove code to handle positive infinity and overflow.
11862         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11863         variable.
11864         (__expm1l): Remove code to handle positive infinity and overflow.
11865
11866 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11867             Paul Pluzhnikov  <ppluzhnikov@google.com>
11868
11869         [BZ #18872]
11870         * stdio-common/Makefile (tst-printf-bz18872): New test.
11871         (tst-printf-bz18872-mem.out): Likewise.
11872         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11873         * stdio-common/vfprintf.c: Fix memory leaks.
11874
11875 2015-09-16  Andreas Schwab  <schwab@suse.de>
11876
11877         [BZ #17244]
11878         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11879         Remove extra va_start/va_end calls.
11880
11881         [BZ #17243]
11882         * posix/execl.c (execl): Add missing va_end.
11883         * posix/execle.c (execle): Likewise.
11884         * posix/execlp.c (execlp): Likewise.
11885
11886 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11887
11888         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11889         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11890
11891 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11892
11893         [BZ #18967]
11894         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11895         undefine around includes of <bits/mathcalls.h>.
11896         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11897         not declare function.
11898         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11899         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11900         (scalb): Likewise.
11901         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11902         not define macro.
11903         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11904         variable.
11905         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11906         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11907         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11908
11909         [BZ #18857]
11910         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11911         return non-finite argument without doing ordered comparisons on
11912         it.
11913
11914         [BZ #16296]
11915         * math/fenv.h (fegetround): Use __attribute_pure__.
11916         * include/fenv.h (__fegetround): Likewise.
11917
11918         [BZ #18595]
11919         * math/s_ctan.c (__ctan): Force underflow exception for results
11920         whose real or imaginary part has small absolute value.
11921         * math/s_ctanf.c (__ctanf): Likewise.
11922         * math/s_ctanh.c (__ctanh): Likewise.
11923         * math/s_ctanhf.c (__ctanhf): Likewise.
11924         * math/s_ctanhl.c (__ctanhl): Likewise.
11925         * math/s_ctanl.c (__ctanl): Likewise.
11926         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11927         and ctanh.  Add more tests of ctan and ctanh.
11928
11929         [BZ #15918]
11930         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11931         handling of cases where one argument is an infinity.
11932
11933         [BZ #18875]
11934         [BZ #18966]
11935         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11936         (MO): New macro.
11937         (__ieee754_exp10): For small results, force underflow exception
11938         and remove excess range and precision from return value.
11939         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11940         (MO): New macro.
11941         (__ieee754_exp10f): For small results, force underflow exception
11942         and remove excess range and precision from return value.
11943         * math/auto-libm-test-in: Add more tests of exp10.
11944         * math/auto-libm-test-out: Regenerated.
11945
11946 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11947
11948         [BZ #18875]
11949         [BZ #18961]
11950         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11951         (MO): New macro.
11952         (__ieee754_exp): For small results, force underflow exception and
11953         remove excess range and precision from return value.
11954         (__exp_finite): Likewise.
11955         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11956         (MO): New macro.
11957         (__ieee754_expf): For small results, force underflow exception and
11958         remove excess range and precision from return value.
11959         (__expf_finite): Likewise.
11960         * math/auto-libm-test-in: Add more tests of exp.
11961         * math/auto-libm-test-out: Regenerated.
11962
11963         [BZ #16521]
11964         [BZ #18875]
11965         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11966         small results.
11967         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11968         (MO): New macro.
11969         (__ieee754_exp2): For small results, force underflow exception and
11970         remove excess range and precision from return value.
11971         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11972         (MO): New macro.
11973         (__ieee754_exp2f): For small results, force underflow exception
11974         and remove excess range and precision from return value.
11975         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11976         (MO): New macro.
11977         (__ieee754_exp2l): Force underflow exception for small results.
11978         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11979         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11980         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11981         (MO): New macro.
11982         (__ieee754_exp2l): Force underflow exception for small results.
11983         * math/auto-libm-test-in: Add more tests or exp2.
11984         * math/auto-libm-test-out: Regenerated.
11985
11986 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11987
11988         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11989
11990         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11991         /dev/null.
11992
11993 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11994
11995         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11996         io fs process)): Drop spurious backslash.
11997
11998 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11999
12000         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12001         Use sysinfo system call instead of parsing /proc/meminfo.
12002         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12003         Likewise.
12004
12005 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12006
12007         [BZ #16985]
12008         * programs/localedef.c (main): Display argv[remaining] when
12009         output_path is NULL.
12010
12011 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12012
12013         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12014         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12015         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12016         tanh.
12017         * math/auto-libm-test-out: Regenerated.
12018         * sysdeps/i386/fpu/libm-test-ulps: Update.
12019         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12020         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12022
12023 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12024
12025         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12026         Use 'override' keyword to freeze the value here, preventing
12027         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12028
12029 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12030
12031         [BZ #14912]
12032         * sysdeps/aarch64/bits/atomic.h: Move to ...
12033         * sysdeps/aarch64/atomic-machine.h: ...here.
12034         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12035         _AARCH64_ATOMIC_MACHINE_H.
12036         * sysdeps/alpha/bits/atomic.h: Move to ...
12037         * sysdeps/alpha/atomic-machine.h: ...here.
12038         * sysdeps/arm/bits/atomic.h: Move to ...
12039         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12040         * bits/atomic.h: Move to ...
12041         * sysdeps/generic/atomic-machine.h: ...here.
12042         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12043         * sysdeps/i386/bits/atomic.h: Move to ...
12044         * sysdeps/i386/atomic-machine.h: ...here.
12045         * sysdeps/ia64/bits/atomic.h: Move to ...
12046         * sysdeps/ia64/atomic-machine.h: ...here.
12047         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12048         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12049         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12050         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12051         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12052         * sysdeps/microblaze/bits/atomic.h: Move to ...
12053         * sysdeps/microblaze/atomic-machine.h: ...here.
12054         * sysdeps/mips/bits/atomic.h: Move to ...
12055         * sysdeps/mips/atomic-machine.h: ...here.
12056         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12057         * sysdeps/powerpc/bits/atomic.h: Move to ...
12058         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12059         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12060         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12061         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12062         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12063         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12064         <atomic-machine.h> instead of <bits/atomic.h>.
12065         * sysdeps/s390/bits/atomic.h: Move to ...
12066         * sysdeps/s390/atomic-machine.h: ...here.
12067         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12068         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12069         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12070         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12071         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12072         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12073         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12074         * sysdeps/tile/bits/atomic.h: Move to ...
12075         * sysdeps/tile/atomic-machine.h: ...here.
12076         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12077         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12078         <sysdeps/tile/atomic-machine.h> instead of
12079         <sysdeps/tile/bits/atomic.h>.
12080         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12081         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12082         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12083         <sysdeps/tile/atomic-machine.h> instead of
12084         <sysdeps/tile/bits/atomic.h>.
12085         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12086         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12087         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12088         <sysdeps/arm/atomic-machine.h> instead of
12089         <sysdeps/arm/bits/atomic.h>.
12090         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12091         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12092         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12093         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12094         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12095         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12096         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12097         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12098         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12099         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12100         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12101         * sysdeps/x86_64/bits/atomic.h: Move to ...
12102         * sysdeps/x86_64/atomic-machine.h: ...here.
12103         * include/atomic.h: Include <atomic-machine.h> instead of
12104         <bits/atomic.h>.
12105
12106         * sysdeps/mips/mips32/libm-test-ulps: Update.
12107         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12108
12109         [BZ #18952]
12110         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12111         not convert non-integer negative arguments to int to determine the
12112         value of signgam.
12113         * math/auto-libm-test-in: Add more tests of lgamma.
12114         * math/auto-libm-test-out: Regenerated.
12115
12116         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12117         cosh, csqrt, erfc, expm1 and lgamma.
12118         * math/auto-libm-test-out: Regenerated.
12119         * sysdeps/i386/fpu/libm-test-ulps: Update.
12120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12121
12122 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12123
12124         [BZ #2542]
12125         [BZ #2543]
12126         [BZ #2558]
12127         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12128         __lgamma_neg for arguments from -28.0 to -2.0.
12129         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12130         __lgamma_negf for arguments from -15.0 to -2.0.
12131         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12132         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12133         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12134         Call __lgamma_negl for arguments from -33.0 to -2.0.
12135         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12136         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12137         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12138         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12144         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12145         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12146         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12147         (__lgamma_neg): Likewise.
12148         (__lgamma_negl): Likewise.
12149         (__lgamma_product): Likewise.
12150         (__lgamma_productl): Likewise.
12151         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12152         * math/auto-libm-test-in: Add more tests of lgamma.
12153         * math/auto-libm-test-out: Regenerated.
12154         * sysdeps/i386/fpu/libm-test-ulps: Update.
12155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12156
12157 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12158
12159         [BZ #18675]
12160         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12161
12162 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12163
12164         [BZ #14912]
12165         * bits/libc-lock.h: Move to ...
12166         * sysdeps/generic/libc-lock.h: ...here.
12167         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12168         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12169         * sysdeps/mach/hurd/libc-lock.h: ...here.
12170         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12171         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12172         * sysdeps/mach/bits/libc-lock.h: Move to ...
12173         * sysdeps/mach/libc-lock.h: ...here.
12174         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12175         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12176         * sysdeps/nptl/libc-lock.h: ...here.
12177         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12178         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12179         * sysdeps/nptl/libc-lockP.h: ...here.
12180         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12181         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12182         <bits/libc-lock.h>.
12183         * dirent/scandir-tail.c: Likewise.
12184         * dlfcn/dlerror.c: Likewise.
12185         * elf/dl-close.c: Likewise.
12186         * elf/dl-iteratephdr.c: Likewise.
12187         * elf/dl-lookup.c: Likewise.
12188         * elf/dl-open.c: Likewise.
12189         * elf/dl-support.c: Likewise.
12190         * elf/dl-writev.h: Likewise.
12191         * elf/rtld.c: Likewise.
12192         * grp/fgetgrent.c: Likewise.
12193         * gshadow/fgetsgent.c: Likewise.
12194         * gshadow/sgetsgent.c: Likewise.
12195         * iconv/gconv_conf.c: Likewise.
12196         * iconv/gconv_db.c: Likewise.
12197         * iconv/gconv_dl.c: Likewise.
12198         * iconv/gconv_int.h: Likewise.
12199         * iconv/gconv_trans.c: Likewise.
12200         * include/link.h: Likewise.
12201         * inet/getnameinfo.c: Likewise.
12202         * inet/getnetgrent.c: Likewise.
12203         * inet/getnetgrent_r.c: Likewise.
12204         * intl/bindtextdom.c: Likewise.
12205         * intl/dcigettext.c: Likewise.
12206         * intl/finddomain.c: Likewise.
12207         * intl/gettextP.h: Likewise.
12208         * intl/loadmsgcat.c: Likewise.
12209         * intl/localealias.c: Likewise.
12210         * intl/textdomain.c: Likewise.
12211         * libidn/idn-stub.c: Likewise.
12212         * libio/libioP.h: Likewise.
12213         * locale/duplocale.c: Likewise.
12214         * locale/freelocale.c: Likewise.
12215         * locale/newlocale.c: Likewise.
12216         * locale/setlocale.c: Likewise.
12217         * login/getutent_r.c: Likewise.
12218         * login/getutid_r.c: Likewise.
12219         * login/getutline_r.c: Likewise.
12220         * login/utmp-private.h: Likewise.
12221         * login/utmpname.c: Likewise.
12222         * malloc/mtrace.c: Likewise.
12223         * misc/efgcvt.c: Likewise.
12224         * misc/error.c: Likewise.
12225         * misc/fstab.c: Likewise.
12226         * misc/getpass.c: Likewise.
12227         * misc/mntent.c: Likewise.
12228         * misc/syslog.c: Likewise.
12229         * nis/nis_call.c: Likewise.
12230         * nis/nis_callback.c: Likewise.
12231         * nis/nss-default.c: Likewise.
12232         * nis/nss_compat/compat-grp.c: Likewise.
12233         * nis/nss_compat/compat-initgroups.c: Likewise.
12234         * nis/nss_compat/compat-pwd.c: Likewise.
12235         * nis/nss_compat/compat-spwd.c: Likewise.
12236         * nis/nss_nis/nis-alias.c: Likewise.
12237         * nis/nss_nis/nis-ethers.c: Likewise.
12238         * nis/nss_nis/nis-grp.c: Likewise.
12239         * nis/nss_nis/nis-hosts.c: Likewise.
12240         * nis/nss_nis/nis-network.c: Likewise.
12241         * nis/nss_nis/nis-proto.c: Likewise.
12242         * nis/nss_nis/nis-pwd.c: Likewise.
12243         * nis/nss_nis/nis-rpc.c: Likewise.
12244         * nis/nss_nis/nis-service.c: Likewise.
12245         * nis/nss_nis/nis-spwd.c: Likewise.
12246         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12247         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12248         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12249         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12250         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12251         * nis/nss_nisplus/nisplus-network.c: Likewise.
12252         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12253         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12254         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12255         * nis/nss_nisplus/nisplus-service.c: Likewise.
12256         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12257         * nis/ypclnt.c: Likewise.
12258         * nptl/libc_pthread_init.c: Likewise.
12259         * nss/getXXbyYY.c: Likewise.
12260         * nss/getXXent.c: Likewise.
12261         * nss/getXXent_r.c: Likewise.
12262         * nss/nss_db/db-XXX.c: Likewise.
12263         * nss/nss_db/db-netgrp.c: Likewise.
12264         * nss/nss_db/nss_db.h: Likewise.
12265         * nss/nss_files/files-XXX.c: Likewise.
12266         * nss/nss_files/files-alias.c: Likewise.
12267         * nss/nsswitch.c: Likewise.
12268         * posix/regex_internal.h: Likewise.
12269         * posix/wordexp.c: Likewise.
12270         * pwd/fgetpwent.c: Likewise.
12271         * resolv/res_hconf.c: Likewise.
12272         * resolv/res_libc.c: Likewise.
12273         * shadow/fgetspent.c: Likewise.
12274         * shadow/lckpwdf.c: Likewise.
12275         * shadow/sgetspent.c: Likewise.
12276         * socket/opensock.c: Likewise.
12277         * stdio-common/reg-modifier.c: Likewise.
12278         * stdio-common/reg-printf.c: Likewise.
12279         * stdio-common/reg-type.c: Likewise.
12280         * stdio-common/vfprintf.c: Likewise.
12281         * stdio-common/vfscanf.c: Likewise.
12282         * stdlib/abort.c: Likewise.
12283         * stdlib/cxa_atexit.c: Likewise.
12284         * stdlib/fmtmsg.c: Likewise.
12285         * stdlib/random.c: Likewise.
12286         * stdlib/setenv.c: Likewise.
12287         * string/strsignal.c: Likewise.
12288         * sunrpc/auth_none.c: Likewise.
12289         * sunrpc/bindrsvprt.c: Likewise.
12290         * sunrpc/create_xid.c: Likewise.
12291         * sunrpc/key_call.c: Likewise.
12292         * sunrpc/rpc_thread.c: Likewise.
12293         * sysdeps/arm/backtrace.c: Likewise.
12294         * sysdeps/generic/ldsodefs.h: Likewise.
12295         * sysdeps/generic/stdio-lock.h: Likewise.
12296         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12297         * sysdeps/i386/backtrace.c: Likewise.
12298         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12299         * sysdeps/m68k/backtrace.c: Likewise.
12300         * sysdeps/mach/hurd/cthreads.c: Likewise.
12301         * sysdeps/mach/hurd/dirstream.h: Likewise.
12302         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12303         * sysdeps/nptl/malloc-machine.h: Likewise.
12304         * sysdeps/nptl/stdio-lock.h: Likewise.
12305         * sysdeps/posix/dirstream.h: Likewise.
12306         * sysdeps/posix/getaddrinfo.c: Likewise.
12307         * sysdeps/posix/system.c: Likewise.
12308         * sysdeps/pthread/aio_suspend.c: Likewise.
12309         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12310         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12311         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12312         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12313         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12314         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12315         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12316         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12317         * sysdeps/unix/sysv/linux/system.c: Likewise.
12318         * sysdeps/x86_64/backtrace.c: Likewise.
12319         * time/alt_digit.c: Likewise.
12320         * time/era.c: Likewise.
12321         * time/tzset.c: Likewise.
12322         * wcsmbs/wcsmbsload.c: Likewise.
12323         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12324         instead of <bits/libc-lock.h> in comment.
12325
12326 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12327
12328         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12329         Only use .set mips2 if the current ISA is below mips2.
12330         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12331         Likewise.
12332         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12333         mips32r2 if the current ISA is below mips32r2.
12334         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12335         (TLS_IE): Updated to use the TLD_RDHWR macro.
12336         (TLS_LE): Likewise.
12337         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12338         __ASSEMBLER__ condition.
12339
12340 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12341
12342         Fix parallel build of before-compile targets.
12343
12344         * sysdeps/mach/Makefile ($(patsubst
12345         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12346         mach-before-compile target.
12347         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12348         io fs process)): Move rule to dedicated hurd-before-compile target.
12349
12350 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12351
12352         Fix rules generating headers in hurd/ and mach/ when initial make call
12353         has subdir= explicitly set.
12354
12355         * sysdeps/mach/Makefile ($(patsubst
12356         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12357         calling $(MAKE).
12358         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12359         io fs process)): Force subdir to hurd when calling $(MAKE).
12360         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12361         subdir to mach when calling $(MAKE).
12362
12363 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12364
12365         Check sysheaders when looking for Mach and Hurd headers
12366
12367         * sysdeps/mach/configure.ac: Add sysheaders check.
12368         * sysdeps/mach/configure: Regenerate.
12369         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12370         * sysdeps/mach/hurd/configure: Regenerate.
12371
12372 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12373
12374         [BZ #18921]
12375         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12376         Fix inverted sense of test of 'o_directory_works' value.
12377         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12378         Bernhard Voelker <mail@bernhard-voelker.de>.
12379
12380 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12381
12382         [BZ #14912]
12383         * bits/linkmap.h: Move to ...
12384         * sysdeps/generic/linkmap.h: ...here.
12385         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12386         * sysdeps/aarch64/linkmap.h: ...here.
12387         * sysdeps/arm/bits/linkmap.h: Move to ...
12388         * sysdeps/arm/linkmap.h: ...here.
12389         * sysdeps/hppa/bits/linkmap.h: Move to ...
12390         * sysdeps/hppa/linkmap.h: ...here.
12391         * sysdeps/ia64/bits/linkmap.h: Move to ...
12392         * sysdeps/ia64/linkmap.h: ...here.
12393         * sysdeps/mips/bits/linkmap.h: Move to ...
12394         * sysdeps/mips/linkmap.h: ...here.
12395         * sysdeps/s390/bits/linkmap.h: Move to ...
12396         * sysdeps/s390/linkmap.h: ...here.
12397         * sysdeps/sh/bits/linkmap.h: Move to ...
12398         * sysdeps/sh/linkmap.h: ...here.
12399         * sysdeps/x86/bits/linkmap.h: Move to ...
12400         * sysdeps/x86/linkmap.h: ...here.
12401         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12402
12403 2015-09-04  Andreas Schwab  <schwab@suse.de>
12404
12405         [BZ #18635]
12406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12407         (__makecontext): Terminate FDE before return label.
12408         (__novec_makecontext): Likewise.
12409
12410 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12411
12412         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12413         first member of struct sv in syscall macro.
12414
12415 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12416
12417         [BZ #14912]
12418         * bits/stdio-lock.h: Move to ...
12419         * sysdeps/generic/stdio-lock.h: ...here.
12420         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12421         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12422         * sysdeps/nptl/stdio-lock.h: ...here.
12423         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12424         * include/libio.h: Include <stdio-lock.h> instead of
12425         <bits/stdio-lock.h>.
12426         * sysdeps/nptl/fork.c: Likewise.
12427         * sysdeps/pthread/flockfile.c: Likewise.
12428         * sysdeps/pthread/ftrylockfile.c: Likewise.
12429         * sysdeps/pthread/funlockfile.c: Likewise.
12430
12431         [BZ #14912]
12432         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12433         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12434         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12435         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12436         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12437         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12438         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12439
12440 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12441
12442         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12443         (test-xfail-tst-protected1b): New variable.
12444
12445 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12446
12447         [BZ #14912]
12448         * bits/libc-tsd.h: Move to ...
12449         * sysdeps/generic/libc-tsd.h: ...here.
12450         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12451         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12452         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12453         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12454         * include/ctype.h: Include <libc-tsd.h> instead of
12455         <bits/libc-tsd.h>.
12456         * include/rpc/rpc.h: Likewise.
12457         * locale/localeinfo.h: Likewise.
12458         * sunrpc/rpc_thread.c: Likewise.
12459         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12460         * sysdeps/nptl/malloc-machine.h: Likewise.
12461
12462         * Makefile (headers): Remove bits/libc-lock.h.
12463         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12464
12465         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12466         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12467         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12468         <bits/stdio-lock.h>.
12469         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12470         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12471
12472 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12473
12474         [BZ #18757]
12475         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12476         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12477         BZ #18757.
12478
12479 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12480
12481         * malloc/mtrace.pl: Filter out NULL entries.
12482
12483 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12484
12485         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12486         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12487         macro.
12488
12489         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12490         (TCP_CC_INFO): Likewise.
12491         (TCP_SAVE_SYN): Likewise.
12492         (TCP_SAVED_SYN): Likewise.
12493
12494 2015-08-31  Brett Neumeier <brett@neumeier.us>
12495
12496         [BZ #18870]
12497         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12498
12499 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12500
12501         [BZ #18873]
12502         Fix broken overflow check in posix_fallocate
12503         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12504         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12505         Fix parenthesization typo.
12506
12507 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12508
12509         [BZ #18887]
12510         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12511         tst-mntent-blank-passno.
12512         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12513         * misc/tst-mntent-blank-corrupt.c: New test.
12514         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12515         * misc/tst-mntent.c (do_test): ... here.
12516
12517 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12518
12519         [BZ #4404]
12520         * po/de.po: Fix SIGALRM typo.
12521
12522 2015-08-28  James Perkins  <james@loowit.net>
12523
12524         * time/tst-strptime2.c (tests): Replace short list of test
12525         strings for strptime %z specifier with code which exhaustively
12526         tests every combination of sign and 0 to 5 digits. Tests for
12527         rejection of invalid strings.
12528
12529 2015-08-28  James Perkins  <james@loowit.net>
12530
12531         [BZ #16141]
12532         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12533         calculation, removing incorrect decimal time rounding, so that
12534         all minute values result in a valid seconds value.
12535         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12536         offset range limits to UTC-99:59 through UTC+99:59 to parse
12537         current and historical use cases.
12538         * time/tst-strptime2.c (tests): Modify and add tests for the
12539         strptime %z input field descriptor, specifically conversion of
12540         minutes to seconds and validating an offset range of -9959 to
12541         +9959.
12542
12543 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12544             Dmitry V. Levin  <ldv@altlinux.org>
12545
12546         [BZ #18877]
12547         * posix/Makefile (tests): Add tst-mmap-offset.
12548         * posix/tst-mmap.c: New file.
12549         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12550         offset calculation for negative values.
12551
12552 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12553
12554         * sysdeps/i386/init-arch.h: New file.
12555         * sysdeps/i386/i586/init-arch.h: Likewise.
12556         * sysdeps/i386/i686/init-arch.h: Likewise.
12557         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12558         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12559         * sysdeps/x86/cpu-features.h (bit_I586): New.
12560         (bit_I686): Likewise.
12561         (bit_CX8): Likewise.
12562         (bit_CMOV): Likewise.
12563         (index_CX8): Likewise.
12564         (index_CMOV): Likewise.
12565         (index_I586): Likewise.
12566         (index_I686): Likewise.
12567         (reg_CX8): Likewise.
12568         (reg_CMOV): Likewise.
12569         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12570         available at compile-time.
12571         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12572         available at compile-time.
12573         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12574         (USE_I686): Likewise.
12575
12576 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12577
12578         * sysdeps/i386/bcopy.S: New file.
12579         * sysdeps/i386/bzero.S: Likewise.
12580         * sysdeps/i386/memcpy.S: Likewise.
12581         * sysdeps/i386/memmove.S: Likewise.
12582         * sysdeps/i386/mempcpy.S: Likewise.
12583         * sysdeps/i386/memset.S: Likewise.
12584         * sysdeps/i386/bzero.c: Removed.
12585         * sysdeps/i386/memset.c: Likewise.
12586         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12587         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12588         * sysdeps/i386/i586/memset_chk.S: Likewise.
12589         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12590         * sysdeps/i386/memcpy_chk.S: Here.
12591         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12592         * sysdeps/i386/memmove_chk.S: Here.
12593         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12594         * sysdeps/i386/mempcpy_chk.S: Likewise.
12595         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12596         * sysdeps/i386/memset_chk.S: Likewise.
12597
12598 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12599
12600         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12601         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12602         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12603         * soft-fp/fmadf4.c: Ditto.
12604         * soft-fp/fmatf4.c: Ditto.
12605
12606 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12607
12608         * sysdeps/i386/i586/Implies: Removed.
12609         * sysdeps/i386/i686/Implies: Likewise.
12610
12611 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12612
12613         * sysdeps/i386/i486/strlen.S: Moved to ...
12614         * sysdeps/i386/strlen.S: Here.
12615
12616 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12617
12618         * sysdeps/i386/i486/strcat.S: Moved to ...
12619         * sysdeps/i386/strcat.S: Here.
12620
12621 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12622
12623         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12624         * sysdeps/i386/pthread_spin_trylock.S: Here.
12625         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12626         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12627
12628 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12629
12630         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12631         * sysdeps/i386/string-inlines.c: Here.
12632
12633 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12634
12635         * sysdeps/i386/i486/htonl.S: Moved ...
12636         * sysdeps/i386/htonl.S: here.
12637
12638 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12639
12640         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12641         * sysdeps/i386/bits/atomic.h: Here.
12642
12643 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12644
12645         * sysdeps/i386/i486/Versions: Removed.
12646
12647 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12648
12649         [BZ #2898]
12650         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12651         Based on patch by Aurelien Jarno.
12652
12653 2015-08-26  Stan Shebs  <stanshebs@google.com>
12654
12655         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12656         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12657
12658 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12659
12660         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12661         * sysdeps/powerpc/dl-procinfo.c:
12662         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12663         feature so it shows when LD_SHOW_AUXV=1.
12664
12665 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12666
12667         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12668         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12669         definition.  ISA 2.07B no longer requires full sync.
12670
12671 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12672
12673         [BZ #18863]
12674         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12675         (si_call_addr): Define.
12676         (si_syscall): Define.
12677         (si_arch): Define.
12678
12679 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12680
12681         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12682         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12683         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12684         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12685         (__memset_zero_constant_len_parameter): New.
12686         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12687         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12688         (__memset_zero_constant_len_parameter): Don't define if
12689         __memset_chk or USE_AS_BZERO are defined.
12690
12691         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12692         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12693         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12694
12695         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12696         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12697         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12698         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12699         comments.
12700         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12701         -mno-mmx for $(all-rtld-routines).
12702         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12703         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12704         i386.
12705
12706 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12707
12708         * sysdeps/generic/unwind.h
12709         (_Unwind_Word): Use __mode__(__unwind_word__)
12710         instead of __mode__(__word__).
12711         (_Unwind_Sword): Likewise.
12712
12713         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12714         (MAX_NEEDED_INPUT): New define.
12715         (MAX_NEEDED_OUTPUT): New define.
12716
12717         * NEWS: New item for IBM z13 string optimizations.
12718
12719         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12720         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12721         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12722         * sysdeps/s390/multiarch/Makefile
12723         (sysdep_routines): Add memrchr functions.
12724         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12725         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12726
12727         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12728         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12729         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12730         * sysdeps/s390/multiarch/Makefile
12731         (sysdep_routines): Add wmemcmp functions.
12732         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12733         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12734         * benchtests/bench-wmemcmp.c: New File.
12735         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12736
12737         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12738         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12739         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12740         * sysdeps/s390/multiarch/Makefile
12741         (sysdep_routines): Add wmemset functions.
12742         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12743         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12744         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12745         * string/test-memset.c: Add wmemset support.
12746         * wcsmbs/test-wmemset.c: New File.
12747         * wcsmbs/Makefile (strop-tests): Add wmemset.
12748         * benchtests/bench-memset.c: Add wmemset support.
12749         * benchtests/bench-wmemset.c: New File.
12750         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12751
12752         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12753         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12754         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12755         * sysdeps/s390/multiarch/Makefile
12756         (sysdep_routines): Add memccpy functions.
12757         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12758         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12759         * string/memccpy.c: Use MEMCCPY if defined.
12760
12761         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12762         * sysdeps/s390/multiarch/memchr.c: Likewise.
12763         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12764         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12765         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12766         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12767         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12768         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12769         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12770         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12771         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12772         and rawmemchr functions.
12773         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12774         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12775         and wmemchr.
12776         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12777         * string/test-memchr.c: Add wmemchr support.
12778         * wcsmbs/test-wmemchr.c: New File.
12779         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12780         * benchtests/bench-memchr.c: Add wmemchr support.
12781         * benchtests/bench-wmemchr.c: New File.
12782         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12783
12784         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12785         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12786         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12787         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12788         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12789         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12790         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12791         wcscspn functions.
12792         * sysdeps/s390/multiarch/ifunc-impl-list.c
12793         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12794         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12795         * string/test-strcspn.c: Add wcscspn support.
12796         * wcsmbs/test-wcscspn.c: New File.
12797         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12798         * benchtests/bench-strcspn.c: Add wcscspn support.
12799         * benchtests/bench-wcscspn.c: New File.
12800         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12801
12802         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12803         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12804         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12805         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12806         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12807         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12808         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12809         wcspbrk functions.
12810         * sysdeps/s390/multiarch/ifunc-impl-list.c
12811         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12812         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12813         * string/test-strpbrk.c: Add wcspbrk support.
12814         * wcsmbs/test-wcspbrk.c: New File.
12815         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12816         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12817         * benchtests/bench-wcspbrk.c: New File.
12818         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12819
12820         * sysdeps/s390/multiarch/strspn-c.c: New File.
12821         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12822         * sysdeps/s390/multiarch/strspn.c: Likewise.
12823         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12824         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12825         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12826         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12827         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12828         wcsspn functions.
12829         * sysdeps/s390/multiarch/ifunc-impl-list.c
12830         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12831         * string/test-strspn.c: Add wcsspn support.
12832         * wcsmbs/test-wcsspn.c: New File.
12833         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12834         * benchtests/bench-strspn.c: Add wcsspn support.
12835         * benchtests/bench-wcsspn.c: New File.
12836         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12837
12838         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12839         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12840         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12841         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12842         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12843         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12844         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12845         wcsrchr functions.
12846         * sysdeps/s390/multiarch/ifunc-impl-list.c
12847         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12848         * benchtests/bench-wcsrchr.c: New File.
12849         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12850
12851         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12852         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12853         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12854         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12855         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12856         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12857         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12858         wcschrnul functions.
12859         * sysdeps/s390/multiarch/ifunc-impl-list.c
12860         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12861         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12862         * string/test-strchr.c: Add wcschrnul support.
12863         * wcsmbs/test-wcschrnul.c: New File.
12864         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12865         * benchtests/bench-strchr.c: Add wcschrnul support.
12866         * benchtests/bench-wcschrnul.c: New File.
12867         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12868
12869         * sysdeps/s390/multiarch/strchr-c.c: New File.
12870         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12871         * sysdeps/s390/multiarch/strchr.c: Likewise.
12872         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12873         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12874         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12875         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12876         wcschr functions.
12877         * sysdeps/s390/multiarch/ifunc-impl-list.c
12878         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12879         * string/strchr.c (STRCHR): Define and use macro.
12880         * benchtests/bench-wcschr.c: New File.
12881         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12882
12883         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12884         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12885         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12886         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12887         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12888         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12889         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12890         wcsncmp functions.
12891         * sysdeps/s390/multiarch/ifunc-impl-list.c
12892         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12893         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12894         * benchtests/bench-strncmp.c: Add wcsncmp support.
12895         * benchtests/bench-wcsncmp.c: New File.
12896         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12897
12898         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12899         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12900         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12901         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12902         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12903         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12904         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12905         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12906         wcscmp functions.
12907         * sysdeps/s390/multiarch/ifunc-impl-list.c
12908         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12909         * string/strcmp.c (STRCMP): Define and use macro.
12910         * benchtests/bench-wcscmp.c: New File.
12911         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12912         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12913         instead of _HAVE_STRING_ARCH_memchr.
12914
12915         * sysdeps/s390/multiarch/strncat-c.c: New File.
12916         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12917         * sysdeps/s390/multiarch/strncat.c: Likewise.
12918         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12919         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12920         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12921         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12922         wcsncat functions.
12923         * sysdeps/s390/multiarch/ifunc-impl-list.c
12924         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12925         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12926         * string/test-strncat.c: Add wcsncat support.
12927         * wcsmbs/test-wcsncat.c: New File.
12928         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12929         * benchtests/bench-strncat.c: Add wcsncat support.
12930         * benchtests/bench-wcsncat.c: New File.
12931         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12932
12933         * sysdeps/s390/multiarch/strcat-c.c: New File.
12934         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12935         * sysdeps/s390/multiarch/strcat.c: Likewise.
12936         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12937         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12938         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12939         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12940         wcscat functions.
12941         * sysdeps/s390/multiarch/ifunc-impl-list.c
12942         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12943         * string/strcat.c (STRCAT): Define and use macro.
12944         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12945         * string/test-strcat.c: Add wcscat support.
12946         * wcsmbs/test-wcscat.c: New File.
12947         * wcsmbs/Makefile (strop-tests): Add wcscat.
12948         * benchtests/bench-strcat.c: Add wcscat support.
12949         * benchtests/bench-wcscat.c: New File.
12950         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12951
12952         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12953         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12954         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12955         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12956         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12957         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12958         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12959         wcpncpy functions.
12960         * sysdeps/s390/multiarch/ifunc-impl-list.c
12961         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12962         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12963         * string/test-stpncpy.c: Add wcpncpy support.
12964         * wcsmbs/test-wcpncpy.c: New File.
12965         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12966         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12967         * benchtests/bench-wcpncpy.c: New File.
12968         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12969
12970         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12971         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12972         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12973         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12974         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12975         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12976         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12977         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12978         wcsncpy functions.
12979         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12980         * sysdeps/s390/multiarch/ifunc-impl-list.c
12981         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12982         * string/test-strncpy.c: Add wcsncpy support.
12983         * wcsmbs/test-wcsncpy.c: New File.
12984         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12985         * benchtests/bench-strncpy.c: Add wcsncpy support.
12986         * benchtests/bench-wcsncpy.c: New File.
12987         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12988
12989         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12990         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12991         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12992         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12993         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12994         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12995         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12996         wcpcpy functions.
12997         * string/stpcpy.c: Use STPCPY if defined.
12998         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12999         * sysdeps/s390/multiarch/ifunc-impl-list.c
13000         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13001         * string/test-stpcpy.c: Add wcpcpy support.
13002         * wcsmbs/test-wcpcpy.c: New File.
13003         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13004         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13005         * benchtests/bench-wcpcpy.c: New File.
13006         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13007
13008         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13009         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13010         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13011         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13012         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13013         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13014         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13015         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13016         wcscpy functions.
13017         * sysdeps/s390/multiarch/ifunc-impl-list.c
13018         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13019         * benchtests/bench-wcscpy.c: New File.
13020         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13021
13022         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13023         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13024         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13025         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13026         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13027         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13028         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13029         wcsnlen functions.
13030         * sysdeps/s390/multiarch/ifunc-impl-list.c
13031         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13032         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13033         * string/test-strnlen.c: Add wcsnlen support.
13034         * wcsmbs/test-wcsnlen.c: New File.
13035         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13036         * benchtests/bench-strnlen.c: Add wcsnlen support.
13037         * benchtests/bench-wcsnlen.c: New File.
13038         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13039
13040         * sysdeps/s390/multiarch/Makefile: New File.
13041         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13042         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13043         * sysdeps/s390/multiarch/strlen.c: Likewise.
13044         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13045         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13046         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13047         * string/strlen.c (STRLEN): Define and use macro.
13048         * sysdeps/s390/multiarch/ifunc-impl-list.c
13049         (IFUNC_VX_IMPL): New macro function.
13050         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13051         * benchtests/Makefile (wcsmbs-bench): New variable.
13052         (string-bench-all): Added wcsmbs-bench.
13053         * benchtests/bench-wcslen.c: New File.
13054
13055         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13056         s390_vx_libc_ifunc2): New macro function.
13057
13058         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13059         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13060         assembler support.
13061         * sysdeps/s390/configure: Regenerated.
13062
13063         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13064         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13065
13066         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13067         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13068         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13069
13070         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13071         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13072         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13073         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13074         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13075         (memcmp, bcmp): Use __memcmp_default as alias source.
13076         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13077         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13078         Rename to __memcmp_default.
13079         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13080         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13081         (memcpy): Use __memcpy_default as alias source.
13082         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13083         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13084         Rename to __memcpy_default.
13085         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13086         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13087         (memset): Use __memset_default as alias source.
13088         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13089         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13090         Rename to __memset_default.
13091         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13092         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13093         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13094         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13095         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13096         (memcmp, bcmp): Use __memcmp_default as alias source.
13097         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13098         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13099         Rename to __memcmp_default.
13100         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13101         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13102         (memcpy): Use __memcpy_default as alias source.
13103         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13104         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13105         Rename to __memcpy_default.
13106         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13107         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13108         (memset): Use __memset_default as alias source.
13109         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13110         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13111         Rename to __memset_default.
13112         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13113         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13114
13115         [BZ #18610]
13116         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13117         __ieee_instruction_pointer to __unused.
13118         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13119         __ieee_instruction_pointer.
13120         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13121         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13122         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13123         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13124         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13125         Mark dxc-field as reserved.
13126
13127 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13128
13129         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13130         if the weak reference is not null.
13131
13132 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13133
13134         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13135
13136         [BZ #11214]
13137         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13138
13139 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13140
13141         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13142         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13143         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13144         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13145         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13146         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13147         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13148         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13149         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13150         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13151         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13152         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13153         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13154         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13155         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13156         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13157         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13158         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13159
13160 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13161
13162         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13163         register other than r0 for tabort, it has special meaning.
13164         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13165         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13166         transaction before starting syscall.
13167
13168 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13169
13170         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13171
13172 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13173
13174         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13175
13176         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13177         * sysdeps/x86_64/rtld-memset.S: Likewise.
13178         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13179         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13180         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13181         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13182
13183         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13184
13185 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13186
13187         * debug/strcpy_chk.c: Improve performance.
13188         * debug/stpcpy_chk.c: Likewise.
13189         * sysdeps/x86_64/strcpy_chk.S: Remove.
13190         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13191
13192         [BZ #18240]
13193         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13194
13195 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13196
13197         [BZ #15128]
13198         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13199         ifuncmain8.
13200         (modules-names): Add ifuncmod8.
13201         ($(objpfx)ifuncmain8): New rule.
13202         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13203         <cpuid.h>.
13204         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13205         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13206         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13207         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13208         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13209         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13210         * sysdeps/x86_64/ifuncmain8.c: New file.
13211         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13212         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13213         Removed.
13214         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13215         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13216         Change rtld_savespace_sse to __glibc_unused2.
13217         (RTLD_CHECK_FOREIGN_CALL): Removed.
13218         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13219         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13220         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13221
13222 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13223
13224         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13225
13226 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13227
13228         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13229         Unconditionally set __fpcr to avoid uninialized warning.
13230         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13231
13232 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13233
13234         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13235         is corrupt.
13236
13237         * malloc/arena.c (arena_get2): Drop unused argument.
13238         (arena_lock): Adjust.
13239         (arena_get_retry): Likewise.
13240
13241 2015-08-24  Andreas Schwab  <schwab@suse.de>
13242
13243         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13244         Don't define.
13245         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13246         (__ASSUME_IPC64): Don't undef.
13247         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13248         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13249         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13250         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13251         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13252         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13253         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13254         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13255         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13256         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13257         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13258         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13259         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13260         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13261         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13262         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13263         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13264         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13265         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13266         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13267         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13268
13269 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13270
13271         * manual/Makefile (install): Only build manual when perl is available.
13272
13273 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13274
13275         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13276         '#undef memcpy' by '#undef memchr'.
13277
13278 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13279
13280         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13281         memchr not point to the internal __GI_memchr implementation.
13282
13283 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13284
13285         * timezone/Makefile (CFLAGS-zdump.c): Remove
13286         -Wno-strict-prototypes.
13287         (CFLAGS-zic.c): Likewise.
13288         (CFLAGS-ialloc.c): Likewise.
13289         (CFLAGS-scheck.c): Likewise.
13290
13291         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13292         -Wno-error=undef.
13293
13294 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13295
13296         * i386/i686/multiarch/strcasestr-c.c: Removed.
13297         * x86_64/multiarch/strcasestr.c: Likewise.
13298         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13299         Remove strcasestr.
13300
13301 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13302
13303         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13304
13305         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13306         variables for high and low parts before possibly modifying them.
13307
13308 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13309
13310         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13311         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13312         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13313         of "multiarch/init-arch.h".
13314         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13315         * sysdeps/x86/init-arch.h: This.
13316
13317 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13318
13319         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13320         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13321
13322 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13323
13324         [BZ #17787]
13325         * manual/macros.texi: Add twoexp macro.
13326         * manual/filesys.texi: Fix exponents.
13327         * manual/llio.texi: Likewise.
13328         * manual/stdio.texi: Likewise.
13329
13330 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13331
13332         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13333         incorrect use.
13334
13335 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13336
13337         [BZ #18370]
13338         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13339         whose real or imaginary part has small absolute value.
13340         * math/s_csqrtf.c (__csqrtf): Likewise.
13341         * math/s_csqrtl.c (__csqrtl): Likewise.
13342         * math/auto-libm-test-in: Add more tests of csqrt.
13343         * math/auto-libm-test-out: Regenerated.
13344         * sysdeps/i386/fpu/libm-test-ulps: Update.
13345
13346 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13347
13348         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13349         __ppc_set_ppr_very_low): New functions.
13350         * manual/platform.texi: Add documentation about
13351         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13352
13353 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13354
13355         * string/stpncpy.c (stpncpy): Improve performance using
13356         __strnlen/memcpy/memset.
13357
13358 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13359
13360         [BZ #18796]
13361         * scripts/test-installation.pl: Don't add -lmvec to build options if
13362         libmvec wasn't built.
13363
13364 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13365
13366         [BZ #14341]
13367         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13368         case when there is a gap between DT_REL and DT_JMPREL sections.
13369         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13370         (LDFLAGS-tst-split-dynreloc): New.
13371         (tst-split-dynreloc-ENV): Likewise.
13372         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13373         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13374
13375 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13376
13377         [BZ #18822]
13378         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13379         attribute_hidden.
13380         (__xstat64_conv): Likewise.
13381         (__xstat32_conv): Likewise.
13382
13383 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13384
13385         [BZ #18822]
13386         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13387         Don't load %ebx when calling __setcontext.  Call __setcontext
13388         with HIDDEN_JUMPTARGET.
13389         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13390         libc_hidden_def.
13391
13392 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13393
13394         * sysdeps/i386/i686/Makefile
13395         [$(subdir) == string] (sysdep_routines): Moved to ...
13396         * sysdeps/i386/Makefile: Here.
13397         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13398         * sysdeps/i386/cacheinfo.c: Here.
13399         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13400         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13401         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13402         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13403
13404 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13405
13406         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13407         __i586__ is defined.
13408         (HAS_I686): Defined to 1 if __i686__ is defined.
13409
13410 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13411
13412         * elf/Makefile [$(have-z-execstack) = yes]
13413         (CPPFLAGS-tst-execstack.c): New variable.
13414
13415         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13416         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13417         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13418         UTMPX || _HAVE_UT_TV].
13419         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13420         UTMPX || _HAVE_UT_TV - 0].
13421
13422 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13423
13424         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13425         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13426         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13427
13428 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13429
13430         * sysdeps/powerpc/dl-procinfo.c:
13431         (_dl_powerpc_cap_flags): Added missing strings for some
13432         hwcap features.
13433         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13434
13435 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13436
13437         Port the 0x7efe...feff pattern to GCC 6.
13438         See Steve Ellcey's bug report in:
13439         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13440         * string/memrchr.c (MEMRCHR):
13441         * string/rawmemchr.c (RAWMEMCHR):
13442         * string/strchr.c (strchr):
13443         * string/strchrnul.c (STRCHRNUL):
13444         Rewrite code to avoid issues with signed shift overflow.
13445
13446 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13447
13448         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13449         whether cpuid is available only if HAS_CPUID is 0.
13450         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13451         (HAS_I586): Likewise.
13452         (HAS_I686): Likewise.
13453
13454 2015-08-18  Zack Weinberg  <zackw@panix.com>
13455
13456         * misc/Versions (libc): Add GLIBC_2.23.
13457
13458 2015-08-18  Alan Modra  <amodra@gmail.com>
13459
13460         [BZ #18421]
13461         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13462         .Lp__global.
13463         (_start): Load %dp via .Lp__global.
13464         [!SHARED]: Use .section .rodata.
13465
13466 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13467
13468         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13469         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13470
13471 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13472
13473         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13474         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13475
13476 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13477
13478         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13479         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13480
13481 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13482
13483         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13484         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13485
13486 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13487
13488         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13489         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13490
13491 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13492
13493         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13494         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13495
13496 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13497
13498         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13499
13500 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13501
13502         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13503         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13504         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13505         (__ASSUME_LWS_CAS): Delete.
13506
13507 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13508
13509         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13510         * sysdeps/hppa/configure: Regenerated.
13511         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13512         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13513         * sysdeps/hppa/nptl/tls.h: Likewise.
13514
13515 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13516
13517         [BZ #18823]
13518         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13519         for scaling up small arguments.
13520         * math/s_csqrtf.c (__csqrtf): Likewise.
13521         * math/s_csqrtl.c (__csqrtl): Likewise.
13522         * math/auto-libm-test-in: Add more tests of csqrt.
13523         * math/auto-libm-test-out: Regenerated.
13524
13525 2015-08-17  Andreas Schwab  <schwab@suse.de>
13526
13527         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13528         version set GLIBC_2.19.
13529
13530 2015-08-16  Zack Weinberg  <zackw@panix.com>
13531
13532         [BZ #18681]
13533         * misc/regexp.h: This interface is no longer supported.
13534         Remove all contents, leaving only an #error directive.
13535         * misc/regexp.c (loc1, loc2, locs, step, advance):
13536         Demote to compatibility symbols.
13537
13538 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13539
13540         [BZ #18084]
13541         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13542         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13543         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13544         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13545         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13546         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13547         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13548         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13549         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13550
13551 2015-08-15  Zack Weinberg  <zackw@panix.com>
13552
13553         [BZ #18795]
13554         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13555         buffer length is known to be too large, not if it's known to be
13556         small enough.
13557         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13558         overflow at runtime, involving a length parameter, twice: once
13559         with a compile-time constant length parameter, once without.
13560
13561 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13562
13563         [BZ #18824]
13564         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13565         scaling x * y up instead of down.
13566         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13567         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13568         * math/auto-libm-test-in: Add more tests of fma.
13569         * math/auto-libm-test-out: Regenerated.
13570
13571 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13572
13573         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13574
13575 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13576
13577         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13578         unnecessary movq.
13579         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13580         Likewise.
13581
13582 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13583
13584         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13585         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13586         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13587         and tgamma.
13588         * math/auto-libm-test-out: Regenerated.
13589         * sysdeps/i386/fpu/libm-test-ulps: Update.
13590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13591
13592         [BZ #16520]
13593         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13594         (__tanh): Force underflow exception for arguments with small
13595         absolute value.
13596         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13597         (__tanhf): Force underflow exception for arguments with small
13598         absolute value.
13599         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13600         (__tanhl): Force underflow exception for arguments with small
13601         absolute value.
13602         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13603         (__tanhl): Force underflow exception for arguments with small
13604         absolute value.
13605         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13606         (__tanhl): Force underflow exception for arguments with small
13607         absolute value.
13608         * math/auto-libm-test-in: Add more tests of tanh.
13609         * math/auto-libm-test-out: Regenerated.
13610         * sysdeps/i386/fpu/libm-test-ulps: Update.
13611
13612 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13613
13614         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13615         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13616
13617 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13618
13619         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13620         <cpuid.h>.
13621
13622 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13623
13624         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13625         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13626
13627 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13628
13629         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13630         Remove $(objpfx)init-arch.o.
13631         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13632         init-arch.
13633         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13634         (INIT_ARCH_EXT): Defined as empty.
13635         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13636         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13637         __init_cpu_features call.  Replace HAS_XXX with
13638         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13639         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13640         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13641         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13642         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13643         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13644         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13645         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13646         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13647         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13648         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13649         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13650         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13651         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13652         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13653         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13654         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13655         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13656         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13657         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13658         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13659         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13660         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13661         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13662         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13663         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13664         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13665         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13666         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13667         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13668         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13669         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13670         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13671         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13672         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13673         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13674
13675 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13676
13677         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13678         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13679         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13680         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13681         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13682         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13683         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13684         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13685         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13686         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13687         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13688         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13689         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13690         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13691         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13692         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13693         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13694         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13695         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13696         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13697         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13698         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13699         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13700         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13701         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13702         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13703         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13704         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13705         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13706         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13707         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13708         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13709         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13710         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13711         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13712         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13713         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13714         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13715         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13716         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13717         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13718         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13719         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13720
13721 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13722
13723         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13724         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13725         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13726         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13727         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13728         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13729         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13730         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13731         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13732         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13733         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13734         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13735         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13736         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13737         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13738         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13739         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13740         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13741         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13742         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13743         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13744         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13745         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13746         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13747         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13748         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13749         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13750         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13751         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13752         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13753         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13754         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13755         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13756         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13757         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13758         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13759         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13760         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13761         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13762         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13763         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13764         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13765         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13766
13767 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13768
13769         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13770         (dl_platform_init): Call init_cpu_features.
13771         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13772         * sysdeps/i386/i686/cacheinfo.c
13773         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13774         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13775         * sysdeps/i386/i686/multiarch/Versions: Removed.
13776         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13777         Removed.
13778         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13779         * sysdeps/unix/sysv/linux/x86/Makefile
13780         (libpthread-sysdep_routines): Remove init-arch.
13781         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13782         <sysdeps/x86_64/dl-procinfo.c> instead of
13783         sysdeps/generic/dl-procinfo.c>.
13784         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13785         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13786         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13787         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13788         [$(subdir) == elf] (tests-static): Add
13789         tst-get-cpu-features-static.
13790         * sysdeps/x86/Versions: New file.
13791         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13792         * sysdeps/x86/cpu-features.c: Likewise.
13793         * sysdeps/x86/cpu-features.h: Likewise.
13794         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13795         * sysdeps/x86/libc-start.c: Likewise.
13796         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13797         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13798         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13799         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13800         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13801         Assume USE_MULTIARCH is defined and don't check it.
13802         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13803         (is_amd): Likewise.
13804         (max_cpuid): Likewise.
13805         (intel_check_word): Likewise.
13806         (__cache_sysconf): Don't call __init_cpu_features.
13807         (__x86_preferred_memory_instruction): Removed.
13808         (init_cacheinfo): Don't call __init_cpu_features. Replace
13809         __cpu_features with GLRO(dl_x86_cpu_features).
13810         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13811         (dl_platform_init): Call init_cpu_features.
13812         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13813         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13814         * sysdeps/x86_64/multiarch/Versions: Removed.
13815         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13816         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13817         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13818         Removed.
13819         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13820
13821 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13822
13823         [BZ #18820]
13824         * libio/Makefile (test-fmemopen-mem): New test.
13825         * libio/test-fmemopen.c (do_bz18820): New test.
13826         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13827         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13828
13829 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13830
13831         [BZ #16734]
13832         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13833         (FREE_BUF): Delete.
13834         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13835         * libio/genops.c (_IO_setb): Use malloc and free directly.
13836         (_IO_default_doallocate, _IO_default_finish): Likewise.
13837         ( _IO_unbuffer_all): Likewise.
13838         ( libc_freeres_fn): Likewise.
13839         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13840         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13841         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13842         (_IO_wdefault_doallocate): Likewise.
13843
13844 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13845
13846         [BZ #18086]
13847         * sysdeps/posix/nice.c (nice): Restore old errno.
13848         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13849
13850 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13851
13852         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13853
13854 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13855
13856         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13857         __bcopy and add a weak_alias to bcopy.
13858         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13859         for static build.
13860
13861         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13862         cleanup macro usage.
13863         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13864         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13865         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13866         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13867         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13868         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13869         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13870         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13871         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13872         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13873         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13874         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13875         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13876         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13877         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13878         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13879         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13880         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13881         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13882
13883         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13884         libc_hidden_def.
13885         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13886
13887         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13888         (sysdep_routines): Add strstr-ppc64.
13889         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13890
13891 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13892
13893         [BZ #18778]
13894         * elf/Makefile (tests): Add Add tst-nodelete2.
13895         (modules-names): Add tst-nodelete2mod.
13896         (tst-nodelete2mod.so-no-z-defs): New.
13897         ($(objpfx)tst-nodelete2): Likewise.
13898         ($(objpfx)tst-nodelete2.out): Likewise.
13899         (LDFLAGS-tst-nodelete2): Likewise.
13900         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13901         out of loop through all loaded libraries.
13902         * elf/tst-nodelete2.c: New file.
13903         * elf/tst-nodelete2mod.c: Likewise.
13904         * elf/tst-znodelete-zlib.cc: Delete.
13905
13906 2015-08-11  Andreas Schwab  <schwab@suse.de>
13907
13908         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13909         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13910         (__openat64_nocancel): Likewise.
13911
13912 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13913
13914         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13915         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13916         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13917         * math/auto-libm-test-out: Regenerated.
13918         * sysdeps/i386/fpu/libm-test-ulps: Update.
13919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13920
13921 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13922
13923         [BZ #18790]
13924         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13925         threshold for returning +/- 1.
13926         * math/auto-libm-test-in: Add more tests of tanh.
13927         * math/auto-libm-test-out: Regenerated.
13928         * sysdeps/i386/fpu/libm-test-ulps: Update.
13929
13930 2015-08-10  Andreas Schwab  <schwab@suse.de>
13931
13932         [BZ #18781]
13933         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13934         MORE_OFLAGS to oflag.
13935         * io/test-lfs.c (do_test): Test openat64.
13936
13937 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13938
13939         [BZ #18789]
13940         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13941         smaller threshold for returning the argument.
13942         * math/auto-libm-test-in: Add more tests of sinh.
13943         * math/auto-libm-test-out: Regenerated.
13944         * sysdeps/i386/fpu/libm-test-ulps: Update.
13945
13946 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13947
13948         [BZ #18674]
13949         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13950         break.
13951
13952 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13953
13954         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13955         (generated): Don't add $(addprefix z.,$(tzfiles)).
13956
13957 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13958
13959         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13960         * scripts/sysd-rules.awk: Likewise.
13961
13962 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13963
13964         * iconvdata/tst-tables.sh: Change echo -n to printf.
13965         * nss/db-Makefile: Likewise.
13966         * posix/tst-getconf.sh: Likewise.
13967         * stdio-common/tst-unbputc.sh: Likewise.
13968
13969 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13970
13971         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13972         MADV_*_PAGES defines behind this feature check.
13973
13974 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13975
13976         [BZ #18480]
13977         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13978         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13979         Define.
13980         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13981         LOAD_REGS_5, LOAD_REGS_6): Update.
13982         (INTERNAL_SYSCALL): Update using new LOAD defines.
13983         (INTERNAL_SYSCALL_NCS): Likewise.
13984         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13985
13986 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13987
13988         [BZ #16734]
13989         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13990
13991 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13992
13993         [BZ #17905]
13994         * catgets/Makefile (tst-catgets-mem): New test.
13995         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13996         * catgets/open_catalog.c (__open_catalog): Likewise.
13997         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13998
13999 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14000
14001         [BZ #18787]
14002         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14003         clobber registers.
14004         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14005         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14006         Cast return to __typeof (oldval).
14007
14008 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14009
14010         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14011         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14012         and delete sys/syscall.h include.
14013
14014 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14015
14016         [BZ #16517]
14017         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14018         (tan): Force underflow exception for arguments with small absolute
14019         value.
14020         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14021         (__kernel_tanf): Force underflow exception for arguments with
14022         small absolute value.
14023         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14024         (__kernel_tanl): Force underflow exception for arguments with
14025         small absolute value.
14026         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14027         (__kernel_tanl): Force underflow exception for arguments with
14028         small absolute value.
14029         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14030         (__kernel_tanl): Force underflow exception for arguments with
14031         small absolute value.
14032         * math/auto-libm-test-in: Add more tests of tan.
14033         * math/auto-libm-test-out: Regenerated.
14034
14035 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14036
14037         Fix sysdeps/i386/fpu/s_scalbn.S build
14038
14039         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14040
14041 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14042
14043         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14044
14045 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14046
14047         Fix gcrt0.o compilation
14048
14049         When static-start-installed-name is different from
14050         start-installed-name, we must not use the shared objects.
14051
14052         * csu/Makefile
14053         (extra-objs): Add gmon-start.o when building shared library and
14054         $(static-start-installed-name) is different from
14055         $(start-installed-name).
14056         $(objpfx)g$(static-start-installed-name): When building shared
14057         library and $(static-start-installed-name) is different from
14058         $(static-start-installed-name), revert to non-shared rule,
14059         i.e. using $(objpfx)% and gmon-start.o.
14060
14061 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14062
14063         [BZ #16519]
14064         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14065         (__ieee754_sinh): Force underflow exception for arguments with
14066         small absolute value.
14067         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14068         (__ieee754_sinhf): Force underflow exception for arguments with
14069         small absolute value.
14070         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14071         (__ieee754_sinhl): Force underflow exception for arguments with
14072         small absolute value.
14073         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14074         (__ieee754_sinhl): Force underflow exception for arguments with
14075         small absolute value.
14076         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14077         (__ieee754_sinhl): Force underflow exception for arguments with
14078         small absolute value.
14079         * math/auto-libm-test-in: Add more tests of sinh.
14080         * math/auto-libm-test-out: Regenerated.
14081         * sysdeps/i386/fpu/libm-test-ulps: Update.
14082
14083 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14084
14085         * libio/oldfileops.c: Include unistd.h.
14086
14087 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14088
14089         * stdlib/isomac.c: Include ctype.h.
14090
14091 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14092
14093         * dirent/tst-seekdir.c (main): Converted to ...
14094         (do_test): ... this.
14095         (TEST_FUNCTION): New macro.
14096         Include test-skeleton.c.
14097         * elf/tst-dlmodcount.c (main): Converted to ...
14098         (do_test): ... this.
14099         (TEST_FUNCTION): New macro.
14100         Include test-skeleton.c.
14101         * elf/tst-order-main.c (main): Converted to ...
14102         (do_test): ... this.
14103         (TEST_FUNCTION): New macro.
14104         Include test-skeleton.c.
14105         * elf/tst-pie2.c (main): Converted to ...
14106         (do_test): ... this.
14107         (TEST_FUNCTION): New macro.
14108         Include test-skeleton.c.
14109         * inet/tst-ether_aton.c (main): Converted to ...
14110         (do_test): ... this.
14111         (TEST_FUNCTION): New macro.
14112         Include test-skeleton.c.
14113         * misc/tst-mntent.c (main): Converted to ...
14114         (do_test): ... this.
14115         (TEST_FUNCTION): New macro.
14116         Include test-skeleton.c.
14117         * misc/tst-tsearch.c (main): Converted to ...
14118         (do_test): ... this.
14119         (TEST_FUNCTION): New macro.
14120         Include test-skeleton.c.
14121         * posix/tst-regexloc.c (main): Converted to ...
14122         (do_test): ... this.
14123         (TEST_FUNCTION): New macro.
14124         Include test-skeleton.c.
14125         * resolv/tst-aton.c (main): Converted to ...
14126         (do_test): ... this.
14127         (TEST_FUNCTION): New macro.
14128         Include test-skeleton.c.
14129         * stdio-common/test-fwrite.c (main): Converted to ...
14130         (do_test): ... this.
14131         (TEST_FUNCTION): New macro.
14132         Include test-skeleton.c.
14133         * stdio-common/tst-ferror.c (main): Converted to ...
14134         (do_test): ... this.
14135         (TEST_FUNCTION): New macro.
14136         Include test-skeleton.c.
14137         * stdio-common/tst-printf.c (main): Converted to ...
14138         (do_test): ... this.
14139         (TEST_FUNCTION): New macro.
14140         Include test-skeleton.c.
14141         * stdio-common/tst-printfsz.c (main): Converted to ...
14142         (do_test): ... this.
14143         (TEST_FUNCTION): New macro.
14144         Include test-skeleton.c.
14145         * stdlib/tst-strtod.c (main): Converted to ...
14146         (do_test): ... this.
14147         (TEST_FUNCTION): New macro.
14148         Include test-skeleton.c.
14149         * string/tst-strlen.c (main): Converted to ...
14150         (do_test): ... this.
14151         (TEST_FUNCTION): New macro.
14152         Include test-skeleton.c.
14153         * string/tst-svc.c (main): Converted to ...
14154         (do_test): ... this.
14155         (TEST_FUNCTION): New macro.
14156         Include test-skeleton.c.
14157         * time/tst-strptime.c (main): Converted to ...
14158         (do_test): ... this.
14159         (TEST_FUNCTION): New macro.
14160         Include test-skeleton.c.
14161         * timezone/tst-timezone.c (main): Converted to ...
14162         (do_test): ... this.
14163         (TEST_FUNCTION): New macro.
14164         Include test-skeleton.c.
14165
14166 2015-08-05  Zack Weinberg  <zackw@panix.com>
14167
14168         * misc/regexp.h: Update comments.
14169
14170 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14171
14172         [BZ #18635]
14173         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14174         before return label.
14175
14176 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14177
14178         [BZ #18661]
14179         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14180         when calling __errno_location.
14181         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14182         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14183
14184 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14185
14186         [BZ #18661]
14187         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14188         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14189         __gettimeofday.
14190
14191 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14192
14193         [BZ #18661]
14194         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14195         (__start_context): Don't use pop to restore %rdi so that stack
14196         is aligned to 16 bytes when calling __setcontext.
14197
14198 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14199
14200         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14201         only for libc.
14202         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14203
14204 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14205
14206         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14207         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14208         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14209
14210 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14211
14212         * string/memccpy.c (memccpy):
14213         Improve performance by using memchr/memcpy/__mempcpy.
14214
14215 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14216
14217         * string/strncpy.c (strncpy):
14218         Improve performance by using __strnlen/memcpy.
14219
14220 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14221
14222         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14223         Optimize to avoid an unnecessary FPCR read.
14224
14225 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14226
14227         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14228         Optimize to reduce FPCR/FPSR accesses.
14229
14230 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14231
14232         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14233         dead->data[category] != NULL.
14234
14235 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14236
14237         [BZ #18647]
14238         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14239         and |x| close to 1, use absolute value of x when computing log.
14240         * math/auto-libm-test-in: Add more tests of pow.
14241         * math/auto-libm-test-out: Regenerated.
14242
14243 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14244
14245         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14246         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14247         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14248
14249 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14250
14251         [BZ #18525]
14252         * locales/km_KH: Remove timezone definition.
14253         * locales/lo_LA: Likewise.
14254         * locales/my_MM: Likewise.
14255         * locales/nan_TW@latin: Likewise.
14256         * locales/th_TH: Likewise.
14257         * locales/uk_UA: Likewise.
14258
14259 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14260
14261         [BZ #18265]
14262         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14263         (wcsncat): Likewise.
14264         (wcscmp): Likewise.
14265         (wcsncmp): Likewise.
14266
14267 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14268
14269         * test-skeleton.c (usage): New function.
14270         (main): Call usage when opt is '?'.
14271
14272 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14273
14274         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14275         before first use.
14276
14277 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14278
14279         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14280         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14281         in there too.
14282
14283 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14284
14285         * version.h (RELEASE): Set to "development".
14286         (VERSION): Set to "2.22.90"
14287
14288         * version.h (RELEASE): Set to "stable".
14289         (VERSION): Set to "2.22"
14290         * include/features.h (__GLIBC_MINOR__): Set to 22.
14291
14292 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14293
14294         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14295         Restructure macro to avoid "value computed is not used" warning.
14296         (atomic_compare_and_exchange_val_acq): Likewise.
14297
14298 2015-08-04  Andreas Schwab  <schwab@suse.de>
14299
14300         [BZ #18635]
14301         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14302         ret.
14303         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14304
14305 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14306
14307         * po/pl.po: Updated translation.
14308         * po/uk.po: Likewise.
14309         * po/fi.po: Likewise.
14310         * po/ko.po: Likewise.
14311         * po/ru.po: Likewise.
14312         * po/vi.po: Likewise.
14313
14314 2015-07-31  Zack Weinberg  <zackw@panix.com>
14315
14316         [BZ #18681]
14317         * regexp.h: Add unconditional #warning stating that this header
14318         will be removed soon.  Revise banner comment to match.
14319         (compile): Consistently use ERROR instead of RETURN to report
14320         errors (partial fix for bz#18681).
14321         * regexp.c: Don't include regexp.h. Remove some unnecessary
14322         declarations.
14323
14324 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14325
14326         * po/libc.pot: Regenerated.
14327
14328 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14329
14330         [BZ #18740]
14331         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14332         float-vlen4-arch-ext-cflags): Removed.
14333         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14334         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14335
14336 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14337
14338         [BZ #14113]
14339         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14340         aligned to __aligned__.
14341         (pthread_cond_t, pthread_rwlock_t): Likewise.
14342
14343 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14344
14345         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14346
14347 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14348
14349         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14350         (struct sigaction): Change sa_flags from a long to an int, and add
14351         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14352
14353 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14354
14355         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14356         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14357         sysdeps/generic/sysdep.h include.
14358         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14359         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14360         sysdeps/hppa/sysdep.h.
14361         (ENTRY, PSEUDO): Undefine before defining.
14362
14363 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14364
14365         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14366         from scratch to use INTERNAL_SYSCALL.
14367
14368 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14369
14370         [BZ #18078]
14371         * scripts/check-localplt.awk: Support alternate relocations.
14372         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14373         sections.
14374         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14375         malloc entries with + REL R_386_GLOB_DAT.
14376         * sysdeps/x86_64/localplt.data: New file.
14377
14378 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14379
14380         [BZ #18731]
14381         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14382         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14383         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14384
14385 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14386
14387         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14388
14389 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14390
14391         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14392         directly in terms of __sync_fetch_and_add and delete (int) cast.
14393
14394 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14395
14396         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14397         the -D_ASM_IA64_CURRENT_H flag.
14398
14399 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14400
14401         [BZ #18641]
14402         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14403
14404 2015-07-27  Andreas Schwab  <schwab@suse.de>
14405
14406         * conform/conformtest.pl (checknamespace): Filter out string
14407         literals while tokenizing.
14408
14409 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14410
14411         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14412         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14413         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14414
14415 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14416
14417         * nptl/tst-join7mod.c: Add #include <string.h>.
14418
14419 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14420
14421         * sysdeps/nios2/libm-test-ulps: Update.
14422
14423 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14424
14425         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14426         Fix order of arguments to the rt_sigprocmask syscall.
14427         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14428         Likewise.
14429
14430 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14431
14432         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14433
14434 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14435
14436         [BZ #18457]
14437         * nptl/Makefile (tests): New test case tst-join7.
14438         (modules-names): New test case module tst-join7mod.
14439         * nptl/tst-join7.c: New file.
14440         * nptl/tst-join7mod.c: New file.
14441         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14442         all translation units in libc.so, libpthread.so and rtld.
14443
14444 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14445
14446         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14447
14448 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14449
14450         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14451         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14452         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14453         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14454         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14455         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14456         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14457         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14458         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14459         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14460         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14461         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14462         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14463         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14464         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14465         implementation.
14466
14467 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14468
14469         [BZ #17711]
14470         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14471         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14472         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14473         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14474         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14475         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14476
14477 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14478
14479         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14480         instead of just saying load lock in the comments.
14481
14482 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14483
14484         * sysdeps/unix/Subdirs: Moved ...
14485         * sysdeps/posix/Subdirs: ... here.
14486         * login/pty.h (struct termios, struct winsize): Add forward decls.
14487         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14488         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14489         * sysdeps/arm/nacl/libc.abilist: Updated.
14490         * sysdeps/nacl/libutil.abilist: New file.
14491
14492         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14493         (SIGWINCH): New macro.
14494
14495         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14496         * sysdeps/arm/nacl/libc.abilist: Add it.
14497
14498 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14499
14500         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14501
14502 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14503
14504         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14505         Swap __glibc_reserved0 and sa_flags order.
14506
14507 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14508
14509         [BZ #18657]
14510         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14511         are pending TLS destructor calls.
14512         * include/link.h (struct link_map): Add concurrency note for
14513         L_TLS_DTOR_COUNT.
14514         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14515         Don't touch the link map flag.  Atomically increment
14516         l_tls_dtor_count.
14517         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14518         Avoid taking the load lock and don't touch the link map flag.
14519         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14520         * stdlib/Makefile (tests): Use it.
14521         * stdlib/tst-tls-atexit.c (do_test): dlopen
14522         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14523         to allow tst-tls-atexit-nodelete test case to use it.
14524
14525 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14526
14527         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14528         to bits/types.h.
14529         (msgqnum_t): New typedef.
14530         (msglen_t): Likewise.
14531         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14532         and msg_qbytes type to msglen_t.
14533
14534 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14535
14536         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14537         pad0 to __glibc_reserved0.
14538         (struct stat64): Likewise.
14539
14540 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14541
14542         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14543         Change sa_flags from a long to an int and add __glibc_reserved0 before
14544         it for padding.
14545
14546 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14547
14548         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14549         anonymous by deleting "siginfo" name.
14550
14551 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14552
14553         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14554         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14555         rather than __nacl_irt_filename.
14556         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14557
14558         * NEWS: New item for arm-nacl port.
14559         * sysdeps/arm/nacl/libc.abilist: New file.
14560         * sysdeps/nacl/ld.abilist: New file.
14561         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14562         * sysdeps/nacl/libanl.abilist: New file.
14563         * sysdeps/nacl/libcrypt.abilist: New file.
14564         * sysdeps/nacl/libdl.abilist: New file.
14565         * sysdeps/nacl/libm.abilist: New file.
14566         * sysdeps/nacl/libpthread.abilist: New file.
14567         * sysdeps/nacl/libresolv.abilist: New file.
14568         * sysdeps/nacl/librt.abilist: New file.
14569
14570 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14571
14572         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14573         __startcontext to initialize the new context.
14574         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14575         up CFI directive to forbid further backtracing.
14576
14577 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14578
14579         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14580         reference.
14581         * charmaps/ANSI_X3.4-1968: Likewise.
14582         * charmaps/BS_4730: Likewise.
14583         * charmaps/BS_VIEWDATA: Likewise.
14584         * charmaps/CP1250: Likewise.
14585         * charmaps/CP1251: Likewise.
14586         * charmaps/CP1252: Likewise.
14587         * charmaps/CP1253: Likewise.
14588         * charmaps/CP1254: Likewise.
14589         * charmaps/CP1255: Likewise.
14590         * charmaps/CP1256: Likewise.
14591         * charmaps/CSN_369103: Likewise.
14592         * charmaps/EBCDIC-DK-NO: Likewise.
14593         * charmaps/GB_1988-80: Likewise.
14594         * charmaps/GREEK-CCITT: Likewise.
14595         * charmaps/GREEK7: Likewise.
14596         * charmaps/INIS-8: Likewise.
14597         * charmaps/ISIRI-3342: Likewise.
14598         * charmaps/ISO_2033-1983: Likewise.
14599         * charmaps/ISO_5427-EXT: Likewise.
14600         * locales/POSIX: Likewise.
14601         * locales/ar_SA: Likewise.
14602         * locales/be_BY: Likewise.
14603         * locales/be_BY@latin: Likewise.
14604         * locales/ca_ES: Likewise.
14605         * locales/cs_CZ: Likewise.
14606         * locales/da_DK: Likewise.
14607         * locales/de_BE: Likewise.
14608         * locales/de_CH: Likewise.
14609         * locales/de_LU: Likewise.
14610         * locales/en_AU: Likewise.
14611         * locales/en_BW: Likewise.
14612         * locales/en_CA: Likewise.
14613         * locales/en_DK: Likewise.
14614         * locales/en_GB: Likewise.
14615         * locales/en_IE: Likewise.
14616         * locales/en_NZ: Likewise.
14617         * locales/en_ZA: Likewise.
14618         * locales/en_ZW: Likewise.
14619         * locales/es_AR: Likewise.
14620         * locales/es_BO: Likewise.
14621         * locales/es_CL: Likewise.
14622         * locales/es_CO: Likewise.
14623         * locales/es_DO: Likewise.
14624         * locales/es_EC: Likewise.
14625         * locales/es_ES: Likewise.
14626         * locales/es_HN: Likewise.
14627         * locales/es_MX: Likewise.
14628         * locales/es_PA: Likewise.
14629         * locales/es_PE: Likewise.
14630         * locales/es_PY: Likewise.
14631         * locales/es_SV: Likewise.
14632         * locales/es_US: Likewise.
14633         * locales/es_UY: Likewise.
14634         * locales/es_VE: Likewise.
14635         * locales/et_EE: Likewise.
14636         * locales/fa_IR: Likewise.
14637         * locales/fo_FO: Likewise.
14638         * locales/fr_CA: Likewise.
14639         * locales/fr_CH: Likewise.
14640         * locales/gv_GB: Likewise.
14641         * locales/he_IL: Likewise.
14642         * locales/hr_HR: Likewise.
14643         * locales/id_ID: Likewise.
14644         * locales/is_IS: Likewise.
14645         * locales/it_CH: Likewise.
14646         * locales/iw_IL: Likewise.
14647         * locales/kl_GL: Likewise.
14648         * locales/ko_KR: Likewise.
14649         * locales/kw_GB: Likewise.
14650         * locales/lg_UG: Likewise.
14651         * locales/lt_LT: Likewise.
14652         * locales/lv_LV: Likewise.
14653         * locales/mi_NZ: Likewise.
14654         * locales/nhn_MX: Likewise.
14655         * locales/nl_BE: Likewise.
14656         * locales/pl_PL: Likewise.
14657         * locales/sk_SK: Likewise.
14658         * locales/sl_SI: Likewise.
14659         * locales/sv_FI: Likewise.
14660         * locales/tl_PH: Likewise.
14661         * locales/tr_TR: Likewise.
14662         * locales/vi_VN: Likewise.
14663
14664 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14665
14666         [BZ #17475]
14667         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14668         of tu_IN and bh_IN.
14669
14670 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14671
14672         [BZ #18694]
14673         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14674         bits/wordsize.h.
14675         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14676
14677 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14678
14679         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14680         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14681         (spawn_thread): New function.
14682         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14683         (do_test): ... here.  Use IS_LOADED to test for its
14684         availability.
14685
14686 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14687
14688         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14689
14690 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14691
14692         [BZ #18696]
14693         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14694         si_addr_bnd.
14695         (si_lower): New.
14696         (si_upper): Likewise.
14697
14698 2015-07-16  David S. Miller  <davem@davemloft.net>
14699
14700         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14701
14702 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14703
14704         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14705         buffer.
14706         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14707         fail output information.
14708
14709 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14710
14711         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14712         and strstr-ppc64..
14713         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14714         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14715         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14716         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14717         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14718
14719 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14720
14721         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14722         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14723         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14724         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14725
14726 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14727
14728         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14729         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14730         rtld_hidden_proto.
14731         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14732
14733 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14734
14735         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14736         the test can fail.
14737
14738         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14739
14740         [BZ #18676]
14741         * elf/tst-nodelete-opened.c: New test case.
14742         * elf/tst-nodelete-opened-lib.c: New test case module.
14743         * elf/Makefile (tests, modules-names): Use them.
14744         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14745         early.
14746
14747 2015-07-15  David S. Miller  <davem@davemloft.net>
14748
14749         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14750         futex-intenal.h
14751         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14752         * sysdeps/sparc/sparc64/Makefile: Likewise.
14753         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14754         Remove space from macro define.
14755         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14756
14757 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14758
14759         [BZ #17475]
14760         * locale/iso-639.def: Update Bhili and Tulu language codes as
14761         per iso639-3.
14762
14763 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14764
14765         * elf/tst-leaks1.c (main): Converted to ...
14766         (do_test): ... this.
14767         (TEST_FUNCTION): New macro.
14768         Include test-skeleton.c.
14769         * localedata/tst-langinfo.c (main): Converted to ...
14770         (do_test): ... this.
14771         (TEST_FUNCTION): New macro.
14772         Include test-skeleton.c.
14773         * math/test-fpucw.c (main): Converted to ...
14774         (do_test): ... this.
14775         (TEST_FUNCTION): New macro.
14776         Include test-skeleton.c.
14777         * math/test-tgmath.c (main): Converted to ...
14778         (do_test): ... this.
14779         (TEST_FUNCTION): New macro.
14780         Include test-skeleton.c.
14781         * math/test-tgmath2.c (main): Converted to ...
14782         (do_test): ... this.
14783         (TEST_FUNCTION): New macro.
14784         Include test-skeleton.c.
14785         * setjmp/tst-setjmp.c (main): Converted to ...
14786         (do_test): ... this.
14787         (TEST_FUNCTION): New macro.
14788         Include test-skeleton.c.
14789         * stdio-common/tst-sscanf.c (main): Converted to ...
14790         (do_test): ... this.
14791         (TEST_FUNCTION): New macro.
14792         Include test-skeleton.c.
14793         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14794         (do_test): ... this.
14795         (TEST_FUNCTION): New macro.
14796         Include test-skeleton.c.
14797
14798         * elf/tst-audit9.c (main): Converted to ...
14799         (do_test): ... this.
14800         (TEST_FUNCTION): New macro.
14801         Include test-skeleton.c.
14802
14803 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14804
14805         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14806
14807 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14808
14809         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14810         New variable.
14811
14812 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14813
14814         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14815
14816 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14817
14818         * sysdeps/generic/dl-fileid.h: New file.
14819         * sysdeps/posix/dl-fileid.h: New file.
14820         * sysdeps/nacl/dl-fileid.h: New file.
14821         * include/link.h: Include <dl-fileid.h>.
14822         (struct link_map): Replace l_dev and l_ino with l_file_id.
14823         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14824         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14825         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14826
14827 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14828
14829         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14830
14831 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14832
14833         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14834         Add iff $CXX is set.
14835         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14836         Likewise.
14837         (tst-nodelete-zmodiff): Likewise.
14838         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14839
14840 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14841
14842         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14843
14844 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14845
14846         * sysdeps/aarch64/fpu/math_private.h
14847         (define math_opt_barrier): Add AArch64 version.
14848         (math_force_eval): Likewise.
14849
14850 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14851
14852         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14853
14854 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14855
14856         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14857         %ld with %jd and cast to intmax_t.
14858         (do_test_length_zero): Likewise.
14859
14860 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14861
14862         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14863
14864 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14865
14866         * sysdeps/tile/libm-test-ulps: Regenerated.
14867
14868         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14869         Comment out the whole function, not just its body.
14870
14871 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14872
14873         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14874         locks.
14875
14876         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14877
14878 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14879
14880         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14881         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14882
14883 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14884
14885         * sysdeps/nptl/futex-internal.h: New file.
14886         * sysdeps/nacl/futex-internal.h: New file.
14887         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14888         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14889         error checking.
14890         (setxid_unmark_thread): Likewise.
14891         (__nptl_setxid): Likewise.
14892         (__wait_lookup_done): Likewise.
14893         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14894         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14895         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14896         * nptl/pthread_once.c (clear_once_control): Likewise.
14897         (__pthread_once_slow): Likewise.
14898         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14899         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14900         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14901         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14902         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14903         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14904         Likewise.
14905         (__pthread_rwlock_rdlock): Likewise.
14906         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14907         Likewise.
14908         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14909         Likewise.
14910         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14911         Likewise.
14912         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14913         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14914         Likewise.
14915         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14916         __ASSUME_PRIVATE_FUTEX check.
14917         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14918         Check that shared futexes are supported.
14919         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14920         wrappers with error checking.
14921         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14922         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14923         * nptl/pthread_barrierattr_setpshared.c
14924         (pthread_barrierattr_setpshared): Check that shared futexes are
14925         supported.
14926         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14927         Likewise.
14928         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14929         Likewise.
14930         * nptl/sem_init.c (futex_private_if_supported): Remove.
14931         (__new_sem_init): Adapt and check that shared futexes are supported.
14932         * nptl/sem_open.c (sem_open): Likewise.
14933         * nptl/sem_post.c (futex_wake): Remove.
14934         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14935         (do_futex_wait): Use futex wrappers with error checking.
14936         * nptl/sem_wait.c: Include lowlevellock.h.
14937         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14938         Use futex_supports_pshared.
14939         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14940         Use futex wrappers with error checking.
14941         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14942         Likewise.
14943         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14944         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14945         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14946         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14947         (futex_wake): Likewise.
14948         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14949         (do_futex_wait): Use futex wrappers with error checking.
14950         (__new_sem_wait_slow): Update EINTR handling.
14951         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14952
14953 2015-07-09  Martin Sebor  <msebor@redhat.com>
14954
14955         [BZ #18435]
14956         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14957         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14958         * nptl/Makefile (test-xfail-tst-once5): Define.
14959
14960 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14961
14962         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14963         * elf/dl-minimal.c: For readability, reorder some definitions and
14964         introduce more page breaks.  Include <stdio.h>.
14965         (__libc_fatal): New function.
14966
14967         * include/unistd.h: Add rtld_hidden_proto for _exit.
14968         * posix/_exit.c: Add rtld_hidden_def.
14969         * sysdeps/mach/hurd/_exit.c: Likewise.
14970         * sysdeps/nacl/_exit.c: Likewise.
14971         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14972         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14973
14974 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14975
14976         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14977         bndmov encoding with zero displacement.
14978
14979 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14980             H.J. Lu  <hongjiu.lu@intel.com>
14981
14982         [BZ #18134]
14983         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14984         * sysdeps/i386/configure: Regenerated.
14985         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14986         (_dl_runtime_profile): Save and restore Intel MPX return bound
14987         registers when calling _dl_call_pltexit.  Add
14988         PRESERVE_BND_REGS_PREFIX before return.
14989         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14990         (LRV_BND1_OFFSET): Likewise.
14991         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14992         lrv_bnd1.
14993         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14994         typo in bndmov encoding.
14995         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14996         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14997         branch instructions to preserve bounds.
14998
14999 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15000
15001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15002         [GLIBC_2.22]: Add fmemopen.
15003
15004 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15005
15006         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15007         returns an error, also try to use host port from __mach_host_self for
15008         the __vm_wire call.
15009         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15010
15011 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15012
15013         [BZ #18400]
15014         [BZ #18648]
15015         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15016         Fix pr_uid and pr_gid members.
15017         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15018         definition to elf_greg_t.
15019
15020 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15021
15022         [BZ #18383]
15023         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15024         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15025         * sysdeps/arm/configure: Regenerated.
15026         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15027         (test-xfail-tst-tlsalign-static): Variable removed.
15028
15029         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15030         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15031         rather than explicit 'ln -s'.
15032
15033         * resolv/rpc/netdb.h: New file.
15034         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15035
15036 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15037
15038         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15039         length buffers.
15040         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15041         test-skeleton.c.
15042
15043         [BZ #6544]
15044         [BZ #11216]
15045         [BZ #12836]
15046         [BZ #13151]
15047         [BZ #13152]
15048         [BZ #14292]
15049         * include/stdio.h (fmemopen): Remove hidden prototype.
15050         (__fmemopen): Add new hidden prototype.
15051         * libio/Makefile: Add oldfmemopen object.
15052         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15053         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15054         compliance.
15055         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15056         symbol compatibility.
15057         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15058         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15059         fmemopen.
15060         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15061         on append and read mode.
15062         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15063         fmemopen.
15064         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15065         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15066         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15067         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15068         Likewise.
15069         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15070         [GLIBC_2.22]: Likewise.
15071         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15072         Likewise.
15073         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15074         Likewise.
15075         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15076         [GLIBC_2.22]: Likewise.
15077         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15078         [GLIBC_2.22]: Likewise.
15079         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15080         [GLIBC_2.22]: Likewise.
15081         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15082         [GLIBC_2.22]: Likewise.
15083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15084         [GLIBC_2.22]: Likewise.
15085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15086         [GLIBC_2.22]: Likewise.
15087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15088         [GLIBC_2.22]: Likewise.
15089         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15090         Likewise.
15091         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15092         Likewise.
15093         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15094         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15095         [GLIBC_2.22]: Likewise.
15096         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15097         [GLIBC_2.22]: Likewise.
15098         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15099         [GLIBC_2.22]: Likewise.
15100         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15101         [GLIBC_2.22]: Likewise.
15102         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15103         Likewise.
15104         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15105         Likewise.
15106         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15107         Likewise.
15108         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15109         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15110
15111 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15112
15113         [BZ #18643]
15114         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15115         IPV6_PATHMTU, and IPV6_DONTFRAG.
15116
15117 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15118
15119         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15120         and _IO_UNBUFFERED.
15121         * libio/oldfileops.c: Likewise.
15122         * libio/wfileops.c: Likewise.
15123
15124 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15125
15126         * nscd/selinux.c: Delete selinux/flask.h include.
15127
15128 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15129
15130         [BZ #18641]
15131         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15132         (putpwent): Likewise.
15133         (getpwnam): Likewise.
15134         (getpwent_r): Likewise.
15135         (getpwuid_r): Likewise.
15136         (getpwnam_r): Likewise.
15137         (fgetpwent_r): Likewise.
15138
15139 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15140
15141         [BZ #18557]
15142         * inet/rcmd.c (__validuser2_sa): Check user first to
15143         short-circuit host check.
15144
15145 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15146             Mikhail Ilin  <m.ilin@samsung.com>
15147
15148         [BZ #17833]
15149         * elf/Makefile (tests): Add tst-nodelete.
15150         (modules-names): Add tst-nodelete-uniquemod.
15151         (tst-nodelete-uniquemod.so-no-z-defs): New.
15152         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15153         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15154         ($(objpfx)tst-nodelete): Likewise.
15155         ($(objpfx)tst-nodelete.out): Likewise.
15156         (LDFLAGS-tst-nodelete): Likewise.
15157         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15158         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15159         implement forced object deletion.
15160         (_dl_close): Pass false to _dl_close_worker.
15161         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15162         * elf/tst-nodelete.cc: New file.
15163         * elf/tst-nodeletelib.cc: Likewise.
15164         * elf/tst-znodeletelib.cc: Likewise.
15165         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15166
15167 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15168
15169         [BZ #18508]
15170         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15171         Depend on $(libdl).
15172         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15173         is not called infinitely times.
15174         (backtrace_helper): New function.
15175         (trace_arg): New struct.
15176         (st1): Enlarge stack size.
15177         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15178         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15179         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15180         Likewise.
15181
15182 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15183
15184         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15185
15186 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15187
15188         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15189         Include sys/types.h instead of bits/types.h.
15190         Remove inclusion of bits/wordsize.h.
15191
15192 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15193
15194         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15195         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15196         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15197         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15198         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15199         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15200
15201 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15202
15203         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15204         link-defines.sym.
15205         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15206         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15207         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15208         and LR_SIZE.
15209         * sysdeps/i386/link-defines.sym: New file.
15210
15211 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15212
15213         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15214         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15215         ($(objpfx)tst-audit3): New rule.
15216         ($(objpfx)tst-audit3.out): Likewise.
15217         * sysdeps/i386/tst-audit3.c: New file.
15218         * sysdeps/i386/tst-audit3.h: Likewise.
15219         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15220         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15221
15222 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15223
15224         [BZ #18633]
15225         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15226         pointer in C code.
15227         (__strcat_c): Likewise.
15228         (__strcat_g): Likewise.
15229
15230 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15231
15232         [BZ #18592]
15233         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15234
15235 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15236
15237         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15238         New function.  (__ieee754_sqrtf): New function.
15239         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15240         New function.
15241         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15242         New function.
15243
15244 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15245
15246         * sysdeps/ieee754/support.c: Remove unused file.
15247
15248 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15249
15250         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15251         registers instead of d ones so the layout is kernel abi compatible.
15252         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15253         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15254         Likewise.
15255
15256 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15257
15258         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15259
15260 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15261
15262         [BZ #18619]
15263         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15264         and return argument in case of subnormal argument.
15265
15266 2015-07-01  Martin Sebor  <msebor@redhat.com>
15267
15268         [BZ #18435]
15269         * nptl/Makefile: Add tst-once5.cc.
15270         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15271         Remove macro redefinitions.
15272         * nptl/tst-once5.cc: New test.
15273
15274 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15275
15276         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15277
15278         * sysdeps/arm/libm-test-ulps: Regenerated.
15279
15280         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15281         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15282
15283 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15284
15285         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15286         lll_lock_wait_private and lll_futex_wake probes.
15287
15288         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15289         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15290         Likewise.
15291         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15292         atomic_spin_nop.
15293         * sysdeps/x86_64/bits/atomic.h: Likewise.
15294         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15295         to atomic_spin_nop and move ...
15296         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15297         ... here and ...
15298         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15299         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15300         atomic_spin_nop instead of BUSY_WAIT_NOP.
15301         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15302         Likewise.
15303         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15304         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15305         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15306         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15307         instead of atomic_delay.
15308
15309 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15310
15311         [BZ #18613]
15312         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15313         X_ADJ not X when adjusting exponent.
15314         (__ieee754_gamma_r): Do intermediate computations in
15315         round-to-nearest then adjust overflowing and underflowing results
15316         as needed.
15317         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15318         of X_ADJ not X when adjusting exponent.
15319         (__ieee754_gammaf_r): Do intermediate computations in
15320         round-to-nearest then adjust overflowing and underflowing results
15321         as needed.
15322         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15323         log of X_ADJ not X when adjusting exponent.
15324         (__ieee754_gammal_r): Do intermediate computations in
15325         round-to-nearest then adjust overflowing and underflowing results
15326         as needed.  Use 1.0L not 1.0f as numerator of division.
15327         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15328         log of X_ADJ not X when adjusting exponent.
15329         (__ieee754_gammal_r): Do intermediate computations in
15330         round-to-nearest then adjust overflowing and underflowing results
15331         as needed.  Use 1.0L not 1.0f as numerator of division.
15332         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15333         of X_ADJ not X when adjusting exponent.
15334         (__ieee754_gammal_r): Do intermediate computations in
15335         round-to-nearest then adjust overflowing and underflowing results
15336         as needed.  Use 1.0L not 1.0f as numerator of division.
15337         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15338         to auto-libm-test-in.
15339         (tgamma_test): Use ALL_RM_TEST.
15340         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15341         tests of tgamma with spurious-overflow.
15342         * math/auto-libm-test-out: Regenerated.
15343         * math/gen-libm-have-vector-test.sh: Do not check for START.
15344         * sysdeps/i386/fpu/libm-test-ulps: Update.
15345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15346
15347         [BZ #18612]
15348         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15349         arguments, just return 0.5 times the argument, with underflow
15350         forced as needed.
15351         * math/auto-libm-test-in: Add more tests of j1.
15352         * math/auto-libm-test-out: Regenerated.
15353
15354         [BZ #16559]
15355         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15356         (__ieee754_j1): Force underflow exception for small results.
15357         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15358         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15359         (__ieee754_j1f): Force underflow exception for small results.
15360         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15361         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15362         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15363         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15364         (__ieee754_j1l): Force underflow exception for small results.
15365         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15366         * math/auto-libm-test-in: Add more tests of j1 and jn.
15367         * math/auto-libm-test-out: Regenerated.
15368
15369         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15370         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15371         (PF_MPLS): Likewise.
15372         (AF_IB): Likewise.
15373         (AF_MPLS): Likewise.
15374         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15375         value and macro.
15376         (MS_RMT_MASK): Include MS_LAZYTIME.
15377
15378 2015-06-26  Mel Gorman  <mgorman@suse.de>
15379
15380         [BZ #18502]
15381         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15382         already minimal.
15383
15384 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15385
15386         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15387         (DT_MIPS_NUM): Update.
15388         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15389         DT_MIPS_RLD_MAP_REL.
15390
15391 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15392
15393         [BZ #16559]
15394         [BZ #18602]
15395         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15396         round-to-nearest internally then recompute results that
15397         underflowed to zero in the original rounding mode.
15398         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15399         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15400         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15401         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15402         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15403         * sysdeps/i386/fpu/libm-test-ulps: Update.
15404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15405
15406 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15407
15408         * NEWS: Fixed description of link with vector math library.
15409
15410 2015-06-25  Andreas Schwab  <schwab@suse.de>
15411
15412         [BZ #18549]
15413         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15414         * libio/test-fmemopen.c (do_test): Add test for it.
15415
15416 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15417
15418         [BZ #17841]
15419         * Makeconfig (no-pie-ldflag): New.
15420         (+link): Set to $(+link-pie) if default to PIE.
15421         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15422         * config.make.in (build-pie-default): New.
15423         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15424         is default.  AC_SUBST.
15425         * configure: Regenerated.
15426         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15427
15428 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15429
15430         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15431         to 'unsigned int'.
15432
15433         * resolv/gai_misc.h (struct waitlist): Change type of field
15434         counterp to 'volatile unsigned int *'.
15435         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15436         FUTEXADDR and OLDVAL.
15437         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15438         Give local variable TOTAL type 'volatile unsigned int'.
15439         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15440         * resolv/gai_suspend.c (gai_suspend):
15441         Give local variable CNTR type 'unsigned int'.
15442
15443         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15444         counterp to 'volatile unsigned int *'.
15445         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15446         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15447         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15448         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15449         Give local variable TOTAL type 'volatile unsigned int'.
15450         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15451
15452 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15453
15454         [BZ #18383]
15455         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15456         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15457         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15458         comment for i386/x86-64.
15459         (test-xfail-tst-tlsalign-extern-static): Removed.
15460
15461 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15462
15463         * math/test-double.h: New file.
15464         * math/test-float.h: Likewise.
15465         * math/test-ldouble.h: Likewise.
15466         * math/test-math-inline.h: Likewise.
15467         * math/test-math-no-inline.h: Likewise.
15468         * math/test-math-scalar.h: Likewise.
15469         * math/test-math-vector.h: Likewise.
15470         * math/test-vec-loop.h: Remove file.  Contents moved into
15471         test-math-vector.h.
15472         * math/libm-test.inc (MATHCONST): Do not document macro.
15473         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15474         and test-math-scalar.h.
15475         (FUNC): Remove macro.
15476         (FUNC_TEST): Likewise.
15477         (FLOAT): Likewise.
15478         (MATHCONST): Likewise.
15479         (PRINTF_EXPR): Likewise.
15480         (PRINTF_XEXPR): Likewise.
15481         (PRINTF_NEXPR): Likewise.
15482         (TEST_DOUBLE): Likewise.
15483         (TEST_MATHVEC): Likewise.
15484         (__NO_MATH_INLINES): Likewise.
15485         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15486         and test-math-scalar.h.
15487         (FUNC): Remove macro.
15488         (FUNC_TEST): Likewise.
15489         (FLOAT): Likewise.
15490         (MATHCONST): Likewise.
15491         (PRINTF_EXPR): Likewise.
15492         (PRINTF_XEXPR): Likewise.
15493         (PRINTF_NEXPR): Likewise.
15494         (TEST_FLOAT): Likewise.
15495         (TEST_MATHVEC): Likewise.
15496         (__NO_MATH_INLINES): Likewise.
15497         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15498         and test-math-scalar.h.
15499         (FUNC): Remove macro.
15500         (FUNC_TEST): Likewise.
15501         (FLOAT): Likewise.
15502         (MATHCONST): Likewise.
15503         (PRINTF_EXPR): Likewise.
15504         (PRINTF_XEXPR): Likewise.
15505         (PRINTF_NEXPR): Likewise.
15506         (TEST_DOUBLE): Likewise.
15507         (TEST_MATHVEC): Likewise.
15508         (TEST_INLINE): Likewise.
15509         (__NO_MATH_INLINES): Likewise.
15510         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15511         test-math-scalar.h.
15512         (FUNC): Remove macro.
15513         (FUNC_TEST): Likewise.
15514         (FLOAT): Likewise.
15515         (MATHCONST): Likewise.
15516         (PRINTF_EXPR): Likewise.
15517         (PRINTF_XEXPR): Likewise.
15518         (PRINTF_NEXPR): Likewise.
15519         (TEST_FLOAT): Likewise.
15520         (TEST_MATHVEC): Likewise.
15521         (TEST_INLINE): Likewise.
15522         (__NO_MATH_INLINES): Likewise.
15523         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15524         and test-math-scalar.h.
15525         (FUNC): Remove macro.
15526         (FUNC_TEST): Likewise.
15527         (FLOAT): Likewise.
15528         (MATHCONST): Likewise.
15529         (PRINTF_EXPR): Likewise.
15530         (PRINTF_XEXPR): Likewise.
15531         (PRINTF_NEXPR): Likewise.
15532         (TEST_LDOUBLE): Likewise.
15533         (TEST_MATHVEC): Likewise.
15534         (TEST_INLINE): Likewise.
15535         (__NO_MATH_INLINES): Likewise.
15536         * math/test-ldouble.c: Include test-ldouble.h,
15537         test-math-no-inline.h and test-math-scalar.h.
15538         (FUNC): Remove macro.
15539         (FUNC_TEST): Likewise.
15540         (FLOAT): Likewise.
15541         (MATHCONST): Likewise.
15542         (PRINTF_EXPR): Likewise.
15543         (PRINTF_XEXPR): Likewise.
15544         (PRINTF_NEXPR): Likewise.
15545         (TEST_LDOUBLE): Likewise.
15546         (TEST_MATHVEC): Likewise.
15547         (__NO_MATH_INLINES): Likewise.
15548         * math/test-double-vlen2.h: Include test-double.h,
15549         test-math-no-inline.h and test-math-vector.h.
15550         (FLOAT): Remove macro.
15551         (FUNC): Likewise.
15552         (MATHCONST): Likewise.
15553         (PRINTF_EXPR): Likewise.
15554         (PRINTF_XEXPR): Likewise.
15555         (PRINTF_NEXPR): Likewise.
15556         (TEST_DOUBLE): Likewise.
15557         (TEST_MATHVEC): Likewise.
15558         (__NO_MATH_INLINES): Likewise.
15559         (CNCT): Likewise.
15560         (CONCAT): Likewise.
15561         (WRAPPER_NAME): Likewise.
15562         (WRAPPER_DECL): Likewise.
15563         (WRAPPER_DECL_ff): Likewise.
15564         (WRAPPER_DECL_fFF): Likewise.
15565         (VECTOR_WRAPPER): Likewise.
15566         (VECTOR_WRAPPER_ff): Likewise.
15567         (VECTOR_WRAPPER_fFF): Likewise.
15568         (VEC_LEN): New macro.
15569         * math/test-double-vlen4.h: Include test-double.h,
15570         test-math-no-inline.h and test-math-vector.h.
15571         (FLOAT): Remove macro.
15572         (FUNC): Likewise.
15573         (MATHCONST): Likewise.
15574         (PRINTF_EXPR): Likewise.
15575         (PRINTF_XEXPR): Likewise.
15576         (PRINTF_NEXPR): Likewise.
15577         (TEST_DOUBLE): Likewise.
15578         (TEST_MATHVEC): Likewise.
15579         (__NO_MATH_INLINES): Likewise.
15580         (CNCT): Likewise.
15581         (CONCAT): Likewise.
15582         (WRAPPER_NAME): Likewise.
15583         (WRAPPER_DECL): Likewise.
15584         (WRAPPER_DECL_ff): Likewise.
15585         (WRAPPER_DECL_fFF): Likewise.
15586         (VECTOR_WRAPPER): Likewise.
15587         (VECTOR_WRAPPER_ff): Likewise.
15588         (VECTOR_WRAPPER_fFF): Likewise.
15589         (VEC_LEN): New macro.
15590         * math/test-double-vlen8.h: Include test-double.h,
15591         test-math-no-inline.h and test-math-vector.h.
15592         (FLOAT): Remove macro.
15593         (FUNC): Likewise.
15594         (MATHCONST): Likewise.
15595         (PRINTF_EXPR): Likewise.
15596         (PRINTF_XEXPR): Likewise.
15597         (PRINTF_NEXPR): Likewise.
15598         (TEST_DOUBLE): Likewise.
15599         (TEST_MATHVEC): Likewise.
15600         (__NO_MATH_INLINES): Likewise.
15601         (CNCT): Likewise.
15602         (CONCAT): Likewise.
15603         (WRAPPER_NAME): Likewise.
15604         (WRAPPER_DECL): Likewise.
15605         (WRAPPER_DECL_ff): Likewise.
15606         (WRAPPER_DECL_fFF): Likewise.
15607         (VECTOR_WRAPPER): Likewise.
15608         (VECTOR_WRAPPER_ff): Likewise.
15609         (VECTOR_WRAPPER_fFF): Likewise.
15610         (VEC_LEN): New macro.
15611         * math/test-float-vlen4.h: Include test-float.h,
15612         test-math-no-inline.h and test-math-vector.h.
15613         (FLOAT): Remove macro.
15614         (FUNC): Likewise.
15615         (MATHCONST): Likewise.
15616         (PRINTF_EXPR): Likewise.
15617         (PRINTF_XEXPR): Likewise.
15618         (PRINTF_NEXPR): Likewise.
15619         (TEST_FLOAT): Likewise.
15620         (TEST_MATHVEC): Likewise.
15621         (__NO_MATH_INLINES): Likewise.
15622         (CNCT): Likewise.
15623         (CONCAT): Likewise.
15624         (WRAPPER_NAME): Likewise.
15625         (WRAPPER_DECL): Likewise.
15626         (WRAPPER_DECL_ff): Likewise.
15627         (WRAPPER_DECL_fFF): Likewise.
15628         (VECTOR_WRAPPER): Likewise.
15629         (VECTOR_WRAPPER_ff): Likewise.
15630         (VECTOR_WRAPPER_fFF): Likewise.
15631         (VEC_LEN): New macro.
15632         * math/test-float-vlen8.h: Include test-float.h,
15633         test-math-no-inline.h and test-math-vector.h.
15634         (FLOAT): Remove macro.
15635         (FUNC): Likewise.
15636         (MATHCONST): Likewise.
15637         (PRINTF_EXPR): Likewise.
15638         (PRINTF_XEXPR): Likewise.
15639         (PRINTF_NEXPR): Likewise.
15640         (TEST_FLOAT): Likewise.
15641         (TEST_MATHVEC): Likewise.
15642         (__NO_MATH_INLINES): Likewise.
15643         (CNCT): Likewise.
15644         (CONCAT): Likewise.
15645         (WRAPPER_NAME): Likewise.
15646         (WRAPPER_DECL): Likewise.
15647         (WRAPPER_DECL_ff): Likewise.
15648         (WRAPPER_DECL_fFF): Likewise.
15649         (VECTOR_WRAPPER): Likewise.
15650         (VECTOR_WRAPPER_ff): Likewise.
15651         (VECTOR_WRAPPER_fFF): Likewise.
15652         (VEC_LEN): New macro.
15653         * math/test-float-vlen16.h: Include test-float.h,
15654         test-math-no-inline.h and test-math-vector.h.
15655         (FLOAT): Remove macro.
15656         (FUNC): Likewise.
15657         (MATHCONST): Likewise.
15658         (PRINTF_EXPR): Likewise.
15659         (PRINTF_XEXPR): Likewise.
15660         (PRINTF_NEXPR): Likewise.
15661         (TEST_FLOAT): Likewise.
15662         (TEST_MATHVEC): Likewise.
15663         (__NO_MATH_INLINES): Likewise.
15664         (CNCT): Likewise.
15665         (CONCAT): Likewise.
15666         (WRAPPER_NAME): Likewise.
15667         (WRAPPER_DECL): Likewise.
15668         (WRAPPER_DECL_ff): Likewise.
15669         (WRAPPER_DECL_fFF): Likewise.
15670         (VECTOR_WRAPPER): Likewise.
15671         (VECTOR_WRAPPER_ff): Likewise.
15672         (VECTOR_WRAPPER_fFF): Likewise.
15673         (VEC_LEN): New macro.
15674         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15675         test-vec-loop.h.
15676         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15677         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15678         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15679         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15680         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15681         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15682         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15683
15684 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15685
15686         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15687         (__getlogin_r): ... this.
15688
15689 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15690
15691         [BZ #18594]
15692         * math/s_ccosh.c (__ccosh): Compare with least normal value
15693         instead of comparing class with FP_SUBNORMAL.
15694         * math/s_ccoshf.c (__ccoshf): Likewise.
15695         * math/s_ccoshl.c (__ccoshl): Likewise.
15696         * math/s_cexp.c (__cexp): Likewise.
15697         * math/s_cexpf.c (__cexpf): Likewise.
15698         * math/s_cexpl.c (__cexpl): Likewise.
15699         * math/s_csin.c (__csin): Likewise.
15700         * math/s_csinf.c (__csinf): Likewise.
15701         * math/s_csinh.c (__csinh): Likewise.
15702         * math/s_csinhf.c (__csinhf): Likewise.
15703         * math/s_csinhl.c (__csinhl): Likewise.
15704         * math/s_csinl.c (__csinl): Likewise.
15705         * math/s_ctan.c (__ctan): Likewise.
15706         * math/s_ctanf.c (__ctanf): Likewise.
15707         * math/s_ctanh.c (__ctanh): Likewise.
15708         * math/s_ctanhf.c (__ctanhf): Likewise.
15709         * math/s_ctanhl.c (__ctanhl): Likewise.
15710         * math/s_ctanl.c (__ctanl): Likewise.
15711         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15712         csin, csinh, ctan and ctanh.
15713         * math/auto-libm-test-out: Regenerated.
15714         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15715         * sysdeps/i386/fpu/libm-test-ulps: Update.
15716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15717
15718 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15719
15720         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15721         return value is wrong, print the expected value too.
15722
15723 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15724
15725         [BZ #18585]
15726         * elf/readlib.c (is_gdb_python_file): New.
15727         (process_file): Don't issue errors on filenames with -gdb.py
15728         suffix.
15729
15730 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15731
15732         * math/auto-libm-test-in: Add more tests of csin and csinh.
15733         * math/auto-libm-test-out: Regenerated.
15734         * math/libm-test.inc (csin_test_data): Remove tests moved to
15735         auto-libm-test-in.
15736         (csinh_test_data): Likewise.
15737
15738         [BZ #18593]
15739         * math/s_csin.c (__csin): Negate before rather than after possibly
15740         overflowing multiplication.
15741         * math/s_csinf.c (__csinf): Likewise.
15742         * math/s_csinh.c (__csinh): Likewise.
15743         * math/s_csinhf.c (__csinhf): Likewise.
15744         * math/s_csinhl.c (__csinhl): Likewise.
15745         * math/s_csinl.c (__csinl): Likewise.
15746         * math/auto-libm-test-in: Add some tests of csin and csinh.
15747         * math/auto-libm-test-out: Regenerated.
15748         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15749         (csinh_test_data): Likewise.
15750         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15751
15752         [BZ #18586]
15753         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15754         underflow exception for small results.
15755
15756 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15757
15758         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15759         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15760         variable and included header.
15761         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15762         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15763         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15764         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15765         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15766         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15767         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15768         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15769         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15770         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15771         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15772         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15773         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15774         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15775         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15776         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15777
15778 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15779
15780         [BZ #16526]
15781         [BZ #16538]
15782         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15783         (__sin): Force underflow exception for arguments with small
15784         absolute value.
15785         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15786         (__kernel_sinf): Force underflow exception for arguments with
15787         small absolute value.
15788         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15789         (__kernel_sincosl): Force underflow exception for arguments with
15790         small absolute value.
15791         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15792         (__kernel_sinl): Force underflow exception for arguments with
15793         small absolute value.
15794         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15795         (__kernel_sincosl): Force underflow exception for arguments with
15796         small absolute value.
15797         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15798         (__kernel_sinl): Force underflow exception for arguments with
15799         small absolute value.
15800         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15801         (__kernel_sinl): Force underflow exception for arguments with
15802         small absolute value.
15803         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15804         (__kernel_sinf): Force underflow exception for arguments with
15805         small absolute value.
15806         * math/auto-libm-test-in: Add more tests of sin and sincos.
15807         * math/auto-libm-test-out: Regenerated.
15808
15809         [BZ #18245]
15810         [BZ #18583]
15811         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15812         (__kernel_standard_l): Use feholdexcept and fesetenv around
15813         conversion to double instead of special-casing overflow and
15814         underflow.
15815         * math/libm-test.inc (fmod_test_data): Add more tests.
15816         (remainder_test_data): Likewise.
15817         (sqrt_test_data): Likewise.
15818
15819 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15820
15821         [BZ #17403]
15822         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15823         atomic_read_barrier, atomic_write_barrier): Define.
15824         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15825         atomic_read_barrier, atomic_write_barrier): Define.
15826
15827 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15828
15829         * math/Makefile [$(PERL) != no]
15830         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15831         dependency on libm-test.stmp below the inclusion of Rules.
15832
15833 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15834
15835         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15836         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15837         and included header.
15838         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15839         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15840         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15841         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15842         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15843         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15844         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15845         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15846         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15847         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15848         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15849         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15850         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15851         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15852         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15853         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15854         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15855         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15856         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15857
15858 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15859
15860         [BZ #18371]
15861         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15862         intermediate but not final result might underflow.
15863         * math/s_csqrtf.c (__csqrtf): Likewise.
15864         * math/s_csqrtl.c (__csqrtl): Likewise.
15865         * math/auto-libm-test-in: Add more tests of csqrt.
15866         * math/auto-libm-test-out: Regenerated.
15867         * sysdeps/i386/fpu/libm-test-ulps: Update.
15868
15869         [BZ #18219]
15870         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15871         threshold on absolute value of exponent for which scaling is used.
15872         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15873         * math/auto-libm-test-in: Add more tests of exp2.
15874         * math/auto-libm-test-out: Regenerated.
15875
15876 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15877
15878         [BZ #17977]
15879         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15880         when initializing interface list, based on the bug analysis
15881         and the patch proposed by Eric Newton.
15882         * resolv/tst-res_hconf_reorder.c: New test.
15883         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15884         tst-res_hconf_reorder.
15885         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15886         and $(shared-thread-library).
15887         (tst-res_hconf_reorder-ENV): New variable.
15888
15889         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15890         in comment.
15891
15892 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15893
15894         [BZ #16353]
15895         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15896         (__expm1): Force underflow exception for arguments with small
15897         absolute value.
15898         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15899         (__expm1f): Force underflow exception for arguments with small
15900         absolute value.
15901         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15902         (__expm1): Force underflow exception for arguments with small
15903         absolute value.
15904         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15905         (__expm1f): Force underflow exception for arguments with small
15906         absolute value.
15907         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15908         Check for small arguments before calling __expm1.
15909         * math/auto-libm-test-in: Do not mark underflow exceptions as
15910         possibly missing for bug 16353.
15911         * math/auto-libm-test-out: Regenerated.
15912
15913 2015-06-22  Andreas Schwab  <schwab@suse.de>
15914
15915         [BZ #18513]
15916         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15917         PTR queries.
15918
15919 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15920
15921         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15922
15923         * string/strcoll_l.c: Remove unused struct element idxnow.
15924
15925 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15926
15927         [BZ #18569]
15928         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15929         underflow and return argument in case of subnormal argument.
15930         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15931         Likewise.
15932         * math/auto-libm-test-in: Add more tests of expm1.
15933         * math/auto-libm-test-out: Regenerated.
15934
15935         [BZ #16361]
15936         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15937         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15938         tiny results.
15939         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15940         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15941         tiny results.
15942         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15943         mark underflow exceptions as possibly missing for bug 16361.
15944         * math/auto-libm-test-out: Regenerated.
15945
15946 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15947
15948         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15949         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15950         Remove variable.
15951         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15952         (test-xfail-XOPEN2K8/utmpx.h/conform).
15953
15954         * conform/conformtest.pl ($xerrors): New variable.
15955         (note_error): New function.
15956         (compiletest): New argument $xfail.  Use not_error.
15957         (runtest): Likewise.
15958         (top level): Handle xfail- lines.  Update calls to compiletest and
15959         runtest.  Handle xfail- and optional- in headers listed with
15960         allow-header.
15961         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15962         (O_EXEC): Likewise.
15963         (O_SEARCH): Likewise.
15964         * conform/data/stropts.h-data (ioctl): Likewise.
15965         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15966         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15967         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15968         (msghdr.msg_controllen): Likewise.
15969         (cmsghdr.cmsg_len): Likewise.
15970         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15971         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15972         variable.
15973         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15974         (test-xfail-XPG4/stropts.h/conform): Likewise.
15975         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15976         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15977         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15978         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15979         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15980         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15981         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15982         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15983         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15984         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15985         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15986         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15987         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15988         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15989         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15990         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15991         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15992         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15993         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15994
15995 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15996
15997         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15998         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15999         definitions for proper unfolding of __MATHDECL_VEC.
16000
16001 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16002
16003         * benchtests/bench-strcoll.c:
16004         Include string.h.
16005         (main): Remove unused variable res.
16006
16007 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16008
16009         * timezone/Makefile (%/UTC %/Universal):
16010         Generate test-result files for UTC and Universal.
16011
16012 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16013
16014         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16015
16016 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16017
16018         [BZ #16350]
16019         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16020         for arguments with small absolute value.
16021         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16022         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16023         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16024         (__asinh): Force underflow exception for arguments with small
16025         absolute value.
16026         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16027         (__asinhf): Force underflow exception for arguments with small
16028         absolute value.
16029         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16030         (__asinhl): Force underflow exception for arguments with small
16031         absolute value.
16032         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16033         (__asinhl): Force underflow exception for arguments with small
16034         absolute value.
16035         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16036         (__asinhl): Force underflow exception for arguments with small
16037         absolute value.
16038         * math/auto-libm-test-in: Do not mark underflow exceptions as
16039         possibly missing for bug 16350.
16040         * math/auto-libm-test-out: Regenerated.
16041
16042         * include/bits/ipc.h: Remove file.
16043         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16044         variable.
16045         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16046         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16047         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16048         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16049         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16050         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16051         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16052         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16053         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16054
16055         * math/auto-libm-test-in: Remove spurious underflow allowance for
16056         tests of cexp.
16057         * math/auto-libm-test-out: Regenerated.
16058
16059         [BZ #18558]
16060         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16061         unconditional definition.
16062         (MCAST_BLOCK_SOURCE): Likewise.
16063         (MCAST_UNBLOCK_SOURCE): Likewise.
16064         (MCAST_LEAVE_GROUP): Likewise.
16065         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16066         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16067         (MCAST_MSFILTER): Likewise.
16068         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16069         Remove variable.
16070         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16071         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16072         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16073         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16074         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16075
16076 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16077
16078         * NEWS: Mention addition of x86_64 vector sincosf.
16079         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16080         * math/test-float-vlen4.h: Likewise.
16081         * math/test-float-vlen8.h: Likewise.
16082         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16083         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16084         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16085         * sysdeps/x86_64/fpu/Versions: New versions added.
16086         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16087         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16088         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16089         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16090         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16091         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16092         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16093         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16094         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16095         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16096         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16097         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16098         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16099         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16100         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16101         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16102         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16103         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16104         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16105         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16106         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16107         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16108         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16109         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16110
16111         * NEWS: Mention addition of x86_64 vector sincos.
16112         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16113         * math/math.h (__MATHDECL_VEC): New macro.
16114         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16115         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16116         declaration under condition.
16117         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16118         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16119         TEST_VEC_LOOP change.
16120         * math/test-double-vlen4.h: Likewise.
16121         * math/test-double-vlen8.h: Likewise.
16122         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16123         * math/test-float-vlen4.h: Likewise.
16124         * math/test-float-vlen8.h: Likewise.
16125         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16126         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16127         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16128         * sysdeps/x86_64/fpu/Versions: New versions added.
16129         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16130         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16131         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16132         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16133         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16134         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16135         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16136         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16137         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16138         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16139         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16140         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16141         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16142         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16143         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16144         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16145         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16146         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16147         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16148         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16149         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16150         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16151         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16152         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16153
16154         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16155         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16156         redirections for powf.
16157         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16158         * sysdeps/x86_64/fpu/Versions: New versions added.
16159         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16160         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16161         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16162         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16163         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16164         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16165         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16166         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16167         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16168         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16169         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16170         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16171         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16172         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16173         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16174         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16175         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16176         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16177         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16178         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16179         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16180         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16181         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16182         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16183         * math/test-float-vlen16.h: Fixed 2 argument macro.
16184         * math/test-float-vlen4.h: Likewise.
16185         * math/test-float-vlen8.h: Likewise.
16186         * NEWS: Mention addition of x86_64 vector powf.
16187
16188 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16189
16190         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16191         and redefine.
16192         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16193         and redefine.
16194         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16195         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16196         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16197
16198         [BZ #18553]
16199         * resource/getpriority.c (getpriority): Rename to __getpriority
16200         and define as weak alias of __getpriority.
16201         * resource/setpriority.c (setpriority): Rename to __setpriority
16202         and define as weak alias of __setpriority.
16203         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16204         __getpriority and define as weak alias of __getpriority.
16205         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16206         __setpriority and define as weak alias of __setpriority.
16207         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16208         strong name.
16209         (setpriority): Use __setpriority as strong name.
16210         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16211         __getpriority and define as weak alias of __getpriority.
16212         * include/sys/resource.h (__getpriority): Declare.  Use
16213         libc_hidden_proto.
16214         (__setpriority): Likewise.
16215         (getpriority): Don't use libc_hidden_proto.
16216         (setpriority): Likewise.
16217         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16218         getpriority.  Call __setpriority instead of setpriority.
16219         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16220         Remove variable.
16221
16222         [BZ #18547]
16223         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16224         as weak alias of __getttynam.  Use prototype function definition.
16225         Call __setttyent, __getttyent and __endttyent instead of
16226         setttyent, getttyent and endttyent.
16227         (getttyent): Rename to __getttyent and define as weak alias of
16228         __getttyent.  Call __setttyent instead of setttyent.  Call
16229         __fgets_unlocked instead of fgets_unlocked.
16230         (setttyent): Rename to __setttyent and define as weak alias of
16231         __setttyent.
16232         (endttyent): Rename to __endttyent and define as weak alias of
16233         __endttyent.
16234         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16235         (__setttyent): Likewise.
16236         (__endttyent): Likewise.
16237         (getttyent): Don't use libc_hidden_proto.
16238         (setttyent): Likewise.
16239         (endttyent): Likewise.
16240         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16241         __endttyent instead of setttyent, getttyent and endttyent.
16242         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16243         Remove variable.
16244
16245         [BZ #18546]
16246         * socket/recv.c (__recv): Use libc_hidden_def.
16247         * socket/socket.c (__socket): Likewise.
16248         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16249         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16250         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16251         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16252         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16253         libc_hidden_def.
16254         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16255         libc_hidden_weak.
16256         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16257         Use libc_hidden_proto.
16258         (__recv): Likewise.
16259         * socket/Versions (libc): Export __recv and __socket at version
16260         GLIBC_PRIVATE.
16261         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16262         instead of recv.
16263         (init_mq_netlink): Call __socket instead of socket.
16264         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16265         Remove variable.
16266
16267         [BZ #18545]
16268         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16269         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16270         hidden_weak.
16271         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16272         define as alias of __mq_timedsend.  Use hidden_weak.
16273         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16274         __mq_timedsend as strong name.
16275         (mq_timedreceive): Use __mq_timedreceive as strong name.
16276         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16277         (__mq_timedreceive): Likewise.
16278         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16279         __mq_timedreceive instead of mq_timedreceive.
16280         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16281         instead of mq_timedsend.
16282         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16283         Remove variable.
16284
16285         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16286         hidden_def and hidden_weak instead of libc_hidden_def and
16287         libc_hidden_weak.
16288         (top level): Refer to hidden_def in comment.
16289         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16290         macro.  Use it instead of libc_hidden_def.
16291         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16292         specify __GI_* name explicitly.
16293         (mq_timedreceive): Likewise.
16294         (mq_setattr): Likewise.
16295
16296         [BZ #18544]
16297         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16298         __pthread_barrier_init and define as weak alias of
16299         __pthread_barrier_init.
16300         * sysdeps/sparc/nptl/pthread_barrier_init.c
16301         (pthread_barrier_init): Likewise.
16302         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16303         __pthread_barrier_wait and define as weak alias of
16304         __pthread_barrier_wait.
16305         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16306         (pthread_barrier_wait): Likewise.
16307         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16308         (pthread_barrier_wait): Likewise.
16309         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16310         (pthread_barrier_wait): Likewise.
16311         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16312         (pthread_barrier_wait): Likewise.
16313         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16314         __pthread_barrier_wait at version GLIBC_PRIVATE.
16315         * include/pthread.h (__pthread_barrier_init): Declare.
16316         (__pthread_barrier_wait): Likewise.
16317         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16318         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16319         (helper_thread): Likewise.
16320         (init_mq_netlink): Call __pthread_barrier_init instead of
16321         pthread_barrier_init.
16322
16323         [BZ #18542]
16324         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16325         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16326         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16327         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16328         vswscanf.
16329         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16330         Remove variable.
16331
16332         [BZ #18540]
16333         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16334         strong alias of _IO_fflush.  Use libc_hidden_def.
16335         * libio/iofflush_u.c (fflush_unlocked): Rename to
16336         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16337         Use libc_hidden_weak.
16338         * include/stdio.h (__fflush_unlocked): Declare.  Use
16339         libc_hidden_proto.
16340         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16341         fflush_unlocked.
16342         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16343         Remove variable.
16344
16345         [BZ #18539]
16346         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16347         define as weak alias of __addseverity.
16348         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16349         Remove variable.
16350         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16351         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16352         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16353
16354         [BZ #18536]
16355         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16356         (__tfind): Likewise.
16357         (__tdelete): Likewise.
16358         (__twalk): Likewise.
16359         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16360         __twalk to GLIBC_PRIVATE.
16361         * include/search.h (__tsearch): Use libc_hidden_proto.
16362         (__tfind): Likewise.
16363         (__tdelete): Likewise.
16364         (__twalk): Likewise.
16365         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16366         Call __tdelete instead of tdelete.
16367         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16368         tfind.  Call __tsearch instead of tsearch.
16369         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16370         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16371         Remove variable.
16372         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16373
16374         [BZ #18534]
16375         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16376         (dprintf): Define as a weak alias of __dprintf, not a strong
16377         alias.
16378         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16379         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16380         dprintf.
16381         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16382         Remove variable.
16383         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16384         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16385
16386         [BZ #18533]
16387         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16388         not a strong alias.
16389         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16390         Remove variable.
16391
16392         [BZ #18532]
16393         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16394         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16395         (in6addr_loopback): Rename to __in6addr_loopback and define as
16396         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16397         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16398         libc_hidden_proto.
16399         (__in6addr_any): Likewise.
16400         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16401         in6addr_any.
16402         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16403         variable.
16404         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16405
16406 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16407
16408         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16409         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16410         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16411         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16412         redirections for pow.
16413         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16414         * sysdeps/x86_64/fpu/Versions: New versions added.
16415         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16416         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16417         build of SSE, AVX2 and AVX512 IFUNC versions.
16418         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16419         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16420         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16421         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16422         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16423         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16424         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16425         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16426         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16427         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16428         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16429         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16430         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16431         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16432         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16433         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16434         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16435         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16436         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16437         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16438         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16439         * NEWS: Mention addition of x86_64 vector pow.
16440
16441         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16442         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16443         redirections for expf.
16444         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16445         * sysdeps/x86_64/fpu/Versions: New versions added.
16446         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16447         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16448         build of SSE, AVX2 and AVX512 IFUNC versions.
16449         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16450         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16451         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16452         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16453         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16454         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16455         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16456         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16457         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16458         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16459         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16460         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16461         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16462         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16463         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16464         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16465         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16466         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16467         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16468         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16469         * NEWS: Mention addition of x86_64 vector expf.
16470
16471         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16472         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16473         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16474         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16475         redirections for exp.
16476         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16477         * sysdeps/x86_64/fpu/Versions: New versions added.
16478         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16479         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16480         build of SSE, AVX2 and AVX512 IFUNC versions.
16481         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16482         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16483         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16484         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16485         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16486         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16487         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16488         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16489         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16490         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16491         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16492         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16493         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16494         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16495         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16496         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16497         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16498         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16499         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16500         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16501         * NEWS: Mention addition of x86_64 vector exp.
16502
16503         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16504         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16505         redirections for logf.
16506         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16507         * sysdeps/x86_64/fpu/Versions: New versions added.
16508         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16509         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16510         build of SSE, AVX2 and AVX512 IFUNC versions.
16511         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16512         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16513         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16514         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16515         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16516         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16517         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16518         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16519         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16520         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16521         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16522         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16523         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16524         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16525         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16526         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16527         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16528         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16529         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16530         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16531         * NEWS: Mention addition of x86_64 vector logf.
16532
16533         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16534         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16535         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16536         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16537         redirections for log.
16538         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16539         * sysdeps/x86_64/fpu/Versions: New versions added.
16540         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16541         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16542         build of SSE, AVX2 and AVX512 IFUNC versions.
16543         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16544         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16545         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16546         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16547         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16548         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16549         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16550         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16551         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16552         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16553         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16554         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16555         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16556         test.
16557         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16558         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16559         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16560         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16561         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16562         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16563         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16564         * NEWS: Mention addition of x86_64 vector log.
16565
16566 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16567
16568         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16569         cfi_adjust_cfa_offset argument.
16570         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16571         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16572
16573         [BZ #18034]
16574         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16575         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16576         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16577         ordering using ldar.
16578         (_dl_tlsdesc_dynamic): Likewise.
16579         (_dl_tlsdesc_return_lazy): Likewise.
16580         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16581         relaxed atomics instead of volatile and synchronize with release store.
16582         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16583         volatile.
16584         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16585
16586 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16587
16588         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16589         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16590         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16591         * sysdeps/x86_64/fpu/Versions: New versions added.
16592         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16593         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16594         build of SSE, AVX2 and AVX512 IFUNC versions.
16595         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16596         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16597         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16598         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16599         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16600         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16601         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16602         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16603         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16604         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16605         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16606         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16607         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16608         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16609         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16610         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16611         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16612         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16613         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16614         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16615         * NEWS: Mention addition of x86_64 vector sinf.
16616
16617 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16618
16619         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16620         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16621         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16622         Remove variable.
16623         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16624         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16625
16626 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16627
16628         [BZ #18530]
16629         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16630         strong alias of _IO_fputs.  Use libc_hidden_def.
16631         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16632         and define as weak alias of __fputs_unlocked.  Use
16633         libc_hidden_weak.
16634         * include/stdio.h (__fputs_unlocked): Declare.  Use
16635         libc_hidden_proto.
16636         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16637         fputs_unlocked.
16638
16639         [BZ #18529]
16640         * resolv/netdb.h [__USE_POSIX]: Change condition to
16641         [__USE_XOPEN2K].
16642         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16643         not expect.
16644         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16645         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16646         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16647         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16648         [XPG4 || UNIX98] (AI_ALL): Likewise.
16649         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16650         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16651         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16652         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16653         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16654         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16655         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16656         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16657         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16658         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16659         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16660         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16661         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16662         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16663         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16664         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16665         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16666         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16667         [XPG4 || UNIX98] (gai_strerror): Likewise.
16668         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16669         [XPG4 || UNIX98] (getnameinfo): Likewise.
16670
16671         [BZ #18528]
16672         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16673         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16674         __USE_XOPEN2K8].
16675         (getgrent): Likewise.
16676         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16677         expect.
16678         [XPG3 || POSIX2008] (endgrent): Likewise.
16679         [XPG3] (setgrent): Likewise.
16680         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16681         variable.
16682         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16683
16684         [BZ #18527]
16685         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16686         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16687         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16688         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16689         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16690         * include/unistd.h (__getlogin_r): Declare.  Use
16691         libc_hidden_proto.
16692         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16693         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16694         variable.
16695         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16696         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16697         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16698
16699 2015-06-12  Martin Sebor  <msebor@redhat.com>
16700
16701         [BZ #18512]
16702         * Makerules (check-install-supported): New target.
16703         (install): Add check-install-supported as a dependency.
16704         * manual/install.texi (Installing the C Library): Document
16705         that overriding prefix and exec_prefix is not supported.
16706         Mention DESTDIR.
16707         * INSTALL: Regenerate from the above.
16708
16709 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16710
16711         [BZ #18519]
16712         * posix/Versions (libc): Export __libc_pread at version
16713         GLIBC_PRIVATE.
16714         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16715         instead of pread.
16716         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16717         variable.
16718
16719         [BZ #18522]
16720         * misc/efgcvt_r.c
16721         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16722         (cvt_symbol): Use weak_alias instead of strong_alias.
16723         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16724         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16725         Remove variable.
16726         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16727         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16728
16729         [BZ #18520]
16730         * inet/herrno.c (h_errno): Rename to __h_errno.
16731         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16732         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16733         to __h_errno instead of h_errno.
16734         * nptl/herrno.c (h_errno): Rename to __h_errno.
16735         (__h_errno_location): Refer to __h_errno not h_errno.
16736         * resolv/Versions (h_errno): Rename to __h_errno.
16737         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16738         Remove variable.
16739         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16740
16741 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16742
16743         * configure.ac: More strict check for AVX512 assembler support.
16744         * configure: Regenerated.
16745
16746         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16747         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16748         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16749         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16750         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16751         * sysdeps/x86_64/fpu/Versions: New versions added.
16752         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16753         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16754         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16755         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16756         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16757         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16758         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16759         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16760         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16761         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16762         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16763         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16764         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16765         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16766         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16767         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16768         test.
16769         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16770         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16771         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16772         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16773         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16774         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16775         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16776         * NEWS: Mention addition of x86_64 vector sin.
16777
16778 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16779
16780         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16781         comment.
16782
16783 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16784
16785         [BZ #18479]
16786         * nptl/pt-interp.c: New file.
16787         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16788         Add pt-interp.
16789         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16790         $(common-objpfx)runtime-linker.h.
16791
16792 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16793
16794         * Makeconfig (+interp): Remove unused variable.
16795         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16796         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16797         $(elf-objpfx)runtime-linker.h.
16798         ($(elf-objpfx)runtime-linker.h): Rename to
16799         $(common-objpfx)runtime-linker.h and move ...
16800         * Makerules [$(build-shared) = yes]: ... here.
16801         * elf/interp.c: Include <runtime-linker.h> instead of
16802         <elf/runtime-linker.h>.
16803
16804 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16805
16806         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16807         (__gettimeofday_syscall): Remove vsyscall fallback.
16808         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16809         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16810         Add syscall fallback function.
16811         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16812         if vDSO is not present.
16813         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16814         fallback function.
16815         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16816         present.
16817         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16818         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16819
16820 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16821
16822         [BZ #18497]
16823         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16824         of wcscmp.
16825         (wcscmp): Define as weak alias of WCSCMP.
16826         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16827         wcscoll.
16828         (USE_HIDDEN_DEF): Define.
16829         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16830         __wcscoll.  Don't use libc_hidden_weak.
16831         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16832         wcscmp.
16833         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16834         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16835         __GI_wcscmp.
16836         (weak_alias): Undefine and redefine.
16837         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16838         __wcscmp and define as weak alias of __wcscmp.
16839         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16840         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16841         (__wcscoll): Likewise.
16842         (wcscmp): Don't use libc_hidden_proto.
16843         (wcscoll): Likewise.
16844         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16845         wcscoll.
16846         * posix/regexec.c (check_node_accept_bytes): Likewise.
16847         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16848         variable.
16849         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16850         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16851
16852         [BZ #18507]
16853         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16854         __fstatvfs and define as weak alias of __fstatvfs.  Use
16855         libc_hidden_weak.
16856         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16857         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16858         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16859         Define as alias of __fstatvfs, not fstatvfs.
16860         (fstatvfs64): Likewise.
16861         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16862         Define as alias of __statvfs, not statvfs.
16863         (statvfs64): Likewise.
16864         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16865         Remove variable.
16866
16867 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16868
16869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16870         (HAVE_GETCPU_VSYSCALL): Define.
16871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16872         (HAVE_GETCPU_VSYSCALL): Likewise.
16873         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16874         * sysdeps/unix/sysv/linux/sched_getcpu.c
16875         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16876         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16877         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16878         prototype.
16879         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16880         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16881         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16882         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16883         Define.
16884         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16885         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16886         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16887         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16888
16889 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16890
16891         * sysdeps/x86_64/fpu/Makefile: New file.
16892         * sysdeps/x86_64/fpu/Versions: New file.
16893         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16894         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16895         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16896         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16897         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16898         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16899         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16900         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16901         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16902         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16903         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16904         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16905         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16906         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16907         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16908         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16909         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16910         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16911         * sysdeps/x86_64/configure: Regenerated.
16912         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16913         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16914         * manual/install.texi (Configuring and compiling): Document
16915         --disable-mathvec.
16916         * INSTALL: Regenerated.
16917         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16918
16919         * math/Makefile: Added rules for vector tests.
16920         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16921         declaration under condition.
16922         * math/test-double-vlen2.h: New file.
16923         * math/test-double-vlen4.h: New file.
16924         * math/test-double-vlen8.h: New file.
16925         * math/test-vec-loop.h: Added initialization macro.
16926         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16927         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16928         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16929         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16930         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16931         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16932         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16933         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16934         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16935         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16936         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16937
16938         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16939         * sysdeps/x86_64/fpu/Versions: New versions added.
16940         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16941         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16942         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16943         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16944         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16945         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16946         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16947         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16948         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16949         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16950         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16951         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16952         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16953         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16954         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16955         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16956         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16957         * NEWS: Mention addition of x86_64 vector cosf.
16958
16959         * math/Makefile: Added CFLAGS for new tests.
16960         * math/test-float-vlen16.h: New file.
16961         * math/test-float-vlen4.h: New file.
16962         * math/test-float-vlen8.h: New file.
16963         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16964         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16965         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16966         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16967         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16968         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16969         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16970         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16971         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16972         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16973         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16974
16975 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16976
16977         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16978         * locale/programs/ld-ctype.c: Likewise.
16979
16980 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16981
16982         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16983         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16984         bit_ZMM16_31_state): New macro.
16985         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16986         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16987
16988 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16989
16990         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16991
16992 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16993
16994         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16995
16996 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16997
16998         [BZ #18498]
16999         * libio/memstream.c (open_memstream): Rename to __open_memstream
17000         and define as weak alias of __open_memstream.
17001         * include/stdio.h (__open_memstream): Declare.  Use
17002         libc_hidden_proto.
17003         (open_memstream): Don't use libc_hidden_proto.
17004         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17005         open_memstream.
17006         * posix/getopt.c (_getopt_internal_r): Likewise.
17007         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17008         variable.
17009         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17010         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17011         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17012
17013         [BZ #18496]
17014         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17015         instead of wcrtomb.
17016
17017         [BZ #18483]
17018         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17019         [__USE_XOPEN2K8].  Remove redundant #endif.
17020         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17021         Remove redundant #if.
17022         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17023         Remove variable.
17024         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17025         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17026
17027         [BZ #18495]
17028         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17029         (__iswlower): Likewise.
17030         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17031         (__iswlower): Likewise.
17032         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17033         instead of towlower.
17034         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17035         instead of iswlower.  Call __towupper instead of towupper.
17036         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17037         instead of iswalnum.
17038
17039 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17040
17041         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17042         errors to stderr.
17043
17044 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17045
17046         [BZ #15661]
17047         [BZ #17322]
17048         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17049         Check for overflow properly.  Check for O_APPEND.  Ignore large
17050         file system block sizes.  Add comments about problems.
17051         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17052         * manual/filesys.texi (Storage Allocation): New node.
17053
17054 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17055
17056         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17057         cancellable syscalls.
17058         (SYS_ify): Add guard to no redefine it.
17059         (INLINE_SYSCALL): Likewise.
17060         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17061         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17062         SYSCALL_CANCEL instead.
17063         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17064         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17065         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17066         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17067         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17068         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17069         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17070         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17071         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17072         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17073         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17074         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17075         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17076         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17077         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17078         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17079         Likewise.
17080         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17081         (__libc_pread64): Likewise.
17082         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17083         (__libc_preadv): Likewise.
17084         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17085         (__libc_readv64): Likewise.
17086         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17087         (__libc_pwrite): Likewise.
17088         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17089         (__libc_pwrite64): Likewise.
17090         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17091         (__libc_pwritev): Likewise.
17092         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17093         (__libc_pwritev64): Likewise.
17094         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17095         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17096         (sync_file_range): Likewise.
17097         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17098         Likewise.
17099         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17100         Likewise.
17101         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17102         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17103         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17104         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17105         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17106         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17107         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17108         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17110         Likewise.
17111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17112         (__libc_read64): Likewise.
17113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17114         Likewise.
17115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17116         Likewise.
17117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17118         Likewise.
17119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17120         Likewise.
17121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17122         (__libc_pread64): Likewise.
17123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17124         Likewise.
17125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17126         (__libc_pwrite64): Likewise.
17127         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17128         (sync_file_range): Likewise.
17129         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17130         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17131         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17132         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17133         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17134         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17135         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17136         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17137         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17138         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17139         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17140         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17141         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17142         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17143         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17144         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17145         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17146         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17147         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17148         Likewise.
17149         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17150         Likewise.
17151         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17152         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17153         Likewise.
17154         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17155         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17156         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17157         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17158         Likewise.
17159         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17160         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17161         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17162         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17163         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17164
17165 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17166
17167         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17168         Include dl-vdso.
17169         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17170         Use VDSO routines for gettimeofday, clock_gettime if
17171         available.
17172         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17173         Declare VDSO symbols.
17174         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17175         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17176         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17177         * sysdeps/unix/sysv/linux/arm/Versions: Add
17178         __vdso_clock_gettime.
17179
17180 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17181
17182         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17183         be an inline implementation regardless of library is built within.
17184         (open_not_cancel_2): Likewise.
17185         (__read_nocancel): Likewise.
17186         (__write_nocancel): Likewise.
17187         (openat_not_cancel): Likewise.
17188         (openat_not_cancel_3): Likewise.
17189         (openat64_not_cancel): Likewise.
17190         (openat64_not_cancel_3): Likewise.
17191         (__close_nocancel): Likewise.
17192         (pause_not_cancel): Likewise.
17193         (nanosleep_not_cancel): Likewise.
17194         (sigsuspend_not_cancel): Likewise.
17195
17196 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17197
17198         [BZ #14958]
17199         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17200         wake-up.
17201         (__pthread_rwlock_rdlock_slow): Likewise.
17202         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17203         Likewise.
17204         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17205         Likewise.
17206         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17207         * nptl/tst-rwlock16.c: New file.
17208         * nptl/Makefile (tests): Add new test.
17209
17210 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17211
17212         [BZ #18324]
17213         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17214         missing wake-up of readers.
17215         * nptl/tst-rwlock15.c: New file.
17216         * nptl/Makefile (tests): Add new test.
17217
17218 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17219
17220         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17221         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17222         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17223         and __nacl_supply_interface_rtld.
17224         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17225         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17226         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17227         Add __nacl_supply_interface_rtld.
17228         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17229
17230 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17231
17232         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17233         isfinite.
17234         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17235         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17236
17237 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17238
17239         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17240         __signbit* with standard C99 macros.
17241         * math/e_exp10l.c: Likewise.
17242         * math/e_exp2l.c: Likewise.
17243         * math/e_scalb.c: Likewise.
17244         * math/e_scalbf.c: Likewise.
17245         * math/e_scalbl.c: Likewise.
17246         * math/s_ldexp.c: Likewise.
17247         * math/s_ldexpf.c: Likewise.
17248         * math/s_ldexpl.c: Likewise.
17249         * math/w_atan2.c: Likewise.
17250         * math/w_atan2f.c: Likewise.
17251         * math/w_atan2l.c: Likewise.
17252         * math/w_cosh.c: Likewise.
17253         * math/w_coshf.c: Likewise.
17254         * math/w_coshl.c: Likewise.
17255         * math/w_exp10.c: Likewise.
17256         * math/w_exp10f.c: Likewise.
17257         * math/w_exp10l.c: Likewise.
17258         * math/w_exp2.c: Likewise.
17259         * math/w_exp2f.c: Likewise.
17260         * math/w_exp2l.c: Likewise.
17261         * math/w_fmod.c: Likewise.
17262         * math/w_fmodf.c: Likewise.
17263         * math/w_fmodl.c: Likewise.
17264         * math/w_hypot.c: Likewise.
17265         * math/w_hypotf.c: Likewise.
17266         * math/w_hypotl.c: Likewise.
17267         * math/w_jnl.c: Likewise.
17268         * math/w_lgamma.c: Likewise.
17269         * math/w_lgamma_r.c: Likewise.
17270         * math/w_lgammaf.c: Likewise.
17271         * math/w_lgammaf_r.c: Likewise.
17272         * math/w_lgammal.c: Likewise.
17273         * math/w_lgammal_r.c: Likewise.
17274         * math/w_pow.c: Likewise.
17275         * math/w_powf.c: Likewise.
17276         * math/w_powl.c: Likewise.
17277         * math/w_remainder.c: Likewise.
17278         * math/w_remainderf.c: Likewise.
17279         * math/w_remainderl.c: Likewise.
17280         * math/w_scalb.c: Likewise.
17281         * math/w_scalbf.c: Likewise.
17282         * math/w_scalbl.c: Likewise.
17283         * math/w_scalbln.c: Likewise.
17284         * math/w_scalblnf.c: Likewise.
17285         * math/w_scalblnl.c: Likewise.
17286         * math/w_sinh.c: Likewise.
17287         * math/w_sinhf.c: Likewise.
17288         * math/w_sinhl.c: Likewise.
17289         * math/w_tgamma.c: Likewise.
17290         * math/w_tgammaf.c: Likewise.
17291         * math/w_tgammal.c: Likewise.
17292         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17293         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17294         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17295         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17296         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17297         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17298         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17299         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17300         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17301         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17302         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17303         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17304         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17305         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17306         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17307         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17308         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17309         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17310         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17311         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17312         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17313         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17314         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17315         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17316         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17317         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17318         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17319         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17320         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17321         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17322         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17323         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17324         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17325         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17326         * stdio-common/printf_fp.c: Likewise.
17327         * stdio-common/printf_fphex.c: Likewise.
17328         * stdio-common/printf_size.c: Likewise.
17329
17330 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17331
17332         [BZ #18470]
17333         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17334         strnlen.
17335         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17336         Remove variable.
17337         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17338         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17339         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17340         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17341         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17342         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17343         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17344         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17345         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17346         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17347
17348         [BZ #18468]
17349         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17350         weak alias of __wmemchr.  Use libc_hidden_weak.
17351         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17352         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17353         instead of wmemchr.
17354
17355 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17356
17357         [BZ #18383]
17358         * elf/tst-tlsalign-extern.c: New file.
17359         * elf/tst-tlsalign-extern-static.c: New file.
17360         * elf/tst-tlsalign-vars.c: New file.
17361         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17362         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17363         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17364         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17365         (test-xfail-tst-tlsalign-extern-static): New variable.
17366
17367 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17368
17369         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17370         Use variable name _sc_err instead of err.
17371         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17372         instead of ret.
17373         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17374         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17375         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17376         (INLINE_SYSCALL): Likewise.
17377
17378         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17379         * include/string.h (__strnlen): Use libc_hidden_proto.
17380         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17381         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17382         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17383         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17384         (libc_hidden_def): Undefine and redefine.
17385         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17386         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17387         __GI_strnlen.
17388         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17389         libc_hidden_def.
17390         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17391
17392         [BZ #18469]
17393         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17394         weak alias of __towlower.  Use libc_hidden_weak.
17395         (towupper): Rename to __towupper and define as weak alias of
17396         __towupper.  Use libc_hidden_weak.
17397         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17398         (__towupper): Likewise.
17399         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17400         __towlower instead of towlower.
17401
17402 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17403
17404         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17405         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17406
17407 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17408
17409         * sysdeps/aarch64/libm-test-ulps: Update.
17410
17411 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17412
17413         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17414         Define.
17415         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17416         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17417         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17418         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17419         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17420         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17421         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17422
17423 2015-06-01  Martin Sebor  <msebor@redhat.com>
17424
17425         [BZ #18116]
17426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17427         (__setcontext): Use extended four-operand version of mtsf whenever
17428         possible.
17429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17430         (__novec_swapcontext): Likewise.
17431
17432 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17433
17434         * benchtests/scripts/compare_bench.py: New file.
17435         * benchtests/scripts/import_bench.py (mean): New function.
17436         (split_list): Likewise.
17437         (do_for_all_timings): Likewise.
17438         (compress_timings): Likewise.
17439
17440         * benchtests/scripts/import_bench.py: New file.
17441         * benchtests/scripts/validate_benchout.py: Import import_bench
17442         instead of jsonschema.
17443         (validate_bench): Remove function.
17444         (main): Use import_bench.
17445
17446 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17447
17448         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17449         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17450
17451 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17452
17453         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17454
17455 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17456
17457         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17458         set THREAD_SELF->tid to a magic value and futex-wake it.
17459         Pass its address to the thread_exit system call.
17460         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17461         bit is clear.
17462         * sysdeps/nacl/lowlevellock.h: New file.
17463         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17464
17465         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17466         Add TIMEOUT to current time, don't subtract it.
17467
17468 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17469
17470         [BZ #2981]
17471         [BZ #18422]
17472         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17473         ($(objpfx)tst-audit2.out): Also depend on
17474         $(objpfx)tst-auditmod9b.so.
17475         * elf/tst-audit2.c: Include <dlfcn.h>.
17476         (calloc_called): New.
17477         (calloc): Allow to be called more than once.
17478         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17479
17480 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17481
17482         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17483         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17484
17485 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17486
17487         * stdlib/monetary.h: Fix comment.
17488
17489 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17490
17491         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17492         Avoid using variables in #defines that might cause shadowing.
17493         (INTERNAL_VSYSCALL_CALL): Likewise.
17494
17495 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17496
17497         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17498
17499         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17500         * nptl/lll_timedlock_wait.c: ... to this new file.
17501         * nptl/Makefile (libpthread-routines): Add it.
17502         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17503         * nptl/lll_timedwait_tid.c: ... to this new file.
17504         * nptl/Makefile (libpthread-routines): Add it.
17505         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17506         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17507         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17508         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17509         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17510         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17511         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17512         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17513         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17514         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17515
17516 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17517
17518         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17519         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17520         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17521         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17522         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17523         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17524         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17525         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17526         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17527         * sysdeps/unix/sysv/linux/tile/sysdep.h
17528         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17529         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17530         using vDSO syscall macro.
17531
17532 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17533
17534         [BZ #17293]
17535         * uk_UA: Fix sorting order for Ukrainian locale
17536
17537 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17538
17539         * stdlib/monetary.h: Fix comment.
17540
17541 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17542
17543         [BZ #18234]
17544         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17545         st_mtim and st_ctim members.
17546         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17547         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17548         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17549         (struct stat64): Likewise.
17550         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17551         (struct stat64): Likewise.
17552         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17553         (struct stat64): Likewise.
17554
17555 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17556
17557         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17558         Define and include sysdep-vdso.h.
17559         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17560         Likewise.
17561         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17562         Likewise.
17563         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17564         Define with VDSO_SYMBOL and use PTR_MANGLE.
17565         (__vdso_clock_gettime): Likewise.
17566         (__vdso_clock_getres): Likewise.
17567         (_libc_vdso_platform_setup): Likewise.
17568         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17569         Likewise.
17570         (_libc_vdso_platform_setup): Likewise.
17571         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17572         Likewise.
17573         (__vdso_clock_gettime): Likewise.
17574         (__vdso_clock_getres): Likewise.
17575         (__vdso_get_tbfreq): Likewise.
17576         (__vdso_getcpu): Likewise.
17577         (__vdso_time): Likewise.
17578         (__vdso_sigtramp_rt64): Likewise.
17579         (__vdso_signtramp32): Likewise.
17580         (__vdso_sigtramp_rt32): Likewise.
17581         (_libc_vdso_platform_setup): Likewise.
17582         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17583         Likewise.
17584         (__vdso_clock_gettime): Likewise.
17585         (__vdso_clock_getres): Likewise.
17586         (_libc_vdso_platform_setup): Likewise.
17587         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17588         Likewise.
17589         (__vdso_clock_gettime): Likewise.
17590         (_libc_vdso_platform_setup): Likewise.
17591         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17592         Likewise.
17593         (__vdso_getcpu): Likewise.
17594         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17595         Use VDSO_SYMBOL macro to define.
17596         (__vdso_clock_gettime): Likewise.
17597         (__vdso_clock_getres): Likewise.
17598         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17599         Likewise.
17600         (__vdso_clock_gettime): Likewise.
17601         (__vdso_clock_getres): Likewise.
17602         (__vdso_get_tbfreq): Likewise.
17603         (__vdso_getcpu): Likewise.
17604         (__vdso_time): Likewise.
17605         (__vdso_sigtramp_rt64): Likewise.
17606         (__vdso_signtramp32): Likewise.
17607         (__vdso_sigtramp_rt32): Likewise.
17608         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17609         Likewise.
17610         (__vdso_clock_gettime): Likewise.
17611         (__vdso_clock_getres): Likewise.
17612         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17613         Likewise.
17614         (__vdso_clock_gettime): Likewise.
17615         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17616         Likewise.
17617         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17618         macro.
17619         (INTERNAL_VSYSCALL): Likewise.
17620         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17621         Remove macro.
17622         (INTERNAL_VSYSCALL): Likewise.
17623         (INTERNAL_VSYSCALL_NCS): Likewise.
17624         (INTERNAL_VSYSCALL_CALL): New macro.
17625         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17626         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17627         Likewise.
17628         (INTERNAL_VSYSCALL): Likewise.
17629         (INTERNAL_VSYSCALL_NCS): Likewise.
17630         (INTERNAL_VSYSCALL_CALL): New macro.
17631         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17633         (INLINE_VSYSCALL): Remove macro.
17634         (INTERNAL_VSYSCALL): Remove macro.
17635         (INTERNAL_VSYSCALL_NCS): Remove macro.
17636         (INTERNAL_VSYSCALL_CALL): New macro.
17637         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17638         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17639         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17640         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17641         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17643         (INLINE_VSYSCALL): Remove macro.
17644         (INTERNAL_VSYSCALL): Likewise.
17645         (INTERNAL_VSYSCALL_NCS): Likewise.
17646         (INTERNAL_VSYSCALL_CALL): New macro.
17647         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17648         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17649         PTR_DEMANGLE on vDSO pointer.
17650         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17651         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17652         macro.
17653         (INTERNAL_SYSCALL): Likewise.
17654         (INTERNAL_VSYSCALL_NCS): Remove macro.
17655         (INTERNAL_VSYSCALL_CALL): New macro.
17656         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17657         Remove macro.
17658         (INTERNAL_VSYSCALL): Likewise.
17659         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17660         sysdep-vdso.h instead of libc-vdso.h.
17661         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17662         definition.
17663         (INLINE_VSYSCALL): Likewise.
17664         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17665         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17666         definition.
17667         (INLINE_VSYSCALL): Likewise.
17668         (INTERNAL_VSYSCALL): Likewise.
17669         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17670         * sysdeps/unix/sysv/linux/timespec_get.c
17671         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17672         (timespec_get): Use ANSI prototype.
17673         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17674         and definition for Linux.
17675
17676 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17677
17678         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17679         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17680
17681 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17682
17683         [BZ #2981]
17684         [BZ #18410]
17685         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17686         for missing DT_PLTRELSZ.
17687
17688 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17689
17690         Remove obsolete aliases that broke 'locale -a'
17691         [BZ #18412]
17692         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17693         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17694         breaking some applications that use 'locale -a' output.
17695         Change the encoding of this file from Latin-1 to ASCII to avoid
17696         other potential problems with people grepping this file.
17697
17698 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17699
17700         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17701         -fasynchronous-unwind-tables.
17702         (CFLAGS-sendto.c): Likewise.
17703         (CFLAGS-sendmsg.c): Likewise.
17704         (CFLAGS-connect.c): Likewise.
17705         (CFLAGS-recvmsg.c): Likewise.
17706         (CFLAGS-recvfrom.c): Likewise.
17707         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17708         (SOCKETCALL): New macro: non-cancellable socketcall.
17709         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17710         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17711         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17712         * sysdeps/unix/sysv/linux/accept.c: New file.
17713         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17714         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17715         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17716         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17717         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17718         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17719         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17720         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17721         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17722         * sysdeps/unix/sysv/linux/send.c: Likewise.
17723         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17724         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17725         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17726         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17727         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17728         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17729         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17730         prototype.
17731         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17732         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17733         instead of __internal_xxx function.
17734         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17735         prototype.
17736         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17737         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17738         instead of __internal_xxx function.
17739         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17740         prototype.
17741         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17742         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17743         instead of __internal_xxx function.
17744         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17745         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17746         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17747         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17748         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17749         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17750         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17751         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17752         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17753         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17754         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17755         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17756         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17757         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17758         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17759         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17760         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17761         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17762         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17763         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17766         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17767         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17768         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17769         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17770         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17771         * sysdeps/unix/sysv/linux/send.S: Likewise.
17772         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17773         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17774         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17775         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17776         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17777         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17778         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17779         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17780         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17781         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17782         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17783         socketcall is implemented in GLIBC.
17784
17785 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17786
17787         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17788         (__fma): Ignore uninitialized warnings around packing.
17789         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17790         (__fmaf): Ignore uninitialized warnings around packing.
17791         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17792         (__fmal): Ignore uninitialized warnings around packing.
17793
17794         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17795         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17796         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17797         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17798
17799         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17800         switch statement into default case.
17801         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17802
17803         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17804         a conditional in forcing "inexact".
17805         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17806         Likewise.
17807
17808 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17809
17810         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17811         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17812         for each INTERNAL_SYSCALL use.
17813
17814 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17815
17816         [BZ #438]
17817         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17818         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17819         variable.
17820
17821         [BZ #18444]
17822         * string/basename.c (basename): Rename to __basename and define as
17823         weak alias of __basename.  Use libc_hidden_weak.
17824         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17825         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17826         __basename instead of basename.
17827         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17828         Remove variable.
17829         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17830
17831 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17832
17833         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17834         (_IO_JUMPS_FILE_plus): New.
17835         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17836         _IO_CAST_FIELD_ACCESS.
17837         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17838         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17839         * libio/freopen.c (freopen): Likewise.
17840         * libio/freopen64.c (freopen64): Likewise.
17841         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17842         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17843         * libio/iofwide.c (_IO_fwide): Likewise.
17844         * libio/memstream.c (open_memstream): Likewise.
17845         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17846         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17847         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17848
17849 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17850
17851         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17852         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17853         NADJ.
17854         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17855         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17856         NADJ.
17857         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17858         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17859         NADJ.
17860
17861         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17862         (p == 4) case.
17863
17864         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17865         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17866         Remove variable.
17867         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17868         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17869         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17870
17871 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17872
17873         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17874         Adjust jump table label generation macros.
17875
17876 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17877
17878         * stdio-common/vfprintf.c (vfprintf): Move local variables
17879         args_malloced, specs, specs_malloced, and the code after
17880         do_positional to the printf_positional function.
17881         (printf_positional): New function.
17882
17883 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17884
17885         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17886         function.
17887         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17888         STEP4_TABLE, process_arg): Move macro definitions
17889         out of the vfprintf function.  (Cosmetic change only.)
17890
17891 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17892
17893         * benchtests/Makefile (stdio-common-bench): Define.
17894         (benchset): Add stdio-common-bench.
17895         * sprintf-inputs: New file.
17896         * sprintf-source.c: New file.
17897
17898 2015-05-21  Andreas Schwab  <schwab@suse.de>
17899
17900         [BZ #13028]
17901         [BZ #17053]
17902         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17903         of struct __res_state.
17904         * resolv/res_send.c (__libc_res_nsend): Likewise.
17905         (get_nsaddr): New function.
17906         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17907         statp directly.
17908
17909 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17910
17911         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17912         -D_POSIX_C_SOURCE=199506L.
17913
17914         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17915
17916         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17917         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17918         Do not mention otherwise.
17919         [POSIX] (_XOPEN_VERSION): Do not expect.
17920         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17921         [POSIX] (_POSIX2_C_BIND): Likewise.
17922         [POSIX] (_POSIX2_VERSION): Likewise.
17923         [POSIX] (_XOPEN_XPG2): Likewise.
17924         [POSIX] (_XOPEN_XPG3): Likewise.
17925         [POSIX] (_XOPEN_XPG4): Likewise.
17926         [POSIX] (_XOPEN_UNIX): Likewise.
17927         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17928         [POSIX] (_POSIX_BARRIERS): Likewise.
17929         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17930         [POSIX] (_POSIX_CPUTIME): Likewise.
17931         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17932         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17933         [POSIX] (_POSIX_SHELL): Likewise.
17934         [POSIX] (_POSIX_SPAWN): Likewise.
17935         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17936         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17937         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17938         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17939         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17940         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17941         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17942         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17943         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17944         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17945         [POSIX] (_POSIX2_PBS): Likewise.
17946         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17947         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17948         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17949         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17950         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17951         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17952         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17953         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17954         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17955         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17956         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17957         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17958         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17959         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17960         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17961         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17962         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17963         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17964         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17965         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17966         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17967         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17968         [POSIX] (_SC_2_C_BIND): Likewise.
17969         [POSIX] (_SC_2_C_VERSION): Likewise.
17970         [POSIX] (_SC_2_PBS): Likewise.
17971         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17972         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17973         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17974         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17975         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17976         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17977         [POSIX] (_SC_BARRIERS): Likewise.
17978         [POSIX] (_SC_BASE): Likewise.
17979         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17980         [POSIX] (_SC_DEVICE_IO): Likewise.
17981         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17982         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17983         [POSIX] (_SC_FD_MGMT): Likewise.
17984         [POSIX] (_SC_FIFO): Likewise.
17985         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17986         [POSIX] (_SC_FILE_LOCKING): Likewise.
17987         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17988         [POSIX] (_SC_IOV_MAX): Likewise.
17989         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17990         [POSIX] (_SC_NETWORKING): Likewise.
17991         [POSIX] (_SC_PAGE_SIZE): Likewise.
17992         [POSIX] (_SC_PASS_MAX): Likewise.
17993         [POSIX] (_SC_PIPE): Likewise.
17994         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17995         [POSIX] (_SC_REGEXP): Likewise.
17996         [POSIX] (_SC_SHELL): Likewise.
17997         [POSIX] (_SC_SIGNALS): Likewise.
17998         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17999         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18000         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18001         [POSIX] (_SC_USER_GROUPS): Likewise.
18002         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18003         [POSIX] (_SC_STREAMS): Likewise.
18004         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18005         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18006         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18007         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18008         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18009         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18010         [POSIX] (_PC_FILESIZEBITS): Likewise.
18011         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18012         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18013         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18014         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18015         [POSIX] (uid_t): Likewise.
18016         [POSIX] (gid_t): Likewise.
18017         [POSIX] (off_t): Likewise.
18018         [POSIX] (pid_t): Likewise.
18019         [POSIX] (cuserid): Allow.
18020         (_SC_2_CHAR_TERM): Require constant.
18021         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18022         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18023         variable.
18024
18025 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18026
18027         * sysdeps/nacl/pthread-pids.h: New file.
18028         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18029         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18030
18031         * nptl/pthread-pids.h: New file.
18032         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18033         * nptl/nptl-init.c: Include <pthread-pids.h>.
18034         (__pthread_initialize_minimal_internal):
18035         Call __pthread_initialize_pids instead of set_tid_address syscall.
18036
18037         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18038         * sysdeps/posix/usleep.c: ... here.
18039
18040 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18041
18042         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18043         call_pselect6 object.
18044         [$(subdir) = io]: Remove call_sync_file_range object.
18045         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18046         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18047         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18048         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18049
18050 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18051
18052         * math/s_cproj.c: Add include "math_private.h".
18053         * math/s_cprojf.c: Likewise.
18054         * math/s_cprojl.c: Likewise.
18055
18056 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18057
18058         [BZ #18244]
18059         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18060         high mantissa bit when testing whether P is a NaN.
18061         * math/libm-test.inc (remainder_test_data): Add more tests.
18062         (remquo_test_data): Likewise.
18063
18064         [BZ #18049]
18065         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18066         below -32, return the argument, with underflow if subnormal.
18067         * math/auto-libm-test-in: Add more tests of atanh.
18068         * math/auto-libm-test-out: Regenerated.
18069
18070 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18071
18072         [BZ #18434]
18073         * nptl/tst-sem15.c: New file.
18074         * nptl/Makefile (tests): Add it.
18075         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18076         s/<</>>/ to fix typo in EOVERFLOW check.
18077         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18078
18079 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18080
18081         * manual/strings.texi (envz_remove): Fix typo in safety
18082         annotations.
18083
18084 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18085             Steve Ellcey  <sellcey@imgtec.com>
18086
18087         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18088         in order to avoid strict alias warnings.
18089         (iruserok_af): Ditto for ra.
18090
18091 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18092
18093         [BZ #17581]
18094         * malloc/hooks.c
18095         (magicbyte): Convert to a function and avoid returning 0x01.
18096         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18097         (mem2chunk_check): Fix unsigned comparisons to zero.
18098         Hoist defs of sz and magic.
18099
18100 2015-05-19  Richard Henderson  <rth@redhat.com>
18101
18102         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18103
18104         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18105
18106 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18107
18108         [BZ #16159]
18109         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18110         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18111         (reused_arena): Find a non-corrupt arena.
18112         (heap_trim): Pass arena to unlink.
18113         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18114         malloc_printerr.
18115         (top_check): Likewise.
18116         (free_check): Likewise.
18117         (realloc_check): Likewise.
18118         * malloc/malloc.c (malloc_printerr): Add arena argument.
18119         (unlink): Likewise.
18120         (munmap_chunk): Adjust.
18121         (ARENA_CORRUPTION_BIT): New macro.
18122         (arena_is_corrupt): Likewise.
18123         (set_arena_corrupt): Likewise.
18124         (sysmalloc): Use mmap if there are no usable arenas.
18125         (_int_malloc): Likewise.
18126         (__libc_malloc): Don't fail if arena_get returns NULL.
18127         (_mid_memalign): Likewise.
18128         (__libc_calloc): Likewise.
18129         (__libc_realloc): Adjust for additional argument to
18130         malloc_printerr.
18131         (_int_free): Likewise.
18132         (malloc_consolidate): Likewise.
18133         (_int_realloc): Likewise.
18134         (_int_memalign): Don't touch corrupt arenas.
18135         * malloc/tst-malloc-backtrace.c: New test case.
18136
18137         * Makefile (summarize-tests): Fix return value on success.
18138
18139         * manual/string.texi (Envz Functions): Add envz_remove.
18140
18141 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18142
18143         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18144         (invalid_name): New function, broken out of ...
18145         (__opendirat): ... here.  Call it.
18146         (need_isdir_precheck): New function, broken out of ...
18147         (__opendirat): ... here.  Call it.
18148         Use __fxstatat64, not __xstatat64.
18149         (opendir_oflags): New function, broken out of ...
18150         (__opendirat): ... here.  Call it.
18151         (opendir_tail): New function, broken out of ...
18152         (__opendirat): ... here.  Call it.
18153         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18154         opendir_tail, rather than punting to __opendirat.
18155         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18156
18157 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18158
18159         * .gitignore: Ignore generated *.pyc.
18160
18161 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18162
18163         * include/stdio.h: Define __need_wint_t.
18164         * test-skeleton.c: Avoid `for' loop initial declaration.
18165         * nptl/tst-initializers1.c: Use test-skeleton.c.
18166
18167 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18168
18169         [BZ #18418]
18170         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18171
18172 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18173
18174         [BZ #16352]
18175         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18176         (__ieee754_atanh): Force underflow exception for results with
18177         small absolute value.
18178         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18179         (__ieee754_atanhf): Force underflow exception for results with
18180         small absolute value.
18181         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18182         (__ieee754_atanh): Force underflow exception for results with
18183         small absolute value.
18184         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18185         (__ieee754_atanhf): Force underflow exception for results with
18186         small absolute value.
18187         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18188         (__ieee754_atanhl): Force underflow exception for results with
18189         small absolute value.
18190         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18191         (__ieee754_atanhl): Force underflow exception for results with
18192         small absolute value.
18193         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18194         (__ieee754_atanhl): Force underflow exception for results with
18195         small absolute value.
18196         * math/auto-libm-test-in: Do not allow missing underflow
18197         exceptions from atanh.
18198         * math/auto-libm-test-out: Regenerated.
18199
18200         [BZ #18221]
18201         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18202         2**-28 as threshold for returning x or +/- 1/x.
18203         * math/auto-libm-test-in: Add more tests of tan.
18204         * math/auto-libm-test-out: Regenerated.
18205
18206         [BZ #18220]
18207         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18208         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18209         * math/auto-libm-test-in: Add another test of lgamma.
18210         * math/auto-libm-test-out: Regenerated.
18211
18212 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18213
18214         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18215         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18216         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18217         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18218         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18219         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18220         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18221         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18222         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18223         (log1): Use fabs.  (my_log2): Use fabs.
18224         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18225         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18226         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18227         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18228         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18229         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18230         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18231         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18232         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18233         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18234         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18235
18236 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18237
18238         [BZ #18217]
18239         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18240         as threshold for returning 1 - x.
18241         * math/auto-libm-test-in: Add more tests of erfc.
18242         * math/auto-libm-test-out: Regenerated.
18243
18244 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18245
18246         [BZ #18196]
18247         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18248         threshold for large arguments.
18249         * math/auto-libm-test-in: Add another test of atan.
18250         * math/auto-libm-test-out: Regenerated.
18251
18252         [BZ #16339]
18253         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18254         (__log1p): Force underflow exception for results with small
18255         absolute value.
18256         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18257         (__log1pf): Force underflow exception for results with small
18258         absolute value.
18259         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18260         (__log1p): Force underflow exception for results with small
18261         absolute value.
18262         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18263         (__log1pf): Force underflow exception for results with small
18264         absolute value.
18265         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18266         (__log1pl): Force underflow exception for results with small
18267         absolute value.
18268         * math/auto-libm-test-in: Do not allow missing underflow
18269         exceptions from log1p.
18270         * math/auto-libm-test-out: Regenerated.
18271
18272 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18273             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18274
18275         [BZ #16704]
18276         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18277
18278 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18279
18280         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18281         (libmvec): New variable.
18282         * configure.ac: Added option for mathvec build.
18283         * configure: Regenerated.
18284         * mathvec/Depend: New file.
18285         * mathvec/Makefile: New file.
18286         * shlib-versions: Added libmvec.
18287         * math/Makefile: Added rule for libm.so installation.
18288
18289         * bits/math-vector.h: New file.
18290         * bits/libm-simd-decl-stubs.h: New header.
18291         * math/Makefile (headers): Added new header
18292         libm-simd-decl-stubs.h.
18293         * math/math.h (__MATHCALL_VEC): New macro.
18294
18295         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18296         for conditions in testing functions.
18297         * math/Makefile: Added call of libm-have-vector-test.sh.
18298         * math/libm-test.inc (HAVE_VECTOR): New macros.
18299
18300         * math/libm-test.inc: START refactored.
18301         * math/test-double.c (TEST_MATHVEC): Add define.
18302         * math/test-float.c: Likewise.
18303         * math/test-idouble.c: Likewise.
18304         * math/test-ifloat.c: Likewise.
18305         * math/test-ildoubl.c: Likewise.
18306         * math/test-ldouble.c: Likewise.
18307         * sysdeps/generic/math-tests-arch.h
18308         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18309         architecture check.
18310
18311         * math/test-double.c (FUNC_TEST): New macro.
18312         * math/test-float.c: Likewise.
18313         * math/test-idouble.c: Likewise.
18314         * math/test-ifloat.c: Likewise.
18315         * math/test-ildoubl.c: Likewise.
18316         * math/test-ldouble.c: Likewise.
18317         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18318
18319 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18320
18321         * sysdeps/nacl/fdopendir.c: New file.
18322
18323         * dirent/scandir-tail.c: New file.
18324         * dirent/scandir64-tail.c: New file.
18325         * dirent/Makefile (routines): Add them.
18326         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18327         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18328         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18329         [!SCANDIR] (SCANDIR_TAIL): New macro.
18330         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18331         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18332         (SCANDIRAT): Macro removed.
18333         (SCANDIR_TAIL): New macro.
18334         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18335         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18336         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18337         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18338         (READDIR): Macro removed.
18339         (SCANDIR_TAIL): New macro.
18340         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18341         (SCANDIR_TAIL): New macro.
18342
18343         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18344         * dirent/scandir-cancel.c: ... to this new file.
18345         * dirent/Makefile (routines): Add it.
18346         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18347         * sysdeps/unix/sysv/linux/i386/scandir64.c
18348         (SKIP_SCANDIR_CANCEL): Macro removed.
18349         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18350
18351         * dirent/tst-scandir.c: New file.
18352         * dirent/tst-scandir64.c: New file.
18353         * dirent/Makefile (tests): Add them.
18354
18355 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18356
18357         [BZ #18409]
18358         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18359
18360 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18361
18362         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18363         list.
18364
18365 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18366
18367         * benchtests/bench-strcoll.c: New benchmark.
18368         * benchtests/Makefile: Generate locales and run benchmark.
18369         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18370         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18371         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18372         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18373         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18374         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18375         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18376         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18377         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18378         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18379         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18380         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18381         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18382         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18383         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18384         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18385         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18386         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18387         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18388         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18389         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18390         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18391         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18392         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18393
18394 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18395
18396         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18397         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18398
18399 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18400
18401         * posix/uname-values.h: New file.
18402         * posix/uname.c: Include that instead of <config-name.h>.
18403         * sysdeps/nacl/uname-values.h: New file.
18404         * sysdeps/arm/nacl/uname-values.h: New file.
18405
18406 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18407
18408         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18409         splitting into fields.
18410
18411 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18412
18413         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18414         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18415         * locale/localeinfo.h: Add enum collation_encoding_type.
18416         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18417         * programs/ld-collate.c (collate_output): Add encoding type info.
18418         * string/strcoll_l.c (STRDIFF): New function.
18419         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18420         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18421
18422 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18423
18424         [BZ #18397]
18425         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18426         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18427         <fpu_control.h> instead of <math/fpu_control.c>.
18428         * sysdeps/mips/mips32/fpu/Makefile: New file.
18429
18430 2015-05-11  Andreas Schwab  <schwab@suse.de>
18431
18432         [BZ #18007]
18433         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18434         nss_endgrent.
18435         (_nss_compat_endgrent): Call nss_endgrent.
18436         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18437         nss_endpwent.
18438         (_nss_compat_endpwent): Call nss_endpwent.
18439         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18440         needent, call nss_setspent only if non-zero.
18441         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18442         (internal_endspent): Don't call nss_endspent.
18443         (_nss_compat_endspent): Call nss_endspent.
18444         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18445         Remove.  All uses removed.
18446         (internal_setent): Remove parameter stayopen, add parameter
18447         stream.  Use it instead of global variable.
18448         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18449         (internal_endent, internal_getent): Add parameter stream.  Use it
18450         instead of global variable.
18451         (CONCAT(_nss_files_end,ENTNAME))
18452         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18453         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18454         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18455         uses removed.
18456         (internal_setent, internal_endent): Add parameter stream.  Use it
18457         instead of global variable.
18458         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18459         stream.
18460         (get_next_alias): Add parameter stream.
18461         (_nss_files_getaliasent_r): Pass global stream.
18462         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18463         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18464         (_nss_files_gethostbyname4_r): Pass local stream to
18465         internal_setent, internal_getent and internal_endent.  Remove
18466         locking.
18467
18468 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18469
18470         * tst-strfmon1.c (tests): Update expected currency symbol.
18471
18472 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18473
18474         * sysdeps/nacl/gethostname.c: New file.
18475
18476 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18477
18478         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18479         and sinh.
18480         * math/auto-libm-test-out: Regenerated.
18481         * sysdeps/i386/fpu/libm-test-ulps: Update.
18482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18483
18484 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18485
18486         [BZ #18125]
18487         * stdlib/tst-setcontext3.c: New file.
18488         * stdlib/tst-setcontext3.sh: New file.
18489         * stdlib/Makefile (tests): Add tst-setcontext3.
18490         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18491         to verify test program created output file.
18492         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18493         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18494         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18495         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18496
18497 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18498
18499         [BZ #18383]
18500         * elf/tst-tlsalign.c: New file.
18501         * elf/tst-tlsalign-static.c: New file.
18502         * elf/tst-tlsalign-lib.c: New file.
18503         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18504         (tests-static): Add tst-tlsalign-static.
18505         (modules-names): Add tst-tlsalign-lib.
18506         (test-xfail-tst-tlsalign): New variable.
18507         (test-xfail-tst-tlsalign-static): New variable.
18508
18509         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18510         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18511
18512 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18513
18514         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18515         csqrt, erfc, sin and sincos.
18516         * math/auto-libm-test-out: Regenerated.
18517         * sysdeps/i386/fpu/libm-test-ulps: Update.
18518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18519
18520 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18521
18522         * sysdeps/aarch64/libm-test-ulps: Update.
18523
18524 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18525
18526         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18527         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18528         * math/auto-libm-test-out: Regenerated.
18529         * sysdeps/i386/fpu/libm-test-ulps: Update.
18530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18531
18532 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18533
18534         [BZ #18265]
18535         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18536         (wcsncpy): Likewise.
18537
18538 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18539
18540         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18541         Assume __ASSUME_FALLOCATE is always true.
18542         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18543         (__posix_fallocate64_l64): Likweise.
18544         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18545         (posix_fallocate): Likewise.
18546         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18547         (__posix_fallocate64_l64): Likewise.
18548         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18549         [!__ASSUME_FALLOCATE]: Add comment.
18550
18551 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18552
18553         * sysdeps/unix/sysv/linux/i386/Makefile
18554         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18555         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18556         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18557         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18558         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18559         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18560         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18561
18562 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18563
18564         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18565         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18566         tgamma.
18567         * math/auto-libm-test-out: Regenerated.
18568         * sysdeps/i386/fpu/libm-test-ulps: Update.
18569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18570
18571 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18572
18573         * math/auto-libm-test-in: Add more tests of tgamma.
18574         * math/auto-libm-test-out: Regenerated.
18575         * sysdeps/i386/fpu/libm-test-ulps: Update.
18576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18577
18578         * math/auto-libm-test-in: Add more tests of tanh.
18579         * math/auto-libm-test-out: Regenerated.
18580         * sysdeps/i386/fpu/libm-test-ulps: Update.
18581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18582
18583         * math/auto-libm-test-in: Add more tests of tan.
18584         * math/auto-libm-test-out: Regenerated.
18585         * sysdeps/i386/fpu/libm-test-ulps: Update.
18586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18587
18588         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18589         * math/auto-libm-test-out: Regenerated.
18590         * sysdeps/i386/fpu/libm-test-ulps: Update.
18591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18592
18593         * math/auto-libm-test-in: Add another test of pow.
18594         * math/auto-libm-test-out: Regenerated.
18595         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18596
18597         * math/auto-libm-test-in: Add more tests of lgamma.
18598         * math/auto-libm-test-out: Regenerated.
18599         * sysdeps/i386/fpu/libm-test-ulps: Update.
18600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18601
18602         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18603         log1p.
18604         * math/auto-libm-test-out: Regenerated.
18605         * sysdeps/i386/fpu/libm-test-ulps: Update.
18606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18607
18608 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18609
18610         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18611         Elf64_Chdr structs and ELFCOMPRESS constants.
18612
18613 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18614
18615         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18616         expm1.
18617         * math/auto-libm-test-out: Regenerated.
18618         * sysdeps/i386/fpu/libm-test-ulps: Update.
18619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18620
18621         * math/auto-libm-test-in: Add more tests of erf and erfc.
18622         * math/auto-libm-test-out: Regenerated.
18623         * sysdeps/i386/fpu/libm-test-ulps: Update.
18624         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18625
18626 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18627
18628         * config.h.in (HAVE_AARCH64_BE): Add.
18629
18630 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18631
18632         * math/auto-libm-test-in: Add more tests of csqrt.
18633         * math/auto-libm-test-out: Regenerated.
18634         * sysdeps/i386/fpu/libm-test-ulps: Update.
18635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18636
18637         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18638         * math/auto-libm-test-out: Regenerated.
18639         * sysdeps/i386/fpu/libm-test-ulps: Update.
18640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18641
18642         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18643
18644 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18645
18646         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18647         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18648
18649         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18650         (euidaccess, eaccess): Define as weak aliases.
18651
18652         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18653         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18654         but __suseconds_t is often 'long int' so some sources assume that
18655         type is being used (e.g. they use %ld to print tv_usec).
18656
18657 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18658
18659         [BZ #18007]
18660         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18661         (CVE-2014-8121)
18662         * nss/tst-nss-getpwent.c: New file.
18663         * nss/Makefile (tests): Add new test.
18664
18665 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18666
18667         [BZ #18346]
18668         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18669         exponents less than 48 as cases where high part of mantissa needs
18670         examining to determine whether argument is integral.
18671         * math/libm-test.inc (round_test_data): Add more tests.
18672
18673 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18674
18675         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18676
18677 2015-04-27  David S. Miller  <davem@davemloft.net>
18678
18679         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18680         __tls_get_addr.
18681         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18682
18683 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18684
18685         [BZ#18333]
18686         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18687
18688 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18689
18690         [BZ#18333]
18691         * time/tzset.c (parse_tzname): Return error on memory allocation
18692         failure.
18693         * test-skeleton.c (struct temp_name_list): Change type of name
18694         member to non-const.
18695         (add_temp_file): Create a copy of the file name.
18696         (delete_temp_files): Deallocate memory.
18697         (create_temp_file): Add comment.
18698
18699 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18700
18701         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18702         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18703
18704 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18705
18706         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18707         * sysdeps/arm/configure: Regenerated.
18708
18709 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18710
18711         [BZ #17715]
18712         * time/tzfile.c (__tzfile_read): Check for large values of
18713         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18714         * time/tzset.c (__tzstring_len): New function, based on the old
18715         __tzstring function.
18716         (__tzstring): Call __tzstring_len.
18717         (parse_tzname): New helper function extracted from
18718         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18719         the input string.
18720         (parse_offset): New helper function extracted from
18721         __tzset_parse_tz.  Replace switch with fallthrough with
18722         initialization before sscanf.
18723         (parse_rule): Likewise.
18724         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18725         new-style function definition.
18726         * timezone/Makefile (tests): Add tst-tzset.
18727         (tst-tzset.out): Dependencies on time zone files.
18728         (tst-tzset-ENV): Set TZDIR.
18729         (testdata/XT%): Copy crafted time zone files.
18730         * timezone/README: Mention crafted time zone files.
18731         * timezone/testdata/XT1, timezone/testdata/XT2,
18732         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18733         files.
18734         * timezone/tst-tzset.c: New test.
18735
18736 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18737
18738         * Makeconfig (+gccwarn): Remove -Winline.
18739
18740 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18741
18742         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18743
18744 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18745
18746         * NEWS: Mention sysconf() cache information support for s390.
18747         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18748
18749 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18750
18751         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18752         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18753         (__nearbyint): Likewise.
18754         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18755         (copysignl): Likewise.
18756
18757 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18758
18759         [BZ #18287]
18760         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18761         based on padding.  (CVE-2015-1781)
18762
18763 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18764
18765         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18766         libc-vdso.h.
18767         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18768         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18769         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18770         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18771         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18772         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18773         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18774         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18775         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18776         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18777         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18778         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18779         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18780         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18781         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18782         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18783         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18784         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18785         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18786         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18787         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18788         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18789         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18790
18791 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18792
18793         * stdlib/setenv.c (__add_to_environ):
18794         Dump core quickly if setenv (..., NULL, ...) is called.
18795         This time, do it the right way, and pacify GCC with a pragma.
18796
18797 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18798
18799         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18800         IMAP->l_prev cannot be null, and #if out the code for the contrary
18801         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18802         believe that NS (&_dl_ns[NSID]) could point outside the array.
18803
18804         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18805         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18806         before using NSID as an index.
18807
18808 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18809
18810         [BZ #17825]
18811         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18812         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18813         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18814
18815 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18816
18817         Add preliminary port to Google Native Client on ARM.
18818         * abi-tags (.*-.*-nacl.*): New entry.
18819         * sysdeps/arm/nacl: New directory.
18820         * sysdeps/nacl: New directory.
18821
18822 2015-04-16  David S. Miller  <davem@davemloft.net>
18823
18824         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18825         lowlevellock-futex.h
18826
18827 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18828
18829         * sysdeps/tile/configure.ac: New file.
18830         * sysdeps/tile/configure: Regenerated.
18831
18832 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18833
18834         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18835         conditionals for weak_alias and libc_hidden_weak.
18836         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18837         libc_hidden_weak and weak_alias.
18838         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18839         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18840         and weak_alias for static one.
18841
18842 2015-04-15  David S. Miller  <davem@davemloft.net>
18843
18844         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18845
18846 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18847
18848         [BZ #18206]
18849         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18850           Use signed comparision instead of substraction to avoid
18851           overflow bug.
18852         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18853           Take the sign of ret.
18854         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18855           Do not expect precise return values. Only the sign matters.
18856         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18857         * wcsmbs/test-wcsncmp.c: New File.
18858         * string/test-strncmp.c: Add wcsncmp support.
18859
18860 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18861
18862         [BZ #6792]
18863         * math/w_log1p.c: New file.
18864         * math/w_log1pf.c: Likewise.
18865         * math/w_log1pl.c: Likewise.
18866         * math/Makefile (libm-calls): Add w_log1p.
18867         * math/s_log1pl.c (log1pl): Remove weak_alias.
18868         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18869         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18870         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18871         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18872         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18873         [NO_LONG_DOUBLE] (log1pl): Likewise.
18874         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18875         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18876         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18877         (log1p): Remove long_double_symbol.
18878         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18879         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18880         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18881         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18882         remove weak_alias for corresponding log1p function.
18883         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18884         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18885         * sysdeps/ia64/fpu/w_log1p.c: New file.
18886         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18887         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18888         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18889
18890 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18891
18892         [BZ #18247]
18893         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18894         decimal exponent by 1.
18895         * stdlib/tst-strtod-round-data: Add more tests.
18896         * stdlib/tst-strtod-round.c (tests): Regenerated.
18897
18898 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18899
18900         * math/auto-libm-test-in: Add more tests of clog and clog10.
18901         * math/auto-libm-test-out: Regenerated.
18902         * sysdeps/i386/fpu/libm-test-ulps: Update.
18903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18904
18905 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18906
18907         * Makeconfig (module-cppflags): Exclude all .v.i files.
18908         (skip-module-cppflags): Variable removed.
18909
18910         * configure.ac (libc_config_ok): Initialize before reading
18911         preconfigure scripts, not after.
18912         * configure: Regenerated.
18913
18914         * test-skeleton.c (TIMEOUT): Move #define to top level.
18915         (main): Grok environment variable TEST_DIRECT.  If set, print
18916         test expectation details into that file and then behave as if
18917         given --direct.
18918
18919 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18920
18921         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18922         warning on 32-bit.
18923
18924 2015-04-08  David S. Miller  <davem@davemloft.net>
18925
18926         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18927
18928 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18929
18930         * math/auto-libm-test-in: Add more tests of atanh.
18931         * math/auto-libm-test-out: Regenerated.
18932         * sysdeps/i386/fpu/libm-test-ulps: Update.
18933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18934
18935         * math/auto-libm-test-in: Add more tests of atan.
18936         * math/auto-libm-test-out: Regenerated.
18937         * sysdeps/i386/fpu/libm-test-ulps: Update.
18938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18939
18940 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18941
18942         * elf/pldd.c (main): Rewrite to use struct
18943         scratch_buffer instead of extend_alloca.
18944         * elf/pldd-xx.c (find_maps): Likewise.
18945         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18946         <alloca.h>.
18947         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18948         scratch_buffer instead of extend_alloca.
18949         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18950         grp/compat-initgroups.c.
18951         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18952         Rewrite to use struct scratch_buffer instead of extend_alloca.
18953         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18954         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18955
18956 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18957
18958         * math/auto-libm-test-in: Add more tests of cbrt.
18959         * math/auto-libm-test-out: Regenerated.
18960         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18961
18962         * math/auto-libm-test-in: Add more tests of cabs.
18963         * math/auto-libm-test-out: Regenerated.
18964         * sysdeps/i386/fpu/libm-test-ulps: Update.
18965         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18966
18967         [BZ #18210]
18968         [BZ #18211]
18969         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18970         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18971         computations.
18972         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18973         clog10.
18974         * math/auto-libm-test-out: Regenerated.
18975         * sysdeps/i386/fpu/libm-test-ulps: Update.
18976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18977
18978         [BZ #18197]
18979         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18980         (atan): Set FE_TONEAREST mode for internal computations.
18981         * math/auto-libm-test-in: Add more tests of atan.
18982         * math/auto-libm-test-out: Regenerated.
18983
18984 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18985
18986         [BZ #17930]
18987         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18988
18989 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18990
18991         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18992
18993 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18994
18995         * include/scratch_buffer.h: New file.
18996         * malloc/scratch_buffer_grow.c: Likewise.
18997         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18998         * malloc/scratch_buffer_set_array_size.c: Likewise.
18999         * malloc/tst-scratch_buffer.c: Likewise.
19000         * malloc/Makefile (routines): Add scratch_buffer_grow.
19001         (tests): Add test case.
19002         * malloc/Versions (GLIBC_PRIVATE): Export
19003         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19004         __libc_scratch_buffer_set_array_size.
19005
19006 2015-04-06  Richard Henderson  <rth@redhat.com>
19007
19008         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19009         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19010
19011         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19012         unsigned int before printing.
19013
19014 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19015
19016         [BZ #17596]
19017         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19018         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19019
19020 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19021
19022         * include/libc-internal.h (libc_max_align_t): Define.
19023
19024 2015-04-02  Andreas Schwab  <schwab@suse.de>
19025
19026         [BZ #16850]
19027         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19028
19029 2015-04-02  Mel Gorman  <mgorman@suse.de>
19030
19031         [BZ #17195]
19032         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19033         as well as the main arena.
19034
19035 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19036
19037         [BZ #18185]
19038         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19039         sharing L2 cache to 2 for Silvermont/Knights Landing.
19040
19041 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19042
19043         [BZ #17711]
19044         * config.make.in (have-protected-data): New.
19045         * configure.ac: Check linker support for protected data symbol.
19046         * configure: Regenerated.
19047         * elf/Makefile (modules-names): Add tst-protected1moda and
19048         tst-protected1modb if $(have-protected-data) is yes.
19049         (tests): Add tst-protected1a and tst-protected1b if
19050         $(have-protected-data) is yes.
19051         ($(objpfx)tst-protected1a): New.
19052         ($(objpfx)tst-protected1b): Likewise.
19053         (tst-protected1modb.so-no-z-defs): Likewise.
19054         * elf/tst-protected1a.c: New file.
19055         * elf/tst-protected1b.c: Likewise.
19056         * elf/tst-protected1mod.h: Likewise.
19057         * elf/tst-protected1moda.c: Likewise.
19058         * elf/tst-protected1modb.c: Likewise.
19059
19060 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19061
19062         [BZ #17711]
19063         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19064         indicates it is called from do_lookup_x on relocation against
19065         protected data, skip the data definion in the executable from
19066         copy reloc.
19067         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19068         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19069         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19070         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19071         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19072         otherwise to 0.
19073         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19074         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19075         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19076         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19077         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19078         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19079
19080 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19081
19082         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19083         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19084
19085 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19086
19087         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19088         THREAD_SETMEM_NC.
19089         * sysdeps/x86_64/nptl/tls.h: Ditto.
19090
19091 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19092
19093         * dlfcn/tststatic.c (main): Converted to ...
19094         (do_test): ... this.
19095         (TEST_FUNCTION): New macro.
19096         Include test-skeleton.c.
19097
19098 2015-03-26  Alan Modra  <amodra@gmail.com>
19099
19100         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19101         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19102         zero for undefined weak.
19103         (elf_machine_plt_conflict): Similarly.
19104
19105 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19106
19107         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19108         atanh.
19109         * math/auto-libm-test-out: Regenerated.
19110         * sysdeps/i386/fpu/libm-test-ulps: Update.
19111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19112
19113         * math/auto-libm-test-in: Add another test of asin.
19114         * math/auto-libm-test-out: Regenerated.
19115         * sysdeps/i386/fpu/libm-test-ulps: Update.
19116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19117
19118         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19119         Remove macro.
19120         (LLL_EBX_REG): Likewise.
19121         (LLL_ENTER_KERNEL): Likewise.
19122
19123         * math/auto-libm-test-in: Add more tests of asin.
19124         * math/auto-libm-test-out: Regenerated.
19125         * sysdeps/i386/fpu/libm-test-ulps: Update.
19126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19127
19128         [BZ #18138]
19129         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19130         libc_do_syscall_args): New structure.
19131         (INTERNAL_SYSCALL_MAIN_0): New macro.
19132         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19133         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19134         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19135         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19136         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19137         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19138         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19139         Replace conditional definitions by conditional definitions of ....
19140         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19141         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19142         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19143         (libpthread-sysdep_routines): Add libc-do-syscall.
19144         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19145         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19146         to __NR_futex not 240.
19147
19148 2015-03-25  Alan Modra  <amodra@gmail.com>
19149
19150         * NEWS: Advertise TLS optimization.
19151         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19152         (DT_PPC_NUM): Increment.
19153         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19154         (CHECK_STATIC_TLS): Use here.
19155         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19156         TLS descriptors.
19157         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19158         * sysdeps/powerpc/dl-tls.c: New file.
19159         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19160         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19161         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19162         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19166
19167 2015-03-25  Alan Modra  <amodra@gmail.com>
19168
19169         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19170         for overlapping .opd entries" to "support...".
19171         * sysdeps/powerpc/powerpc64/configure: Regenerate
19172
19173 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19174
19175         * math/auto-libm-test-in: Add more tests of acos.
19176         * math/auto-libm-test-out: Regenerated.
19177         * sysdeps/i386/fpu/libm-test-ulps: Update.
19178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19179
19180         * math/auto-libm-test-in: Add more tests of expm1.
19181         * math/auto-libm-test-out: Regenerated.
19182         * sysdeps/i386/fpu/libm-test-ulps: Update.
19183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19184
19185 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19186
19187         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19188         * math/auto-libm-test-out: Regenerated.
19189         * sysdeps/i386/fpu/libm-test-ulps: Update.
19190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19191
19192         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19194
19195         * math/auto-libm-test-in: Add more tests of log2.
19196         * math/auto-libm-test-out: Regenerated.
19197         * sysdeps/i386/fpu/libm-test-ulps: Update.
19198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19199
19200 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19201
19202         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19203         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19204         _IO_IS_APPENDING bit in READ_WRITE instead.
19205
19206 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19207
19208         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19209         (__determine_cpumask_size): Replace extend_alloca with a
19210         variable-length array.  Do not treat res == 0 as an error.
19211
19212 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19213
19214         [BZ #18100]
19215         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19216         and integer overflow.
19217         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19218         (main): Add integer overflow tests.
19219         * manual/pattern.texi (Calling Wordexp): Document additional use
19220         for WRDE_SYNTAX.
19221
19222 2015-03-23  Alan Modra  <amodra@gmail.com>
19223
19224         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19225         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19226         and false branch of conditional.
19227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19228         Likewise.
19229
19230 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19231
19232         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19233         libc-modules.h
19234         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19235         unused declaration of _hurd_intr_rpc_msg_in_trap.
19236         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19237         defined instead of whether it is non-zero.
19238         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19239         input constraint instead of both input and output constraint.  Use ecx
19240         clobber instead of %ecx.
19241         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19242         mutex_unlock): Use a statement expression instead of an expression list.
19243         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19244         type to vm_size_t instead of vm_address_t.
19245         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19246         defined instead of whether it is non-zero.
19247         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19248         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19249         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19250         comparisons with mapaddr.
19251         * nscd/nscd-client.h: Include <time.h>.
19252         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19253         9th parameter to __vm_region instead of int.
19254         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19255         * scripts/check-local-headers.sh (exclude): Add device/,
19256         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19257         cthreads.h.
19258
19259 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19260
19261         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19262         to account for alignment padding.
19263         * sysdeps/arm/memmove.S: Likewise.
19264
19265 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19266
19267         * sysdeps/unix/sysv/linux/generic/README: New file.
19268
19269 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19270
19271         [BZ #18138]
19272         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19273         (futex_abstimed_wait)
19274         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19275         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19276         of lll_futex_timed_wait.
19277
19278 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19279
19280         [BZ #17542]
19281         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19282
19283 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19284
19285         [BZ #17090]
19286         [BZ #17620]
19287         [BZ #17621]
19288         [BZ #17628]
19289         * NEWS: Update.
19290         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19291         entries with Static TLS too.  Skip entries past the end of the
19292         allocated DTV, from Alan Modra.
19293         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19294         Static TLS DTV entry set up from...
19295         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19296         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19297         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19298         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19299         for Static TLS.
19300         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19301         that the slot we find is associated with the given map before
19302         using its generation count.
19303         * nptl_db/db_info.c: Include ldsodefs.h.
19304         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19305         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19306         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19307         (link_map::l_tls_offset): New struct field.
19308         (dtv_t::counter): Likewise.
19309         (rtld_global): New struct.
19310         (_rtld_global): New rtld variable.
19311         (dl_tls_dtv_slotinfo_list): New rtld global field.
19312         (dtv_slotinfo_list): New struct.
19313         (dtv_slotinfo): Likewise.
19314         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19315         (td_lookup): Rename to...
19316         (td_mod_lookup): ... this.  Use new mod parameter instead of
19317         LIBPTHREAD_SO.
19318         * nptl_db/td_thr_tlsbase.c: Include link.h.
19319         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19320         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19321         addresses even if the DTV is out of date or missing them.
19322         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19323         index zero-length arrays.
19324         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19325         (td_lookup): Make it a macro implemented in terms of...
19326         (td_mod_lookup): ... this declaration.
19327         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19328         (DB_MAIN_VARIABLE): Likewise.
19329
19330 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19331
19332         [BZ #18134]
19333         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19334
19335 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19336
19337         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19338
19339 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19340
19341         [BZ #18128]
19342         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19343         (atomic_add, atomic_increment_and_test)
19344         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19345
19346 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19347
19348         * stdlib/setenv.c (__add_to_environ):
19349         Dump core quickly if setenv (..., NULL, ...) is called.
19350
19351 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19352
19353         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19354         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19355         all the necessary asm magic in one place.
19356         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19357         using those.
19358
19359 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19360
19361         [BZ #14906]
19362         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19363         traced file mtime. Use consistent log message.
19364         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19365         (register_traced_file): Call install_watches. Always set mtime.
19366         (invalidate_cache): Iterate over all trace files. Call install_watches.
19367         (inotify_check_files): Don't inline. Handle watching parent
19368         directories and configuration file movement in and out.
19369         (handle_inotify_events): New function.
19370         (main_loop_poll): Call handle_inotify_events.
19371         (main_loop_epoll): Likewise.
19372         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19373         (struct traced_file): Use array of inotify fds. Add parent directory,
19374         and basename.
19375         (struct database_dyn): Remove unused file_mtime.
19376         (init_traced_file): New inline function.
19377         (define_traced_file): New macro.
19378         * nss/nss_db/db-init.c: Use define_traced_file.
19379         (_nss_db_init): Use init_traced_file.
19380         * nss/nss_files/files-init.c: Use define_traced_file.
19381         (_nss_files_init): Use init_traced_file.
19382
19383 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19384
19385         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19386         [_LIBC]: Do not include <stdlib.h>.
19387         [!_LIBC] (abort): Remove declaration.
19388         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19389         _FP_STATIC_ASSERT instead of conditionally calling abort.
19390         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19391         (_FP_EXTEND_CNAN): Likewise.
19392         (FP_TRUNC): Likewise.
19393         (__FP_CLZ): Likewise.
19394         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19395
19396 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19397
19398         * manual/string.texi (XPG basename): Fix prototype.
19399
19400 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19401
19402         [BZ #18080]
19403         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19404         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19405         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19406         (__setcontext): Likewise.
19407         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19408         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19409         Call rt_sigprocmask syscall one time to set new signal mask
19410         and retrieve the current signal mask instead of two calls.
19411         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19412         (__swapcontext): Likewise.
19413         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19414         * stdlib/tst-setcontext2.c: New file.
19415
19416 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19417
19418         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19419
19420 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19421
19422         [BZ #18093]
19423         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19424         the wrong size.
19425
19426 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19427
19428         [BZ #18043]
19429         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19430
19431 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19432
19433         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19434         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19435         Remove define.
19436         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19437         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19438         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19439         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19440         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19441         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19442         define.
19443         * nptl_db/td_symbol_list.c (td_lookup): Remove
19444         HAVE_ASM_GLOBAL_DOT_NAME code.
19445         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19446         HAVE_ASM_GLOBAL_DOT_NAME check.
19447         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19448         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19449         (DOT_LABEL): Remove define.
19450         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19451         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19452         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19453         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19454         (__TLS_GET_ADDR): Likewise.
19455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19456         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19457
19458 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19459
19460         [BZ #18111]
19461         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19462         (_FPU_SETCW): Initialize cw from fpsr before storing.
19463         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19464         (fesetexceptflag): Rewrite using fpu_control.h.
19465         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19466
19467 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19468
19469         [BZ #18110]
19470         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19471         asms.
19472         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19473
19474 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19475
19476         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19477         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19478         abort.
19479         (_FP_FMA): Likewise.
19480         (_FP_DIV): Likewise.
19481
19482 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19483
19484         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19485         with 0 in that case.
19486         * Makefile (summarize-tests): New canned sequence, factored out of
19487         commands for targets tests and xtests.  Display summary lines that
19488         don't start with PASS: or XFAIL: rather than ones that do start with
19489         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19490         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19491         do start with ERROR: or FAIL:.
19492         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19493         (except for [$(build-shared) = yes]).
19494         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19495         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19496         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19497         * nptl/Makefile: Revert 2015-03-04 changes.
19498         [$(CXX) empty] (tests-unsupported): New variable.
19499         * debug/Makefile: Likewise.
19500
19501         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19502         gnulib file.  Replace __attribute with __attribute__ throughout.
19503
19504 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19505
19506         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19507
19508 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19509
19510         [BZ #18104]
19511         * math/auto-libm-test-in: Add another test of pow.
19512         * math/auto-libm-test-out: Regenerated.
19513
19514 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19515
19516         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19517         $(config-cflags-nofma).
19518
19519 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19520
19521         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19522         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19523         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19524         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19525         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19526         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19527         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19528         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19529         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19530         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19531         Add comment on closing #endif.
19532
19533 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19534
19535         * posix/wordexp.c (CHAR_IN_SET): New macro.
19536         (parse_param): Use it.
19537
19538 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19539
19540         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19541
19542 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19543
19544         [BZ #18043]
19545         * posix/wordexp.c (parse_param): Fix buffer overflow.
19546         * posix/wordexp-test.c (test_case): Add test case.
19547
19548 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19549
19550         [BZ #18042]
19551         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19552         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19553
19554 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19555
19556         [BZ #18043]
19557         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19558         (do_bz18043): Delete.
19559         (at_page_end): New.
19560         (testit): Refactor to have words at the edge of unreadable page.
19561
19562 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19563
19564         [BZ #16734]
19565         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19566         Cleanup read-only streams as well.
19567         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19568
19569 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19570
19571         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19572         <bits/libc-lockP.h>
19573
19574 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19575
19576         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19577         on [__KERNEL__].
19578         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19579         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19580         * soft-fp/op-common.h (_FP_DECL): Likewise.
19581
19582 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19583
19584         * elf/ifuncdep2.c (global): Replace
19585         __attribute__((visibility("protected"))) with
19586         asm (".protected global").
19587         * elf/ifuncmod1.c (global): Likewise.
19588         * elf/ifuncmod5.c (global): Likewise.
19589
19590 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19591
19592         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19593         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19594
19595 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19596
19597         * manual/install.texi (Configuring and compiling):
19598         Document test-wrapper-env-only.
19599         * INSTALL: Regenerated.
19600
19601 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19602
19603         [BZ #18043]
19604         * posix/wordexp.c (parse_param): Fix buffer overflow.
19605         * posix/wordexp-test.c (do_bz18043): Add test case.
19606
19607 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19608
19609         * time/tst-strptime2.c (do_test): Ensure failing tests are
19610         reported correctly.
19611         * time/tst-strptime3.c (do_test): Likewise.
19612
19613 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19614
19615         Fix aio_error thread-safety.
19616         * sysdeps/pthread/aio_error.c: New file
19617         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19618         synchronization.
19619
19620 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19621
19622         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19623         (group_number, vfprintf): Use it.
19624         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19625         (JUMP, REF): Use it.
19626         (WORK_BUFFER_SIZE): New enum constant.
19627         (process_arg, vfprintf): Use it.
19628
19629 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19630
19631         * manual/errno.texi (Error Messages): Complete example function
19632         by adding missing #define.
19633         (program_invocation_name): Add statement indicating GNU
19634         extension and reference which header file declares the variable.
19635         (program_invocation_short_name): Likewise.
19636
19637 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19638
19639         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19640         compatibility note.
19641
19642 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19643
19644         * Makeconfig (test-wrapper-env-only): New variable.
19645         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19646         then use that with $(test-wrapper-env-only) rather than using
19647         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19648
19649 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19650
19651         [BZ #18082]
19652         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19653         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19654         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19655         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19656         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19657         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19658         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19659         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19660         Likewise.
19661         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19662         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19663         Likewise.
19664         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19665         Likewise.
19666         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19667         Likewise.
19668         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19669         Likewise.
19670         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19671         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19672         Likewise.
19673         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19674         Likewise.
19675         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19676         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19677
19678 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19679
19680         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19681         (ETH_ALEN): New macro.
19682         (struct ether_addr): Use it for length of ether_addr_octet.
19683
19684         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19685         (setdb): Don't call __nss_configure_lookup for "rpc".
19686         (do_test): Don't call test_rpc.
19687         (output_rpcent, test_rpc): Functions moved ...
19688         * sunrpc/test-rpcent.c: ... to this new file.
19689         * sunrpc/Makefile (tests): Add it.
19690
19691         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19692         __xpg_sigpause.
19693         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19694         * nptl/tst-signal6.c: Likewise.
19695         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19696         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19697
19698         * configure.ac (libc_cv_cxx_link_ok): New check.
19699         Reset CXX to empty if it fails to link.
19700         * configure: Regenerated.
19701         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19702         bug-atexit3-lib only if $(CXX) is nonempty.
19703         * nptl/Makefile (tests): Likewise for tst-cancel24.
19704         (tests, tests-static): Likewise for tst-cancel24-static.
19705         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19706         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19707         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19708         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19709
19710 2015-03-04  Andreas Schwab  <schwab@suse.de>
19711
19712         [BZ #17631]
19713         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19714         for non-GCC compilers.
19715         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19716         Likewise.
19717
19718 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19719
19720         [BZ #17776]
19721         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19722         integer before bitwise and assembly operations.
19723         (feclearexcept): Likewise.
19724         * math/test-fenvinline.c: New file.
19725         * math/Makefile: Add test-fenvinline test.
19726
19727 2015-03-03  Alan Modra  <amodra@gmail.com>
19728
19729         [BZ #16512]
19730         * scripts/localplt.awk: Strip off symbol version.
19731         * NEWS: Mention bug fix.
19732
19733 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19734
19735         * sysdeps/pthread/timer_routines.c
19736         (timer_free_list, thread_free_list, thread_active_list): Make static.
19737
19738 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19739
19740         [BZ #17779]
19741         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19742         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19743         Undefine.
19744         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19745         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19746         Likewise.
19747         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19748         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19749         Likewise.
19750
19751 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19752
19753         [BZ #18036]
19754         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19755         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19756
19757 2015-03-02  Andreas Schwab  <schwab@suse.de>
19758
19759         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19760         variable name.
19761
19762 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19763
19764         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19765         Return error status.
19766
19767 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19768
19769         [BZ #15969]
19770         * locale/findlocale.c (_nl_find_locale): Introduce const
19771         version of loc_name and drop unsafe type casts.
19772
19773 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19774
19775         * dlfcn/tststatic2.c (main): Converted to ...
19776         (do_test): ... this.
19777         (TEST_FUNCTION): New macro.
19778         Include test-skeleton.c.
19779
19780 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19781
19782         [BZ #17711]
19783         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19784         (tests-pie): Add vismain.
19785         (CFLAGS-vismain.c): New.
19786         * elf/vismain.c: Add comments for PIE requirement.
19787
19788 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19789
19790         [BZ #18046]
19791         [BZ #18047]
19792         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19793         0x1p-56L as threshold for just returning the argument.
19794         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19795         0x1p-32L as threshold for just returning the argument.
19796         * math/auto-libm-test-in: Add more tests of atanh.
19797         * math/auto-libm-test-out: Regenerated.
19798         * sysdeps/i386/fpu/libm-test-ulps: Update.
19799         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19800
19801 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19802
19803         * string/bcopy.c (bcopy): Call memmove for performance.
19804
19805 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19806
19807         * string/bzero.c (__bzero): Call memset for performance.
19808
19809 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19810
19811         [BZ #18068]
19812         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19813         to 00100000.
19814
19815 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19816
19817         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19818
19819 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19820
19821         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19822         (__kernel_standard): Use CSTR macro when setting exc.name.
19823         * sysdeps/ieee754/Makefile [$(subdir) = math]
19824         (CFLAGS-k_standard.c): Remove variable.
19825
19826         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19827         setting p and q from "else if" to "else".
19828         (qzero): Likewise.
19829         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19830         (qone): Likewise.
19831         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19832         (qzerof): Likewise.
19833         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19834         (qonef): Likewise.
19835         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19836         (qzero): Likewise.
19837         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19838         (qone): Likewise.
19839
19840         [BZ #18038]
19841         [BZ #18039]
19842         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19843         return pi/2 for arguments below 0x1p-113L.
19844         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19845         return pi/2 for arguments below 0x1p-106L.
19846         * math/auto-libm-test-in: Add more tests of acos.
19847         * math/auto-libm-test-out: Regenerated.
19848
19849         [BZ #16351]
19850         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19851         (MO): New macro.
19852         (__ieee754_asin): Force underflow exception for results with small
19853         absolute value.
19854         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19855         (MO): New macro.
19856         (__ieee754_asinf): Force underflow exception for results with
19857         small absolute value.
19858         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19859         (__ieee754_asin): Force underflow exception for results with small
19860         absolute value.
19861         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19862         (__ieee754_asinf): Force underflow exception for results with
19863         small absolute value.
19864         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19865         (__ieee754_asinl): Force underflow exception for results with
19866         small absolute value.
19867         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19868         (__ieee754_asinl): Force underflow exception for results with
19869         small absolute value.
19870         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19871         (__ieee754_asinl): Force underflow exception for results with
19872         small absolute value.
19873         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19874         Include <math.h>.
19875         * math/auto-libm-test-in: Do not mark underflow exceptions as
19876         possibly missing for bug 16351.
19877         * math/auto-libm-test-out: Regenerated.
19878
19879         [BZ #18030]
19880         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19881         of power of 2 down when low part has opposite sign.
19882         * math/libm-test.inc (logb_test_data): Add more tests.
19883
19884 2015-02-26  Andreas Schwab  <schwab@suse.de>
19885
19886         [BZ #18032]
19887         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19888         over collating symbol inside a bracket expression.  Minor cleanup.
19889         * posix/tst-fnmatch3.c (do_test): Add test case.
19890
19891 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19892
19893         [BZ #18029]
19894         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19895         Adjust exponent of power of 2 down when low part has opposite
19896         sign.
19897         * math/libm-test.inc (ilogb_test_data): Add more tests.
19898
19899 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19900
19901         [BZ #15969]
19902         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19903         the previous change.
19904
19905         [BZ #15969]
19906         * locale/findlocale.c (_nl_find_locale): Retry archive search
19907         after alias expansion.
19908
19909 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19910
19911         * iconv/tst-iconv3.c (main): Converted to ...
19912         (do_test): ... this.
19913         (TEST_FUNCTION): New macro.
19914         Include test-skeleton.c.
19915
19916         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19917         (convert): Make function static.
19918         (test_unalign): Likewise.  Add const to argument pointee types.
19919         (main): Replace with static function do_test.
19920         Print "Succeeded." only if RET is zero.
19921         (TEST_FUNCTION): New macro.
19922         Include test-skeleton.c.
19923
19924         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19925         returns a null pointer.
19926
19927 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19928
19929         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19930         to __memcpy_ppc only for static builds.
19931
19932 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19933
19934         [BZ #18020]
19935         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19936         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19937         * math/auto-libm-test-in: Add more tests of asinh.
19938         * math/auto-libm-test-out: Regenerated.
19939         * sysdeps/i386/fpu/libm-test-ulps: Update.
19940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19941
19942 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19943
19944         [BZ #15850]
19945         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19946         and ip6_mtuinfo definitions here.
19947         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19948         in this define too.  Update comment.
19949
19950 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19951
19952         * elf/sprof.c (load_shobj): Tweak error message to match others.
19953
19954 2015-02-24  Kevin Easton  <kevin@guarana.org>
19955
19956         [BZ #16145] (partial fix)
19957         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19958         to reduce lock contention.
19959
19960 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19961
19962         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19963         (struct timex): Update time comment.
19964         (ADJ_SETOFFSET): Define.
19965
19966 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19967
19968         [BZ #18019]
19969         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19970         2**56 not 2**28 as threshold for log (2x) formula.
19971         * math/auto-libm-test-in: Add more tests of acosh.
19972         * math/auto-libm-test-out: Regenerated.
19973         * sysdeps/i386/fpu/libm-test-ulps: Update.
19974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19975
19976 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19977
19978         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19979         parenthesis around the buf assignment.
19980         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19981
19982 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19983
19984         [BZ #16783]
19985         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19986         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19987         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19988         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19989         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19990         * math/libm-test.inc (scalb_test_data): Add more tests.
19991
19992 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19993
19994         [BZ #17916]
19995         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19996         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19997
19998 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19999
20000         [BZ #17523]
20001         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20002         * io/bits/fcntl2.h (open): Use it.
20003         (openat): Likewise.
20004         * io/open.c (__libc_open): Likewise.
20005         * io/open64.c (__libc_open64): Likewise.
20006         * io/open64_2.c (__open64_2): Likewise.
20007         * io/open_2.c (__open_2): Likewise.
20008         * io/openat.c (__openat): Likewise.
20009         * io/openat64.c (__openat64): Likewise.
20010         * io/openat64_2.c (__openat64_2): Likewise.
20011         * io/openat_2.c (__openat_2): Likewise.
20012         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20013         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20014         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20015         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20016         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20017         (__open_nocancel): Likewise.
20018         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20019         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20020         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20021
20022 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20023
20024         [BZ #14841]
20025         * resolv/gethnamaddr.c (getanswer): Skip logging if
20026         RES_USE_DNSSEC is set.
20027         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20028
20029 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20030
20031         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20032
20033 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20034
20035         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20036         201304L, for Unicode 7.
20037
20038 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20039
20040         [BZ #17836]
20041         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20042         shared library.  Add gmon-start.os otherwise.
20043         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20044         $(objpfx)gmon-start.os if builing shared library.
20045         ($(objpfx)g$(static-start-installed-name)): Likewise.
20046
20047 2015-02-23  Andreas Schwab  <schwab@suse.de>
20048
20049         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20050
20051 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20052
20053         [BZ #17269]
20054         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20055         (enlarge_userbuf): Likewise.
20056
20057 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20058
20059         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20060         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20061         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20062         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20063
20064 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20065
20066         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20067         expression inside statement expression.
20068
20069 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20070
20071         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20072         <sysdeps/nptl/lowlevellock.h> and remove macros and
20073         functions that are now defined there.
20074         (SYS_futex): Remove.
20075         (lll_compare_and_swap): Remove.
20076         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20077
20078 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20079
20080         [BZ #17999]
20081         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20082         instead of scandirat.
20083         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20084         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20085         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20086         __scandirat.
20087         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20088         (__scandirat): Declare.  Use libc_hidden_proto.
20089         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20090         Remove variable.
20091         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20092
20093 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20094
20095         [BZ #15319]
20096         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20097         (MO): New macro.
20098         (__ieee754_atan2): For results with small absolute value, force
20099         underflow exception and remove excess range and precision from
20100         return value.
20101         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20102         (MO): New macro.
20103         (__ieee754_atan2f): For results with small absolute value, force
20104         underflow exception and remove excess range and precision from
20105         return value.
20106         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20107         (MO): New macro.
20108         (__atan): For results with small absolute value, force underflow
20109         exception and remove excess range and precision from return value.
20110         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20111         (MO): New macro.
20112         (__atanf): For results with small absolute value, force underflow
20113         exception and remove excess range and precision from return value.
20114         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20115         <math.h>.
20116         (__ieee754_atan2): Force underflow exception for results with
20117         small absolute value.
20118         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20119         <math_private.h>.
20120         (atan): Force underflow exception for results with small absolute
20121         value.
20122         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20123         (__atanf): Force underflow exception for results with small
20124         absolute value.
20125         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20126         <math.h>.
20127         (__atanl): Force underflow exception for results with small
20128         absolute value.
20129         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20130         (__atanl): Force underflow exception for results with small
20131         absolute value.
20132         * sysdeps/x86/fpu/bits/mathinline.h
20133         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20134         (__ieee754_atan2): Only define inline for long double.
20135         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20136         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20137         * math/auto-libm-test-in: Do not mark underflow exceptions as
20138         possibly missing for bug 15319.  Add more tests of atan2.
20139         * math/auto-libm-test-out: Regenerated.
20140         * math/libm-test.inc (casin_test_data): Do not mark underflow
20141         exceptions as possibly missing for bug 15319.
20142         (casinh_test_data): Likewise.
20143         * sysdeps/i386/fpu/libm-test-ulps: Update.
20144
20145 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20146
20147         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20148         * sysdeps/mips/bits/endian.h: Fix comments.
20149
20150 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20151
20152         [BZ #17996]
20153         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20154         (hdestroy_r): Likewise.
20155         (hsearch_r): Likewise.
20156         (__hcreate_r): Declare and use libc_hidden_proto.
20157         (__hdestroy_r): Likewise.
20158         (__hsearch_r): Likewise.
20159         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20160         (hcreate): Call __hcreate_r instead of hcreate_r.
20161         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20162         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20163         as weak alias of __hcreate_r.
20164         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20165         __hdestroy_r.
20166         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20167         __hsearch_r.
20168         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20169         Remove variable.
20170         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20171         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20172         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20173         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20174
20175 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20176
20177         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20178         arena_lock into a single arena_get.
20179
20180 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20181
20182         * dl-reloc.c: Inlucde libc-internal.h.
20183         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20184         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20185         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20186         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20187         (grow_heap): Likewise.
20188         * malloc/malloc.c: Include libc-internal.h.
20189         (do_check_malloc): Call powerof2.
20190         (sysmalloc): Use pagesize. Call ALIGN_UP.
20191         (systrim): Use pagesize.
20192         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20193         (__libc_valloc): Use pagesize.
20194         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20195
20196 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20197
20198         [BZ #17991]
20199         * include/sys/resource.h (__getrlimit64): Declare.  Use
20200         libc_hidden_proto.
20201         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20202         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20203         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20204         getrlimit64.
20205         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20206         __getrlimit64.
20207         [!getrlimit64] (getrlimit64): Define as weak alias of
20208         __getrlimit64.  Use libc_hidden_weak.
20209         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20210         using __getrlimit64 not __new_getrlimit64.
20211         (__GI_getrlimit64): Likewise.
20212         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20213         Likewise.
20214         (__GI_getrlimit64): Likewise.
20215         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20217         (getrlimit): Add __getrlimit64 alias.
20218         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20219         Likewise.
20220         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20221         Remove variable.
20222         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20223         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20224
20225 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20226
20227         * libio/fileops.c: Add missing sys/mman.h
20228         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20229
20230 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20231
20232         * manual/math.texi (Errors in Math Functions): Clarify goals
20233         regarding inexact and underflow exceptions.
20234
20235 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20236
20237         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20238         * sysdeps/mips/memset.S: Ditto.
20239
20240 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20241
20242         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20243
20244 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20245
20246         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20247         (__v1longjmp): Remove versioned symbol.
20248         (__v1siglongjmp): Remove alias and versioned symbol.
20249         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20250         (__v2siglongjmp): Likewise.
20251
20252 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20253
20254         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20255
20256 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20257
20258         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20259
20260 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20261
20262         [BZ #17987]
20263         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20264         zero result does not depend on the sign resulting from
20265         subtraction.
20266         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20267         Likewise.
20268         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20269         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20270         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20271         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20272         * math/libm-test.inc (remquo_test_data): Add more tests.
20273
20274 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20277         Problem reported by J William Piggott.
20278
20279 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20280
20281         [BZ #17978]
20282         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20283         products 4 * y and 2 * y where those would overflow.
20284         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20285         Likewise.
20286         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20287         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20288         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20289         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20290         * math/libm-test.inc (remquo_test_data): Add more tests.
20291
20292         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20293
20294         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20295         [defined _COMPILING_NEWLIB].
20296         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20297         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20298
20299         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20300         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20301
20302 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20303
20304         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20305         acquired.
20306
20307 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20308
20309         [BZ #17792]
20310         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20311         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20312         HOST_STACK_END_ADDR): Likewise.
20313
20314 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20315
20316         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20317         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20318         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20319
20320 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20321
20322         * sysdeps/generic/c++-types.data: New file.
20323         * sysdeps/generic/ld.abilist: New file.
20324         * sysdeps/generic/libBrokenLocale.abilist: New file.
20325         * sysdeps/generic/libanl.abilist: New file.
20326         * sysdeps/generic/libc.abilist: New file.
20327         * sysdeps/generic/libcrypt.abilist: New file.
20328         * sysdeps/generic/libdl.abilist: New file.
20329         * sysdeps/generic/libm.abilist: New file.
20330         * sysdeps/generic/libpthread.abilist: New file.
20331         * sysdeps/generic/libresolv.abilist: New file.
20332         * sysdeps/generic/librt.abilist: New file.
20333
20334 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20335
20336         [BZ #17569]
20337         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20338         Compute absolute value of x as modified by fmod, not original
20339         value of x.
20340         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20341         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20342         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20343         RUN_TEST_ffI_f1_mod8.
20344         (remquo_test_data): Add more tests.
20345
20346 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20347
20348         * sysdeps/init_array/pt-crti.S: New file.
20349
20350 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20351
20352         [BZ #17967]
20353         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20354         __builtin_fmaf instead of relying on contraction of a * b + c.
20355
20356 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20357
20358         [BZ #17969]
20359         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20360         node.
20361
20362 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20363
20364         [BZ #17964]
20365         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20366         __builtin_fma instead of relying on contraction of a * b + c.
20367
20368 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20369
20370         * Makeconfig (ASFLAGS): Add -Werror=undef.
20371         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20372         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20373         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20374
20375         * Makeconfig (after-link): New variable.
20376         (+link-pie, +link-pie-tests): Use it.
20377         (+link-static, +link-static-tests): Likewise.
20378         (+link, +link-tests): Likewise.
20379         * Makerules (build-module, build-module-asneeded): Likewise.
20380         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20381         Likewise.
20382         * elf/Makefile ($(objpfx)ld.so): Likewise.
20383
20384 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20385
20386         [BZ #17965]
20387         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20388         both struct timeval and struct timespec.
20389
20390 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20391
20392         [BZ #16560]
20393         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20394         and redefine.
20395         (__ieee754_exp2l): Do not multiply small fractional parts by
20396         M_LN2l.
20397         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20398         small argument.
20399         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20400         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20401         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20402         * math/auto-libm-test-in: Add more tests of exp2.
20403         * math/auto-libm-test-out: Regenerated.
20404
20405 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20406
20407         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20408         unaligned path.
20409
20410 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20411
20412         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20413         little endian.
20414
20415 2015-02-12  Andreas Schwab  <schwab@suse.de>
20416
20417         [BZ #15790]
20418         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20419         Filter out elision flags from value returned in kind.
20420         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20421         * nptl/tst-pthread-mutexattr.c: New file.
20422
20423 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20424
20425         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20426         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20427         into gnu-gnu, and update comment to refer to abi-tags.
20428
20429 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20430
20431         [BZ #15467]
20432         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20433         (__sincos): Set errno to EDOM for infinite argument.
20434         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20435         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20436         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20437         (__sincosl): Set errno to EDOM for infinite argument.
20438         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20439         (__sincosl): Set errno to EDOM for infinite argument.
20440         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20441         (__sincosl): Set errno to EDOM for infinite argument.
20442         * math/libm-test.inc (sincos_test_data): Test errno setting.
20443
20444 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20445
20446         * string/strxfrm_l.c: Remove #define STRCMP.
20447         * string/strcoll_l.c: Remove #define STRLEN.
20448         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20449         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20450
20451 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20452
20453         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20454         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20455         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20456         * sysdeps/mips/mips64/Makefile: ... here.
20457         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20458         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20459         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20460         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20461         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20462         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20463         * sysdeps/mips/mips64/n64/Implies: Likewise.
20464
20465 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20466
20467         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20468         <sys/time.h>, <string.h>, and <errno.h>.
20469         (dest_offset, dest_address, value, zero): Remove unused variables.
20470         (ldouble): Remove typedef.
20471         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20472         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20473         1).  Fix code style.
20474         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20475         (check): Function removed.
20476         (CHECK): New macro.
20477         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20478         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20479         Don't call set_sigaction_FP and remove_sigaction_FP here.
20480         (ldouble_test): Just use 'long double' as macro argument, no need for
20481         the 'ldouble' typedef.
20482         (do_test): Set up SIGFPE handler at start, using plain signal rather
20483         than sigaction.  Fix code style.
20484
20485 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20486
20487         [BZ #17949]
20488         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20489         jump label.
20490
20491 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20492
20493         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20494         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20495
20496         * sysdeps/powerpc/configure.ac: Remove file.
20497         * sysdeps/powerpc/configure: Likewise.
20498
20499         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20500         [sysdep_routines]: Remove wordcopy-power6 object.
20501         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20502         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20503         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20504         (__memmove_ppc32): Likewise.
20505         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20506         file.
20507         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20508         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20509         Remove preprocessor.
20510
20511         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20512         [sysdep_routines]: Remove wide chars objects.
20513         [wcsmbs]: New rule for wide char objects.
20514
20515         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20516         Remove wordcopy-power6 obejct.
20517         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20518         Use local call for wordcopy and memcpy symbols.
20519         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20520         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20521         implementation for loader.
20522         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20523
20524         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20525         Remove wordcopy-power7 object.
20526         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20527         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20528         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20529         (_wordcopy_fwd_dest_aligned): Likewise.
20530         (_wordcopy_bwd_aligned): Likewise.
20531         (_wordcopy_bwd_dest_aligned): Likewise.
20532
20533         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20534         Rewrite to call __memmove_ppc instead of include default
20535         implementation.
20536
20537         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20538         Remove wide chars objects.
20539         [wcsmbs]: New rule for wide char objects.
20540
20541 2015-02-09  Andreas Schwab  <schwab@suse.de>
20542
20543         [BZ #17912]
20544         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20545         in terms of __O_DIRECTORY.
20546
20547 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20548
20549         * time/getdate.c: Include <stdbool.h>.
20550         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20551         call PTR_MANGLE.
20552         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20553         PTR_DEMANGLE.
20554
20555 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20556
20557         Add ersatz _Static_assert on older C hosts
20558         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20559         pre-C11 C platform that is not known to support _Static_assert.
20560
20561 2015-02-07  Richard Braun  <rbraun@sceen.net>
20562
20563         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20564         sigstate.
20565         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20566
20567 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20568
20569         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20570         priority against unexistent AIO_PRIO_DELTA_MAX.
20571         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20572         instead of int.
20573         * misc/fchflags.c (fchflags): Likewise.
20574         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20575         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20576         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20577         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20578         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20579         Declare macros.
20580         [__USE_MISC] (chflags, fchflags): Declare functions.
20581         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20582         EINVAL when nfds is greater than FD_SETSIZE.
20583         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20584         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20585         45.
20586         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20587         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20588         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20589         MACH_RCV_TIMED_OUT.
20590         * hurd/hurd/signal.h (_hurd_self_sigstate,
20591         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20592         Explicit casts from void *.
20593         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20594         * abi-tags: Rename gnu-gnu os into gnu.
20595
20596         [BZ #4719]
20597         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20598         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20599         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20600         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20601         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20602         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20603
20604         [BZ #17944]
20605         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20606         duplicates ADDR->sun_path with sockaddr LEN limitation.
20607         * sysdeps/mach/hurd/connect.c: Include <string.h>
20608         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20609         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20610         * sysdeps/mach/hurd/sendto.c: Likewise.
20611         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20612         implementing it by hand.
20613
20614 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20615
20616         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20617         Use sfi_breg on ldr.
20618         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20619         Likewise.
20620
20621         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20622         it's defined.
20623         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20624         Test SIGSETXID only if it's defined.
20625
20626         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20627
20628         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20629         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20630
20631         * nptl/tst-align2.c: Moved ...
20632         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20633         * nptl/Makefile (tests): Remove tst-align2.
20634         * sysdeps/unix/sysv/linux/Makefile
20635         [$(subdir) = nptl] (tests): Add tst-align-clone.
20636         * nptl/tst-getpid1.c: Moved ...
20637         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20638         * nptl/tst-getpid2.c: Moved ...
20639         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20640         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20641         * sysdeps/unix/sysv/linux/Makefile
20642         [$(subdir) = nptl] (tests): ... here.
20643         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20644         * sysdeps/unix/sysv/linux/Makefile
20645         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20646
20647         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20648         Drop trailing \n from perror argument.  Use return rather than exit.
20649
20650         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20651         on [SA_SIGINFO].
20652         * nptl/tst-cancel21.c (do_test): Likewise.
20653         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20654         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20655         [!SA_SIGINFO]: Make it a stub test.
20656
20657         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20658         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20659
20660         * posix/tst-getlogin.c: Move to ...
20661         * login/tst-getlogin.c: ... here.
20662         * posix/Makefile (tests): Move tst-getlogin to ...
20663         * login/Makefile (tests): ... here.
20664
20665         * libio/tst-atime.c (do_test): Move local variables SV and E
20666         inside [ST_NOATIME] conditional.
20667
20668         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20669
20670         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20671
20672         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20673         (wait_code): New function replaces macro.
20674         Call nanosleep rather than syscall.
20675
20676         * nptl/pt-system.c: Rewritten.  Put everything under
20677         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20678         Use IFUNC to redirect when possible.
20679
20680         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20681         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20682         Use IFUNC to redirect when possible.
20683
20684         * nptl/pt-fork.c: Rewritten.  Put everything under
20685         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20686         Use IFUNC to redirect when possible.
20687         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20688
20689         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20690         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20691         unconditionally nowadays.  This included the only reference to
20692         __vdso_clock_gettime that appears outside libc proper.
20693         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20694         Remove version set (containing only __vdso_clock_gettime).
20695         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20696         Add attribute_hidden.
20697         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20698         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20699         libc_hidden_data_def.
20700         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20701         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20702
20703         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20704         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20705         setrpcent, and getrpcport to ...
20706         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20707         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20708         getrpcbynumber_r, and getrpcent_r to ...
20709         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20710         * inet/getrpcbyname.c: Moved ...
20711         * sunrpc/getrpcbyname.c: ... here.
20712         * inet/getrpcbyname_r.c: Moved ...
20713         * sunrpc/getrpcbyname_r.c: ... here.
20714         * inet/getrpcbynumber.c: Moved ...
20715         * sunrpc/getrpcbynumber.c: ... here.
20716         * inet/getrpcbynumber_r.c: Moved ...
20717         * sunrpc/getrpcbynumber_r.c: ... here.
20718         * inet/getrpcent.c: Moved ...
20719         * sunrpc/getrpcent.c: ... here.
20720         * inet/getrpcent_r.c: Moved ...
20721         * sunrpc/getrpcent_r.c: ... here.
20722         * inet/Makefile (routines): Move those to ...
20723         * sunrpc/Makefile (routines): ... here.
20724         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20725         the $(subdirs) list.
20726         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20727         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20728         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20729         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20730
20731         * elf/Makefile (routines): Include $(all-dl-routines), not just
20732         $(dl-routines).
20733         (rtld-routines): Likewise.  Use = rather than :=.
20734         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20735         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20736         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20737         * sysdeps/arm/Makefile: Likewise.
20738         * sysdeps/i386/Makefile: Likewise.
20739         * sysdeps/x86_64/Makefile: Likewise.
20740         * sysdeps/hppa/Makefile [$(subdir) = elf]
20741         (sysdep_routines, sysdep-rtld-routines): Don't add
20742         $(sysdep-dl-routines) to these.
20743         * sysdeps/ia64/Makefile: Likewise.
20744         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20745         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20746         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20747         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20748         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20749         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20750         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20751         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20752         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20753         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20754         these; sysdep-dl-routines alone is enough.
20755
20756 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20757
20758         [BZ #17932]
20759         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20760         where multiplication results in zero and third argument is finite
20761         and nonzero.
20762         * math/auto-libm-test-in: Add more tests of fma.
20763         * math/auto-libm-test-out: Regenerated.
20764
20765         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20766         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20767         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20768         (_FP_CMP_EQ): Likewise.
20769         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20770
20771         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20772         extra argument CHECK_NAN.  Redefine as wrapper around
20773         _FP_EXTEND_CNAN.
20774
20775 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20776
20777         * version.h (RELEASE): Set to "stable".
20778         (VERSION): Set to "2.21"
20779         * include/features.h (__GLIBC_MINOR__): Set to 21.
20780
20781         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20782
20783 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20784             Paul Eggert  <eggert@cs.ucla.edu>
20785
20786         [BZ #16618]
20787         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20788         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20789         size in bytes. Store needed elements in wpmax. Use needed size
20790         in bytes for extend_alloca.
20791
20792 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20793
20794         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20795         binutls 2.25, and texinfo 5.2.
20796         * INSTALL: Regenerate.
20797         * sysdeps/nios2/configure: Regenerate.
20798         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20799         * manual/contrib.texi: Update.
20800         * po/be.po: Update.
20801         * po/bg.po: Update.
20802         * po/ca.po: Update.
20803         * po/cs.po: Update.
20804         * po/da.po: Update.
20805         * po/de.po: Update.
20806         * po/el.po: Update.
20807         * po/eo.po: Update.
20808         * po/es.po: Update.
20809         * po/fi.po: Update.
20810         * po/fr.po: Update.
20811         * po/gl.po: Update.
20812         * po/hr.po: Update.
20813         * po/hu.po: Update.
20814         * po/ia.po: Update.
20815         * po/id.po: Update.
20816         * po/it.po: Update.
20817         * po/ja.po: Update.
20818         * po/ko.po: Update.
20819         * po/lt.po: Update.
20820         * po/nb.po: Update.
20821         * po/nl.po: Update.
20822         * po/pl.po: Update.
20823         * po/pt_BR.po: Update.
20824         * po/ru.po: Update.
20825         * po/rw.po: Update.
20826         * po/sk.po: Update.
20827         * po/sl.po: Update.
20828         * po/sv.po: Update.
20829         * po/tr.po: Update.
20830         * po/uk.po: Update.
20831         * po/vi.po: Update.
20832         * po/zh_CN.po: Update.
20833         * po/zh_TW.po: Update.
20834
20835         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20836         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20837         * sysdeps/hppa/dl-irel.h: Remove #warning.
20838         * sysdeps/hppa/entry.h: Provide prototype for
20839         __canonicalize_funcptr_for_compare and cast argument.
20840         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20841         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20842         * sysdeps/hppa/sotruss-lib.c: New file.
20843         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20844         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20845         (atomic_compare_and_exchange_bool_acq): Likewise.
20846         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20847         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20848
20849         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20850         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20851         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20852
20853 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20854
20855         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20856         called function in non-PIC case.
20857
20858 2015-01-31  David S. Miller  <davem@davemloft.net>
20859
20860         * sysdeps/sparc/sparc32/bits/atomic.h
20861         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20862         unlock not after it.
20863         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20864         volatile register usage warnings from the compiler.
20865
20866         * sysdeps/sparc/nptl/sem_init.c: Delete.
20867         * sysdeps/sparc/nptl/sem_post.c: Delete.
20868         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20869         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20870         * sysdeps/sparc/sparc32/sem_init.c: New file.
20871         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20872         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20873         padding explicitly initialized.
20874         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20875         padding for in-semaphore spinlock.
20876         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20877         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20878         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20879         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20880         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20881         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20882         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20883         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20884         version.
20885         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20886         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20887
20888 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20889
20890         [BZ #17801]
20891         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20892         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20893         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20894         New.
20895         (index_AVX_Fast_Unaligned_Load): Likewise.
20896         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20897         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20898         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20899         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20900         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20901         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20902         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20903         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20904         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20905
20906 2015-01-29  Andreas Schwab  <schwab@suse.de>
20907
20908         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20909
20910 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20911
20912         [BZ #17892]
20913         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20914
20915 2015-01-28  Martin Sebor  <msebor@redhat.com>
20916
20917         * math/README.libm-test: Clarify. Add "How to read the test output."
20918
20919 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20920
20921         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20922         Define to 0.
20923
20924 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20925
20926         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20927         (__HAVE_64B_ATOMICS): Define to 0.
20928
20929 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20930
20931         [BZ #17885]
20932         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20933         value to set as new flag.
20934
20935         [BZ #16576]
20936         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20937         and use _ARCH_PPCSQ instead.
20938         (__ieee754_sqrt): Likewise.
20939         (__ieee754_sqrtf): Likewise.
20940         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20941         _ARCH_PPCSQ is defined.
20942         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20943         fsqrt instruction.
20944         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20945         _ARCH_PPCSQ is defined.
20946         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20947         fsqrts instruction.
20948         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20949
20950 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20951
20952         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20953         bug (GCC BZ #64739).
20954
20955 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20956
20957         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20958         Mark _retval as used.
20959         (lll_futex_wake_unlock): Likewise.
20960         (lll_futex_timed_wait_requeue_pi): Likewise.
20961
20962         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20963         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20964         register variables.
20965
20966         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20967         libm_hidden_def.
20968
20969         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20970         (__bswap_64): Mark as __always_inline.
20971
20972 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20973
20974         [BZ #15378]
20975         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20976         when none of the search directories exist.
20977
20978 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20979
20980         [BZ #17869]
20981         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20982         power8 in .machine directive.
20983
20984         [BZ #17868]
20985         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20986         set dependency from opd value.
20987
20988 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20989
20990         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20991         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20992         architecture.
20993
20994 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20995
20996         [BZ #17870]
20997         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20998         with uint64_t.
20999         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21000         (uint64_t) 1.
21001         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21002         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21003         Replace 1UL with (uint64_t) 1.
21004         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21005         int with uint64_t.
21006
21007 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21008
21009         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21010         (if_freenameindex): Likewise.
21011
21012         * resource/getrlimit64.c: Add missing libc_hidden_def.
21013
21014 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21015
21016         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21017         __label__.
21018         (_FP_FMA): Likewise.
21019         (_FP_TO_INT_ROUND): Likewise.
21020         (_FP_FROM_INT): Likewise.
21021
21022 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21023
21024         [BZ #16418]
21025         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21026         Make code racy and cancel safe.
21027
21028 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21029
21030         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21031         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21032         attribution.
21033
21034         * pwd/tst-getpw.c: Rewrite.
21035
21036         [BZ #17702]
21037         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21038         (modules-names): Add moddummy1 and moddummy2.
21039         ($(objpfx)tst-rec-dlopen): Define.
21040         * dlfcn/moddummy1.c: New file.
21041         * dlfcn/moddummy2.c: New file.
21042         * dlfcn/tst-rec-dlopen.c: New file.
21043         * elf/dl-cache.c (_dl_load_cache_lookup):
21044         Return char*. Copy result with alloca/strcpy/strdup.
21045         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21046         returns char*. Free cached. If not saving realname
21047         free cached.
21048         * elf/dl-open.c (dl_open_worker): Do not assert that
21049         _r_debug->r_state is RT_CONSISTENT.
21050         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21051         returns char*.
21052
21053 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21054             Carlos O'Donell  <carlos@redhat.com>
21055
21056         [BZ #12674]
21057         * nptl/sem_waitcommon.c: New file.
21058         * nptl/sem_wait.c: Include sem_waitcommon.c.
21059         (__sem_wait_cleanup, do_futex_wait): Remove.
21060         (__new_sem_wait): Adapt.
21061         (__new_sem_trywait): New function.
21062         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21063         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21064         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21065         (sem_timedwait): Adapt.
21066         * nptl/sem_post.c (__new_sem_post): Adapt.
21067         (futex_wake): New function.
21068         (__old_sem_post): Add release MO fence.
21069         * nptl/sem_open.c (sem_open): Adapt.
21070         * nptl/sem_init.c (__new_sem_init): Adapt.
21071         (futex_private_if_supported): New function.
21072         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21073         (__old_sem_getvalue): Add using previous code.
21074         * sysdeps/nptl/internaltypes.h: Adapt.
21075         * nptl/tst-sem13.c (do_test): Adapt.
21076         * nptl/tst-sem11.c (main): Adapt.
21077         * nptl/sem_trywait.c: Remove.
21078         * nptl/DESIGN-sem.txt: Remove.
21079         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21080         (gen-as-const-headers): Remove structsem.sym.
21081         * nptl/structsem.sym: Remove.
21082         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21083         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21084         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21085         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21086         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21087         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21088         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21089         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21090         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21091         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21092         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21093         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21094         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21095         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21096         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21097         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21098         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21099         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21100         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21101         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21102         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21103         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21104
21105 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21106
21107         * INSTALL: Regenerated.
21108
21109         * po/libc.pot: Regenerated.
21110
21111 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21112             Sandra Loosemore  <sandra@codesourcery.com>
21113             Andrew Jenner  <andrew@codesourcery.com>
21114             Joseph Myers  <joseph@codesourcery.com>
21115             Nathan Sidwell  <nathan@codesourcery.com>
21116
21117         * NEWS: Mention new Nios II port.
21118         * sysdeps/nios2/Implies: New file.
21119         * sysdeps/nios2/Makefile: New file.
21120         * sysdeps/nios2/Subdirs: New file.
21121         * sysdeps/nios2/Versions: New file.
21122         * sysdeps/nios2/__longjmp.S: New file.
21123         * sysdeps/nios2/abort-instr.h: New file.
21124         * sysdeps/nios2/backtrace.c: New file.
21125         * sysdeps/nios2/bits/endian.h: New file.
21126         * sysdeps/nios2/bits/fenv.h: New file.
21127         * sysdeps/nios2/bits/link.h: New file.
21128         * sysdeps/nios2/bits/setjmp.h: New file.
21129         * sysdeps/nios2/bsd-_setjmp.S: New file.
21130         * sysdeps/nios2/bsd-setjmp.S: New file.
21131         * sysdeps/nios2/configure: New generated file.
21132         * sysdeps/nios2/configure.ac: New file.
21133         * sysdeps/nios2/crti.S: New file.
21134         * sysdeps/nios2/crtn.S: New file.
21135         * sysdeps/nios2/dl-init.c: New file.
21136         * sysdeps/nios2/dl-machine.h: New file.
21137         * sysdeps/nios2/dl-sysdep.h: New file.
21138         * sysdeps/nios2/dl-tls.h: New file.
21139         * sysdeps/nios2/dl-trampoline.S: New file.
21140         * sysdeps/nios2/gccframe.h: New file.
21141         * sysdeps/nios2/gmp-mparam.h: New file.
21142         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21143         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21144         * sysdeps/nios2/ldsodefs.h: New file.
21145         * sysdeps/nios2/libc-tls.c: New file.
21146         * sysdeps/nios2/libm-test-ulps: New file.
21147         * sysdeps/nios2/machine-gmon.h: New file.
21148         * sysdeps/nios2/math-tests.h: New file.
21149         * sysdeps/nios2/math_private.h: New file.
21150         * sysdeps/nios2/memusage.h: New file.
21151         * sysdeps/nios2/nptl/Makefile: New file.
21152         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21153         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21154         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21155         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21156         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21157         * sysdeps/nios2/nptl/tls.h: New file.
21158         * sysdeps/nios2/preconfigure: New file.
21159         * sysdeps/nios2/s_fma.c: New file.
21160         * sysdeps/nios2/s_fmaf.c: New file.
21161         * sysdeps/nios2/setjmp.S: New file.
21162         * sysdeps/nios2/sfp-machine.h: New file.
21163         * sysdeps/nios2/sotruss-lib.c: New file.
21164         * sysdeps/nios2/stackguard-macros.h: New file.
21165         * sysdeps/nios2/stackinfo.h: New file.
21166         * sysdeps/nios2/start.S: New file.
21167         * sysdeps/nios2/sysdep.h: New file.
21168         * sysdeps/nios2/tls-macros.h: New file.
21169         * sysdeps/nios2/tst-audit.h: New file.
21170         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21171         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21172         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21173         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21174         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21175         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21176         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21177         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21178         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21179         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21180         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21181         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21182         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21183         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21184         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21185         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21186         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21187         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21188         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21189         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21190         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21191         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21192         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21193         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21194         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21195         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21196         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21197         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21198         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21199         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21200         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21201         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21202         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21203         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21204         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21205         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21206         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21207         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21208         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21209         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21210         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21211         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21212         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21213         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21214
21215 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21216
21217         [BZ #17844]
21218         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21219         (getutent): Use weak_alias in non SHARED case
21220         and default_symbol_version in SHARED case.
21221         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21222         (getutent_r, pututline): Likewise.
21223         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21224         (getutid): Likewise.
21225         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21226         (getutid_r): Likewise.
21227         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21228         (getutline): Likewise.
21229         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21230         (getutline_r): Likewise.
21231         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21232         (updwtmp): Likewise.
21233
21234 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21235
21236         [BZ #17848]
21237         * sysdeps/s390/s390-32/memcmp.S
21238         (memcmp_g5): Rename to __memcmp_g5.
21239         * sysdeps/s390/s390-32/memcpy.S
21240         (memcpy_g5): Rename to __memcpy_g5.
21241         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21242         (memcpy_mvcle) Rename to __memcpy_mvcle.
21243         * sysdeps/s390/s390-32/memset.S
21244         (memset_g5): Rename to __memset_g5.
21245         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21246         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21247         and use prefixed functions.
21248         * sysdeps/s390/s390-32/multiarch/memcmp.S
21249         (memcmp_z196): Rename to __memcmp_z196.
21250         (memcmp_z10): Rename to __memcmp_z10.
21251         (memcmp): Set alias to __memcmp_g5.
21252         (bcmp): Set alias to __memcmp_g5.
21253         * sysdeps/s390/s390-32/multiarch/memcpy.S
21254         (memcpy_z196): Rename to __memcpy_z196.
21255         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21256         (memcpy_z10): Rename to __memcpy_z10.
21257         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21258         (memcpy): Set alias to __memcpy_g5.
21259         * sysdeps/s390/s390-32/multiarch/memset.S
21260         (memset_z196): Rename to __memset_z196.
21261         Jump to __memset_mvcle instead of memset_mvcle.
21262         (memset_z10): Rename to __memset_z10.
21263         Jump to __memset_mvcle instead of memset_mvcle.
21264         (memset_mvcle) Rename to __memset_mvcle.
21265         (memset): Set alias to __memset_g5.
21266         * sysdeps/s390/s390-64/memcmp.S
21267         (memcmp_z900): Rename to __memcmp_z900.
21268         * sysdeps/s390/s390-64/memcpy.S
21269         (memcpy_z900): Rename to __memcpy_z900.
21270         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21271         (memcpy_mvcle) Rename to __memcpy_mvcle.
21272         * sysdeps/s390/s390-64/memset.S
21273         (memset_z900): Rename to __memset_z900.
21274         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21275         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21276         and use prefixed functions.
21277         * sysdeps/s390/s390-64/multiarch/memcmp.S
21278         (memcmp_z196): Rename to __memcmp_z196.
21279         (memcmp_z10): Rename to __memcmp_z10.
21280         (memcmp): Set alias to __memcmp_z900.
21281         (bcmp): Set alias to __memcmp_z900.
21282         * sysdeps/s390/s390-64/multiarch/memcpy.S
21283         (memcpy_z196): Rename to __memcpy_z196.
21284         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21285         (memcpy_z10): Rename to __memcpy_z10.
21286         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21287         (memcpy): Set alias to __memcpy_z900.
21288         * sysdeps/s390/s390-64/multiarch/memset.S
21289         (memset_z196): Rename to __memset_z196.
21290         Jump to __memset_mvcle instead of memset_mvcle.
21291         (memset_z10): Rename to __memset_z10.
21292         Jump to __memset_mvcle instead of memset_mvcle.
21293         (memset_mvcle) Rename to __memset_mvcle.
21294         (memset): Set alias to __memset_z900.
21295
21296 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21297
21298         [BZ #17748]
21299         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21300         __fesetenv instead of fesetenv.
21301
21302 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21303
21304         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21305         macro.
21306
21307 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21308
21309         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21310         regression on LE.
21311
21312         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21313         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21314         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21315         strncmp-power8 object.
21316         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21317         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21318         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21319         * NEWS: Update.
21320
21321 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21322             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21323
21324         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21325         trailing byte check.
21326
21327 2015-01-13  David S. Miller  <davem@davemloft.net>
21328
21329         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21330
21331 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21332
21333         * login/logout.c (logout): Use memset rather than bzero.
21334         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21335         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21336         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21337         (_gethtbyaddr): Likewise.
21338         * locale/programs/simple-hash.c (bcopy): Macro removed.
21339
21340 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21341
21342         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21343         Add strcmp-power8 object.
21344         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21345         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21346         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21347         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21348         __strcmp_power8 implementation.
21349         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21350         * NEWS: Update.
21351
21352         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21353         Add strncpy-power8 and stpncpy-power8 objects.
21354         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21355         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21356         implementations.
21357         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21358         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21359         __stpncpy_power8 implementation.
21360         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21361         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21362         __strncpy_power8 implementation.
21363         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21364         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21365         * NEWS: Update.
21366
21367         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21368         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21369         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21370
21371         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21372         strncat-power8 object.
21373         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21374         __strcat_power8 implementation.
21375         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21376         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21377         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21378         optimized strcat for power8.
21379
21380         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21381         strcpy-power8 and stpcpy-power8 objects.
21382         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21383         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21384         implementations.
21385         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21386         multiarch stpcpy implementation for POWER8.
21387         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21388         multiarch strcpy implementation for POWER8.
21389         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21390         __strcpy_power8 function.
21391         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21392         stpcpy for POWER8.
21393         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21394         strcpy for POWER8.
21395         * NEWS: Update.
21396
21397 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21398
21399         [BZ #16009]
21400         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21401         weights and rules. Use do_xfrm_cached if data fits in cache,
21402         do_xfrm otherwise.  Moved former main loop to...
21403         * (do_xfrm_cached): New function.
21404         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21405         find_idx, find_position and stack_push.
21406         * (find_idx): New function.
21407         * (find_position): Likewise.
21408         * localedata/sort-test.sh: Added test run for do_xfrm.
21409         * localedata/xfrm-test.c (main): Added command line option
21410         -nocache to run the test with strings that are too large for
21411         the STRXFRM cache.
21412
21413 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21414
21415         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21416         variable to lll_futex_wake call, not the value itself.
21417
21418 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21419
21420         [BZ #17803]
21421         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21422         twom64.  Adjust value to 0x1p-64L.
21423         (__scalblnl): Only return standard underflowing result for K <=
21424         -64 not K <= -63; adjust exponent for underflowing result by 64
21425         not 63.
21426         * math/libm-test.inc (scalbn_test_data): Add more tests.
21427         (scalbln_test_data): Likewise.
21428
21429         [BZ #17834]
21430         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21431         0x1p63L.
21432         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21433         not HX.
21434         * math/libm-test.inc (scalbn_test_data): Add more tests.
21435         (scalbln_test_data): Likewise.
21436
21437 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21438             Stefani Seibold  <stefani@seibold.net>
21439
21440         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21441         (sysdep_routines): Add dl-vdso here, ...
21442         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21443         (sysdep_routines): ... not here.
21444         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21445         fallback when vDSO is not presented.
21446         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21447         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21448         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21449         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21450         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21451         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21452         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21453         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21454         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21455         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21456         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21457         fallback configurable symbol when vDSO is not available.
21458         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21459         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21460         be able to redefine fallback symbol when vDSO is not available.
21461         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21462         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21463
21464 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21465
21466         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21467         (TLS_INIT_TP): Add tm_capable initialization.
21468         (TLS_DEFINE_INIT_TP): Likewise.
21469         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21470         TCB.
21471         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21472         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21473         calculation.
21474         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21475         transactoion is lock elision is built and TCB tm_capable is set.
21476         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21478         (INTERNAL_SYSCALL_NCS): Likewise.
21479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21480         (INTERNAL_SYSCALL_NCS): Likewise.
21481         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21482
21483         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21484         for powerpc.
21485         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21486         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21487         and remove it for 32 bits case.
21488         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21489         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21490         initialization.
21491         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21492         Disable lock elision with rdlocks if elision is not available.
21493
21494         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21495         (sysdep_routines): Add lock elision objects.
21496         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21497         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21498         [pthread_mutex_t] (__elision): Add field.
21499         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21500         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21501         elision definitions for powerpc.
21502         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21503         implementation of lock elision for powerpc.
21504         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21505         implementation of timed lock elision for powerpc.
21506         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21507         implementation of trylock with lock elision for powerpc.
21508         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21509         implementaion of unlock for lock elision for powerpc.
21510         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21511         automatic enable lock elision for mutexes.
21512         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21513         transaction execution definitions for powerpc.
21514         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21515         definitions.
21516         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21517         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21518         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21519         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21520         * NEWS: Update.
21521
21522 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21523
21524         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21525         for #include of <shm-directory.h>.
21526
21527 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21528
21529         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21530         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21531
21532 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21533
21534         [BZ #17791]
21535         * NEWS: Mention bug fix.
21536         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21537         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21538         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21539
21540 2015-01-09  Torvald Riegel <triegel@redhat.com>
21541
21542         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21543
21544 2015-01-09  Torvald Riegel <triegel@redhat.com>
21545
21546         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21547
21548 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21549
21550         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21551         pointer and cast to uintptr_t.
21552
21553 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21554
21555         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21556         removed.
21557         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21558
21559 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21560
21561         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21562         of 0.
21563
21564 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21565
21566         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21567         <nptl/pthreadP.h> instead.
21568         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21569
21570         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21571         already defined.
21572         [__SIGRTMIN] (init): Function removed.
21573         [__SIGRTMIN] (initialized): Variable removed.
21574         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21575         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21576         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21577         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21578         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21579         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21580         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21581         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21582         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21583         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21584         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21585         * sysdeps/nptl/allocrtsig.c: New file.
21586         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21587         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21588         * sysdeps/generic/testrtsig.h: File removed.
21589
21590         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21591         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21592
21593         * nptl/nptl-init.c (pthread_functions): Conditionalize
21594         .ptr__nptl_setxid initialization on [SIGSETXID].
21595
21596         * sysdeps/nptl/sys/procfs.h: New file.
21597         * nptl_db/Makefile (headers): Add it.
21598         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21599
21600         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21601         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21602         * nptl/pthread_attr_setaffinity.c: Include it.
21603         * nptl/pthread_setattr_default_np.c: Likewise.
21604         * nptl/check-cpuset.h: New file.
21605
21606 2015-01-08  Richard Henderson  <rth@redhat.com>
21607
21608         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21609         (CFLAGS-tst-execstack-prog.c): Likewise.
21610         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21611
21612 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21613             Sandra Loosemore  <sandra@codesourcery.com>
21614             Andrew Jenner  <andrew@codesourcery.com>
21615             Joseph Myers  <joseph@codesourcery.com>
21616             Nathan Sidwell  <nathan@codesourcery.com>
21617
21618         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21619         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21620         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21621         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21622         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21623         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21624         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21625         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21626         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21627         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21628         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21629         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21630         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21631         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21632         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21633         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21634         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21635
21636 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21637
21638         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21639         timespec struct member in syscall macro.
21640         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21641         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21642         first timeval struct member in syscall macro.
21643         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21644
21645 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21646
21647         [BZ #17748]
21648         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21649         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21650         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21651         __feupdateenv and define as weak alias of __feupdateenv.  Use
21652         libm_hidden_weak.
21653         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21654         libm_hidden_def.
21655         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21656         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21657         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21658         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21659         libm_hidden_def.
21660         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21661         __feupdateenv and define as weak alias of __feupdateenv.  Use
21662         libm_hidden_weak.
21663         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21664         libm_hidden_def.
21665         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21666         __feupdateenv and define as weak alias of __feupdateenv.  Use
21667         libm_hidden_weak.
21668         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21669         libm_hidden_def.
21670         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21671         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21672         (__feupdateenv): Likewise.
21673         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21674         __feupdateenv and define as weak alias of __feupdateenv.  Use
21675         libm_hidden_weak.
21676         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21677         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21678         libm_hidden_def.
21679         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21680         function.
21681         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21682         libm_hidden_def.
21683         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21684         __feupdateenv instead of feupdateenv.
21685         (default_libc_feupdateenv_test): Likewise.
21686         (libc_feresetround_ctx): Likewise.
21687
21688 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21689
21690         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21691         prototype.
21692
21693 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21694
21695         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21696         COLL_SYM in a couple of places to avoid uninitialized variable
21697         wanings on tilegx gcc 4.8.2.
21698
21699 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21700
21701         * sysdeps/aarch64/strcpy.S: New file.
21702         * sysdeps/aarch64/stpcpy.S: New file.
21703         * NEWS: Updated.
21704
21705 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21706
21707         * sysdeps/aarch64/strrchr.S: New file.
21708         * NEWS: Updated.
21709
21710 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21711
21712         [BZ #17658]
21713         * stdlib/setenv.c: Fix memory leak when setting large,
21714         duplicate string.
21715
21716 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21717
21718         [BZ #17273]
21719         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21720         and tabs from buffer before parsing fstab entry.
21721         * misc/tst-mntent.c (main): Add test for mount entry with
21722         trailing spaces and tabs.
21723
21724 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21725
21726         [BZ #17748]
21727         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21728         * math/fesetround.c (fesetround): Rename to __fesetround and
21729         define as weak alias of __fesetround.  Use libm_hidden_weak.
21730         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21731         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21732         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21733         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21734         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21735         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21736         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21737         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21738         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21739         __fesetround_inline.
21740         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21741         __fesetround_inline instead of __fesetround.
21742         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21743         __fesetround and define as weak alias of __fesetround.  Use
21744         libm_hidden_weak.  Call __fesetround_inline instead of
21745         __fesetround.
21746         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21747         __fesetround and define as weak alias of __fesetround.  Use
21748         libm_hidden_weak.
21749         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21750         Likewise.
21751         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21752         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21753         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21754         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21755         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21756         __fesetround and define as weak alias of __fesetround.  Use
21757         libm_hidden_weak.
21758         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21759         __fesetround instead of fesetround.
21760         (default_libc_feholdexcept_setround): Likewise.
21761         (libc_feholdsetround_ctx): Likewise.
21762         (libc_feholdsetround_noex_ctx): Likewise.
21763
21764         [BZ #17748]
21765         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21766         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21767         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21768         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21769         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21770         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21771         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21772         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21773         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21774         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21775         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21776         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21777         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21778         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21779         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21780         libm_hidden_def.
21781         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21782         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21783         Likewise.
21784         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21785         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21786         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21787         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21788         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21789         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21790         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21791         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21792         __fesetenv instead of fesetenv.
21793         (libc_feresetround_noex_ctx): Likewise.
21794         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21795         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21796         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21797         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21798         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21799         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21800         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21801         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21802         (__feupdateenv): Likewise.
21803         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21804         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21805         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21806         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21807
21808 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21809
21810         [BZ #17806]
21811         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21812         addresses have been freed.
21813
21814 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21815
21816         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21817         and nservall.
21818
21819 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21820
21821         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21822         Clean up check_pf allocation pattern. addresses
21823
21824 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21825
21826         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21827         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21828         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21829         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21830         * nptl/pthread_join.c (pthread_join): Likewise.
21831         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21832         * sysdeps/posix/waitid.c (__waitid): Likewise.
21833         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21834         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21835         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21836         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21837         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21838         Likewise.
21839         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21840         (__libc_pread64): Likewise.
21841         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21842         (__libc_pwrite): Likewise.
21843         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21844         (__libc_pwrite64): Likewsie.
21845         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21846         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21847         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21848         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21849         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21850         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21851         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21853         Likewise.
21854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21855         (__libc_pread64): Likewise.
21856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21857         Likewise.
21858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21859         (__libc_pwrite64): Likewise.
21860         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21861         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21862         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21863         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21864         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21865         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21866         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21867         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21868         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21869         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21870         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21871         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21872         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21873         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21874         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21875         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21876         Likewise.
21877
21878 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21879
21880         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21881         (CFLAGS-test-double.c): Likewise.
21882         (CFLAGS-test-ldouble.c): Likewise.
21883         (CPPFLAGS-test-ifloat.c): Likewise.
21884         (CPPFLAGS-test-idouble.c): Likewise.
21885         (CPPFLAGS-test-ildoubl.c): Likewise.
21886         (CFLAGS-test-test-fenv.c): Remove variable.
21887         (CFLAGS-test-misc.c): Likewise.
21888
21889 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21890
21891         [BZ #17797]
21892         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21893         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21894         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21895         CLOCKS_PER_SEC == 1000000.
21896         * time/clocktest.c (main): Replace %ld with %jd and cast to
21897         intmax_t.
21898
21899 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21900
21901         * sysdeps/generic/unwind-resume.h: New file.
21902         * sysdeps/gnu/unwind-resume.c: Include it.
21903         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21904         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21905         argument list.
21906         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21907         global rather than static.
21908         (_Unwind_Resume): Update user.
21909         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21910         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21911         rather than static.  Add __attribute__ ((cold)).
21912         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21913         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21914         * sysdeps/arm/arm-unwind-resume.S: New file.
21915         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21916         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21917         * sysdeps/arm/Makefile [$(subdir) = csu]
21918         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21919         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21920         Add rt-arm-unwind-resume.
21921         [$(subdir) = nptl]
21922         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21923         Add pt-arm-unwind-resume.
21924         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21925         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21926
21927 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21928
21929         [BZ #17748]
21930         * include/fenv.h (__feholdexcept): Declare.  Use
21931         libm_hidden_proto.
21932         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21933         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21934         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21935         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21936         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21937         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21938         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21939         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21940         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21941         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21942         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21943         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21944         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21945         (feholdexcept): Likewise.
21946         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21947         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21948         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21949         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21950         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21951         __feholdexcept instead of feholdexcept.
21952         (default_libc_feholdexcept_setround): Likewise.
21953
21954 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21955
21956         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21957         to avoid using stl/str to align destination.
21958
21959 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21960
21961         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21962
21963 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21964
21965         [BZ #17796]
21966         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21967         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21968         Define as weak alias not strong alias.
21969
21970 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21971
21972         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21973         bltzal with addiupc.
21974         (RTLD_START): Ditto.
21975
21976 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21977
21978         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21979         for __vdso_* functions in declarations.
21980         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21981         definitions.
21982         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21983         INTERNAL_VSYSCALL): Use struct return types to check for error.
21984
21985         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21986         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21987         function with cast from llround().
21988         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21989         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21990         Define.
21991
21992 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21993
21994         [BZ #17793]
21995         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21996         Define as weak alias not strong alias.
21997
21998         [BZ #17635]
21999         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22000         ...
22001         * ctype/ctype-extn.c: ... here.
22002         (__isblank_l): Move to ...
22003         * ctype/ctype-c99_l.c: ... here.  New file.
22004         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22005         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22006         Remove variable.
22007         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22008         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22009         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22010         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22011         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22012
22013         [BZ #17777]
22014         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22015         (posix_fadvise64): Define as weak alias not strong alias.
22016         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22017         (posix_fallocate64): Likewise.
22018         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22019         Remove variable.
22020         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22021         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22022         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22023         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22024         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22025
22026 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22027
22028         [BZ #16191]
22029         * NEWS: Mention bug fix.
22030         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22031         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22032         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22033         (HOST_STACK_END_ADDR): Likewise.
22034
22035 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22036
22037         [BZ #17748]
22038         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22039         * math/fegetround.c (fegetround): Rename to __fegetround and
22040         define as weak alias of __fegetround.  Use libm_hidden_weak.
22041         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22042         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22043         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22044         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22045         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22046         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22047         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22048         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22049         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22050         Undefine after rather than before function definition; use
22051         parentheses around function name in definition.
22052         (__fegetround): Also undefine macro after function definition.
22053         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22054         __fegetround and define as weak alias of __fegetround.  Use
22055         libm_hidden_weak.  Do not undefine as macro.
22056         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22057         Likewise.
22058         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22059         __fegetround and define as weak alias of __fegetround.  Use
22060         libm_hidden_weak.
22061         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22062         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22063         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22064         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22065         __fegetround and define as weak alias of __fegetround.  Use
22066         libm_hidden_weak.
22067         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22068         __fegetround instead of fegetround.
22069
22070         [BZ #17782]
22071         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22072         Condition macro definition on [__USE_MISC].
22073
22074         [BZ #17781]
22075         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22076         (struct sigaction): Change type of sa_flags field to int.
22077
22078         [BZ #17780]
22079         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22080         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22081         __glibc_reserved0.
22082
22083         * nptl/version.c (banner): Use single year in copyright notice.
22084
22085         * NEWS: Update copyright dates.
22086         * catgets/gencat.c (print_version): Likewise.
22087         * csu/version.c (banner): Likewise.
22088         * debug/catchsegv.sh: Likewise.
22089         * debug/pcprofiledump.c (print_version): Likewise.
22090         * debug/xtrace.sh (do_version): Likewise.
22091         * elf/ldconfig.c (print_version): Likewise.
22092         * elf/ldd.bash.in: Likewise.
22093         * elf/pldd.c (print_version): Likewise.
22094         * elf/sotruss.sh: Likewise.
22095         * elf/sprof.c (print_version): Likewise.
22096         * iconv/iconv_prog.c (print_version): Likewise.
22097         * iconv/iconvconfig.c (print_version): Likewise.
22098         * locale/programs/locale.c (print_version): Likewise.
22099         * locale/programs/localedef.c (print_version): Likewise.
22100         * login/programs/pt_chown.c (print_version): Likewise.
22101         * malloc/memusage.sh (do_version): Likewise.
22102         * malloc/memusagestat.c (print_version): Likewise.
22103         * malloc/mtrace.pl: Likewise.
22104         * manual/libc.texinfo: Likewise.
22105         * nptl/version.c (banner): Likewise.
22106         * nscd/nscd.c (print_version): Likewise.
22107         * nss/getent.c (print_version): Likewise.
22108         * nss/makedb.c (print_version): Likewise.
22109         * posix/getconf.c (main): Likewise.
22110         * scripts/test-installation.pl: Likewise.
22111         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22112
22113 2015-01-02  Will Newton  <will.newton@linaro.org>
22114
22115         * sysdeps/arm/armv7/configure: Removed.
22116         * sysdeps/arm/armv7/configure.ac: Likewise.
22117
22118 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22119
22120         * All files with FSF copyright notices: Update copyright dates
22121         using scripts/update-copyrights.
22122         * intl/plural.c: Regenerated.
22123         * locale/programs/charmap-kw.h: Likewise.
22124         * locale/programs/locfile-kw.h: Likewise.
22125
22126 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22127
22128         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22129
22130 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22131
22132         [BZ #17748]
22133         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22134         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22135         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22136         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22137         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22138         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22139         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22140         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22141         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22142         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22143         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22144         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22145         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22146         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22147         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22148         libm_hidden_def.
22149         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22150         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22151         Likewise.
22152         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22153         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22154         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22155         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22156         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22157         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22158         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22159         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22160         __fegetenv instead of fegetenv.
22161         (libc_feholdsetround_noex_ctx): Likewise.
22162
22163 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22164
22165         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22166         (Elf_MIPS_ABIFlags_v0): New structure.
22167         (EF_MIPS_FP64): Define.
22168         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22169         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22170         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22171         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22172         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22173         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22174         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22175         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22176         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22177         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22178         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22179         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22180         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22181         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22182         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22183         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22184         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22185         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22186         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22187         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22188         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22189         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22190         field.
22191         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22192         EF_MIPS_FP64.
22193         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22194         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22195         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22196         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22197         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22198         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22199         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22200         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22201         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22202         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22203         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22204         record the current FP ABI extension.
22205         (mips-mode-switch): Define to show if kernel headers support mode
22206         switching.
22207         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22208         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22209         supported SYSV ABI version to 3.
22210         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22211         feature.
22212
22213 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22214             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22215
22216         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22217         path.
22218         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22219
22220 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22221
22222         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22223         __fegetround and redefine to call __fegetround.  Remove condition
22224         on [!__NO_MATH_INLINES].
22225         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22226         function.
22227         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22228         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22229         Remove macro.
22230         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22231         instead of <fenv_libc.h>.
22232         (__llrintl): Call fegetround instead of __fegetround.
22233         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22234         instead of <fenv_libc.h>.
22235         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22236         (__lrintl): Call fegetround instead of __fegetround.
22237         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22238         instead of <fenv_libc.h>.
22239         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22240         (__rintl): Call fegetround instead of __fegetround.
22241
22242 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22243
22244         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22245         arrays.
22246
22247 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22248
22249         [BZ #17775]
22250         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22251         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22252         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22253
22254 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22255
22256         * sysdeps/i386/tls-macros.h: Include <features.h>.
22257         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22258         (TLS_IE): Likewise.
22259         (TLS_LD): Likewise.
22260         (TLS_GD): Likewise.
22261         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22262         define for GCC >= 5.0.
22263
22264 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22265
22266         * math/test-fenv.c (test_single_exception, set_single_exc,
22267         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22268         feexcp_mask_test, feenable_test, fe_single_test): Add
22269         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22270         case where they are not used.
22271         * math/libm-test.inc: Likewise.
22272         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22273         unused in the absence of FP rounding/exception support.
22274         * stdio-common/tst-printf-round.c: Likewise.
22275         * stdlib/tst-strtod-round.c: Likewise.
22276         * stdlib/tst-strtod-underflow.c: Likewise.
22277
22278 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22279
22280         [BZ #17723]
22281         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22282         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22283         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22284         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22285         libm_hidden_weak.
22286         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22287         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22288         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22289         libm_hidden_def.
22290         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22291         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22292         libm_hidden_weak.
22293         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22294         Likewise.
22295         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22296         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22297         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22298         libm_hidden_weak.
22299         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22300         libm_hidden_def.
22301         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22302         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22303         (__feraiseexcept): Likewise.
22304         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22305         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22306         libm_hidden_weak.
22307         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22308         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22309         libm_hidden_def.
22310         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22311         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22312         Use libm_hidden_def.
22313         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22314         libm_hidden_def.
22315         (feraiseexcept): Define as weak not strong alias.  Use
22316         libm_hidden_weak.
22317         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22318         New inline function.  Factored out of ...
22319         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22320         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22321         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22322         feraiseexcept.
22323         * math/w_acos.c (__acos): Likewise.
22324         * math/w_asin.c (__asin): Likewise.
22325         * math/w_ilogb.c (__ilogb): Likewise.
22326         * math/w_j0.c (y0): Likewise.
22327         * math/w_j1.c (y1): Likewise.
22328         * math/w_jn.c (yn): Likewise.
22329         * math/w_log.c (__log): Likewise.
22330         * math/w_log10.c (__log10): Likewise.
22331         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22332         * sysdeps/aarch64/fpu/math_private.h
22333         (libc_feupdateenv_test_aarch64): Likewise.
22334         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22335         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22336         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22337         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22338         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22339         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22340         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22341         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22342         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22343         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22344
22345 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22346
22347         [BZ #17732]
22348         * io/test-utime.c (main): Replace %ld with %jd and cast to
22349         intmax_t.
22350         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22351         * nptl/tst-mutex5.c: Include <stdint.h>.
22352         (do_test): Replace %ld with %jd and cast to intmax_t.
22353         * posix/tst-regex.c (run_test): Likewise.
22354         (run_test_backwards): Likewise.
22355         * rt/tst-clock.c: Include <stdint.h>.
22356         (clock_test): Replace %ld with %jd and cast to intmax_t.
22357         * rt/tst-cpuclock1.c: Include <stdint.h>.
22358         (do_test): Replace %lu with %ju and cast to uintmax_t.
22359         * rt/tst-cpuclock2.c: Include <stdint.h>.
22360         (do_test): Replace %lu with %ju and cast to uintmax_t.
22361         * rt/tst-mqueue1.c: Include <stdint.h>.
22362         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22363         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22364         intmax_t.
22365         * rt/tst-mqueue4.c (do_test): Likewise.
22366         * rt/tst-timer4.c: Include <stdint.h>.
22367         (check_ts): Replace %ld with %jd and cast to intmax_t.
22368         (do_test): Likewise.
22369         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22370         and cast to intmax_t.
22371         * sysdeps/pthread/tst-timer.c (main): Likewise.
22372         * time/clocktest.c (main): Likewise.
22373         * time/tst-posixtz.c (do_test): Likewise.
22374         * timezone/tst-timezone.c (main): Likewise.
22375
22376 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22377             H.J. Lu  <hongjiu.lu@intel.com>
22378
22379         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22380         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22381         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22382         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22383         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22384         version if bit_Fast_Unaligned_Load is set.
22385         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22386         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22387         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22388         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22389         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22390         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22391         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22392         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22393         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22394         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22395         to 4.
22396         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22397         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22398         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22399         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22400
22401 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22402
22403         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22404         instead of #if to avoid a Wundef warning.
22405         * stdlib/tst-limits.c (do_test): Likewise.
22406
22407         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22408         parallel other exception macros.
22409         (fegetenv): Convert from macro to extern inline so that it applies
22410         retroactively to inline functions already seen by the compiler.
22411         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22412
22413         * posix/Makefile (before-compile): Use $(objpfx) for
22414         posix-conf-vars-def.h.
22415
22416 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22417
22418         * posix/getconf.c (main): Use size_t for type of I.
22419         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22420         NSPEC.
22421
22422         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22423         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22424         * posix/posix-envs.def: Likewise.
22425         * sysdeps/posix/sysconf.c: Likewise.
22426         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22427         (specs): Remove array.
22428         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22429         array.
22430
22431         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22432         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22433         (__sysconf): Use CONF_IS_* macros.
22434
22435         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22436         ($(objpfx)posix-conf-vars-def.h): New target.
22437         * posix/posix-conf-vars.list: New file.
22438         * posix/posix-conf-vars.h: New file.
22439         * posix/confstr.c: Include posix-conf-vars.h.
22440         (confstr): Use CONF_IS_* macros.
22441         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22442         CONF_IS_* macros.
22443         * scripts/gen-posix-conf-vars.awk: New file.
22444
22445 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22446
22447         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22448         fegetround): Add no-op macros to avoid linknamespace issues.
22449
22450         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22451         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22452
22453         * sysdeps/unix/sysv/linux/tile/sysdep.h
22454         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22455         assembly-specific section to avoid a redefinition warning.
22456
22457         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22458         long before casting to pointer to avoid a cast warning.
22459
22460 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22461
22462         * sysdeps/tile/tilegx/Implies: New file.
22463
22464 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22465
22466         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22467
22468 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22469
22470         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22471
22472 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22473
22474         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22475         not define.
22476         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22477         <kernel-features.h>.
22478         (__utimes) [__NR_utimes]: Make code unconditional.
22479         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22480         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22481         (__ASSUME_UTIMES): Do not undefine.
22482         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22483         (__ASSUME_UTIMES): Likewise.
22484         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22485         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22486         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22487         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22488
22489 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22490
22491         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22492
22493 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22494
22495         [BZ #17747]
22496         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22497         alias to weak alias for j0l, y0l.
22498         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22499         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22500
22501         [BZ #17746]
22502         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22503         conversion.
22504
22505 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22506
22507         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22508         to zero if not already defined.
22509
22510 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22511
22512         [BZ #17724]
22513         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22514         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22515         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22516         (char *) casts added.
22517         * sysdeps/ieee754/k_standardf.c: New file.
22518         * sysdeps/ieee754/k_standardl.c: Likewise.
22519         * math/Makefile (libm-support): Remove k_standard.
22520         (libm-calls): Add k_standard.
22521
22522 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22523
22524         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22525         Optimize to avoid an unnecessary FPCR read.
22526
22527 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22528
22529         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22530         Optimize to reduce FPCR/FPSR accesses.
22531
22532 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22533
22534         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22535         Call libc_fetestexcept_aarch64.
22536
22537 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22538
22539         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22540         Call libc_fesetround_aarch64.
22541
22542 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22543
22544         [BZ #17733]
22545         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22546         (__bind): Do not define as weak alias.
22547         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22548         define.
22549         (__getsockname): Do not define as weak alias.
22550
22551 2014-12-22  Will Newton  <will.newton@linaro.org>
22552
22553         * manual/install.texi: Document that we require bison 2.7
22554         or above.
22555         * INSTALL: Regenerate.
22556         * configure.ac: Use AC_CHECK_PROG_VER instead of
22557         AC_PATH_PROG when checking for bison and check for
22558         version 2.7 or above.
22559         * configure: Regenerate.
22560
22561 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22562
22563         [BZ #17745]
22564         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22565         * sysdeps/tile/ffsll.c (ffsll): To here.
22566
22567         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22568
22569 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22570
22571         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22572         if not defined.
22573         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22574         definition.
22575         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22576         hidden ___tls_get_addr.
22577         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22578         hidden __tls_get_addr.
22579         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22580         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22581         Likewise.
22582
22583 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22584
22585         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22586         _dl_init call.
22587
22588 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22589
22590         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22591         from "call _dl_init@PLT".
22592         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22593
22594 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22595
22596         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22597         guarantees.
22598
22599 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22600
22601         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22602
22603 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22604
22605         [BZ #17744]
22606         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22607         strnlen.
22608
22609 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22610
22611         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22612         of multu on MIPSr6.
22613         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22614         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22615         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22616         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22617         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22618
22619 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22620
22621         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22622         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22623         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22624         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22625         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22626         mips32r6/mips64r6.
22627         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22628
22629 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22630
22631         * string/strncat.c (STRNCAT): Simplify implementation.
22632
22633 2014-12-19  David S. Miller  <davem@davemloft.net>
22634
22635         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22636         access the quad as both a long double and as a series of 4 words.
22637
22638         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22639         link_map->l_info array access.
22640
22641 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22642
22643         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22644
22645         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22646         * math/atest-exp2.c (TIMEOUT): Likewise.
22647         * math/atest-sincos.c (TIMEOUT): Likewise.
22648
22649 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22650
22651         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22652         -Wno-error with -fno-builtin-lround.
22653
22654 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22655
22656         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22657         Contains futex constants and functions moved over from ...
22658         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22659         <lowlevellock-futex.h>.
22660         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22661         (lll_timedwait_tid): Add comments and parentheses around macro
22662         arguments.
22663
22664 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22665
22666         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22667         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22668         (__lll_private_flag): Remove.
22669         (lll_futex_wait): Likewise.
22670         (lll_futex_timed_wait): Likewise.
22671         (lll_futex_wake): Likewise.
22672         (lll_futex_requeue): Likewise.
22673         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22674         (__lll_timedwait_tid): Spell out argument names.
22675         (lll_timedwait_tid): Add comments and parentheses around macro
22676         arguments.
22677         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22678         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22679
22680 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22681
22682         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22683         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22684         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22685         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22686         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22687         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22688         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22689         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22690         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22691         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22692         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22693         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22694         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22695         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22696         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22697         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22698         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22699         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22700         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22701
22702 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22703
22704         * sysdeps/x86_64/x32/Makefile: New file.
22705
22706 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22707
22708         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22709         1L with (mp_limb_t) 1.
22710
22711 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22712
22713         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22714         * nptl/libc_pthread_init.c: ... here.
22715         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22716         * nptl/register-atfork.c: ... here.
22717
22718         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22719         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22720         Use assert_perror to check its return value.
22721         (__gai_create_helper_thread): Likewise.
22722
22723         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22724
22725         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22726
22727 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22728
22729         [BZ #17725]
22730         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22731         __profil_counter.
22732         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22733         Likewise.
22734         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22735         Likewise.
22736         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22737         Likewise.
22738         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22739         (profil_counter): Likewise.
22740         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22741         (profil_counter): Likewise.
22742         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22743         Likewise.
22744         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22745         Likewise.
22746         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22747         (profil_counter): Likewise.
22748         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22749         Likewise.
22750         [!__profil_counter] (profil_counter): Define as weak alias of
22751         __profil_counter.
22752         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22753         (profil_counter): Rename to __profil_counter.
22754         [!__profil_counter] (profil_counter): Define as weak alias of
22755         __profil_counter.
22756         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22757         (profil_counter): Rename to __profil_counter.
22758         [!__profil_counter] (profil_counter): Define as weak alias of
22759         __profil_counter.
22760         * sysdeps/posix/profil.c: Update comment referring to
22761         profil_counter.
22762         (__profil): Use __profil_counter instead of profil_counter.
22763         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22764         __profil_counter.  Use __profil_counter_ushort and
22765         __profil_counter_uint in definitions.
22766         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22767         instead of profil_counter_uint and profil_counter_ushort.
22768
22769         [BZ #17722]
22770         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22771         define as weak alias of __inet_makeaddr.
22772         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22773         as weak alias of __inet_addr.
22774         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22775         as weak alias of __inet_pton.  Use libc_hidden_weak.
22776         * include/arpa/inet.h (__inet_pton): Declare.  Use
22777         libc_hidden_proto.
22778         (inet_makeaddr): Don't use libc_hidden_proto.
22779         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22780         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22781         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22782         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22783         Remove variable.
22784         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22785         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22786
22787 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22788
22789         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22790
22791 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22792
22793         * stdio-common/bug-vfprintf-nargs.c (do_test):
22794         Cast value to intptr_t to avoid format warning
22795         for usage with PRIdPTR printing macro.
22796
22797 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22798
22799         * libio/tst-widetext.c (do_test):
22800         Use format type %td instead of %Zd for ptrdiff_t
22801         in order to avoid format warning.
22802
22803 2014-12-17  Andreas Schwab  <schwab@suse.de>
22804
22805         * nscd/mem.c (gc): Add size_t cast to match printf format.
22806
22807 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22808
22809         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22810         (init): Apply PTR_MANGLE to pointers before storing them.
22811         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22812         before using them.
22813
22814 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22815
22816         [BZ #17719]
22817         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22818         define as weak alias of __memrchr.
22819         (__memrchr): Do not define as strong alias of memrchr.
22820         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22821         Remove variable.
22822         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22823         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22824         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22825
22826         [BZ #17717]
22827         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22828         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22829         (if_indextoname): Rename to __if_indextoname and define as weak
22830         alias of __if_indextoname.  Use libc_hidden_weak.
22831         (if_freenameindex): Rename to __if_freenameindex and define as
22832         weak alias of __if_freenameindex.
22833         (if_nameindex): Rename to __if_nameindex and define as weak alias
22834         of __if_nameindex.
22835         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22836         __if_nametoindex and define as weak alias of __if_nametoindex.
22837         Use libc_hidden_weak.
22838         (if_freenameindex): Rename to __if_freenameindex and define as
22839         weak alias of __if_freenameindex.
22840         (if_nameindex): Rename to __if_nameindex and define as weak alias
22841         of __if_nameindex.
22842         (if_indextoname): Rename to __if_indextoname and define as weak
22843         alias of __if_indextoname.  Use libc_hidden_weak.
22844         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22845         __if_nametoindex and define as weak alias of __if_nametoindex.
22846         Use libc_hidden_weak.
22847         (if_freenameindex): Rename to __if_freenameindex and define as
22848         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22849         (if_nameindex_netlink): Use __if_freenameindex instead of
22850         if_freenameindex.
22851         (if_nameindex): Rename to __if_nameindex and define as weak alias
22852         of __if_nameindex.  Use libc_hidden_weak.
22853         (if_indextoname): Rename to __if_indextoname and define as weak
22854         alias of __if_indextoname.  Use libc_hidden_weak.
22855         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22856         libc_hidden_proto.
22857         [!_ISOMAC] (__if_freenameindex): Likewise.
22858         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22859         if_nametoindex.
22860         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22861         variable.
22862         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22863         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22864         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22865         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22866         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22867         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22868         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22869
22870         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22871         Remove variable.
22872         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22873         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22874
22875 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22876
22877         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22878         subscript above bounds'
22879
22880         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22881         bounds.
22882
22883 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22884
22885         * libio/tst-fopenloc.c: Use test-skeleton.c.
22886
22887         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22888         (entry): Rename to ITEM.
22889         (do_test, comp): Adjust.
22890
22891         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22892
22893 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22894
22895         * string/tester.c: Include <libc-internal.h>.
22896         (test_memset): Ignore -Wmemset-transposed-args.
22897
22898 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22899
22900         * misc/tst-mntent2.c (do_test): Fix warning.
22901
22902 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22903
22904         * elf/tst-unique4lib.cc(a): Mark as used.
22905
22906 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22907
22908         [BZ #17630]
22909         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22910         names.
22911
22912 2014-12-16  Allan McRae  <allan@archlinux.org>
22913
22914         * stdio-common/Makefile (tests): Re-add bug26.
22915
22916 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22917
22918         [BZ #17657]
22919         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22920         static array.
22921
22922 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22923
22924         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22925         (__lll_lock_wait): Likewise.
22926         (__lll_timedlock_wait): Likewise.
22927         (__lll_timedwait_tid): Likewise.
22928         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22929         (__lll_robust_timedlock_wait): Likewise.
22930         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22931         (lll_cond_trylock): Likewise.
22932         (__lll_lock): Likewise.
22933         (__lll_robust_lock): Likewise.
22934         (__lll_cond_lock): Likewise.
22935         (lll_robust_cond_lock): Likewise.
22936         (__lll_timedlock): Likewise.
22937         (__lll_robust_timedlock): Likewise.
22938         (__lll_unlock): Likewise.
22939         (__lll_robust_unlock): Likewise.
22940         (lll_wait_tid): Likewise.
22941         (lll_timedwait_tid): Likewise.
22942
22943 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22944
22945         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22946
22947 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22948
22949         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22950
22951 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22952
22953         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22954         * stdio-common/tst-sprintf.c: Likewise.
22955
22956 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22957
22958         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22959
22960 2014-12-15  Jeff Law  <law@redhat.com>
22961
22962         [BZ #16617]
22963         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22964         on the heap.  (CVE-2012-3406)
22965         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22966         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22967         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22968
22969 2014-12-15  Will Newton  <will.newton@linaro.org>
22970
22971         * manual/install.texi: Bump required version of texinfo
22972         to 4.7 from 4.5.
22973         * INSTALL: Regenerated.
22974         * configure.ac: Check for makeinfo version 4.7 and above.
22975         * configure: Regenerated.
22976
22977 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22978
22979         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22980         PREFIX, string constant to insert between directory and name.
22981         * sysdeps/posix/shm_open.c: Update caller.
22982         * sysdeps/posix/shm_unlink.c: Likewise.
22983         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22984         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22985         (SEM_SHM_PREFIX): New macro.
22986         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22987         [$(have-thread-library) = no].
22988         * nptl/Makefile (libpthread-routines): Add shm-directory.
22989         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22990         * sysdeps/nptl/shm-directory.h: New file.
22991         * sysdeps/posix/shm-directory.c
22992         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22993         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22994         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22995         INTERNAL_SYSCALL.
22996         (__where_is_shmfs): Function removed.
22997         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22998         Variables removed.
22999         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23000         Use SHM_GET_NAME.
23001         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23002
23003         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23004         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23005         unconditional for use inside libpthread.
23006         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23007
23008 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23009
23010         * nptl/pthread_getaffinity.c: New file.
23011         * nptl/pthread_setaffinity.c: New file.
23012         * nptl/pthread_getname.c: New file.
23013         * nptl/pthread_setname.c: New file.
23014
23015         * nptl/pthread_create.c (START_THREAD_DEFN)
23016         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23017
23018 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23019             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23020
23021         * resolv/res_send.c (send_vc): Disable warning resplen may
23022         be used uninitialized.
23023
23024 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23025
23026         * nptl/tst-mutex6.c
23027         (ATTR_NULL): New define checks ATTR against NULL.
23028         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23029         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23030
23031 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23032
23033         [BZ #17581]
23034         * malloc/hooks.c
23035         (mem2mem_check): Revert my previous change.
23036         (malloc_check_get_size): Revert my previous change.
23037         (mem2chunk_check): Revert my previous change.
23038
23039 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23040
23041         * sysdeps/posix/shm-directory.c: New file.
23042         * sysdeps/posix/shm-directory.h: New file.
23043         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23044         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23045         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23046         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23047         Transmute EPERM to EACCES.
23048         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23049         from ...
23050         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23051         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23052
23053 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23054
23055         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23056         pointer and cast to uintptr_t.
23057         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23058         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23059         Add cast to avoid warning.
23060         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23061
23062 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23063
23064         * nptl/semaphore.h: Move to ...
23065         * sysdeps/pthread/semaphore.h: ... here.
23066         * Makefile (installed-headers): Change nptl/semaphore.h to
23067         sysdeps/pthread/semaphore.h.
23068
23069 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23070
23071         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23072         generated error format strings.
23073
23074         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23075         -Wformat-extra-args warnings for scanf formats.
23076         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23077         test of zero-length format (duh).
23078         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23079         corner-case scanf format test.
23080         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23081         generated fprintf format string.
23082         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23083         corner-case sprintf format tests.
23084         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23085         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23086         -Wformat-extra-args warnings throughout.
23087         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23088         (CFLAGS-scanf4.c): Likewise.
23089         (CFLAGS-scanf7.c): Likewise.
23090         (CFLAGS-tst-sprintf.c): Likewise.
23091         (CFLAGS-tst-printf.c): Likewise.
23092         (CFLAGS-tst-printfsz.c): Likewise.
23093
23094 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23095
23096         * include/cpio.h: New file.
23097         * include/fmtmsg.h: Likewise.
23098
23099         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23100         corresponding format argument to size_t.
23101         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23102         arguments.
23103         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23104         corresponding format argument to size_t.
23105         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23106         arguments.
23107         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23108         corresponding format argument to size_t.
23109         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23110         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23111         (CFLAGS-tst-mbswcs2.c): Likewise.
23112         (CFLAGS-tst-mbswcs3.c): Likewise.
23113         (CFLAGS-tst-mbswcs4.c): Likewise.
23114         (CFLAGS-tst-mbswcs5.c): Likewise.
23115         (CFLAGS-tst-trans.c): Likewise.
23116
23117 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23118
23119         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23120         rather than assuming they won't contain any '%'s.
23121
23122 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23123
23124         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23125         inhibit_loop_to_libcall to avoid recursive calls.
23126         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23127         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23128
23129 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23130
23131         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23132         prototype.
23133
23134 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23135
23136         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23137         integer value instead of boolean.
23138
23139 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23140
23141         * malloc/malloc.c: Fix powerof2 check.
23142
23143 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23144
23145         * locale/programs/locfile.h (maybe_swap_uint32):
23146         Remove inline and add unused attribute.
23147
23148 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23149
23150         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23151         Truncating assembler expression to a .long expression.
23152
23153 2014-12-11  Andreas Schwab  <schwab@suse.de>
23154
23155         * elf/rtld.c (struct map_args): Constify str member.
23156         (do_preload): Constify fname argument.
23157
23158 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23159
23160         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23161         constants definition.
23162
23163 2014-12-11  Andreas Schwab  <schwab@suse.de>
23164
23165         [BZ #16657]
23166         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23167         FORCE_ELISION instead of DO_ELISION.
23168         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23169         Remove.
23170         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23171         Likewise.
23172
23173         * iconvdata/gconv-modules: Remove duplicate entry.
23174
23175 2014-12-11  Will Newton  <will.newton@linaro.org>
23176
23177         Merge gettext 0.19.3 into intl/.
23178
23179         This involves a number of cosmetic changes to comments
23180         and ANSI function definitions and prototypes throughout
23181         all the files. The gettext copyright header is used but
23182         with the date ranges taken from the glibc copy.
23183
23184         * NEWS: Add gettext merge to 2.21.
23185         * intl/bindtextdom.c: Switch to gettext copyright.
23186         Use ANSI definitions and prototypes.
23187         Use gl_* locking primitives rather than __libc_* ones.
23188         Use __builtin_expect rather than __glibc_likely/unlikely.
23189         * intl/dcgettext.c: Switch to gettext copyright.
23190         Use ANSI definitions and prototypes.
23191         * intl/dcigettext.c: Switch to gettext copyright.
23192         Use ANSI definitions and prototypes.
23193         (INTDIV0_RAISES_SIGFPE): New define.
23194         Use gl_* locking primitives rather than __libc_* ones.
23195         Include eval-plural.h instead of plural-eval.c.
23196         Use __builtin_expect rather than __glibc_likely/unlikely.
23197         * intl/dcngettext.c: Switch to gettext copyright.
23198         Use ANSI definitions and prototypes.
23199         * intl/dgettext.c: Likewise.
23200         * intl/dngettext.c: Likewise.
23201         * intl/plural-eval.c: Renamed to...
23202         * intl/eval-plural.h: ...this.
23203         * intl/explodename.c: Switch to gettext copyright.
23204         Use ANSI definitions and prototypes.
23205         (_nl_explode_name): Use strchr instead of __rawmemchr.
23206         * intl/finddomain.c: Switch to gettext copyright.
23207         Use ANSI definitions and prototypes.
23208         Use gl_* locking primitives rather than __libc_* ones.
23209         (_nl_find_domain): Use malloc rather than alloca for
23210         allocation of temporary locale name.
23211         * intl/gettext.c: Switch to gettext copyright.
23212         Use ANSI definitions and prototypes.
23213         * intl/gettextP.h: Switch to gettext copyright.
23214         Use ANSI definitions and prototypes.
23215         Use gl_* locking primitives rather than __libc_* ones.
23216         * intl/gmo.h: Switch to gettext copyright.
23217         (struct sysdep_string): Move struct segment_pair outside of
23218         struct definition.
23219         * intl/hash-string.c: Use ANSI definitions and prototypes.
23220         * intl/hash-string.h: Switch to gettext copyright.
23221         Use ANSI definitions and prototypes.
23222         * intl/l10nflist.c: Switch to gettext copyright.
23223         Use ANSI definitions and prototypes.
23224         (_nl_normalize_codeset): Avoid integer overflow.
23225         * intl/loadinfo.h: Switch to gettext copyright.
23226         Use ANSI definitions and prototypes.
23227         (LIBINTL_DLL_EXPORTED): New define.
23228         (PATH_SEPARATOR): New define.
23229         * intl/loadmsgcat.c: Switch to gettext copyright.
23230         * intl/localealias.c: Switch to gettext copyright.
23231         Use ANSI definitions and prototypes.
23232         (_nl_expand_alias): Use PATH_SEPARATOR.
23233         * intl/ngettext.c: Switch to gettext copyright.
23234         Use ANSI definitions and prototypes.
23235         * intl/plural-exp.c: Likewise.
23236         * intl/plural-exp.h: Switch to gettext copyright.
23237         Use ANSI definitions and prototypes.
23238         (struct expression): Move definition of enum operator outside
23239         of struct definition.
23240         * intl/plural.c: Regenerate.
23241         * intl/plural.y: Switch to gettext copyright.
23242         Use ANSI definitions and prototypes.
23243         Port to bison 3.0.
23244         * intl/textdomain.c: Switch to gettext copyright.
23245         Use ANSI definitions and prototypes.
23246         Use gl_* locking primitives rather than __libc_* ones.
23247
23248 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23249
23250         * debug/warning-nop.c: Add used atrribute.
23251
23252 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23253
23254         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23255
23256         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23257         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23258         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23259
23260 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23261             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23262
23263         [BZ #17634]
23264         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23265         Undefine after defining function.  Define as weak alias of
23266         __wcschr.  Use libc_hidden_weak.
23267         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23268         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23269         (libc_hidden_def): Also define __GI___wcschr alias.
23270         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23271         __wcschr and define as weak alias of __wcschr.
23272         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23273         __wcschr.
23274         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23275         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23276         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23277         libc_hidden_weak.  Do not use libc_hidden_def.
23278         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23279         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23280         __GI___wcschr alias.
23281         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23282         [IS_IN (libc)] (wcschr): Define as macro expanding to
23283         __redirect_wcschr.
23284         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23285         [IS_IN (libc)] (__wcschr_power6): Likewise.
23286         [IS_IN (libc)] (__wcschr_power7): Likewise.
23287         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23288         instead of wcschr.
23289         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23290         __libc_wcschr.
23291         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23292         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23293         __wcschr and define as weak alias of __wcschr.  Use
23294         libc_hidden_builtin_def.
23295         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23296         as weak alias of __wcschr.  Use libc_hidden_weak.
23297         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23298         wcschr.
23299         * time/era.c (_nl_init_era_entries): Likewise.
23300         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23301         variable.
23302         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23303         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23304
23305 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23306
23307         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23308         format for long int variable.
23309
23310 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23311
23312         [BZ #10672]
23313         * manual/search.texi: (Array Sort Function): Remove claim how to make
23314         qsort stable.
23315
23316 2014-12-10  Andreas Schwab  <schwab@suse.de>
23317
23318         [BZ #12847]
23319         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23320         user-controlled locks.
23321
23322 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23323
23324         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23325         register.
23326
23327 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23328
23329         * configure.ac (--disable-werror): New configure option.
23330         (enable_werror): New AC_SUBST.
23331         * configure: Regenerated.
23332         * config.make.in (enable-werror): New variable.
23333         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23334         -Wno-error=undef.
23335         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23336         * manual/install.texi (Configuring and compiling): Document
23337         --disable-werror.
23338         * INSTALL: Regenerated.
23339         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23340         (CFLAGS-tst-chk2.c): Likewise.
23341         (CFLAGS-tst-chk3.c): Likewise.
23342         (CFLAGS-tst-chk4.cc): Likewise.
23343         (CFLAGS-tst-chk5.cc): Likewise.
23344         (CFLAGS-tst-chk6.cc): Likewise.
23345         (CFLAGS-tst-lfschk1.c): Likewise.
23346         (CFLAGS-tst-lfschk2.c): Likewise.
23347         (CFLAGS-tst-lfschk3.c): Likewise.
23348         (CFLAGS-tst-lfschk4.cc): Likewise.
23349         (CFLAGS-tst-lfschk5.cc): Likewise.
23350         (CFLAGS-tst-lfschk6.cc): Likewise.
23351
23352         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23353         (main): Disable -Wdeprecated-declarations around calls to
23354         register_printf_function.
23355
23356         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23357         (do_test): Disable -Wdiv-by-zero around some calls to
23358         fwrite_unlocked and fread_unlocked.
23359
23360         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23361         (DIAG_POP_NEEDS_COMMENT): Likewise.
23362         (_DIAG_STR1): Likewise.
23363         (_DIAG_STR): Likewise.
23364         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23365         * stdio-common/bug21.c: Include <libc-internal.h>.
23366         (do_test): Disable -Wformat around call to sscanf.
23367         * stdio-common/scanf14.c: Include <libc-internal.h>.
23368         (main): Disable -Wformat around some calls to scanf functions.
23369
23370 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23371
23372         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23373
23374 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23375
23376         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23377         stack variable alignment.
23378
23379 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23380
23381         [BZ #17682]
23382         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23383         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23384         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23385         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23386         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23387         __getrlimit instead of getrlimit.
23388         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23389         __gettimeofday instead of gettimeofday.
23390         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23391         Likewise.
23392         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23393         Likewise.
23394         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23395         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23396         Remove variable.
23397         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23398         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23399
23400 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23401
23402         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23403         for wide-character tests.
23404
23405 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23406
23407         * io/openat64.c: #include <libc-internal.h>
23408         (__openat64): Prototypify.  Use ignore_value on MODE.
23409         * io/openat.c: Likewise.
23410         * misc/reboot.c: #include <libc-internal.h>
23411         (reboot): Prototypify.  Use ignore_value on HOWTO.
23412         * misc/ptrace.c: #include <libc-internal.h>
23413         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23414
23415 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23416
23417         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23418         XPG4, UNIX98 and XOPEN2K.
23419         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23420         Remove variable.
23421         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23422
23423 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23424
23425         * libio/fileops.c: Use ISO C style for function definitions.
23426         * libio/iofopen.c: Likewise.
23427         * libio/wfileops.c: Likewise.
23428
23429         [BZ #17653]
23430         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23431         offset on EOF.
23432         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23433         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23434         (fgets_func): Function pointer to fgets and fgetws.
23435         (do_ftell_test): Add test to verify ftell value after read
23436         EOF.
23437         (do_test): Set fgets_func.
23438
23439         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23440         O_TRUNC flag for w and w+ modes.
23441         (do_rewind_test): Likewise.
23442         (do_ftell_test): Likewise.
23443         (do_write_test): Likewise.
23444
23445         [BZ #17647]
23446         * libio/fileops.c (do_ftell): Seek only when there are
23447         unflushed writes.
23448         * libio/wfileops.c (do_ftell_wide): Likewise.
23449         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23450         test case.
23451         (do_one_test): Call it.
23452
23453 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23454
23455         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23456         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23457         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23458         Remove variable.
23459         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23460         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23461         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23462
23463 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23464
23465         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23466         Remove variable.
23467         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23468
23469         [BZ #17668]
23470         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23471         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23472         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23473         __freeifaddrs.  Use libc_hidden_weak.
23474         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23475         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23476         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23477         __freeifaddrs.  Use libc_hidden_weak.
23478         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23479         __getifaddrs and define as weak alias of __getifaddrs.  Use
23480         libc_hidden_weak.
23481         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23482         __freeifaddrs.  Use libc_hidden_weak.
23483         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23484         Remove variable.
23485         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23486         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23487
23488 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23489
23490         [BZ #17601]
23491         * sysdeps/mips/start.S (__start): Use indirect jump to call
23492         __libc_start_main.
23493
23494 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23495
23496         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23497
23498         * nptl/tst-mutex1.c: Include <stdbool.h>.
23499         [!ATTR] (ATTR_NULL): New macro.
23500         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23501         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23502         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23503
23504         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23505         to char *.
23506
23507         [BZ #17665]
23508         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23509         Change conditional to [__USE_MISC].
23510
23511         [BZ #17664]
23512         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23513         fgets_unlocked.
23514         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23515         __fgets_unlocked.
23516         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23517         fgets_unlocked.
23518         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23519         Remove variable.
23520         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23521         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23522         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23523         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23524         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23525         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23526         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23527         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23528         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23529
23530         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23531
23532 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23533
23534         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23535         Remove strpbrk objects.
23536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23537         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23538         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23539         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23540         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23541         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23542
23543         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23544         Remove strcspn objects.
23545         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23546         (__libc_ifunc_impl_list): Remove strcspn implementation.
23547         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23548         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23549         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23550         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23551
23552         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23553         Remove strspn objetcs.
23554         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23555         (__libc_ifunc_impl_list): Remove strspn implementation.
23556         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23557         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23558         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23559         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23560
23561 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23562
23563         [BZ #17581]
23564         * malloc/hooks.c
23565         (mem2mem_check): Add a terminator to the chain of checking blocks.
23566         (malloc_check_get_size): Use it here.
23567         (mem2chunk_check): Ditto.
23568
23569 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23570
23571         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23572         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23573
23574 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23575
23576         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23577
23578         * nptl/nptl-init.c: Include libc-internal.h.
23579         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23580
23581         * elf/ldconfig.c (search_dir): Expand comment.
23582
23583 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23584
23585         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23586         variable.
23587         (linknamespace-symlist-stdlibs-tests): Likewise.
23588         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23589         instead of $(objpfx)symlist-stdlibs.
23590         (linknamespace-libs-isoc): New variable.
23591         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23592         (linknamespace-libs-ISO): New variable.
23593         (linknamespace-libs-ISO99): Likewise.
23594         (linknamespace-libs-ISO11): Likewise.
23595         (linknamespace-libs-XPG3): Likewise.
23596         (linknamespace-libs-XPG4): Likewise.
23597         (linknamespace-libs-POSIX): Likewise.
23598         (linknamespace-libs-UNIX98): Likewise.
23599         (linknamespace-libs-XOPEN2K): Likewise.
23600         (linknamespace-libs-POSIX2008): Likewise.
23601         (linknamespace-libs-XOPEN2K8): Likewise.
23602         ($(objpfx)symlist-stdlibs): Replace by
23603         $(linknamespace-symlist-stdlibs-tests).  Use
23604         $(linknamespace-libs-$*) as set of libraries.
23605         ($(linknamespace-header-tests)): Update dependencies.  Use
23606         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23607         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23608         * conform/linknamespace.pl: Remove comment about considering
23609         definitions of symbols from irrelevant libraries.
23610
23611 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23612
23613         [BZ #13862]
23614         * elf/dl-tls.c: Include <atomic.h>.
23615         (oom): Remove #ifdef SHARED/#endif.
23616         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23617         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23618         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23619         big enough.
23620         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23621         * nptl/Makefile (tests): Add tst-stack4.
23622         (modules-names): Add tst-stack4mod.
23623         ($(objpfx)tst-stack4): New.
23624         (tst-stack4mod.sos): Likewise.
23625         ($(objpfx)tst-stack4.out): Likewise.
23626         ($(tst-stack4mod.sos)): Likewise.
23627         (clean): Likewise.
23628         * nptl/tst-stack4.c: New file.
23629         * nptl/tst-stack4mod.c: Likewise.
23630
23631 2014-11-27  J. Brown  <jb999@gmx.de>
23632
23633         * sysdeps/x86/bits/string.h: Add recent CPUs.
23634
23635 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23636
23637         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23638         sigblock.
23639
23640         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23641         feof.
23642
23643         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23644         variable.
23645
23646 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23647
23648         * nscd/connections.c: Include libc-internal.h because of macro
23649         usage ignore_value.
23650
23651 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23652
23653         * string/bits/string3.h (__warn_memset_zero_len): Don't
23654         declare for gcc newer than 5.0.
23655         (memset): Don't test for zero-length __LEN for gcc newer than
23656         5.0.
23657
23658 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23659
23660         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23661         size_t for %zu format.
23662
23663         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23664         difference, not %ju.
23665
23666 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23667
23668         * include/libc-internal.h (ignore_value): New macro.
23669         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23670         with ignore_value.
23671
23672         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23673         definition.
23674
23675         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23676         pthread_cleanup_push to void *.
23677
23678         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23679         Undefine.
23680
23681         [BZ #16619]
23682         [BZ #16740]
23683         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23684         instead of 1L << 52.
23685
23686         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23687         * libio/bug-rewind2.c (do_test): Likewise.
23688
23689         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23690         * debug/test-strcpy_chk-ifunc.c: Likewise.
23691         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23692         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23693         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23694         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23695         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23696         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23697         * Rules [$(multi-arch) = no] (tests): Do not filter out
23698         $(tests-ifunc).
23699         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23700         * debug/Makefile (tests-ifunc): Remove variable.
23701         (tests): Do not add $(tests-ifunc).
23702         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23703         (tests): Do not add $(tests-ifunc).
23704         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23705         [TEST_IFUNC]: Remove conditionals.
23706         * string/test-string.h (TEST_IFUNC): Remove macro.
23707         [TEST_IFUNC]: Remove conditionals.
23708
23709         * string/test-strchr.c [!WIDE] (L): New macro.
23710         [WIDE] (L): Likewise.
23711         (check1): Use CHAR instead of char.  Use L on string and character
23712         constants.
23713
23714 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23715
23716         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23717         tests.
23718         * sysdeps/powerpc/bits/atomic.h
23719         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23720         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23721         (atomic_exchange_and_add_acq): Likewise.
23722         (atomic_exchange_and_add_rel): Likewise.
23723         * sysdeps/powerpc/powerpc32/bits/atomic.h
23724         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23725         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23726         * sysdeps/powerpc/powerpc64/bits/atomic.h
23727         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23728         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23729
23730 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23731
23732         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23733         Change synchronization of __sched_fifo_min_prio and
23734         __sched_fifo_max_prio.
23735         * nptl/pthread_mutexattr_getprioceiling.c
23736         (pthread_mutexattr_getprioceiling): Likewise.
23737         * nptl/pthread_mutexattr_setprioceiling.c
23738         (pthread_mutexattr_setprioceiling): Likewise.
23739         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23740         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23741         Likewise.
23742
23743 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23744
23745         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23746         void.
23747
23748 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23749
23750         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23751         third argument const.
23752
23753 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23754
23755         fnmatch: work around GCC compiler warning bug with uninit var
23756         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23757         This works around a bug with x86-64 GCC 4.9.2 and earlier
23758         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23759         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23760         used uninitialized in this function [-Wmaybe-uninitialized]".
23761
23762 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23763
23764         * posix/bug-regex31.c (main): Return RES not 0.
23765
23766 2014-11-25  Anton Blanchard <anton@samba.org>
23767
23768         * sysdeps/powerpc/bits/atomic.h
23769         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23770
23771 2014-11-24  Sterling Augustine  <saugustine@google.com>
23772
23773         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23774
23775 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23776
23777         [BZ #17608]
23778         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23779
23780 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23781
23782         [BZ #17633]
23783         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23784         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23785         variable.
23786         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23787         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23788
23789 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23790
23791         * string/strncpy.c (strncpy): Improve performance by using memset.
23792
23793 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23794
23795         * string/strcpy.c (strcpy):
23796         Improve performance by using strlen and memcpy.
23797
23798 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23799
23800         * string/strcoll_l.c (get_next_seq): __always_inline.
23801         * string/strcoll_l.c (do_compare): __always_inline.
23802
23803 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23804
23805         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23806         defined.
23807         * include/mqueue.h: Likewise.
23808         * include/stdlib.h: Likewise.
23809
23810         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23811         (get_null_defines): Adjust.
23812         * sunrpc/Makefile: Adjust comment.
23813         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23814         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23815         (CFLAGS-interp.c): Likewise.
23816         (CFLAGS-ldconfig.c): Likewise.
23817         (CPPFLAGS-.os): Likewise.
23818         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23819         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23820         * extra-modules.mk (extra-modules.mk): Likewise.
23821         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23822         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23823         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23824         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23825         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23826         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23827         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23828         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23829         * iconvdata/Makefile (CPPFLAGS): Likewise.
23830         (cpp-srcs-left): Add libof for all iconvdata routines.
23831         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23832         * include/assert.h: Likewise.
23833         * include/ctype.h: Likewise.
23834         * include/errno.h: Likewise.
23835         * include/libc-symbols.h: Likewise.
23836         * include/math.h: Likewise.
23837         * include/netdb.h: Likewise.
23838         * include/resolv.h: Likewise.
23839         * include/stdio.h: Likewise.
23840         * include/stdlib.h: Likewise.
23841         * include/string.h: Likewise.
23842         * include/sys/stat.h: Likewise.
23843         * include/wctype.h: Likewise.
23844         * intl/l10nflist.c: Likewise.
23845         * libidn/idn-stub.c: Likewise.
23846         * libio/libioP.h: Likewise.
23847         * nptl/libc_multiple_threads.c: Likewise.
23848         * nptl/pthreadP.h: Likewise.
23849         * posix/regex_internal.h: Likewise.
23850         * resolv/res_hconf.c: Likewise.
23851         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23852         * sysdeps/arm/memmove.S: Likewise.
23853         * sysdeps/arm/sysdep.h: Likewise.
23854         * sysdeps/generic/_itoa.h: Likewise.
23855         * sysdeps/generic/symbol-hacks.h: Likewise.
23856         * sysdeps/gnu/errlist.awk: Likewise.
23857         * sysdeps/gnu/errlist.c: Likewise.
23858         * sysdeps/i386/i586/memcpy.S: Likewise.
23859         * sysdeps/i386/i586/memset.S: Likewise.
23860         * sysdeps/i386/i686/memcpy.S: Likewise.
23861         * sysdeps/i386/i686/memmove.S: Likewise.
23862         * sysdeps/i386/i686/mempcpy.S: Likewise.
23863         * sysdeps/i386/i686/memset.S: Likewise.
23864         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23865         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23866         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23867         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23868         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23869         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23870         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23871         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23872         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23873         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23874         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23875         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23876         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23877         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23878         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23879         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23880         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23881         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23882         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23883         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23884         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23885         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23886         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23887         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23888         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23889         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23890         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23891         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23892         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23893         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23894         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23895         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23896         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23897         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23898         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23899         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23900         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23901         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23902         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23903         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23904         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23905         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23906         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23907         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23908         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23909         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23910         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23911         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23912         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23913         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23914         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23915         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23916         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23917         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23918         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23919         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23920         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23921         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23922         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23923         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23924         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23925         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23926         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23927         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23928         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23929         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23930         * sysdeps/posix/closedir.c: Likewise.
23931         * sysdeps/posix/opendir.c: Likewise.
23932         * sysdeps/posix/readdir.c: Likewise.
23933         * sysdeps/posix/rewinddir.c: Likewise.
23934         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23935         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23936         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23937         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23938         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23939         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23940         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23941         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23942         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23943         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23944         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23945         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23946         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23947         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23948         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23949         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23950         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23951         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23952         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23953         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23954         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23955         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23956         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23957         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23958         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23959         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23960         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23961         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23962         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23963         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23964         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23965         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23966         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23967         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23968         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23969         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23970         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23971         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23972         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23973         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23974         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23975         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23976         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23977         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23978         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23979         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23980         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23981         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23982         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23983         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23984         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23985         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23986         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23987         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23988         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23989         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23990         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23991         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23992         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23993         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23994         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23995         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23996         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23997         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23998         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23999         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24000         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24001         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24002         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24003         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24004         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24005         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24006         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24007         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24008         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24009         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24010         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24011         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24012         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24013         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24014         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24015         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24016         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24017         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24018         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24019         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24020         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24021         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24022         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24023         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24024         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24025         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24026         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24027         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24028         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24029         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24030         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24031         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24032         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24033         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24034         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24035         * sysdeps/unix/alpha/sysdep.S: Likewise.
24036         * sysdeps/unix/alpha/sysdep.h: Likewise.
24037         * sysdeps/unix/make-syscalls.sh: Likewise.
24038         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24039         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24040         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24041         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24042         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24043         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24044         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24045         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24046         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24047         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24048         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24049         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24050         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24051         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24052         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24053         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24054         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24055         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24056         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24057         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24058         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24059         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24060         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24061         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24062         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24063         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24064         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24067         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24068         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24069         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24070         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24071         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24072         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24073         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24074         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24075         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24076         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24077         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24078         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24079         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24080         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24081         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24082         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24083         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24084         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24085         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24086         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24087         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24088         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24089         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24090         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24091         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24092         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24093         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24094         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24095         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24096         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24097         * sysdeps/x86_64/memcpy.S: Likewise.
24098         * sysdeps/x86_64/memmove.c: Likewise.
24099         * sysdeps/x86_64/memset.S: Likewise.
24100         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24101         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24102         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24103         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24104         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24105         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24106         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24107         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24108         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24109         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24110         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24111         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24112         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24113         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24114         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24115         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24116         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24117         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24118         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24119         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24120         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24121         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24122         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24123         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24124         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24125         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24126         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24127         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24128         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24129         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24130         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24131         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24132         * sysdeps/x86_64/strcmp.S: Likewise.
24133
24134         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24135
24136         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24137         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24138         * elf/rtld-Rules: Likewise.
24139         * elf/setup-vdso.h: Likewise.
24140         * include/assert.h: Likewise.
24141         * include/bits/stdlib-float.h: Likewise.
24142         * include/errno.h: Likewise.
24143         * include/sys/stat.h: Likewise.
24144         * include/unistd.h: Likewise.
24145         * sysdeps/aarch64/setjmp.S: Likewise.
24146         * sysdeps/alpha/setjmp.S: Likewise.
24147         * sysdeps/arm/__longjmp.S: Likewise.
24148         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24149         * sysdeps/arm/setjmp.S: Likewise.
24150         * sysdeps/arm/sysdep.h: Likewise.
24151         * sysdeps/generic/_itoa.h: Likewise.
24152         * sysdeps/generic/dl-sysdep.h: Likewise.
24153         * sysdeps/generic/ldsodefs.h: Likewise.
24154         * sysdeps/i386/dl-tls.h: Likewise.
24155         * sysdeps/i386/setjmp.S: Likewise.
24156         * sysdeps/m68k/setjmp.c: Likewise.
24157         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24158         * sysdeps/mach/hurd/opendir.c: Likewise.
24159         * sysdeps/posix/getcwd.c: Likewise.
24160         * sysdeps/posix/opendir.c: Likewise.
24161         * sysdeps/posix/profil.c: Likewise.
24162         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24163         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24164         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24165         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24166         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24167         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24168         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24169         * sysdeps/s390/dl-tls.h: Likewise.
24170         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24171         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24172         * sysdeps/sh/sh3/setjmp.S: Likewise.
24173         * sysdeps/sh/sh4/setjmp.S: Likewise.
24174         * sysdeps/unix/alpha/sysdep.h: Likewise.
24175         * sysdeps/unix/arm/sysdep.S: Likewise.
24176         * sysdeps/unix/i386/sysdep.S: Likewise.
24177         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24178         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24179         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24180         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24181         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24182         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24183         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24184         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24185         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24186         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24187         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24188         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24189         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24192         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24193         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24194         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24195         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24196         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24197         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24198         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24199         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24200         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24201         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24202         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24203         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24204         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24205         * sysdeps/x86_64/setjmp.S: Likewise.
24206
24207         * include/math.h: Use IS_IN instead of IS_IN_libm.
24208         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24209         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24210         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24211         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24212         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24213         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24214         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24215         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24216         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24217         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24218         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24219         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24220         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24221         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24222         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24223         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24224         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24225         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24226         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24227         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24228         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24229         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24230         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24231         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24232         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24233         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24234         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24235         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24236         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24237         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24238         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24239         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24240         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24242         Likewise.
24243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24244         Likewise.
24245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24246         Likewise.
24247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24248         Likewise.
24249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24250         Likewise.
24251         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24252         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24253         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24254         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24255         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24256         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24262         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24263         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24264         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24265         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24266         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24267         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24268         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24269         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24270         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24271         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24272         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24273         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24274         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24275         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24277         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24278
24279         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24280         * nptl/pthreadP.h: Likewise.
24281         * nptl_db/structs.def: Likewise.
24282         * sysdeps/arm/sysdep.h: Likewise.
24283         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24284         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24285         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24286         * sysdeps/unix/alpha/sysdep.h: Likewise.
24287         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24288         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24289         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24290         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24291         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24292         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24293         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24294         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24295         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24296         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24297         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24298         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24299         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24300         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24303         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24304         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24305         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24306         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24307         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24308         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24309         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24310         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24311         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24312         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24313
24314         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24315         * nptl/pthreadP.h: Likewise.
24316         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24317         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24318         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24319         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24320         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24321         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24322         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24323         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24324         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24325         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24326         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24327         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24329         Likewise.
24330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24331         Likewise.
24332         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24333         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24334         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24335         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24336         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24337         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24338         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24339         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24340
24341         * dlfcn/dladdr.c: Use IS_IN.
24342         * dlfcn/dladdr1.c: Likewise.
24343         * dlfcn/dlclose.c: Likewise.
24344         * dlfcn/dlerror.c: Likewise.
24345         * dlfcn/dlinfo.c: Likewise.
24346         * dlfcn/dlmopen.c: Likewise.
24347         * dlfcn/dlopen.c: Likewise.
24348         * dlfcn/dlsym.c: Likewise.
24349         * dlfcn/dlvsym.c: Likewise.
24350
24351         * include/ifaddrs.h: Use IS_IN.
24352         * inet/check_pf.c: Likewise.
24353         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24354         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24355
24356         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24357         IS_IN_ldconfig.
24358         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24359         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24360
24361         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24362         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24363         IS_IN (libc).
24364
24365         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24366
24367         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24368         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24369         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24370         * include/libc-symbols.h (IS_IN_LIB): New macro.
24371         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24372         * include/netdb.h: Likewise.
24373         * include/stap-probe.h: Remove all uses of IN_LIB.
24374
24375         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24376         instead of IN_MODULE.
24377         * include/libc-symbols.h (IN_MODULE): Define using
24378         MODULE_NAME.
24379         (PASTE_NAME, PASTE_NAME1): New macros.
24380         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24381         of IN_LIB.
24382         (STAP_PROBE_ASM): Likewise.
24383
24384 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24385
24386         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24387         __mach_init in dlopened libc.
24388
24389 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24390
24391         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24392         * sysdeps/arm/preconfigure: Regenerate.
24393
24394 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24395
24396         * nptl/pthread_create.c (__pthread_create_2_1): Set
24397         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24398         when copying values from IATTR into PD.
24399
24400 2014-11-21  Will Newton  <will.newton@linaro.org>
24401             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24402
24403         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24404         Refactor inline-asm.  Also add comment.
24405
24406         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24407         ElfW macro instead of hardcoded Elf64 types.
24408         (la_aarch64_gnu_pltenter): Likewise.
24409         * sysdeps/aarch64/dl-machine.h
24410         (elf_machine_runtime_setup): Use ElfW(Addr).
24411
24412         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24413         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24414         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24415         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24416         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24417         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24418         (R_AARCH64_TLS_DTPMOD): This.
24419         (R_AARCH64_TLS_DTPREL64): Rename to ...
24420         (R_AARCH64_TLS_DTPREL): This.
24421         (R_AARCH64_TLS_TPREL64): Rename to ...
24422         (R_AARCH64_TLS_TPREL): This.
24423         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24424         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24425         R_AARCH64_TLS_TPREL64.
24426         (elf_machine_rela): Likewise.
24427
24428 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24429
24430         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24431         by setting it to 0.  64b atomics are not supported currently.
24432
24433 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24434
24435         [BZ #16469]
24436         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24437         search domain names.
24438
24439 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24440
24441         [BZ #16469]
24442         * NEWS: Update.
24443         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24444         trailing dot.
24445         * posix/tst-getaddrinfo5.c: New.
24446         * posix/Makefile (tests): Add it.
24447
24448 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24449
24450         [BZ #14498]
24451         * NEWS: Fixed.
24452         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24453         after parsing line but before break_if_match.
24454         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24455         if there is a protocol mismatch.
24456
24457 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24458
24459         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24460         because the potential race is on the user-supplied stream.
24461
24462 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24463
24464         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24465         string literal if not passed a buffer.
24466         * manual/job.texi (ctermid): Update reasoning, note deviation
24467         from posix, suggest mtasurace when not passed a buffer, for
24468         future non-preliminary safety notes.
24469
24470 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24471
24472         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24473         of not passing it a buffer.
24474         Reported by Peng Haitao.
24475
24476 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24477
24478         * manual/Makefile ($(objpfx)stamp-summary): Require
24479         check-safety.sh to pass.
24480         * manual/check-safety.sh: Wish for verification that every
24481         @deftypefn and @deftypefun is followed by a @safety remark.
24482
24483 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24484
24485         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24486
24487         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24488         PTHREAD_CANCEL_ASYNCHRONOUS.
24489         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24490         send SIGCANCEL.
24491
24492         * nptl/default-sched.h: New file.
24493         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24494         * nptl/pthread_create.c: Include it.
24495         (__pthread_create_2_1): Use collect_default_sched instead of making
24496         Linux syscalls here directly.
24497
24498 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24499
24500         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24501         __pthread_once): Use C11 atomics.
24502
24503 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24504
24505         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24506
24507 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24508
24509         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24510         atomic_thread_fence_acquire, atomic_thread_fence_release,
24511         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24512         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24513         atomic_compare_exchange_weak_relaxed,
24514         atomic_compare_exchange_weak_acquire,
24515         atomic_compare_exchange_weak_release,
24516         atomic_exchange_acquire, atomic_exchange_release,
24517         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24518         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24519         atomic_fetch_and_acquire,
24520         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24521
24522 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24523
24524         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24525         USE_ATOMIC_COMPILER_BUILTINS): Define.
24526         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24527         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24528         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24529         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24530         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24531         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24532         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24533         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24534         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24535         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24536         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24537         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24538         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24539         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24540         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24541         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24542         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24543         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24544         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24545         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24546         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24547         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24548         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24549         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24550         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24551         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24552         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24553         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24554         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24555         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24556         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24557         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24558         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24559         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24560         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24561         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24562         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24563         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24564         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24565         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24566
24567 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24568
24569         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24570         the sched_priority value here.  It was already checked when the user
24571         called pthread_attr_setschedparam.
24572
24573         * nptl/tst-bad-schedattr.c: New file.
24574         * nptl/Makefile (tests): Add it.
24575
24576 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24577             Florian Weimer  <fweimer@redhat.com>
24578             Joseph Myers  <joseph@codesourcery.com>
24579             Adam Conrad  <adconrad@0c3.net>
24580             Andreas Schwab  <schwab@suse.de>
24581             Brooks  <bmoses@google.com>
24582
24583         [BZ #17625]
24584         * wordexp-test.c (__dso_handle): Add prototype.
24585         (__register_atfork): Likewise.
24586         (__app_register_atfork): New function.
24587         (registered_forks): New global.
24588         (register_fork): New function.
24589         (test_case): Add 3 new tests for WRDE_CMDSUB.
24590         (main): Call __app_register_atfork.
24591         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24592         fork count is non-zero fail the test.
24593         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24594         is set.
24595         (parse_dollars): Remove check for WRDE_NOCMD.
24596         (parse_dquote): Likewise.
24597
24598 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24599
24600         * Makeconfig (built-modules): List non-library modules to be
24601         built.
24602         (module-cppflags): Include libc-modules.h for
24603         everything except shlib-versions.v.i.
24604         (CPPFLAGS): Use it.
24605         (before-compile): Add libc-modules.h.
24606         ($(common-objpfx)libc-modules.h,
24607         $(common-objpfx)libc-modules.stmp): New targets.
24608         (common-generated): Add libc-modules.h and libc-modules.stmp.
24609         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24610         * include/libc-symbols.h: Don't include libc-modules.h.
24611         * include/libc-modules.h: Remove file.
24612         * scripts/gen-libc-modules.awk: New script to generate
24613         libc-modules.h.
24614         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24615         Depend on libc-modules.stmp.
24616
24617         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24618
24619         * Makeconfig (in-module): Get value of libof set for the
24620         translation unit.
24621         (CPPFLAGS): Use $(in-module).
24622         * Makerules: Don't suffix routine names for nonlib.
24623         * include/libc-modules.h: New file.
24624         * include/libc-symbols.h: Include libc-modules.h
24625         (IS_IN): New macro to replace IS_IN_* macros.
24626         * elf/Makefile: Set libof-* for each routine.
24627         * elf/rtld-Rules: Likewise.
24628         * extra-modules.mk: Likewise.
24629         * iconv/Makefile: Likewise.
24630         * iconvdata/Makefile: Likewise.
24631         * locale/Makefile: Likewise.
24632         * malloc/Makefile: Likewise.
24633         * nss/Makefile: Likewise.
24634         * sysdeps/gnu/Makefile: Likewise.
24635         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24636         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24637         * sysdeps/s390/s390-64/Makefile: Likewise.
24638         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24639         CPPFLAGS for nscd instead of nonlib.
24640
24641 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24642
24643         * nptl/createthread.c: New file.
24644
24645         * nptl/createthread.c: Moved ...
24646         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24647
24648         * nptl/createthread.c: Add proper top-line comment.
24649         (do_clone): Folded into ...
24650         (create_thread): ... here.  Take new arguments STOPPED_START and
24651         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24652         increment __nptl_threads, do event-reporting logic, do
24653         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24654         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24655         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24656         just send SIGCANCEL.
24657         * nptl/pthread_create.c: Forward-declare create_thread before
24658         including createthread.c.
24659         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24660         declaration, and new macro START_THREAD_SELF to replace argument.
24661         Remove return statement.
24662         (report_thread_creation): New function.
24663         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24664         synchronization logic, and __nptl_nthreads increment here, around
24665         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24666         PD->parent_cancelhandling here, before create_thread.  When
24667         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24668         __deallocate_stack, and ENOMEM translation here.
24669
24670 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24671
24672         [BZ #17616]
24673         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24674         (mptwo): Rename to __mptwo.
24675         (__inv): Use __mptwo instead of mptwo.
24676         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24677         (mptwo): Rename to __mptwo.
24678         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24679         of mpone and __mptwo instead of mptwo.
24680         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24681         instead of mpone.
24682         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24683         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24684         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24685         of mpone and __mptwo instead of mptwo.
24686         (__mpranred): Use __mpone instead of mpone.
24687         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24688         variable.
24689         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24690         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24691         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24692         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24693         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24694         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24695         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24696         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24697         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24698         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24699         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24700         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24701         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24702         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24703         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24704         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24705         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24706         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24707         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24708
24709 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24710
24711         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24712         replace BSD Handler xref with BSD Signal Handling.
24713
24714 2014-11-17  Richard Henderson  <rth@redhat.com>
24715
24716         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24717         (_FP_PACK_RAW_2): Remove.
24718         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24719         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24720         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24721         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24722         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24723         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24724         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24725         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24726         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24727         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24728         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24729         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24730         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24731         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24732         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24733         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24734
24735 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24736
24737         * signal/signal.h [__USE_MISC]
24738         (struct sigvec): Remove type.
24739         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24740         (sigvec): Remove declaration.
24741         * sysdeps/posix/sigvec.c: Moved ...
24742         * signal/sigvec.c: ... here, replacing old file.
24743         (struct sigvec): New type, copied from old signal.h definition.
24744         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24745         (__sigvec): Convert definition to prototype.
24746         (sigvec): Replace weak_alias with compat_symbol.
24747         * signal/Versions (libc: GLIBC_2.21): New version set.
24748         * include/signal.h: Remove __sigvec declaration.
24749         * sysdeps/unix/bsd/sigvec.c: Remove file.
24750         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24751         * manual/signal.texi (BSD Handler): Remove subsection.
24752         Move siginterrupt up to ...
24753         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24754         (Blocking in BSD): Fold subsection into its parent.
24755         * NEWS: Mention sigvec removal.
24756
24757 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24758
24759         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24760         (DLA_FMS): Make definition conditional only on [__FMA4__].
24761         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24762         definition.
24763
24764         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24765         Make definition conditional only on [PROF].
24766         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24767         definition.
24768         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24769         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24770
24771         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24772         !__GNUC__].
24773         * include/signal.h (__sigpause): Move declaration above call to
24774         libc_hidden_proto.
24775         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24776         variable.
24777         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24778         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24779
24780 2014-11-14  David S. Miller  <davem@davemloft.net>
24781
24782         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24783         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24784
24785 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24786
24787         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24788         * configure: Regenerated.
24789         * manual/install.texi (Tools for Compilation): Document a
24790         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24791         compiler verified to work.
24792         * INSTALL: Regenerated.
24793
24794         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24795         redeclare with asm name.
24796         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24797         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24798         including <string.h>.
24799         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24800         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24801         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24802         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24803         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24804         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24805         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24806
24807 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24808
24809         * stdlib/strtol.c (__strtol): Use prototype definition.
24810
24811         [BZ #17594]
24812         * stdlib/strtol.c (SYM__): New macro.
24813         (SYM__1): Likewise.
24814         (__strtol): Likewise.
24815         (strtol): Rename to __strtol and define as weak alias of
24816         __strtol.  Use libc_hidden_weak.
24817
24818 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24819
24820         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24821         Use numbered labels in inline assembly.
24822
24823 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24824
24825         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24826         Add setjmp LIBC_PROBE.
24827         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24828         Likewise.
24829         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24830         Add longjmp, longjmp_target LIBC_PROBE.
24831         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24832         Likewise.
24833
24834 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24835
24836         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24837         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24838         to get rid of unused variable warning.
24839
24840 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24841
24842         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24843         Check for unwind_backtrace ==  NULL only in SHARED case.
24844         (__backchain_backtrace): Compile only in SHARED case.
24845         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24846         Likewise.
24847         (__backchain_backtrace): Declare as static.
24848
24849 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24850
24851         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24852         (__libc_multiple_threads_ptr): Variable moved ...
24853         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24854
24855 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24856
24857         * conform/GlibcConform.pm: New file.
24858         * conform/conformtest.pl: Use GlibcConform module.
24859         * conform/linknamespace.pl: New file.
24860         * conform/list-header-symbols.pl: Likewise.
24861         * conform/Makefile (linknamespace-symlists-base): New variable.
24862         (linknamespace-symlists-tests): Likewise.
24863         (linknamespace-header-base): Likewise.
24864         (linknamespace-header-tests): Likewise.
24865         (tests-special): Add new tests.
24866         ($(linknamespace-symlists-tests)): New rule.
24867         (linknamespace-libs): New variable.
24868         ($(objpfx)symlist-stdlibs): New rule.
24869         ($(linknamespace-header-tests)): Likewise.
24870         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24871         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24872         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24873         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24874         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24875         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24876         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24877         (test-xfail-ISO/math.h/linknamespace): Likewise.
24878         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24879         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24880         (test-xfail-ISO/time.h/linknamespace): Likewise.
24881         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24882         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24883         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24884         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24885         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24886         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24887         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24888         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24889         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24890         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24891         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24892         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24893         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24894         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24895         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24896         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24897         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24898         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24899         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24900         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24901         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24902         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24903         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24904         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24905         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24906         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24907         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24908         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24909         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24910         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24911         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24912         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24913         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24914         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24915         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24916         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24917         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24918         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24919         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24920         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24921         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24922         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24923         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24924         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24925         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24926         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24927         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24928         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24929         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24930         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24931         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24932         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24933         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24934         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24935         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24936         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24937         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24938         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24939         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24940         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24941         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24942         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24943         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24944         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24945         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24946         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24947         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24948         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24949         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24950         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24951         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24952         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24953         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24954         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24955         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24956         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24957         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24958         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24959         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24960         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24961         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24962         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24963         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24964         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24965         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24966         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24967         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24968         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24969         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24970         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24971         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24972         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24973         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24974         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24975         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24976         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24977         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24978         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24979         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24980         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24981         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24982         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24983         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24984         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24985         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24986         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24987         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24988         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24989         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24990         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24991         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24992         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24993         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24994         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24995         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24996         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24997         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24998         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24999         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25000         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25001         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25002         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25003         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25004         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25005         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25006         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25007         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25008         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25009         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25010         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25011         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25012         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25013         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25014         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25015         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25016         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25017         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25018         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25019         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25020         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25021         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25022         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25023         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25024         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25025         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25026         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25027         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25028         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25029         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25030         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25031
25032         [BZ #17589]
25033         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25034         of fgets_unlocked.
25035
25036         [BZ #17585]
25037         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25038         (memmem): Rename to __memmem and define as weak alias of
25039         __memmem.  Use libc_hidden_weak.
25040         (__memmem): Use libc_hidden_def.
25041         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25042         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25043         memmem.
25044
25045         [BZ #17582]
25046         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25047         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25048         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25049         and define as weak alias of __fgets_unlocked.  Use
25050         libc_hidden_weak.
25051         (__fgets_unlocked): Use libc_hidden_def.
25052         * include/stdio.h (__fgets_unlocked): Declare.  Use
25053         libc_hidden_proto.
25054         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25055         __fgets_unlocked instead of fgets_unlocked.
25056         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25057         (GET_NPROCS_CONF_PARSER): Likewise.
25058         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25059         (GET_NPROCS_CONF_PARSER): Likewise.
25060
25061         [BZ #17574]
25062         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25063         weak alias of __wmemset.  Use libc_hidden_weak.
25064         (__wmemset): Use libc_hidden_def.
25065         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25066         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25067         of wmemset.
25068
25069         [BZ #17573]
25070         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25071         with asm name __mempcpy.
25072         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25073
25074         [BZ #17572]
25075         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25076         and define as weak alias of __rawmemchr.
25077         (__rawmemchr): Do not define as strong alias of rawmemchr.
25078
25079         [BZ #17571]
25080         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25081         alias of __qsort_r.
25082         (qsort): Call __qsort_r instead of qsort_r.
25083         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25084         (__qsort_r): Declare.  Call libc_hidden_proto.
25085         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25086         instead of qsort_r.
25087         * nscd/gai.c (__qsort_r): Define to qsort_r.
25088         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25089         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25090         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25091
25092         [BZ #17570]
25093         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25094         define as weak alias of __malloc_info.
25095
25096         [BZ #17584]
25097         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25098         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25099         (__rewinddir): Use libc_hidden_def.
25100         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25101         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25102         (__rewinddir): Use libc_hidden_def.
25103         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25104         weak alias of __rewinddir.  Don't use libc_hidden_def.
25105         (__rewinddir): Use libc_hidden_def.
25106         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25107         (__rewinddir): Use libc_hidden_proto.
25108         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25109         rewinddir.
25110         (__getcwd): Use __rewinddir instead of rewinddir.
25111
25112         [BZ #17583]
25113         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25114         alias of __fileno.  Use libc_hidden_weak.
25115         (__fileno): Use libc_hidden_def.
25116         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25117         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25118         alias of __ftello.
25119         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25120         __ftello.
25121         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25122         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25123         libc_hidden_def.
25124         (fread_unlocked): Don't use libc_hidden_ver.
25125         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25126         and define as weak alias of __fread_unlocked.  Don't use
25127         libc_hidden_def.
25128         (__fread_unlocked): Use libc_hidden_def.
25129         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25130         (ftello): Don't use libc_hidden_proto.
25131         (__ftello): Declare.  Use libc_hidden_proto.
25132         (fread_unlocked): Don't use libc_hidden_proto.
25133         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25134         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25135         and __ftello instead of fileno, fread_unlocked and ftello.
25136
25137 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25138
25139         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25140         GOT12.
25141         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25142         Likewise.
25143         (_dl_start_user): Likewise.
25144         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25145
25146 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25147             Siddhesh Poyarekar  <siddhesh@redhat.com>
25148
25149         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25150         Move argv and envp down instead of moving argc up.
25151         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25152
25153 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25154
25155         [BZ #17506]
25156         * test-skeleton.c (main): Return successful if one of
25157         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25158         * string/tst-strcoll-overflow.c: Define expected status.
25159
25160 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25161
25162         [BZ #17475]
25163         * locale/iso-639.def: Define Bhili and Tulu language codes.
25164
25165 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25166
25167         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25168
25169 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25170
25171         [BZ #17555]
25172         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25173
25174 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25175
25176         * configure.ac: Updated check of minimal required version to
25177         2.22.
25178         * manual/install.texi (Tools for Compilation): Updated version
25179         number.
25180         * configure: Regenerated.
25181         * INSTALL: Likewise.
25182
25183 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25184
25185         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25186         __tls_get_addr.
25187
25188 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25189
25190         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25191         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25192         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25193         libc_hidden_weak.
25194         (waitpid): Define as alias of __waitpid.
25195         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25196         __waitpid.
25197         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25198         libc_hidden_weak.
25199         (waitpid): Define as alias of __waitpid.
25200         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25201         __libc_waitpid alias.
25202         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25203         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25204         Likewise.
25205         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25206         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25207         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25208         alias.
25209         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25210         __waitpid.
25211         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25212         libc_hidden_weak.
25213         (waitpid): Define as alias of __waitpid.
25214
25215 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25216
25217         * manual/llio.texi: Add comment that write safety has been
25218         fixed in Linux.
25219
25220         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25221         (localplt-build-dso): Add elf/ld.so.
25222         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25223         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25224         and free for ld.so.
25225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25226         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25228         Likewise.
25229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25230         Likewise.
25231         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25232         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25233         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25234         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25235         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25236         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25237         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25238         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25239         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25240         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25241         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25242
25243 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25244
25245         [BZ #14132]
25246         * include/libc-symbols.h (INTUSE): Remove macro.
25247         (INTDEF): Likewise.
25248         (INTVARDEF): Likewise.
25249         (_INTVARDEF): Likewise.
25250         (INTDEF2): Likewise.
25251         (INTVARDEF2): Likewise.
25252         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25253         rtld_hidden_def instead of INTVARDEF.
25254         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25255         (_dl_starting_up_internal): Remove declaration.
25256         (_dl_starting_up): Use rtld_hidden_proto.
25257         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25258         declaration.
25259         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25260         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25261         _dl_starting_up.
25262         * elf/dl-writev.h (_dl_writev): Likewise.
25263         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25264         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25265         _dl_starting_up_internal.
25266
25267 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25268
25269         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25270         test-skeleton.c.
25271
25272 2014-11-05  Will Newton  <will.newton@linaro.org>
25273
25274         * benchtests/Makefile: (bench-malloc): Add malloc thread
25275         scalability benchmark.
25276         * benchtests/bench-malloc-threads.c: New file.
25277
25278 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25279
25280         * sysdeps/aarch64/strchrnul.S: New file.
25281
25282 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25283
25284         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25285         definition.
25286         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25287         Likwise.
25288         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25289         Likewise.
25290         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25291         Likewise.
25292         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25293         Likewise.
25294         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25295         Likewise.
25296
25297 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25298
25299         * catgets/test-gencat.c: Use test-skeleton.c.
25300         * catgets/tst-catgets.c: Likewise.
25301         * csu/tst-empty.c: Likewise.
25302         * elf/tst-audit2.c: Likewise.
25303         * elf/tst-global1.c: Likewise.
25304         * elf/tst-pathopt.c: Likewise.
25305         * elf/tst-piemod1.c: Likewise.
25306         * elf/tst-tls10.c: Likewise.
25307         * elf/tst-tls11.c: Likewise.
25308         * elf/tst-tls12.c: Likewise.
25309         * gnulib/tst-gcc.c: Likewise.
25310         * iconvdata/tst-e2big.c: Likewise.
25311         * iconvdata/tst-loading.c: Likewise.
25312         * iconv/tst-iconv1.c: Likewise.
25313         * iconv/tst-iconv2.c: Likewise.
25314         * inet/test-inet6_opt.c: Likewise.
25315         * inet/tst-gethnm.c: Likewise.
25316         * inet/tst-network.c: Likewise.
25317         * inet/tst-ntoa.c: Likewise.
25318         * intl/tst-codeset.c: Likewise.
25319         * intl/tst-gettext2.c: Likewise.
25320         * intl/tst-gettext3.c: Likewise.
25321         * intl/tst-ngettext.c: Likewise.
25322         * intl/tst-translit.c: Likewise.
25323         * io/test-stat.c: Likewise.
25324         * libio/test-fmemopen.c: Likewise.
25325         * libio/tst-freopen.c: Likewise.
25326         * libio/tst-sscanf.c: Likewise.
25327         * libio/tst-ungetwc1.c: Likewise.
25328         * libio/tst-ungetwc2.c: Likewise.
25329         * libio/tst-widetext.c: Likewise.
25330         * localedata/tst-ctype.c: Likewise.
25331         * localedata/tst-digits.c: Likewise.
25332         * localedata/tst-leaks.c: Likewise.
25333         * localedata/tst-mbswcs1.c: Likewise.
25334         * localedata/tst-mbswcs2.c: Likewise.
25335         * localedata/tst-mbswcs3.c: Likewise.
25336         * localedata/tst-mbswcs4.c: Likewise.
25337         * localedata/tst-mbswcs5.c: Likewise.
25338         * localedata/tst-setlocale.c: Likewise.
25339         * localedata/tst-trans.c: Likewise.
25340         * localedata/tst-wctype.c: Likewise.
25341         * localedata/tst-xlocale1.c: Likewise.
25342         * login/tst-grantpt.c: Likewise.
25343         * malloc/tst-calloc.c: Likewise.
25344         * malloc/tst-malloc.c: Likewise.
25345         * malloc/tst-mallocstate.c: Likewise.
25346         * malloc/tst-mcheck.c: Likewise.
25347         * malloc/tst-mtrace.c: Likewise.
25348         * malloc/tst-obstack.c: Likewise.
25349         * math/atest-exp2.c: Likewise.
25350         * math/atest-exp.c: Likewise.
25351         * math/atest-sincos.c: Likewise.
25352         * math/test-matherr.c: Likewise.
25353         * math/test-misc.c: Likewise.
25354         * math/test-powl.c: Likewise.
25355         * math/tst-definitions.c: Likewise.
25356         * misc/tst-dirname.c: Likewise.
25357         * misc/tst-efgcvt.c: Likewise.
25358         * misc/tst-fdset.c: Likewise.
25359         * misc/tst-hsearch.c: Likewise.
25360         * misc/tst-mntent2.c: Likewise.
25361         * nptl/tst-sem7.c: Likewise.
25362         * nptl/tst-sem8.c: Likewise.
25363         * nptl/tst-sem9.c: Likewise.
25364         * nss/test-netdb.c: Likewise.
25365         * posix/tst-fnmatch.c: Likewise.
25366         * posix/tst-getlogin.c: Likewise.
25367         * posix/tst-gnuglob.c: Likewise.
25368         * posix/tst-mmap.c: Likewise.
25369         * pwd/tst-getpw.c: Likewise.
25370         * resolv/tst-inet_ntop.c: Likewise.
25371         * rt/tst-timer.c: Likewise.
25372         * stdio-common/test-fseek.c: Likewise.
25373         * stdio-common/test-popen.c: Likewise.
25374         * stdio-common/test-vfprintf.c: Likewise.
25375         * stdio-common/tst-cookie.c: Likewise.
25376         * stdio-common/tst-fileno.c: Likewise.
25377         * stdio-common/tst-gets.c: Likewise.
25378         * stdio-common/tst-obprintf.c: Likewise.
25379         * stdio-common/tst-perror.c: Likewise.
25380         * stdio-common/tst-sprintf2.c: Likewise.
25381         * stdio-common/tst-sprintf3.c: Likewise.
25382         * stdio-common/tst-sprintf.c: Likewise.
25383         * stdio-common/tst-swprintf.c: Likewise.
25384         * stdio-common/tst-tmpnam.c: Likewise.
25385         * stdio-common/tst-unbputc.c: Likewise.
25386         * stdio-common/tst-wc-printf.c: Likewise.
25387         * stdlib/tst-environ.c: Likewise.
25388         * stdlib/tst-fmtmsg.c: Likewise.
25389         * stdlib/tst-limits.c: Likewise.
25390         * stdlib/tst-rand48-2.c: Likewise.
25391         * stdlib/tst-rand48.c: Likewise.
25392         * stdlib/tst-random2.c: Likewise.
25393         * stdlib/tst-random.c: Likewise.
25394         * stdlib/tst-strtol.c: Likewise.
25395         * stdlib/tst-strtoll.c: Likewise.
25396         * stdlib/tst-tls-atexit.c: Likewise.
25397         * stdlib/tst-xpg-basename.c: Likewise.
25398         * string/test-ffs.c: Likewise.
25399         * string/tst-bswap.c: Likewise.
25400         * string/tst-inlcall.c: Likewise.
25401         * string/tst-strtok.c: Likewise.
25402         * string/tst-strxfrm.c: Likewise.
25403         * sysdeps/x86_64/tst-audit10.c: Likewise.
25404         * sysdeps/x86_64/tst-audit3.c: Likewise.
25405         * sysdeps/x86_64/tst-audit4.c: Likewise.
25406         * sysdeps/x86_64/tst-audit5.c: Likewise.
25407         * time/tst-ftime_l.c: Likewise.
25408         * time/tst-getdate.c: Likewise.
25409         * time/tst-mktime3.c: Likewise.
25410         * time/tst-mktime.c: Likewise.
25411         * time/tst-posixtz.c: Likewise.
25412         * time/tst-strptime2.c: Likewise.
25413         * time/tst-strptime3.c: Likewise.
25414         * wcsmbs/tst-btowc.c: Likewise.
25415         * wcsmbs/tst-mbrtowc.c: Likewise.
25416         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25417         * wcsmbs/tst-wchar-h.c: Likewise.
25418         * wcsmbs/tst-wcpncpy.c: Likewise.
25419         * wcsmbs/tst-wcrtomb.c: Likewise.
25420         * wcsmbs/tst-wcsnlen.c: Likewise.
25421         * wcsmbs/tst-wcstof.c: Likewise.
25422
25423 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25424
25425         [BZ #14132]
25426         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25427         INTDEF.
25428         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25429         declaration.
25430         (_dl_mcount): Use rtld_hidden_proto.
25431         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25432         _dl_mcount.
25433         * elf/rtld.c (_rtld_global_ro): Likewise.
25434
25435         [BZ #14132]
25436         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25437         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25438         of _dl_init_internal.
25439         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25440         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25441         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25442         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25443         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25444         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25445         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25446         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25447         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25448         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25449         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25450         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25451         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25452         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25453         * sysdeps/tile/dl-start.S (_start): Likewise.
25454         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25455         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25456
25457         [BZ #14132]
25458         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25459         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25460         (rtld_progname): Make macro definition unconditional.
25461         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25462         INTDEF.
25463         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25464         (dl_main): Likewise.
25465         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25466         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25467         instead of _dl_argv_internal.
25468         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25469         __GI__dl_argv instead of INTUSE(_dl_argv).
25470         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25471         __GI__dl_argv instead of _dl_argv_internal.
25472
25473         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25474         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25475         macro.
25476         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25477         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25478         New macro.
25479         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25480         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25481         macro.
25482         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25483         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25484
25485 2014-11-04  Andreas Schwab  <schwab@suse.de>
25486
25487         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25488
25489 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25490
25491         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25492         mtvsrd instruction in binary form.
25493
25494 2014-11-03  Andreas Schwab  <schwab@suse.de>
25495
25496         [BZ #17522]
25497         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25498         for less than MB_LEN_MAX use a local buffer of that size.
25499         * libio/tst-fputws.c: New file.
25500         * libio/Makefile (tests): Add tst-fputws.
25501
25502 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25503
25504         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25505         the size of the fpu_fr.fpu_dregs[] array.
25506
25507 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25508
25509         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25510         (__nanosleep): Do not define as alias.
25511         (nanosleep): Define as alias of __nanosleep.
25512         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25513         __libc_nanosleep name.
25514
25515 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25516
25517         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25518         install.texi in comment.
25519
25520 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25521
25522         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25523         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25524         ... add here and use lwsync or sync ...
25525         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25526         ... and add here using lwsync.
25527
25528 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25529
25530         * elf/dl-machine-reject-phdr.h: New file.
25531         * elf/dl-load.c: #include that.
25532         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25533         if that returned true.
25534
25535 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25536
25537         [BZ #17496]
25538         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25539         gen-as-const-headers chunk.  Add a big scare comment after the last
25540         safe place to touch before-compile.
25541
25542 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25543
25544         * manual/install.texi (Tools for Compilation): Update autoconf
25545         version requirements.
25546         * INSTALL: Regenerated.
25547
25548         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25549         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25550         (__libc_pselect): Likewise.
25551
25552         [BZ #14138]
25553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25557
25558 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25559
25560         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25561         correct barrier instruction.
25562         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25563         Likewise.
25564         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25565         Likewise.
25566
25567 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25568
25569         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25570         after defining inlines.  Instead, just use parens to defeat macro
25571         expansion of __isctype in its declaration.
25572
25573 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25574
25575         * include/sys/uio.h (__libc_readv): Remove declaration.
25576         (__libc_writev): Likewise.
25577         * misc/readv.c (__libc_readv): Rename to __readv.
25578         (__readv): Do not define as alias.
25579         (readv): Define as alias of __readv.
25580         * misc/writev.c (__libc_writev): Rename to __writev.
25581         (__writev): Do not define as alias.
25582         (writev): Define as alias of __writev.
25583         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25584         (__readv): Do not define as alias.
25585         (readv): Define unconditionally as alias of __readv.
25586         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25587         (__writev): Do not define as alias.
25588         (writev): Define unconditionally as alias of __writev.
25589         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25590         name.
25591         (writev): Do not define __libc_writev name.
25592
25593 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25594
25595         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25596         (convert_charseq): New function, broken out of ...
25597         (use_from_charmap): ... here.  Call it.
25598         (use_to_charmap): Use convert_charseq and free instead of duplicating
25599         its code with a variable-length stack struct.
25600
25601 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25602
25603         * include/fcntl.h (__libc_creat): Remove declaration.
25604         * io/creat.c (__libc_creat): Rename to creat.
25605         (creat): Do not define as alias.
25606         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25607         of creat instead of __libc_creat.
25608         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25609         to creat.
25610         (creat): Do not define as alias.
25611         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25612         __libc_creat.
25613         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25614         __libc_creat name.
25615         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25616         Likewise.
25617
25618 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25619
25620         * manual/llio.texi: Add comments discussing why write() may be
25621         considered MT-unsafe on Linux.
25622
25623 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25624
25625         * dl-load.c (local_strdup): Remove.
25626         (expand_dynamic_string_token): Use __strdup.
25627         (decompose_rpath): Likewise.
25628         (_dl_map_object): Likewise.
25629
25630 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25631
25632         [BZ #14132]
25633         * sysdeps/generic/unwind-dw2-fde.c
25634         (__register_frame_info_bases_internal): Do not declare.
25635         (__register_frame_info_table_bases_internal): Likewise.
25636         (__deregister_frame_info_bases_internal): Likewise.
25637         (__register_frame_info_bases): Declare and use hidden_proto before
25638         definition.  Use hidden_def instead of INTDEF.
25639         (__register_frame_info_table_bases): Likewise.
25640         (__deregister_frame_info_bases): Likewise.
25641         (__register_frame_info): Do not use INTUSE.
25642         (__register_frame): Likewise.
25643         (__register_frame_info_table): Likewise.
25644         (__register_frame_table): Likewise.
25645         (__deregister_frame_info): Likewise.
25646         (__deregister_frame): Likewise.
25647
25648 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25649
25650         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25651         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25652         not undefine.
25653         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25654         Likewise.
25655         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25656         Likewise.
25657
25658 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25659
25660         [BZ #14138]
25661         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25662         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25663         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25664         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25665         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25666         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25667         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25668         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25669         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25670         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25671         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25672         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25673         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25674         syscall.
25675         (setfsuid): Likewise.
25676         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25677         (setfsuid): Likewise.
25678         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25679         (setfsuid): Likewise.
25680         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25681         Likewise.
25682         (setfsuid): Likewise.
25683         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25684         (setfsuid): Likewise.
25685         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25686         Likewise.
25687         (setfsuid): Likewise.
25688
25689 2014-10-27  Andreas Schwab  <schwab@suse.de>
25690
25691         [BZ #17501]
25692         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25693         check for Slow_SSE4_2 feature bit.
25694         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25695         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25696         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25697         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25698
25699 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25700
25701         * configure.ac: Validate compiler version with a empirical test of
25702         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25703         $CC -v output.
25704         * configure: Regenerated.
25705
25706         * inet/htons.c (htons): Prototypify.
25707         * inet/htonl.c (htonl): Likewise.
25708
25709 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25710
25711         * string/strncat.c (strncat): Improve performance by using strlen.
25712
25713 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25714
25715         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25716
25717 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25718
25719         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25720         Call libc_fetestexcept_aarch64.
25721
25722 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25723
25724         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25725         Call libc_feholdexcept_aarch64.
25726
25727 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25728
25729         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25730         Call get_rounding_mode.
25731
25732 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25733
25734         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25735         Simplify logic.
25736
25737 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25738
25739         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25740         Simplify logic.
25741
25742 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25743
25744         [BZ #14138]
25745         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25746         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25747         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25748         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25749         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25750         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25751         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25752         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25753         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25754         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25755         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25756         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25757         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25758         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25759         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25760         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25761         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25762         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25763         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25764         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25765         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25766         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25767         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25768         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25769         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25770         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25771         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25772         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25773         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25774         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25775         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25776         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25777         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25778         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25779         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25780         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25781         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25782         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25783         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25784         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25785         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25786         syscall.
25787         (geteuid): Likewise.
25788         (getgid): Likewise.
25789         (getuid): Likewise.
25790         (getresgid): Likewise.
25791         (getresuid): Likewise.
25792         (getgroups): Likewise.
25793         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25794         (geteuid): Likewise.
25795         (getgid): Likewise.
25796         (getuid): Likewise.
25797         (getresgid): Likewise.
25798         (getresuid): Likewise.
25799         (getgroups): Likewise.
25800         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25801         (geteuid): Likewise.
25802         (getgid): Likewise.
25803         (getuid): Likewise.
25804         (getresgid): Likewise.
25805         (getresuid): Likewise.
25806         (getgroups): Likewise.
25807         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25808         Likewise.
25809         (geteuid): Likewise.
25810         (getgid): Likewise.
25811         (getuid): Likewise.
25812         (getresgid): Likewise.
25813         (getresuid): Likewise.
25814         (getgroups): Likewise.
25815         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25816         (geteuid): Likewise.
25817         (getgid): Likewise.
25818         (getuid): Likewise.
25819         (getresgid): Likewise.
25820         (getresuid): Likewise.
25821         (getgroups): Likewise.
25822         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25823         Likewise.
25824         (geteuid): Likewise.
25825         (getgid): Likewise.
25826         (getuid): Likewise.
25827         (getgroups): Likewise.
25828
25829         [BZ #14138]
25830         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25831         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25832         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25833         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25834         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25835         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25836         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25837         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25838         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25839         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25840         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25841         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25842         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25843         __chown.
25844         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25845         (lchown): Likewise.
25846         (fchown): Likewise.
25847         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25848         Likewise.
25849         (lchown): Likewise.
25850         (fchown): Likewise.
25851         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25852         (lchown): Likewise.
25853         (fchown): Likewise.
25854         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25855         Likewise.
25856         (lchown): Likewise.
25857         (fchown): Likewise.
25858
25859 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25860
25861         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25862         Simplify logic.
25863
25864 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25865
25866         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25867         Cleanup logic.
25868
25869 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25870
25871         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25872         Remove unused include.
25873
25874 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25875
25876         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25877         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25878         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25879         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25880
25881 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25882             Helge Deller <deller@gmx.de>
25883
25884         [BZ #17508]
25885         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25886         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25887         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25888
25889 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25890
25891         [BZ #14132]
25892         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25893         Remove macro definition.
25894         (__ashrdi3_v_glibc20): Likewise.
25895         (__lshrdi3_v_glibc20): Likewise.
25896         (__cmpdi2_v_glibc20): Likewise.
25897         (__ucmpdi2_v_glibc20): Likewise.
25898         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25899         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25900         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25901         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25902         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25903         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25904
25905 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25906
25907         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25908         old GNU extension [0] syntax.
25909         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25910         alloca rather than an array member with variable length.
25911         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25912         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25913         (parse_opt): ... here.  Likewise use alloca there.
25914         Validate the -i argument before checking for rootness.
25915         (send_shutdown): New function, broken out of ...
25916         (parse_opt): ... here.
25917
25918 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25919
25920         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25921         macro to get at the _rt_local_ro field.
25922         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25923         ([PIC] case) or _dl_hwcap ([!PIC] case).
25924         * sysdeps/arm/setjmp.S: Likewise.
25925
25926         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25927         * sysdeps/arm/configure.ac: New check to define it.
25928         * sysdeps/arm/configure: Regenerated.
25929         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25930         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25931         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25932         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25933         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25934         Use move/movt pair instead of a load.
25935         (LDST_GLOBAL): Macro removed.
25936         (LDR_GLOBAL): New macro replaces it.
25937         (LDR_HIDDEN): New macro.
25938         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25939         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25940
25941         * setjmp/tst-setjmp-static.c: New file.
25942         * setjmp/Makefile (tests): Add it.
25943         (tests-static): New variable.
25944
25945 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25946
25947         [BZ #17485]
25948         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25949
25950 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25951
25952         [BZ #14132]
25953         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25954
25955 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25956
25957         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25958
25959 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25960
25961         * io/fts.c (dirent_not_directory): New function.
25962         (fts_build): Call it.
25963
25964 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25965
25966         * nptl/version.c (__nptl_main): Use normal __write rather than
25967         INTERNAL_SYSCALL.
25968         (banner): Update copyright years.
25969
25970         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25971         gettimeofday.
25972         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25973         * nptl/pthread_cond_timedwait.c: Likewise.
25974         * nptl/pthread_mutex_timedlock.c: Likewise.
25975         * nptl/sem_timedwait.c: Likewise.
25976
25977         * sysdeps/nptl/bits/libc-lock.h
25978         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25979         (__libc_lock_init_recursive): Return void, not 0.
25980         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25981         (__libc_rwlock_init): Likewise.
25982         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25983
25984 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25985
25986         [BZ #15215]
25987         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25988         (__pthread_once_slow): ... here.
25989         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25990         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25991
25992 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25993
25994         [BZ #15215]
25995         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25996         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25997         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25998         * nptl/pthread_once.c (__pthread_once): Likewise.
25999         Update comments.
26000
26001 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26002
26003         [BZ #14138]
26004         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26005         name.
26006         (writev): Use __libc_writev as strong name.
26007         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26008         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26009
26010 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26011
26012         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26013
26014         * sysdeps/i386/nptl/tls.h
26015         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26016         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26017         New macros.
26018         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26019         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26020         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26021         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26022         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26023         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26024
26025         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26026         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26027         on [__NR_futex].
26028         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26029         broken out of ...
26030         (__pthread_mutex_init): ... here.  Call it.
26031         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26032         Conditionalize PI cases on [__NR_futex].
26033         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26034         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26035         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26036
26037         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26038         conditional on [SIGSETXID].
26039         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26040         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26041         is defined.  Likewise for SIGSETXID.
26042         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26043         Conditionalize definitions on [SIGSETXID].
26044         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26045         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26046         unblocking on [SIGCANCEL].
26047
26048         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26049         [__NR_set_robust_list].
26050
26051 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26052
26053         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26054         (do_compare): Likewise.
26055
26056 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26057
26058         [BZ #15884]
26059         * string/strcoll_l.c: Don't include stdio.h.
26060         (coll_seq): Remove members idxarr and rulearr.
26061         (get_next_seq_cached): Remove function.
26062         (get_next_seq): Likewise.
26063         (get_next_seq_nocache): Rename to get_next_seq.
26064         (do_compare): Remove function.
26065         (do_compare_nocache): Rename to do_compare.
26066         (STRCOLL): Remove weight and rules cache.
26067
26068 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26069
26070         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26071         * sysdeps/arm/sfp-machine.h: ... to here.
26072         * sysdeps/arm/Implies: Remove arm/soft-fp.
26073
26074 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26075
26076         * conform/data/sys/utsname.h-data (*_t): Allow.
26077         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26078         [POSIX] (WEXITED): Do not expect constant.
26079         [POSIX] (WSTOPPED): Likewise.
26080         [POSIX] (WNOHANG): Likewise.
26081         [POSIX] (WNOWAIT): Likewise.
26082         [POSIX] (siginfo_t): Do not expect type or elements.
26083         [POSIX] (pid_t): Do not expect type.
26084         [POSIX] (signal.h): Do not allow header.
26085         [POSIX] (sys/resource.h): Likewise.
26086         [POSIX] (si_*): Do not allow pattern.
26087         [POSIX] (W*): Likewise.
26088         [POSIX] (P_*): Likewise.
26089         [POSIX] (BUS_*): Likewise.
26090         [POSIX] (CLD_*): Likewise.
26091         [POSIX] (FPE_*): Likewise.
26092         [POSIX] (ILL_*): Likewise.
26093         [POSIX] (POLL_*): Likewise.
26094         [POSIX] (SEGV_*): Likewise.
26095         [POSIX] (SI_*): Likewise.
26096         [POSIX] (TRAP_*): Likewise.
26097         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26098         variable.
26099
26100 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26101
26102         [BZ #12926]
26103         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26104         infinite loop when __recvmsg returns 0.
26105
26106 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26107
26108         * CANCEL-FCT-WAIVE: Remove file.
26109         * CANCEL-FILE-WAIVE: Likewise.
26110
26111         [BZ #14132]
26112         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26113         instead of INTVARDEF.
26114         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26115         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26116         rtld_hidden_data_def instead of INTVARDEF.
26117         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26118         * elf/dl-deps.c (expand_dst): Likewise.
26119         * elf/dl-load.c (_dl_dst_count): Likewise.
26120         (_dl_dst_substitute): Likewise.
26121         (decompose_rpath): Likewise.
26122         (_dl_init_paths): Likewise.
26123         (open_path): Likewise.
26124         (_dl_map_object): Likewise.
26125         * elf/rtld.c (dl_main): Likewise.
26126         (process_dl_audit): Likewise.
26127         (process_envvars): Likewise.
26128         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26129         Remove declaration.
26130         (__libc_enable_secure): Use rtld_hidden_proto.
26131
26132 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26133
26134         * elf/dl-load.c
26135         (add_path): New function broken out of _dl_rtld_di_serinfo.
26136         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26137
26138 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26139
26140         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26141         parentheses around macro arguments.
26142         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26143         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26144         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26145         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26146         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26147         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26148         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26149         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26150         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26151         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26152         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26153         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26154         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26155         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26156         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26157         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26158         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26159         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26160         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26161         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26162         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26163         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26164         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26165         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26166         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26167         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26168         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26169         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26170         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26171         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26172         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26173         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26174         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26175         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26176         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26177         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26178         Likewise.
26179         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26180         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26181         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26182         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26183         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26184         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26185         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26186         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26187         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26188         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26189         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26190         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26191         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26192         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26193         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26194         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26195         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26196         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26197         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26198         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26199         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26200         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26201         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26202         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26203         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26204         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26205         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26206         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26207         (_FP_FRAC_SRS_1): Likewise.
26208         (_FP_FRAC_CLZ_1): Likewise.
26209         (_FP_MUL_MEAT_1_imm): Likewise.
26210         (_FP_MUL_MEAT_1_wide): Likewise.
26211         (_FP_MUL_MEAT_1_hard): Likewise.
26212         (_FP_SQRT_MEAT_1): Likewise.
26213         (_FP_FRAC_ASSEMBLE_1): Likewise.
26214         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26215         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26216         (__FP_CLZ_2): Likewise.
26217         (_FP_MUL_MEAT_2_wide): Likewise.
26218         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26219         (_FP_MUL_MEAT_2_gmp): Likewise.
26220         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26221         (_FP_SQRT_MEAT_2): Likewise.
26222         (_FP_FRAC_ASSEMBLE_2): Likewise.
26223         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26224         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26225         (_FP_FRAC_CLZ_4): Likewise.
26226         (_FP_MUL_MEAT_4_wide): Likewise.
26227         (_FP_MUL_MEAT_4_gmp): Likewise.
26228         (_FP_SQRT_MEAT_4): Likewise.
26229         (_FP_FRAC_ASSEMBLE_4): Likewise.
26230         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26231         * soft-fp/op-common.h (_FP_CMP): Likewise.
26232         (_FP_CMP_EQ): Likewise.
26233         (_FP_CMP_UNORD): Likewise.
26234         (_FP_TO_INT): Likewise.
26235         (_FP_FROM_INT): Likewise.
26236         [!__FP_CLZ] (__FP_CLZ): Likewise.
26237         (_FP_DIV_HELP_imm): Likewise.
26238         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26239         Likewise.
26240         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26241         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26242         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26243         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26244         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26245         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26246         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26247         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26248         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26249         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26250         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26251         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26252         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26253         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26254         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26255         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26256         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26257         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26258         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26259         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26260         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26261         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26262         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26263         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26264         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26265         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26266         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26267         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26268         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26269         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26270         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26271         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26272         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26273         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26274         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26275         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26276         (FP_UNPACK_RAW_SP): Likewise.
26277         (FP_PACK_RAW_S): Likewise.
26278         (FP_PACK_RAW_SP): Likewise.
26279         (FP_UNPACK_S): Likewise.
26280         (FP_UNPACK_SP): Likewise.
26281         (FP_UNPACK_SEMIRAW_S): Likewise.
26282         (FP_UNPACK_SEMIRAW_SP): Likewise.
26283         (FP_PACK_S): Likewise.
26284         (FP_PACK_SP): Likewise.
26285         (FP_PACK_SEMIRAW_S): Likewise.
26286         (FP_PACK_SEMIRAW_SP): Likewise.
26287         (_FP_SQRT_MEAT_S): Likewise.
26288         (FP_CMP_S): Likewise.
26289         (FP_CMP_EQ_S): Likewise.
26290         (FP_CMP_UNORD_S): Likewise.
26291         (FP_TO_INT_S): Likewise.
26292         (FP_FROM_INT_S): Likewise.
26293
26294         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26295
26296         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26297         (FP_EX_INVALID_IMZ): Likewise.
26298         (FP_EX_INVALID_IMZ_FMA): Likewise.
26299         (FP_EX_INVALID_ISI): Likewise.
26300         (FP_EX_INVALID_ZDZ): Likewise.
26301         (FP_EX_INVALID_IDI): Likewise.
26302         (FP_EX_INVALID_SQRT): Likewise.
26303         (FP_EX_INVALID_CVI): Likewise.
26304         (FP_EX_INVALID_VC): Likewise.
26305         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26306         "invalid" exceptions.
26307         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26308         (_FP_ADD_INTERNAL): Likewise.
26309         (_FP_MUL): Likewise.
26310         (_FP_FMA): Likewise.
26311         (_FP_DIV): Likewise.
26312         (_FP_CMP_CHECK_NAN): Likewise.
26313         (_FP_SQRT): Likewise.
26314         (_FP_TO_INT): Likewise.
26315         (FP_EXTEND): Likewise.
26316
26317 2014-10-09  Allan McRae  <allan@archlinux.org>
26318
26319         * po/fr.po: Update French translation from translation project.
26320
26321 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26322
26323         [BZ #14132]
26324         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26325         of INTDEF.
26326         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26327         (__cxa_atexit): Use libc_hidden_proto.
26328         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26329
26330         [BZ #14132]
26331         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26332         declaration.
26333         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26334         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26335         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26336         [!_ISOMAC] (__iswctype_internal): Likewise.
26337         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26338         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26339         alias.
26340         (fcntl): Remove __fcntl_internal alias.
26341         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26342         __connect_internal alias.
26343         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26344         Likewise.
26345
26346         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26347         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26348         FP_DENORM_ZERO.
26349         (_FP_CHECK_FLUSH_ZERO): New macro.
26350         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26351         (_FP_CMP): Likewise.
26352         (_FP_CMP_EQ): Likewise.
26353         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26354         FP_DENORM_ZERO.
26355         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26356         (FP_TRUNC): Likewise.
26357
26358         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26359         treated as invalid conversion, not as normal exponent.
26360
26361         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26362         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26363         (_FP_CMP_EQ): Likewise.
26364         (_FP_CMP_UNORD): Likewise.
26365         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26366         (FP_CMP_EQ_D): Likewise.
26367         (FP_CMP_UNORD_D): Likewise.
26368         * soft-fp/extended.h (FP_CMP_E): Likewise.
26369         (FP_CMP_EQ_E): Likewise.
26370         (FP_CMP_UNORD_E): Likewise.
26371         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26372         (FP_CMP_EQ_Q): Likewise.
26373         (FP_CMP_UNORD_Q): Likewise.
26374         * soft-fp/single.h (FP_CMP_S): Likewise.
26375         (FP_CMP_EQ_S): Likewise.
26376         (FP_CMP_UNORD_S): Likewise.
26377         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26378         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26379         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26380         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26381         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26382         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26383         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26384         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26385         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26386         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26387         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26388         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26389         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26390         to FP_CMP_Q.
26391         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26392         FP_CMP_Q.
26393         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26394         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26395         FP_CMP_EQ_Q.
26396         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26397         FP_CMP_Q.
26398         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26399         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26400         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26401         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26402         FP_CMP_EQ_Q.
26403         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26404         FP_CMP_Q.
26405         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26406         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26407         FP_CMP_EQ_Q.
26408         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26409         FP_CMP_Q.
26410         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26411         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26412         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26413         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26414         FP_CMP_EQ_Q.
26415
26416         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26417         a subnormal result, set the underflow exception if trapping on
26418         underflow is enabled.
26419         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26420         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26421         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26422         redefine to 0.
26423         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26424         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26425         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26426         * soft-fp/extendxftf2.c (__extendxftf2): Use
26427         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26428
26429         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26430         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26431         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26432         FP_HANDLE_EXCEPTIONS.
26433         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26434         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26435         FP_HANDLE_EXCEPTIONS.
26436         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26437         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26438         FP_HANDLE_EXCEPTIONS.
26439         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26440         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26441         FP_HANDLE_EXCEPTIONS.
26442
26443 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26444
26445         [BZ #14132]
26446         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26447         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26448         use INTUSE.
26449         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26450         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26451         Remove alias.
26452         (__adjtimex): Define using libc_hidden_ver.
26453         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26454         Remove declaration.
26455         (ntp_gettime): Call __adjtimex directly.
26456         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26457         Remove declaration.
26458         (ntp_gettimex): Call __adjtimex directly.
26459         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26460         __adjtimex_internal alias.
26461
26462 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26463
26464         [BZ #17460]
26465         * nscd/nscd.c (more_help): Rewrite list of tables collection
26466         using xstrdup and asprintf.
26467
26468         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26469
26470 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26471             Roland McGrath  <roland@hack.frob.com>
26472
26473         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26474         (do_lookup_unique): ... local function 'enter' here; update callers.
26475
26476 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26477
26478         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26479         compat_symbol calls on [SHARED].
26480         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26481         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26482         Remove.
26483         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26484         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26485         (oldsetrlimit): Remove.
26486         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26488         (lchown): New syscall entry.
26489         (oldsetrlimit): Remove.
26490         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26491         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26492         (oldsetrlimit): Remove.
26493         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26494
26495         [BZ #14138]
26496         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26497         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26498         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26499         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26500         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26501         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26502         (fchown): Likewise.
26503         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26504         (fchown): Likewise.
26505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26506         Likewise.
26507
26508 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26509
26510         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26511         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26512         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26513         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26514         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26515         Likewise.
26516         (__old_sem_post): Likewise.
26517
26518 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26519
26520         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26521         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26522         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26523         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26524         Use INLINE_VSYSCALL macro.
26525         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26526         __vdso_clock_gettime.
26527         * sysdeps/unix/sysv/linux/tile/init-first.c
26528         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26529         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26530         __vdso_clock_gettime.
26531
26532         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26533         to set up frame more cleanly.
26534
26535         * sysdeps/tile/memcmp.c: New file.
26536
26537         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26538
26539         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26540         * sysdeps/tile/tilegx/strcasestr.c: New file.
26541         * sysdeps/tile/tilegx/strnlen.c: New file.
26542         * sysdeps/tile/tilegx/strstr.c: New file.
26543
26544         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26545
26546 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26547
26548         * nptl/tst-setuid3.c: Write errors to stdout.
26549
26550 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26551
26552         * elf/dl-deps.c
26553         (preload): New functions broken out of _dl_map_object_deps.
26554         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26555
26556 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26557
26558         [BZ #14138]
26559         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26560         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26561
26562 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26563
26564         * sysdeps/mips/strcmp.S: New.
26565
26566 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26567
26568         [BZ #14138]
26569         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26570         (linkat): Likewise.
26571         (mkdirat): Likewise.
26572         (readlinkat): Likewise.
26573         (renameat): Likewise.
26574         (symlinkat): Likewise.
26575         (unlinkat): Likewise.
26576         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26577         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26578         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26579         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26580         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26581         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26582         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26583
26584 2014-09-30  Will Newton  <will.newton@linaro.org>
26585
26586         * math/math.h: Define long double math functions if
26587         _LIBC_TEST is defined.
26588         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26589
26590         * localedata/Makefile: Move assignment to tests-special
26591         into an ifdef testing run-built-tests.
26592         * timezone/Makefile: Likewise.
26593
26594 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26595
26596         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26597         with $(BASH) not $(SHELL).
26598
26599 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26600             Matthew LeGendre  <legendre1@llnl.gov>
26601
26602         [BZ #17411]
26603         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26604         l_reloc_result.
26605
26606 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26607
26608         * stdio-common/printf_fp.c
26609         (hack_digit): New function, broken out of ...
26610         (__printf_fp): ... local function here.  Update call sites.
26611         hack_digit now takes an additional parameter that is a pointer
26612         to a struct of the referenced locals.  Those locals moved inside
26613         the struct and references updated.
26614
26615 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26616
26617         * aclocal.m4: Require autoconf 2.69.
26618         * configure: Regenerated.
26619         * sysdeps/aarch64/configure: Likewise.
26620         * sysdeps/alpha/configure: Likewise.
26621         * sysdeps/arm/armv7/configure: Likewise.
26622         * sysdeps/arm/configure: Likewise.
26623         * sysdeps/ia64/configure: Likewise.
26624         * sysdeps/mach/configure: Likewise.
26625         * sysdeps/mips/configure: Likewise.
26626         * sysdeps/s390/configure: Likewise.
26627         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26629
26630         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26631         file.
26632         * sysdeps/ia64/configure.ac: Likewise.
26633
26634 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26635
26636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26637         specify symbol version for ld.so.  Do not include entry for
26638         libpthread.
26639         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26640         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26641         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26642
26643         [BZ #14171]
26644         * Makeconfig [$(build-shared) = yes]
26645         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26646         makefiles.
26647         [$(build-shared) = yes && $(soversions.mk-done) = t]
26648         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26649         [$(build-shared) = yes && $(soversions.mk-done) = t]
26650         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26651         to Makerules.
26652         [$(build-shared) = yes && $(soversions.mk-done) = t]
26653         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26654         here.
26655         [$(build-shared) = yes && $(soversions.mk-done) = t]
26656         (common-generated): Don't append gnu/lib-names.h and
26657         gnu/lib-names.stmp here.
26658         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26659         (lib-names-h-abi): New variable.
26660         [$(build-shared) = yes && $(soversions.mk-done) = t]
26661         (lib-names-stmp-abi): Likewise.
26662         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26663         abi-variants] (before-compile): Append
26664         $(common-objpfx)$(lib-names-h-abi).
26665         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26666         abi-variants] (common-generated): Append gnu/lib-names.h.
26667         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26668         abi-variants] (install-others-nosubdir): Depend on
26669         $(inst_includedir)/$(lib-names-h-abi).
26670         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26671         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26672         [$(build-shared) = yes && $(soversions.mk-done) = t]
26673         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26674         [$(build-shared) = yes && $(soversions.mk-done) = t]
26675         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26676         [$(build-shared) = yes && $(soversions.mk-done) = t]
26677         (common-generated): Append $(lib-names-h-abi) and
26678         $(lib-names-stmp-abi).
26679         * scripts/lib-names.awk: Do not handle multi being set.
26680         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26681         Remove variable.
26682         (abi-lp64_be-ld-soname): Likewise.
26683         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26684         Likewise.
26685         (abi-hard-ld-soname): Likewise.
26686         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26687         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26688         Remove variable.
26689         (abi-o32_hard-ld-soname): Likewise.
26690         (abi-o32_soft_2008-ld-soname): Likewise.
26691         (abi-o32_hard_2008-ld-soname): Likewise.
26692         (abi-n32_soft-ld-soname): Likewise.
26693         (abi-n32_hard-ld-soname): Likewise.
26694         (abi-n32_soft_2008-ld-soname): Likewise.
26695         (abi-n32_hard_2008-ld-soname): Likewise.
26696         (abi-n64_soft-ld-soname): Likewise.
26697         (abi-n64_hard-ld-soname): Likewise.
26698         (abi-n64_soft_2008-ld-soname): Likewise.
26699         (abi-n64_hard_2008-ld-soname): Likewise.
26700         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26701         Likewise.
26702         (abi-64-v2-ld-soname): Likewise.
26703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26704         ld.so entries.
26705         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26706         variable.
26707         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26708         entry.
26709         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26710         variable.
26711         (abi-64-ld-soname): Likewise.
26712         (abi-x32-ld-soname): Likewise.
26713         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26714         entry.
26715         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26716
26717 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26718
26719         [BZ #14138]
26720         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26721         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26722         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26723         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26724         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26725         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26726         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26727         syscall entry for GLIBC_2.2 symbol version.
26728         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26729         Likewise.
26730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26731         (setrlimit): Likewise.
26732         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26733         Likewise.
26734
26735 2014-09-23  Will Newton  <will.newton@linaro.org>
26736
26737         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26738         _LINUX_ARM_SYSDEP_H include guard too.
26739         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26740         define.
26741
26742 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26743
26744         * sysdeps/unix/sysv/linux/eventfd.c:
26745         Make first argument unsigned.
26746         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26747         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26748
26749 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26750
26751         [BZ #16852]
26752         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26753         * socket/sys/socket.h: Likewise.
26754         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26755
26756 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26757
26758         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26759
26760 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26761
26762         * time/tst-ftime.c: New test.
26763         * time/Makefile (tests): Add tst-ftime.
26764
26765 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26766
26767         * soft-fp/extended.h: Fix comment formatting.
26768         * soft-fp/op-1.h: Likewise.
26769         * soft-fp/op-2.h: Likewise.
26770         * soft-fp/op-4.h: Likewise.
26771         * soft-fp/op-8.h: Likewise.
26772         * soft-fp/op-common.h: Likewise.
26773         * soft-fp/soft-fp.h: Likewise.
26774
26775         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26776
26777 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26778
26779         [BZ #6652]
26780         * Makeconfig (soversions-default-setname): Remove variable.
26781         ($(common-objpfx)soversions.i): Don't pass default_setname to
26782         soversions.awk.
26783         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26784         oldest_abi to abi-versions.awk.
26785         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26786         * config.make.in (oldest-abi): Remove variable.
26787         * configure.ac (--enable-oldest-abi): Remove configure option.
26788         * configure: Regenerated.
26789         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26790         text.
26791         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26792         * scripts/soversions.awk: Do not handle default_setname variable.
26793         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26794         variable.
26795         * sysdeps/mach/hurd/configure: Regenerated.
26796         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26797         variable.
26798         * sysdeps/unix/sysv/linux/configure: Regenerated.
26799
26800 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26801
26802         * elf/Makefile (CFLAGS-interp.c): Remove.
26803         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26804         path string.
26805         * elf/interp.c: Include generated runtime-linker.h
26806
26807         * Makerules (lib%.so): Don't include $(+interp) in
26808         prerequisites.
26809         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26810         * dlfcn/eval.c: Remove file.
26811
26812         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26813         macros.
26814
26815         [BZ #17266]
26816         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26817         4.2 and newer.
26818
26819         [BZ #17370]
26820         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26821
26822 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26823             Jakub Jelinek  <jakub@redhat.com>
26824
26825         [BZ #17266]
26826         * libio/stdio.h: Check definition of __fortify_function
26827         instead of __extern_always_inline to include bits/stdio2.h.
26828         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26829         check if __extern_always_inline is defined.
26830         [__USE_MISC || __USE_XOPEN]: Likewise.
26831         [__USE_ISOC99] Likewise.
26832         * misc/sys/cdefs.h (__fortify_function): Define only if
26833         __extern_always_inline is defined.
26834         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26835         __extern_always_inline and __extern_inline only for g++-4.3
26836         and newer or a compatible gcc.
26837
26838 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26839
26840         [BZ #17371]
26841         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26842         last change to handle zero prefix length.
26843
26844 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26845
26846         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26847         _SC_REGEX_VERSION.
26848
26849         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26850         _POSIX_RAW_SOCKETS.
26851
26852 2014-09-13  Allan McRae  <allan@archlinux.org>
26853
26854         * po/ru.po: Update Russian translation from translation project.
26855
26856 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26857
26858         * locale/programs/locale.c (show_locale_vars): Inline local function
26859         into its sole call site.  Clean up some style nits.
26860         (print_item): New function, broken out of ...
26861         (show_info): ... local function here.  Clean up style nits.
26862
26863         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26864         out of ...
26865         (set_class_defaults): ... local function set_default here.
26866         Define set_default as a macro locally to pass constant parameters.
26867         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26868         rather than a shared local.
26869
26870         * stdlib/rpmatch.c (try): New function, broken out of ...
26871         (rpmatch): ... local function here.  Also, prototypify definition.
26872
26873 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26874
26875         * scripts/soversions.awk: Do not handle configuration names.
26876         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26877         vendor and os variables to soversions.awk.
26878         * configure.ac: Do not modify gnu-* host_os.
26879         * configure: Regenerated
26880         * shlib-versions: Remove first column with configuration names.
26881         * nptl/shlib-versions: Likewise.
26882         * nptl_db/shlib-versions: Likewise.
26883         * sysdeps/hppa/shlib-versions: Likewise.
26884         * sysdeps/m68k/shlib-versions: Likewise.
26885         * sysdeps/mach/hurd/shlib-versions: Likewise.
26886         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26887         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26888         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26889         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26890         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26891         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26892         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26893         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26895         Likewise.
26896         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26897         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26898         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26899         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26900         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26901         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26902         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26903         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26904
26905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26906         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26908         Regenerated.
26909         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26911         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26912
26913         * shlib-versions: Remove OS-specific entries.  Moved to files in
26914         sysdeps.
26915         * sysdeps/mach/hurd/shlib-versions: New file.
26916         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26917
26918         * nptl/shlib-versions: Remove architecture-specific entries.
26919         Moved to files in sysdeps.
26920         * shlib-versions: Likewise.
26921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26922         file.
26923         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26924         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26925         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26926         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26927
26928         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26929         (UDP_NO_CHECK6_RX): Likewise.
26930
26931 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26932
26933         * sysdeps/posix/sysconf.c (__sysconf): Spell
26934         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26935
26936 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26937
26938         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26939         loading.
26940         * iconv/Versions (__gconv_transliterate): Export for use from
26941         gconv modules.
26942         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26943         (struct __gconv_trans_data, __gconv_trans_fct,
26944         __gconv_trans_context_fct, __gconv_trans_query_fct,
26945         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26946         definitions.
26947         (struct __gconv_step_data): Remove __trans member.
26948         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26949         longer hidden.  Remove unused trans_data argument.
26950         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26951         (__gconv_translit_find): Remove declaration.
26952         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26953         prototype.
26954         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26955         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26956         trans_data argument.  Add hidden definition.
26957         (__gconv_translit_find): Remove.
26958         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26959         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26960         * iconv/skeleton.c: Remove transliteration initialization.
26961         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26962         __gconv_step_data initialization.
26963         * libio/iofwide.c (__libio_translit_): Remove.
26964         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26965         * wcsmbs/btowc.c (__btowc): Likewise.
26966         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26967         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26968         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26969         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26970         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26971         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26972         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26973         * wcsmbs/wctob.c (wctob): Likewise.
26974
26975 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26976
26977         [BZ #16194]
26978         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26979         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26980         register usage.
26981         * sysdeps/x86/Makefile: Adjust.
26982
26983 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26984             Roland McGrath  <roland@hack.frob.com>
26985
26986         * locale/weight.h: Add include guard.
26987         (findidx): Make static rather than auto; take new parameters
26988         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26989         * locale/weightwc.h: Likewise.
26990         * posix/fnmatch_loop.c
26991         (FCT): Change type of EXTRA from int32_t to wint_t.
26992         Don't include either header inside the function.
26993         Call FINDIDX rather than findidx, and pass new arguments.
26994         #undef FINDIDX at the end of the file.
26995         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26996         FINDIDX before including fnmatch_loop.c for the non-wide version.
26997         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26998         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26999         for the wide version.
27000         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27001         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27002         Pass new arguments to findidx.
27003         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27004         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27005         Don't #include it inside the function.  Pass new arguments to findidx.
27006         * posix/regex_internal.h
27007         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27008         (re_string_elem_size_at): Don't #include it inside the function.
27009         Pass new arguments to findidx.
27010         * string/strcoll_l.c: #include WEIGHT_H at top level.
27011         (get_next_seq): Don't #include it inside the function.
27012         Pass new arguments to findidx.
27013         (get_next_seq_nocache): Likewise.
27014         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27015         (STRXFRM): Don't #include it inside the function.
27016         Pass new arguments to findidx.
27017
27018 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27019
27020         [BZ #17344]
27021         * malloc/malloc.c (unlink): Turn asserts into a call to
27022         malloc_printerr.
27023
27024 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27025
27026         [BZ #17370]
27027         * libio/wfileops (do_ftell_wide): Free OUT.
27028
27029 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27030
27031         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27032
27033 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27034
27035         [BZ #17363]
27036         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27037         group if the current group is empty.
27038
27039 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27040
27041         * benchtests/bench-memset.c (test_main): Add more test from size
27042         from 32 to 512 bytes.
27043         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27044         Add POWER8 memset object.
27045         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27046         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27047         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27048         implementation.
27049         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27050         Likewise.
27051         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27052         multiarch POWER8 memset optimization.
27053         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27054         POWER8 memset optimization.
27055
27056         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27057         Remove bzero multiarch objects.
27058         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27059         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27060         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27061         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27062         Remove define.
27063         [__bzero]: Redefine to specific name.
27064         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27065         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27066         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27067         define.
27068         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27069         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27070
27071 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27072
27073         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27074         warnings into errors.
27075
27076         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27077         __cxa_thread_atexit_impl prototype.
27078
27079 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27080
27081         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27082         Fix capitalization of error message.
27083
27084 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27085
27086         * sysdeps/mips/preconfigure: Modify ABI tests.
27087
27088 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27089
27090         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27091
27092 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27093             Carlos O'Donell  <carlos@systemhalted.org>
27094
27095         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27096         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27097         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27098         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27099         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27100         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27101         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27102         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27103         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27104         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27105         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27106         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27107         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27108         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27109         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27110         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27111         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27112         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27113         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27114         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27115         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27116         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27117         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27118         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27119         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27120         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27121         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27122         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27123         Deconditionalize the code that was previously under [RESET_PID].
27124         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27125         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27126         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27127         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27128         include sysdep.h.
27129
27130 2014-09-08  Allan McRae  <allan@archlinux.org>
27131
27132         * version.h (RELEASE): Set to "development".
27133         (VERSION): Set to "2.20.90"
27134
27135 2014-09-07  Allan McRae  <allan@archlinux.org
27136
27137         * version.h (RELEASE): Set to "stable".
27138         (VERSION): Set to "2.20"
27139         * include/features.h (__GLIBC_MINOR__): Set to 20.
27140
27141         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27142         Liebler.
27143
27144         * po/ko.po: Update Korean translation from translation project.
27145
27146 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27147
27148         [BZ #17354]
27149         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27150         macro for handling signed relocations.
27151
27152 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27153
27154         [BZ #17325]
27155         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27156         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27157         assert.
27158         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27159         * iconvdata/ibm935.c (BODY): Likewise.
27160         * iconvdata/ibm937.c (BODY): Likewise.
27161         * iconvdata/ibm939.c (BODY): Likewise.
27162         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27163         assert.
27164         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27165         script.
27166         * iconvdata/run-iconv-test.sh: New test loop for checking for
27167         decoder crashers.
27168
27169 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27170
27171         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27172         libm_hidden_ver.
27173
27174 2014-09-01  Allan McRae  <allan@archlinux.org>
27175
27176         * po/eo.po: Update Esperanto translation from translation project.
27177
27178         * po/ca.po: Update Catalan translation from translation project.
27179
27180 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27181
27182         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27183         __proc_dostop call.
27184
27185 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27186
27187         [BZ #17319]
27188         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27189         to call set_thread_area instead of hand written asm.
27190         (__NR_set_thread_area): Removed define.
27191         (TLS_FLAG_WRITABLE): Likewise.
27192         (__ASSUME_SET_THREAD_AREA): Remove check.
27193         (TLS_EBX_ARG): Remove define.
27194         (TLS_LOAD_EBX): Likewise.
27195
27196 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27197
27198         Simplify atomicity of socket creation in bind.
27199
27200         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27201         looking up the name after linking the file.
27202
27203 2014-08-27  Allan McRae  <allan@archlinux.org>
27204
27205         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27206
27207 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27208
27209         [BZ #17187]
27210         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27211         trans_compare, open_translit, __gconv_translit_find):
27212         Remove module loading code.
27213
27214 2014-08-26  Allan McRae  <allan@archlinux.org>
27215
27216         * po/vi.po: Update Vietnamese translation from translation project.
27217
27218         * po/uk.po: Update Ukrainian translation from translation project.
27219
27220         * po/fr.po: Update French translation from translation project.
27221
27222         * po/ru.po: Update Russian translation from translation project.
27223
27224         * po/pl.po: Update Polish translation from translation project.
27225
27226         * po/cs.po: Update Czech translation from translation project.
27227
27228         * po/de.po: Update German translation from translation project.
27229
27230         * po/bg.po: Update Bulgarian translation from translation project.
27231
27232         * po/sv.po: Update Sweedish translation from translation project.
27233
27234         * po/nl.po: Update Dutch translation from translation project.
27235
27236         * po/es.po: Update Spanish translation from translation project.
27237
27238 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27239
27240         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27241
27242         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27243         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27244         (CPPFLAGS-iconvconfig): Likewise.
27245         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27246
27247         * include/libc-symbols.h: Remove unnecessary check for
27248         NOT_IN_libc.
27249         * nptl/pthreadP.h: Likewise.
27250         * sysdeps/aarch64/setjmp.S: Likewise.
27251         * sysdeps/alpha/setjmp.S: Likewise.
27252         * sysdeps/arm/sysdep.h: Likewise.
27253         * sysdeps/i386/setjmp.S: Likewise.
27254         * sysdeps/m68k/setjmp.c: Likewise.
27255         * sysdeps/posix/getcwd.c: Likewise.
27256         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27257         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27258         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27259         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27260         * sysdeps/sh/sh3/setjmp.S: Likewise.
27261         * sysdeps/sh/sh4/setjmp.S: Likewise.
27262         * sysdeps/unix/alpha/sysdep.h: Likewise.
27263         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27264         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27265         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27266         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27269         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27270         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27271         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27272         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27273         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27274         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27275         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27276         * sysdeps/x86_64/setjmp.S: Likewise.
27277
27278 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27279
27280         [BZ #17263]
27281         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27282         <stdint.h>.
27283         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27284         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27285
27286 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27287
27288         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27289
27290         [BZ #17262]
27291         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27292         and __x86_64__ when disabling x87 inline functions.
27293
27294 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27295
27296         [BZ #17259]
27297         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27298         asm statement with __cpuid_count.
27299
27300 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27301
27302         * configure.ac: Change __ehdr_start code to dereference the struct.
27303         Run readelf on the output to look for relocations.
27304         * configure: Regenerated.
27305
27306 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27307
27308         [BZ #17261]
27309         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27310         value to 0.
27311         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27312
27313 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27314
27315         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27316
27317 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27318
27319         [BZ #16892]
27320         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27321         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27322
27323 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27324
27325         * malloc/malloc.c: Fix typo in comment.
27326
27327 2014-08-09  Allan McRae  <allan@archlinux.org>
27328
27329         * Regenerate libc.po.
27330
27331 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27332
27333         * intl/tst-gettext2.sh: Check every lang file for creation.
27334
27335 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27336
27337         * sysdeps/aarch64/fpu/math_private.h
27338         (libc_feholdsetround_noex_aarch64_ctx): New function.
27339
27340 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27341
27342         * sysdeps/arm/armv6/strcpy.S (strcpy):
27343         Fix performance issue in misaligned cases.
27344
27345 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27346
27347         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27348         Move definition from termios.h.
27349         (struct termio): Likewise.
27350         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27351         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27352         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27353         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27354         Likewise.
27355         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27356         Move definition to ioctl-types.h
27357         (struct termio): Likewise.
27358         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27359         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27360         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27361         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27362         Likewise.
27363
27364 2014-08-05  Richard Henderson  <rth@redhat.com>
27365
27366         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27367         exceptions.
27368         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27369         Add fraiseexcpt.
27370         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27371         Use __feraiseexcept.
27372         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27373         Protect libm symbols with IS_IN_libm.
27374
27375         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27376
27377 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27378
27379         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27380
27381 2014-08-04  Will Newton  <will.newton@linaro.org>
27382
27383         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27384         file.
27385
27386 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27387
27388         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27389         variants for each function.
27390
27391 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27392
27393         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27394         appended ...
27395         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27396         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27397         appended ...
27398         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27399         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27400         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27401         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27402         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27403         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27404         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27405         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27406         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27407         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27408         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27409         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27410         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27411         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27412         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27413         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27414         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27415         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27416         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27417         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27418         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27419         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27420         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27421         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27422         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27423         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27424         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27425         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27426         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27427         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27428         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27429         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27430         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27431         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27432         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27433         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27434         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27435         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27436         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27437         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27438         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27439         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27440         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27441         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27442         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27443         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27444         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27445         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27446         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27447         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27448         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27449         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27450         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27451         Update #include.
27452         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27453         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27454
27455 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27456
27457         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27458         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27459         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27460         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27461         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27462         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27463
27464 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27465
27466         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27467         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27468         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27469         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27470
27471 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27472
27473         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27474         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27475         (__libc_vfork): Define function under this name.
27476         (__vfork): Define as an alias.
27477         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27478         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27479
27480 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27481
27482         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27483         that was previously under [RESET_PID].
27484         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27485
27486 2014-08-04  Andreas Schwab  <schwab@suse.de>
27487
27488         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27489
27490 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27491
27492         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27493         (main): Likewise.
27494
27495 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27496
27497         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27498
27499 2014-08-01  Richard Henderon  <rth@redhat.com>
27500
27501         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27502         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27503         typo in exact zero test.
27504         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27505         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27506         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27507
27508 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27509
27510         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27511         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27512         * sysdeps/arm/sysdep.h: ... here.
27513         [!__ASSEMBLER__]: Include <stdint.h>.
27514
27515 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27516
27517         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27518         (HAVE_WCTYPE_H): Likewise.
27519         (HAVE_ISWCTYPE): Likewise.
27520         (ENABLE_NLS): Likewise.
27521         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27522         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27523
27524         * posix/regex_internal.c: Check if DEBUG is defined and is
27525         set.
27526
27527         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27528         (HAVE_MBSRTOWCS): Likewise.
27529         * posix/fnmatch.c: Include string.h unconditionally.
27530
27531 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27532
27533         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27534         reversal.
27535
27536 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27537
27538         * sysdeps/generic/safe-fatal.h: New file.
27539         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27540         * nptl/forward.c: Include it.
27541         (__pthread_unwind): Use __safe_fatal as default action, rather
27542         than a bogus use of INTERNAL_SYSCALL that could never work.
27543
27544         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27545         * configure.ac (libc_cv_builtin_trap): New test.
27546         * configure: Regenerated.
27547         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27548         (ABORT_INSTRUCTION): Define using __builtin_trap.
27549
27550         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27551         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27552         * sysdeps/nptl/nptl-signals.h: New file.
27553         * nptl/pthreadP.h: Include <nptl-signals.h>.
27554
27555 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27556
27557         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27558         (ONE_DIRECTION): Define.
27559         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27560         (ONE_DIRECTION): Define.
27561         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27562         (ONE_DIRECTION): Define.
27563
27564 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27565
27566         * sysdeps/s390/Makefile: Delete file.
27567         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27568         * sysdeps/s390/__longjmp.c: Delete file.
27569         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27570         Remove fields __flags and __reserved.
27571         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27572         and add versioning.
27573         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27574         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27575         * sysdeps/s390/rtld-setjmp.S: Likewise.
27576         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27577         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27578         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27579         * sysdeps/s390/s390-32/setjmp.S: ... here.
27580         Add versioning.
27581         (__sigsetjmp): Remove setting __flags field.
27582         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27583         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27584         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27585         * sysdeps/s390/s390-64/setjmp.S: ... here.
27586         Add versioning.
27587         (__sigsetjmp): Remove setting __flags field.
27588         * sysdeps/s390/setjmp.S: Delete file.
27589         * sysdeps/s390/sigjmp.c: Likewise.
27590         * sysdeps/s390/v1-longjmp.c: Likewise.
27591         * sysdeps/s390/v1-setjmp.h: Likewise.
27592         * sysdeps/s390/v1-sigjmp.c: Likewise.
27593         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27594         Remove v1-longjmp_chk.
27595         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27596         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27597         Include debug/longjmp_chk.c and add versioning.
27598         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27599         Include nptl/pt-longjmp.c and add versioning.
27600         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27601         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27602         Include __longjmp.c.
27603         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27604         Move to ...
27605         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27606         (__getcontext): Remove setting __flags field.
27607         Add versioning.
27608         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27609         Don't restore upper high grps.
27610         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27611         Likewise.
27612         (__swapcontext): Remove setting uc_flags field.
27613         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27614         Delete file.
27615         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27616         Include __longjmp.c.
27617         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27618         Move to ...
27619         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27620         (__getcontext): Remove setting __flags field.
27621         Add versioning.
27622         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27623         (__swapcontext): Remove setting uc_flags field.
27624         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27625         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27626         Remove fields uc_high_gprs and __reserved.
27627         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27628         New file with reverted content.
27629         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27630         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27631         Regenerated.
27632         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27633         Regenerated.
27634
27635 2014-07-31  Andreas Schwab  <schwab@suse.de>
27636
27637         * config.h.in (HAVE_IFUNC): Define to 0.
27638         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27639         definedness.
27640
27641 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27642
27643         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27644         memmove-avx-unaligned, memcpy-avx-unaligned and
27645         mempcpy-avx-unaligned.
27646         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27647         Add tests for AVX memcpy functions.
27648         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27649         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27650         memcpy_chk.
27651         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27652         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27653         memmove_chk.
27654         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27655         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27656         mempcpy_chk.
27657         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27658         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27659         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27660
27661 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27662
27663         [BZ #17213]
27664         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27665         powerpc64le.
27666
27667 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27668
27669         [BZ #16839]
27670         * manual/llio.texi: Add section about open file description locks.
27671         * manual/examples/ofdlocks.c: Example of open file description
27672         lock usage.
27673         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27674         F_OFD_SETLK, and F_OFD_SETLKW.
27675
27676 2014-07-23  Allan McRae  <allan@archlinux.org>
27677
27678         * po/es.po: Update Spanish translation from translation project.
27679
27680 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27681
27682         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27683
27684 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27685
27686         [BZ #17078]
27687         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27688         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27689         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27690
27691 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27692
27693         [BZ #17088]
27694         * math/fesetenv.c (__fesetenv)
27695         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27696         * math/feupdateenv.c (__feupdateenv)
27697         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27698
27699         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27700         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27701         (__ASSUME_SOCKETCALL): Do not define.
27702
27703         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27704         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27705         (__ASSUME_SOCKETCALL): Do not define.
27706         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27707         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27708         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27709         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27710         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27711         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27712         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27713         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27714
27715         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27716         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27717         (__ASSUME_SOCKETCALL): Do not define.
27718         (__ASSUME_IPC64): Define unconditionally.
27719         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27720         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27721         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27722         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27723         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27724         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27725         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27726         Likewise.
27727
27728         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27729         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27730         (__ASSUME_SOCKETCALL): Do not define.
27731         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27732         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27733         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27734         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27735         (__ASSUME_REQUEUE_PI): Define unconditionally.
27736         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27737         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27738         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27739         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27740         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27741         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27742
27743         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27744         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27745         (__ASSUME_SOCKETCALL): Do not define.
27746         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27747         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27748         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27749         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27750         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27751         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27752
27753         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27754         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27755         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27756         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27757         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27758         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27759         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27760         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27761         (__ASSUME_GETCPU_SYSCALL): Likewise.
27762
27763         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27764         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27765         cases for individual architectures.
27766         * sysdeps/gnu/configure: Regenerated.
27767         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27768         LIBC_SLIBDIR_RTLDDIR.
27769         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27770         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27771         LIBC_SLIBDIR_RTLDDIR.
27772         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27774         LIBC_SLIBDIR_RTLDDIR.
27775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27776         Regenerated.
27777         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27778         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27779         file.
27780         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27781         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27782         file.
27783         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27784         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27785         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27786         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27787
27788         * sysdeps/aarch64/shlib-versions: Move to ...
27789         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27790         * sysdeps/alpha/shlib-versions: Move to ...
27791         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27792         * sysdeps/arm/shlib-versions: Move to ...
27793         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27794         * sysdeps/hppa/shlib-versions: Move all contents except for
27795         libgcc_s entry to ...
27796         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27797         entry from ...
27798         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27799         * sysdeps/ia64/shlib-versions: Move to ...
27800         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27801         entry from ...
27802         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27803         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27804         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27805         * sysdeps/microblaze/shlib-versions: Move to ...
27806         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27807         * sysdeps/mips/shlib-versions: Move to ...
27808         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27809         entry from ...
27810         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27811         * sysdeps/tile/shlib-versions: Move to ...
27812         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27813         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27814         from ...
27815         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27816         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27817         entry from ...
27818         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27819
27820 2014-07-17  Will Newton  <will.newton@linaro.org>
27821
27822         * sysdeps/arm/bits/atomic.h
27823         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27824         (__arch_compare_and_exchange_bool_16_int): Likewise.
27825         (__arch_compare_and_exchange_bool_64_int): Likewise.
27826
27827         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27828         into an #else block.
27829
27830 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27831
27832         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27833         just Linux configurations.  Test empirically that the compiler sets
27834         __ARM_EABI__, rather than using the tuple to decide.
27835         * sysdeps/arm/preconfigure: Regenerated.
27836         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27837         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27838         contents appended ...
27839         * sysdeps/arm/configure.ac: ... here.
27840         * sysdeps/arm/configure: Regenerated.
27841
27842 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27843
27844         * nptl/pthread_kill.c: New file.
27845         * nptl/pthread_sigmask.c: New file.
27846         * nptl/pthread_sigqueue.c: New file.
27847
27848         * sysdeps/nptl/lowlevellock.h: New file.
27849         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27850         * sysdeps/nptl/lowlevellock-futex.h: New file.
27851
27852         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27853         Remove dead declarations.
27854
27855 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27856
27857         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27858         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27859         config-cflags-avx2.
27860         * sysdeps/x86_64/configure.ac: Likewise.
27861         * sysdeps/i386/configure: Regenerated.
27862         * sysdeps/x86_64/configure: Likewise.
27863         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27864         memset-avx2 only if config-cflags-avx2 is yes.
27865         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27866         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27867         defined.
27868         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27869         only if HAVE_AVX2_SUPPORT is defined.
27870         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27871
27872 2014-07-14  Alan Modra  <amodra@gmail.com>
27873
27874         [BZ #17153]
27875         * elf/elf.h (DT_PPC64_NUM): Correct value.
27876         * NEWS: Add to fixed bug list.
27877
27878 2014-07-13  Jim Meyering  <meyering@fb.com>
27879
27880         [BZ 17150]
27881         regex: don't deref NULL upon heap allocation failure
27882         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27883         failure in one more place.
27884         To trigger the segfault, configure grep -with-included-regex,
27885         build it, and run these commands:
27886         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27887
27888 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27889
27890         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27891
27892 2014-07-11  Richard Henderson  <rth@redhat.com>
27893
27894         * sysdeps/aarch64/libm-test-ulps: Update.
27895
27896 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27897
27898         [BZ #17135]
27899         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27900         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27901         (__nptl_setxid): Initialize error member.  Call
27902         __nptl_setxid_error.
27903         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27904         * nptl/descr.h (struct xid_command): Add error member.
27905         * nptl/tst-setuid3.c: New file.
27906         * nptl/Makefile (tests): Add it.
27907
27908 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27909
27910         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27911         New define.
27912         (__lll_trylock): Use __lll_base_trylock.
27913         (__lll_cond_trylock): Likewise.
27914
27915 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27916
27917         * nptl/pthread_create.c (start_thread): Use atomic_or and
27918         lll_futex_wake directly rather than lll_robust_dead.
27919         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27920         (lll_robust_dead): Macro removed.
27921         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27922         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27923         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27924         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27925         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27926         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27927         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27928         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27929         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27930         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27931         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27932         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27933         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27934         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27935         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27936
27937         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27938         Use atomic_compare_and_exchange_val_acq directly rather than
27939         lll_robust_trylock.
27940         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27941         (__lll_robust_trylock, lll_robust_trylock): Removed.
27942         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27943         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27944         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27945         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27946         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27947         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27948         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27949         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27950         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27951         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27952         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27953         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27954         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27955         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27956
27957 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27958
27959         * manual/locale.texi (Locale Names): New section documenting
27960         locale name syntax.  Adjust menu and node chaining accordingly.
27961         (Choosing Locale): Reference Locale Names, Locale Categories.
27962         Mention setting LC_ALL=C.  Reflect that name syntax is now
27963         documented.
27964         (Locale Categories): New section title.  Reference Locale Names.
27965         LC_ALL is an environment variable, but not a category.
27966         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27967         description, now in Locale Name.  Reference that section.  Locale
27968         name syntax is now documented.
27969
27970 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27971
27972         [BZ #17137]
27973         * locale/findlocale.c (name_present, valid_locale_name): New
27974         functions.
27975         (_nl_find_locale): Use the loc_name variable to store name
27976         candidates.  Call name_present and valid_locale_name to check and
27977         validate locale names.  Return an error if the locale is invalid.
27978
27979 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27980
27981         * locale/setlocale.c (setlocale): Use strdup for allocating
27982         composite name copy.
27983
27984 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27985
27986         Sync up with gnulib.
27987         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27988         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27989         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27990         and _GL_ARG_NONNULL.
27991         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27992         [!_LIBC]: Include code for Windows and Cygwin.
27993         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27994         Include prototype for int strerror_r.
27995         [!_LIBC] (is_open): New function.
27996         (flush_stdout): New function.
27997         (print_errno_message): Use it.
27998         (error): Likewise.
27999         (error_at_line): Likewise.
28000         (error_tail) Add function attribute macros.  Use
28001         __builtin_expect.
28002
28003         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28004
28005         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28006
28007         * io/ftw.c: Include sys/param.h unconditionally.
28008
28009         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28010
28011         [BZ #17125]
28012         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28013         libc_freeres_ptr.
28014         (freecache): New function to free CACHE on exit.
28015
28016         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28017         initialization.
28018
28019 2014-07-09  David S. Miller  <davem@davemloft.net>
28020
28021         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28022
28023         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28024         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28025         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28026         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28027         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28028         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28029         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28030         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28031         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28032         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28033         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28034         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28035         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28036
28037 2014-07-09  Andreas Schwab  <schwab@suse.de>
28038
28039         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28040         output.
28041         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28042         (do_test): Likewise.
28043
28044         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28045
28046 2014-07-09  Will Newton  <will.newton@linaro.org>
28047
28048         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28049         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28050         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28051         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28052         * sysdeps/hppa/start.S (_start): Likewise.
28053
28054 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28055
28056         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28057
28058         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28059         defined.
28060
28061 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28062
28063         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28064         after checking that it is non-NULL.
28065
28066         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28067
28068 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28069
28070         * sysdeps/powerpc/memmove.c: Remove file.
28071         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28072         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28073         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28074         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28075         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28076         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28077         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28078         string memmove instead of removed powerpc one.
28079
28080         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28081         [weak_alias]: Fix compiler warning due trailing data.
28082         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28083         [weak_alias]: Likewise.
28084         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28085         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28086
28087         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28088         (__libc_ifunc_impl_list): Add memmove functions.
28089
28090 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28091
28092         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28093         Remove code.
28094         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28095         Likewise.
28096         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28097         Likewise.
28098         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28099         Likewise.
28100         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28101         Likewise.
28102         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28103         Likewise.
28104         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28105         Likewise.
28106         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28107         Likewise.
28108         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28109         Likewise.
28110         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28111         Likewise.
28112         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28113         Likewise.
28114         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28115         Likewise.
28116         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28117         Likewise.
28118         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28119         Likewise.
28120         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28121         Likewise.
28122         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28123         Likewise.
28124         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28125         Likewise.
28126
28127 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28128
28129         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28130         to avoid alignment traps in non-cacheable memory.
28131         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28132
28133         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28134         multiarch objects.
28135         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28136         file: multiarch power7 memmove.
28137         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28138         multiarch default memmove.
28139         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28140         multiarch memove for powerpc32/power4.
28141
28142         * string/bcopy.c: Use full path to include memmove.c.
28143         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28144         multiarch objects.
28145         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28146         bcopy for powerpc64.
28147         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28148         bcopy for powerpc64.
28149         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28150         and memmove implementations.
28151         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28152         optimized multiarch memmove for POWER7/powerpc64.
28153         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28154         default multiarch memmove for powerpc64.
28155         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28156         multiarch for powerpc64.
28157         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28158         for POWER7/powerpc64.
28159         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28160         memmove for POWER7/powerpc64.
28161
28162         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28163         glibc default one.
28164
28165         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28166         __ELF_NATIVE_CLASS equal to 64.
28167
28168 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28169
28170         * sysdeps/nptl/lowlevellock.h: File removed.
28171
28172         * NEWS: NPTL is no longer an add-on!
28173         * nptl/internaltypes.h: Moved ...
28174         * sysdeps/nptl/internaltypes.h: ... here.
28175         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28176         * sysdeps/nptl/fork.c: Likewise.
28177         * sysdeps/nptl/gai_misc.h: Likewise.
28178         * sysdeps/nptl/librt-cancellation.c: Likewise.
28179         * sysdeps/nptl/jmp-unwind.c: Likewise.
28180         * sysdeps/nptl/setxid.h: Likewise.
28181         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28182         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28183         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28184         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28185         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28186         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28187         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28188         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28189         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28190         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28191         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28192         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28193         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28194         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28195         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28196         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28197         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28198         * nptl/Makeconfig: Moved ...
28199         * sysdeps/nptl/Makeconfig: ... here.
28200         * nptl/configure: File removed.
28201         * nptl/ANNOUNCE: File removed.
28202         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28203         * sysdeps/unix/sysv/linux/configure: Regenerated.
28204
28205         * nptl/Makefile (routines): Add libc_pthread_init,
28206         libc_multiple_threads, register-atfork and unregister-atfork.
28207         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28208         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28209         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28210         pthread-pi-defines.sym, structsem.sym.
28211         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28212         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28213         [$(subdir) = nptl] (tests): Add tst-setgetname.
28214         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28215         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28216         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28217         [!LIBC_SIGACTION]: Remove aliases.
28218         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28219         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28220         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28221         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28222         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28223         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28224         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28225         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28226         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28227         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28228         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28229         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28230         __libc_allocate_rtsig_private.
28231         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28232         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28233         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28234         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28235         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28236         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28237         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28238         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28239         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28240         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28241         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28242         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28243         * nptl/internaltypes.h: ... here.
28244         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28245         * sysdeps/nptl/jmp-unwind.c: ... here.
28246         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28247         * nptl/libc-lowlevellock.c: ... here.
28248         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28249         * nptl/libc_multiple_threads.c: ... here.
28250         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28251         * nptl/libc_pthread_init.c: ... here.
28252         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28253         * nptl/lowlevelbarrier.sym: ... here.
28254         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28255         * nptl/lowlevelcond.sym: ... here.
28256         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28257         * nptl/lowlevellock.c: ... here.
28258         * nptl/lowlevellock.h: Moved ...
28259         * sysdeps/nptl/lowlevellock.h: ... here.
28260         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28261         * nptl/lowlevelrobustlock.c: ... here.
28262         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28263         * nptl/lowlevelrobustlock.sym: ... here.
28264         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28265         * nptl/lowlevelrwlock.sym: ... here.
28266         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28267         * nptl/pt-fork.c: ... here.
28268         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28269         * nptl/pthread-pi-defines.sym: ... here.
28270         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28271         * nptl/pthread_attr_getaffinity.c: ... here.
28272         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28273         * nptl/pthread_attr_setaffinity.c: ... here.
28274         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28275         * nptl/pthread_mutex_cond_lock.c: ... here.
28276         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28277         Update #include.
28278         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28279         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28280         * nptl/pthread_once.c: ... here, replacing old file.
28281         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28282         * nptl/pthread_yield.c: ... here.
28283         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28284         * nptl/register-atfork.c: ... here.
28285         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28286         * nptl/sem_post.c: ... here.
28287         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28288         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28289         * nptl/sem_timedwait.c: ... here.
28290         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28291         * nptl/sem_trywait.c: ... here.
28292         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28293         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28294         * nptl/sem_wait.c: ... here.
28295         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28296         * nptl/structsem.sym: ... here.
28297         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28298         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28299         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28300         * nptl/unregister-atfork.c: ... here.
28301         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28302         * nptl/unwindbuf.sym: ... here.
28303         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28304         * sysdeps/nptl/fork.c: ... here.
28305         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28306         * sysdeps/nptl/fork.h: ... here.
28307         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28308         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28309         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28310         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28311         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28312         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28313         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28314         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28315         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28316         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28317         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28318         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28319         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28320         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28321         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28322         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28323         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28324         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28325         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28326         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28327         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28328         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28329         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28330         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28331         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28332         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28333         * sysdeps/unix/sysv/linux/raise.c: ... here.
28334         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28335         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28336         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28337         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28338         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28339         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28340         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28341         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28342         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28343         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28344         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28345         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28346         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28347         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28348         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28349
28350 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28351
28352         * sysdeps/generic/memcopy.h: Add comment for
28353         MEMCPY_OK_FOR_FWD_MEMMOVE.
28354
28355 2014-07-04  Will Newton  <will.newton@linaro.org>
28356
28357         * string/memchr.c: Merge from gnulib.
28358         [_LIBC]: Remove conditionals.
28359         (__ptr_t): Remove define.
28360         (LONG_MAX_32_BITS): Likewise.
28361         (LONG_MAX): Likewise.
28362         (MEMCHR): Use ANSI prototype and optimize algorithm.
28363
28364         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28365
28366 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28367
28368         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28369         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28370
28371         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28372         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28373         in a bare environment with no <stdlib.h> installed.
28374         * sysdeps/nptl/configure: Regenerated.
28375
28376         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28377
28378         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28379         AC_EGREP_CPP for kernel header checks, so they only succeed if
28380         including <linux/version.h> actually works right.
28381         * sysdeps/unix/sysv/linux/configure: Regenerated.
28382
28383         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28384         value so it's not diagnosed as unused.
28385
28386         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28387         thing) with "ifeq ($(subdir),rt)".
28388
28389 2014-07-03  Richard Henderson  <rth@redhat.com>
28390
28391         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28392         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28393         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28394
28395         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28396         (math_force_eval): New.
28397
28398         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28399         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28400
28401         * sysdeps/alpha/fpu/s_round.c: Remove file.
28402         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28403
28404         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28405         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28406         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28407         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28408         (_dl_start, print_statistics): Likewise.
28409         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28410         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28411
28412         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28413         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28414         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28415         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28416         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28417         (HP_SMALL_TIMING_AVAIL): Define.
28418         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28419         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28420         (HP_SMALL_TIMING_AVAIL): Define.
28421         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28422         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28423
28424         * sysdeps/aarch64/hp-timing.h: New file.
28425
28426         * sysdeps/generic/hp-timing.h: Remove dead comment.
28427         * sysdeps/generic/hp-timing-common.h: New file.
28428         * sysdeps/alpha/hp-timing.h: Include it.
28429         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28430         * sysdeps/i386/i686/hp-timing.h: Likewise.
28431         * sysdeps/ia64/hp-timing.h: Likewise.
28432         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28433         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28434         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28435         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28436         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28437         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28438         (hp_timing_t): New.
28439
28440         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28441         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28442         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28443         * elf/rtld.c (_dl_start_final): Likewise.
28444         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28445         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28446         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28447         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28448         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28449         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28450         (HP_TIMING_DIFF_INIT): Remove.
28451         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28452         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28453         (HP_TIMING_DIFF_INIT): Remove.
28454         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28455         * sysdeps/i386/i686/hp-timing.c: Remove file.
28456         * sysdeps/x86_64/hp-timing.c: Remove file.
28457         * sysdeps/ia64/hp-timing.c: Remove file.
28458         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28459         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28460         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28461         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28462
28463         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28464         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28465         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28466         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28467         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28468         (HP_TIMING_ACCUM): Remove.
28469         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28470         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28471         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28472
28473         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28474         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28475         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28476         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28477         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28478         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28479         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28480         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28481
28482         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28483
28484 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28485
28486         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28487
28488 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28489
28490         Sync up with gettext.
28491         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28492         [_MSC_VER]: Include malloc.h
28493         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28494         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28495         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28496         TEMP_FAILURE_RETRY.  Cast return of alloca.
28497         [!_LIBC] Call gl_rwlock_init.
28498         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28499
28500 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28501
28502         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28503         before checking its value.
28504
28505 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28506
28507         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28508
28509         * debug/memcpy_chk.c: Don't include pagecopy.h.
28510         * debug/mempcpy_chk.c: Likewise.
28511         * string/memcpy.c: Likewise.
28512         * string/memmove.c: Likewise.
28513         * sysdeps/powerpc/memmove.c: Likewise.
28514         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28515         definition of PAGE_COPY_FWD_MAYBE here...
28516         * sysdeps/generic/pagecopy.h: ... from here.
28517         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28518
28519 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28520             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28521
28522         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28523         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28524         optimizations.
28525         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28526         (__libc_ifunc_impl_list): Likewise.
28527         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28528         multiarch strcat for PPC64.
28529         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28530         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28531
28532 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28533
28534         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28535
28536 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28537
28538         * intl/loadmsgcat.c: Remove declaration of
28539         get_sysdep_segment_value.
28540         (get_sysdep_segment_value): Use ISO C style.
28541         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28542         semicolon.  Fix typo and formatting in comment.
28543         (_nl_unload_domain): Use ISO C style.
28544
28545         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28546
28547 2014-07-02  Will Newton  <will.newton@linaro.org>
28548
28549         * malloc/obstack.c: Merge from gnulib master.
28550         [HAVE_CONFIG_H]: Remove conditional code.
28551         [!_LIBC]: Include config.h.
28552         [!ELIDE_CODE]: Don't include inttypes.h, include
28553         stdint.h unconditionally.
28554         (print_and_abort): Mark as _Noreturn.
28555         (_obstack_allocated_p): Mark as __attribute_pure__.
28556         (obstack_free): Rename to __obstack_free.
28557         [!__attribute__]: Remove conditional code.
28558         * malloc/obstack.h: Merge from gnulib master.
28559         [__cplusplus]: Move conditional down.
28560         [!__attribute_pure__]: Define __attribute_pure__ here
28561         if it is not already defined.
28562         (_obstack_memory_used): Mark as __attribute_pure__.
28563         [!__obstack_free]: Define as obstack_free.
28564         [__GNUC__]: Remove check for ancient NeXT gcc.
28565
28566 2014-07-02  Will Newton  <will.newton@linaro.org>
28567             Paul Eggert  <eggert@cs.ucla.edu>
28568
28569         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28570
28571 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28572
28573         * resolv/gethnamaddr.c: Add comment warning that the file is
28574         not maintained.
28575
28576 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28577
28578         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28579         entries.
28580
28581         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28582         entry for aio_cancel and aio_cancel64.
28583         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28584         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28585         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28586         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28587         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28588         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28589         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28590         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28591         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28592         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28593         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28594         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28595         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28596
28597 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28598
28599         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28600         * nptl/pthread_mutex_lock.c: Likewise.
28601         * nptl/pthread_mutex_timedlock.c: Likewise.
28602         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28603
28604 2014-07-01  Richard henderson  <rth@redhat.com>
28605
28606         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28607         (__isnan, __isnanl): Remove.
28608         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28609
28610         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28611
28612 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28613
28614         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28615
28616 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28617
28618         * resolv/nss_dns/dns-host.c (getanswer_r)
28619         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28620
28621 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28622
28623         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28624         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28625         undefine.
28626         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28627         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28628
28629 2014-07-01  Roland McGrath <roland@hack.frob.com>
28630
28631         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28632         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28633
28634         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28635         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28636
28637         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28638         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28639         ... here.
28640         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28641         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28642
28643         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28644         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28645         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28646         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28647
28648         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28649         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28650         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28651         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28652         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28653         Moved ...
28654         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28655         ... here.
28656         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28657         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28658         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28659         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28660         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28661         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28662         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28663         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28664         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28665         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28666         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28667         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28668         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28669         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28670         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28671         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28672         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28673         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28674         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28675         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28676         ... here.
28677         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28678         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28679         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28680         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28681         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28682         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28683         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28684         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28685
28686 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28687
28688         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28689         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28690         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28691         Add sysdep.
28692
28693 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28694
28695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28696
28697 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28698
28699         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28700         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28701
28702         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28703
28704         * sysdeps/arm/libm-test-ulps: Regenerated.
28705
28706 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28707             Roland McGrath <roland@hack.frob.com>
28708
28709         * test-skeleton.c (signal_handler): Kill the whole process group
28710         before killing the child individually.
28711         (main): Report any failure on `setpgid'.
28712
28713 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28714
28715         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28716         from _TLS_H to _ARM_NPTL_TLS_H.
28717         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28718         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28719
28720 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28721
28722         [BZ #16539]
28723         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28724         (__expm1l): Return argument unchanged when small but not
28725         subnormal.
28726
28727         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28728         include macro name.
28729         (_FP_UNPACK_RAW_1_P): Likewise.
28730         (_FP_PACK_RAW_1): Likewise.
28731         (_FP_PACK_RAW_1_P): Likewise.
28732         (_FP_MUL_MEAT_1_wide): Likewise.
28733         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28734         (_FP_MUL_MEAT_1_hard): Likewise.
28735         (_FP_DIV_MEAT_1_imm): Likewise.
28736         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28737         (_FP_DIV_MEAT_1_udiv): Likewise.
28738         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28739         (_FP_UNPACK_RAW_2): Likewise.
28740         (_FP_UNPACK_RAW_2_P): Likewise.
28741         (_FP_PACK_RAW_2): Likewise.
28742         (_FP_PACK_RAW_2_P): Likewise.
28743         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28744         (_FP_MUL_MEAT_2_wide): Likewise.
28745         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28746         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28747         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28748         (_FP_MUL_MEAT_2_gmp): Likewise.
28749         (_FP_DIV_MEAT_2_udiv): Likewise.
28750         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28751         (_FP_FRAC_SRL_4): Likewise.
28752         (_FP_FRAC_SRST_4): Likewise.
28753         (_FP_FRAC_SRS_4): Likewise.
28754         (_FP_UNPACK_RAW_4): Likewise.
28755         (_FP_UNPACK_RAW_4_P): Likewise.
28756         (_FP_PACK_RAW_4): Likewise.
28757         (_FP_PACK_RAW_4_P): Likewise.
28758         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28759         (_FP_MUL_MEAT_4_wide): Likewise.
28760         (_FP_MUL_MEAT_4_gmp): Likewise.
28761         (umul_ppppmnnn): Likewise.
28762         (_FP_DIV_MEAT_4_udiv): Likewise.
28763         (__FP_FRAC_ADD_4): Likewise.
28764         (__FP_FRAC_SUB_3): Likewise.
28765         (__FP_FRAC_SUB_4): Likewise.
28766         (__FP_FRAC_DEC_3): Likewise.
28767         (__FP_FRAC_DEC_4): Likewise.
28768         (__FP_FRAC_ADDI_4): Likewise.
28769         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28770         (_FP_FRAC_SRL_8): Likewise.
28771         (_FP_FRAC_SRS_8): Likewise.
28772
28773         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28774         include macro name.
28775         (FP_UNPACK_RAW_EP): Likewise.
28776         (FP_PACK_RAW_E): Likewise.
28777         (FP_PACK_RAW_EP): Likewise.
28778         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28779         (_FP_ISSIGNAN): Likewise.
28780         (_FP_ADD_INTERNAL): Likewise.
28781         (_FP_FMA): Likewise.
28782         (_FP_CMP): Likewise.
28783         (_FP_SQRT): Likewise.
28784         (_FP_TO_INT): Likewise.
28785         (_FP_FROM_INT): Likewise.
28786         (FP_EXTEND): Likewise.
28787         (_FP_DIV_MEAT_N_loop): Likewise.
28788
28789 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28790
28791         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28792         throughout.
28793
28794 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28795
28796         [BZ #17097]
28797         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28798         result with correct sign in case of exponents that produce
28799         overflow except for X very close to 1.
28800
28801 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28802
28803         mktime: merge #if/#ifdef usage from glibc
28804         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28805         as that works with both Glibc's and Gnulib's style.
28806         See thread starting at Siddhesh Poyarekar's bug report at:
28807         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28808
28809 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28810
28811         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28812         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28813         * sysdeps/tile/tilegx/memmove.c: Remove file.
28814
28815 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28816
28817         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28818         abi-name definition.
28819         * scripts/soversions.awk: Do not handle or generate ABI lines.
28820         * shlib-versions: Remove ABI entries.
28821         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28822         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28823
28824 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28825
28826         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28827         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28828         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28829         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28830         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28831         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28832         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28833         Moved ...
28834         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28835         ... here.
28836         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28837         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28838         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28839         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28840         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28841         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28842         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28843         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28844         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28845         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28846         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28847         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28848         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28849         Moved ...
28850         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28851         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28852         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28853         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28854         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28855         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28856         Moved ...
28857         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28858         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28859         Moved ...
28860         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28861         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28862         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28863         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28864         Moved ...
28865         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28866         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28867         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28868         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28869         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28870         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28871         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28872         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28873         Moved ...
28874         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28875         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28876         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28877         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28878         Moved ...
28879         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28880         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28881         Moved ...
28882         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28883         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28884         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28885         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28886         Moved ...
28887         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28888         ... here.
28889         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28890         Identical file removed.
28891         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28892         Moved ...
28893         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28894         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28895         Identical file removed.
28896         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28897         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28898         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28899         Moved ...
28900         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28901         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28902         Identical file removed.
28903         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28904         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28905         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28906         Identical file removed.
28907         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28908         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28909         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28910         Identical file removed.
28911         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28912         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28913         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28914         Identical file removed.
28915         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28916         Moved ...
28917         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28918         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28919         Identical file removed.
28920         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28921         Moved ...
28922         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28923         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28924         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28925         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28926         Identical file removed.
28927         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28928         Moved ...
28929         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28930         ... here.
28931         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28932         Identical file removed.
28933         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28934         Moved ...
28935         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28936         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28937         Identical file removed.
28938         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28939         Moved ...
28940         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28941         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28942         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28943         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28944         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28945         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28946         Moved ...
28947         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28948         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28949         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28950
28951         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28952         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28953         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28954         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28955         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28956
28957 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28958
28959         [BZ #17092]
28960         * nscd/nscd.c (monitor_child): Return exit status of child
28961         instead of return value from wait syscall.
28962
28963 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28964
28965         * configure.ac (libc_commonpagesize): Remove variable.
28966         (libc_relro_required): Likewise.
28967         (libc_cv_z_relro): Remove configure test.
28968         * configure: Regenerated.
28969         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28970         variable.
28971         (libc_relro_required): Likewise.
28972         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28973         (libc_relro_required): Likewise.
28974         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28975         (libc_relro_required): Likewise.
28976         * sysdeps/arm/preconfigure: Regenerated.
28977         * sysdeps/ia64/preconfigure: Remove file.
28978         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28979         variable.
28980         (libc_relro_required): Likewise.
28981
28982         [BZ #16561]
28983         [BZ #16562]
28984         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28985         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28986         recompute overflowing results in original rounding mode.
28987         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28988         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28989         recompute overflowing results in original rounding mode.
28990         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28991         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28992         recompute overflowing results in original rounding mode.
28993         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28994         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28995         recompute overflowing results in original rounding mode.
28996         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28997         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28998         recompute overflowing results in original rounding mode.
28999         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29000         (libc_feholdsetround_ctx): New macro.
29001         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29002         * sysdeps/i386/fpu/libm-test-ulps: Update.
29003         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29004
29005 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29006
29007         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29008         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29009         corresponding .cpsetup call.
29010
29011 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29012
29013         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29014         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29015         * sysdeps/arm/Makefile [$(subdir) = csu]
29016         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29017         (static-only-routines): Add aeabi_read_tp here.
29018         (shared-only-routines): Add libc-aeabi_read_tp here.
29019         (CFLAGS-libc-start.c): Add -fexceptions here.
29020         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29021         (sysdep_routines, static-only-routines, shared-only-routines):
29022         Don't add to these here.
29023         (CFLAGS-libc-start.c): Likewise.
29024
29025         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29026         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29027         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29028         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29029         * sysdeps/arm/Makefile [$(subdir) = rt]
29030         (librt-sysdep_routines, librt-shared-only-routines):
29031         Append rt-aeabi_unwind_cpp_pr1 here.
29032         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29033         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29034         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29035         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29036         Append nptl-aeabi_unwind_cpp_pr1 here.
29037         (tests): Filter out tst-cleanupx4 here.
29038         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29039         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29040         Don't do those here.
29041
29042 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29043
29044         * scripts/list-sources.sh: Do not handle ports specially.
29045
29046 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29047
29048         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29049         * sysdeps/arm/feupdateenv.c: Likewise.
29050
29051         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29052
29053 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29054
29055         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29056         trailing whitespace removed.
29057         * scripts/config.guess: Update to version 2014-03-23.
29058         * scripts/config.sub: Update to version 2014-05-01
29059         * scripts/install-sh: Update to version 2013-12-25.23.
29060         * scripts/move-if-change: Update from gnulib.
29061
29062 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29063
29064         * debug/memmove_chk.c: Remove pagecopy.h include.
29065
29066 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29067
29068         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29069         identical to gnulib mktime.
29070
29071 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29072
29073         * configure.ac: Do not test for machine being rs6000.  Do not test
29074         for powerpc*-*soft.
29075         * configure: Regenerated.
29076
29077         [BZ #11505]
29078         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29079         test.
29080         * configure: Regenerated.
29081         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29082         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29083         Remove configure test.
29084         * sysdeps/arm/configure: Regenerated.
29085         * sysdeps/nptl/configure.ac: Do not check
29086         libc_cv_asm_cfi_directives.
29087         * sysdeps/nptl/configure: Regenerated.
29088         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29089         * sysdeps/x86_64/nptl/configure: Remove generated file.
29090         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29091         unconditional.
29092         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29093
29094 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29095
29096         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29097         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29098         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29099         it is defined.
29100
29101         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29102         instead of whether it is defined.
29103         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29104         * sysdeps/hppa/dl-machine.h: Likewise.
29105         * sysdeps/ia64/dl-machine.h: Likewise.
29106         * sysdeps/m68k/dl-machine.h: Likewise.
29107         * sysdeps/microblaze/dl-machine.h: Likewise.
29108         * sysdeps/mips/dl-machine.: Likewise.
29109         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29110         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29111         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29112         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29113         * sysdeps/sh/dl-machine.h: Likewise.
29114         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29115         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29116         * sysdeps/tile/dl-machine.h: Likewise.
29117         * sysdeps/x86_64/dl-machine.h: Likewise.
29118
29119         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29120         code.
29121         (verify_persistent_db): Likewise.
29122
29123 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29124
29125         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29126         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29128         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29129         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29130         Moved ...
29131         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29132         ... here.
29133         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29134         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29135         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29136         Identical file removed.
29137         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29138         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29139         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29140         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29142         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29144         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29146         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29148         Moved ...
29149         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29150         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29151         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29152         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29153         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29154         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29155         Moved ...
29156         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29157         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29158         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29159         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29160         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29161         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29162         Identical file removed.
29163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29164         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29166         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29168         Moved ...
29169         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29170         ... here.
29171         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29172         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29173         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29174         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29175         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29176         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29177         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29178         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29179         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29180         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29181         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29182         Moved ...
29183         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29184         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29185         Moved ...
29186         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29187         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29188         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29189         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29190         Moved ...
29191         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29192         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29193         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29194
29195         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29196         folded into ...
29197         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29198         * sysdeps/unix/sysv/linux/s390/Versions
29199         (libpthread: GLIBC_2.19): New version set.
29200         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29201         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29202         (librt: GLIBC_2.3.3): New version set.
29203         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29204         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29205         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29206         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29207         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29208         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29209         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29210         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29211         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29212         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29213         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29214         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29215         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29216         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29217         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29218         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29219         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29220         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29221         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29222         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29223         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29224         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29225         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29226         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29227         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29228         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29229         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29230         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29231         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29232         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29233         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29234         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29235         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29236         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29237         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29238         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29239         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29240         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29241         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29242         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29243         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29244         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29245         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29246         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29247         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29248
29249         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29250         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29251         (__libc_vfork): Define the function under this name.
29252         [!NOT_IN_libc] (__vfork): Make this an alias.
29253         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29254         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29255         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29256         (__libc_vfork): Define the function under this name.
29257         [!NOT_IN_libc] (__vfork): Make this an alias.
29258         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29259         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29260         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29261         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29262         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29263         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29264
29265         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29266         code that was previously under [RESET_PID].
29267         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29268         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29269         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29270
29271         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29272         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29273         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29274         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29275         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29276         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29277         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29278         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29279         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29280         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29281         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29282         Moved ...
29283         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29284         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29285         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29286         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29287         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29288         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29289         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29290         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29291         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29292         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29293         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29294         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29295         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29296         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29297         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29298         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29299         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29300         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29301         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29302         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29303         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29304         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29305         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29306         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29307         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29308         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29309         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29310         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29311         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29312
29313 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29314
29315         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29316         that was previously under [RESET_PID].
29317         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29318
29319 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29320
29321         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29322         not undefine and redefine.
29323         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29324         [O_CLOEXEC]: Make code unconditional.
29325         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29326         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29327         <kernel-features.h>.
29328         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29329         conditional variable definition.
29330         (shm_open) [O_CLOEXEC]: Make code unconditional.
29331         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29332         code.
29333
29334         * configure.ac (USE_REGPARMS): Don't define here.
29335         * configure: Regenerated.
29336         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29337         * sysdeps/i386/configure: Regenerated.
29338
29339         * nptl/createthread.c: Don't include kernel-features.h.
29340         * nptl/pthread_cancel.c: Likewise.
29341         * nptl/pthread_condattr_setclock.c: Likewise.
29342         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29343         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29344         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29345         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29346         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29347         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29348         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29349         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29350         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29351         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29352         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29353         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29354         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29355         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29356         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29357         * nscd/gai.c: Likewise.
29358         * nss/nss_db/db-open.c: Likewise.
29359         * sysdeps/generic/ldsodefs.h: Likewise.
29360         * sysdeps/sh/nptl/tls.h: Likewise.
29361         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29362         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29363         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29364         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29365         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29366         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29367         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29368         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29369         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29370         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29371         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29372         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29373         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29374         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29375         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29376         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29377         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29378         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29379         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29380         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29381         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29382         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29383         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29384         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29385         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29386         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29387         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29388         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29389         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29390         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29391         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29392         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29393         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29394         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29395         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29396         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29397         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29398         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29399         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29400         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29401         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29402         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29403         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29404         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29405         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29406         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29407         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29408         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29409         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29410         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29411         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29412         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29413         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29414         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29415         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29416         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29417         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29418         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29441         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29442         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29443         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29444         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29445         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29446         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29447         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29448         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29449         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29450         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29451         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29452         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29453         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29454         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29455         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29456         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29457         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29458         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29459         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29460         * sysdeps/unix/sysv/linux/system.c: Likewise.
29461         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29462         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29463         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29464         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29465         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29466         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29467         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29468
29469         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29470         * configure: Regenerated.
29471         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29472
29473         * configure.ac (base_machine): Do not set specially for particular
29474         machines here.
29475         * configure: Regenerated.
29476         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29477         settings from configure.ac.
29478         * sysdeps/i386/preconfigure: New file.
29479         * sysdeps/s390/preconfigure: Likewise.
29480         * sysdeps/sh/preconfigure: Likewise.
29481         * sysdeps/sparc/preconfigure: Likewise.
29482
29483 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29484
29485         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29486         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29487         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29488         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29489         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29490         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29491         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29492         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29493         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29494         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29495         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29496         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29497         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29498         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29499         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29500         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29501         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29502         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29503         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29504
29505         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29506         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29507         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29508         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29509         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29510         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29511         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29512         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29513         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29514         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29515         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29516         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29517         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29518         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29519         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29520         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29521         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29522         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29523         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29524         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29525         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29526         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29527         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29528         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29529         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29530         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29531         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29532         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29533         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29534         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29535         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29536         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29537         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29538         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29539         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29540         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29541         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29542         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29543
29544         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29545         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29546         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29547         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29548         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29549         Moved ...
29550         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29551         ... here.
29552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29553         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29555         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29557         Moved ...
29558         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29559         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29560         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29561         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29562         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29563         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29564         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29565         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29566         Moved ...
29567         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29569         Moved ...
29570         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29572         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29574         Moved ...
29575         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29577         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29579         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29581         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29582         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29583         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29584         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29585         Moved ...
29586         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29587         ... here.
29588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29589         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29590         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29591         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29593         Moved ...
29594         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29596         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29597         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29598         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29600         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29601         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29602         Moved ...
29603         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29604         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29605         Moved ...
29606         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29607         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29608         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29609         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29610         Moved ...
29611         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29613         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29614         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29615         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29616
29617 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29618
29619         * timezone/checktab.awk: Update from tzcode 2014e.
29620         * timezone/private.h: Likewise.
29621         * timezone/tzfile.h: Likewise.
29622         * timezone/zdump.c: Likewise.
29623         * timezone/zic.c: Likewise.
29624
29625         * sysdeps/unix/sysv/linux/kernel-features.h
29626         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29627         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29628         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29629         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29630         Remove conditional code.
29631
29632 2014-06-25  Will Newton  <will.newton@linaro.org>
29633
29634         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29635         (_dl_arm_cap_flags): Add HWCAP2 values.
29636         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29637         (_DL_HWCAP_COUNT): Increase to 37.
29638         (_DL_HWCAP_LAST): New define.
29639         (_DL_HWCAP2_LAST): New define.
29640         (_dl_procinfo): Add support for printing
29641         AT_HWCAP2 entries.
29642         (_dl_string_hwcap): Use _dl_hwcap_string.
29643
29644 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29645
29646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29647
29648 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29649
29650         * README: Do not mention ports directory.
29651
29652         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29653         Remove macro.
29654         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29655         <kernel-features.h>.
29656         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29657         conditional variable definition.
29658         (__futimes): Update comment.
29659         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29660         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29661
29662         [BZ #16560]
29663         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29664         arguments close to 0.
29665         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29666         Likewise.
29667         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29668         Likewise.
29669         * math/auto-libm-test-in: Add more tests of exp10.
29670         * math/auto-libm-test-out: Regenerated.
29671         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29672
29673         * sysdeps/unix/sysv/linux/kernel-features.h
29674         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29675         * sysdeps/unix/sysv/linux/readv.c: Do not include
29676         <kernel-features.h>.
29677         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29678         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29679         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29680         unconditional.
29681         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29682         conditional code.
29683         * sysdeps/unix/sysv/linux/writev.c: Do not include
29684         <kernel-features.h>.
29685         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29686         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29687         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29688         unconditional.
29689         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29690         conditional code.
29691
29692 2014-06-25  Will Newton  <will.newton@linaro.org>
29693
29694         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29695         comment changes throughout the file.  Remove checks
29696         for HAVE_*_H definitions that are not required.
29697         (__gen_tempname): Call abort if an unknown kind value is
29698         passed.
29699
29700 2014-06-25  Andreas Schwab  <schwab@suse.de>
29701
29702         [BZ #17086]
29703         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29704         scalbln, scalblnf, scalblnl in libc.
29705
29706 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29707
29708         [BZ #17086]
29709         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29710         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29711         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29712
29713 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29714
29715         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29716         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29717         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29718         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29719         Update #include.
29720         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29721         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29722         Update #include.
29723         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29724         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29725         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29726         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29727         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29728         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29729         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29730         * sysdeps/x86/bits/semaphore.h: ... here.
29731         * sysdeps/x86/nptl/elide.h: Moved ...
29732         * sysdeps/x86/elide.h: ... here.
29733         * sysdeps/x86_64/nptl/Implies: File removed.
29734         * sysdeps/i386/nptl/Implies: File removed.
29735
29736 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29737
29738         [BZ #16539]
29739         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29740         return the argument for normal arguments with exponent below -64.
29741         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29742         Likewise.
29743         * math/auto-libm-test-in: Add another test of expm1.
29744         * math/auto-libm-test-out: Regenerated.
29745
29746         [BZ #16287]
29747         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29748         calling __erfcl for arguments at least 16.
29749         * math/auto-libm-test-in: Add more tests of erf.
29750         * math/auto-libm-test-out: Regenerated.
29751
29752         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29753         individual architectures.
29754         * sysdeps/unix/sysv/linux/configure: Regenerated.
29755         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29756         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29757         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29758         (ldd_rewrite_script): Define variable.
29759         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29761         file.
29762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29763         generated file.
29764         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29765         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29766         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29767         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29768         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29769         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29770         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29771         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29772
29773 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29774
29775         [BZ #17084]
29776         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29777         Rename member __data.d to __data.__elision_data.
29778
29779 2014-06-24  Wilco  <wdijkstr@arm.com>
29780
29781         * NEWS: Add 16918 to fixed bug list.
29782
29783 2014-06-24  Wilco  <wdijkstr@arm.com>
29784
29785         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29786
29787 2014-06-24  Wilco  <wdijkstr@arm.com>
29788
29789         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29790         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29791         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29792         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29793         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29794         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29795         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29796         Use _FPU_MASK_RM.
29797
29798 2014-06-24  Wilco  <wdijkstr@arm.com>
29799
29800         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29801
29802 2014-06-24  Wilco  <wdijkstr@arm.com>
29803
29804         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29805         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29806         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29807         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29808
29809 2014-06-24  Wilco  <wdijkstr@arm.com>
29810
29811         [BZ #16918]
29812         * sysdeps/arm/feupdateenv.c (feupdateenv):
29813         Rewrite to reduce FPSCR accesses and fix return value.
29814
29815 2014-06-24  Wilco  <wdijkstr@arm.com>
29816
29817         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29818         Optimize to avoid unnecessary FPSCR writes.
29819         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29820         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29821         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29822         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29823
29824 2014-06-24  Wilco  <wdijkstr@arm.com>
29825
29826         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29827         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29828         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29829         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29830         Call libc_fetestexcept_vfp.
29831         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29832         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29833         __SOFTFP__ ifdef so that they can be built for softfp.
29834
29835 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29836
29837         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29838         argument type signed char.
29839
29840         * Makerules (check-abi): Dump diff of symlist if the test
29841         fails.
29842
29843 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29844
29845         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29846         using abort.
29847
29848         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29849         Remove unused variable ST.
29850
29851 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29852
29853         [BZ #16354]
29854         [BZ #17061]
29855         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29856         small arguments before calling __expm1.
29857         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29858         small arguments before calling __expm1f.
29859         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29860         small arguments before calling __expm1l.
29861         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29862         Likewise.
29863         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29864         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29865         spurious underflow for some cosh tests.
29866         * math/auto-libm-test-out: Regenerated.
29867         * sysdeps/i386/fpu/libm-test-ulps: Update.
29868
29869         [BZ #17050]
29870         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29871         (__ieee754_y1): Set errno if return value overflows.
29872         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29873         (__ieee754_y1f): Set errno if return value overflows.
29874         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29875         (__ieee754_y1l): Set errno if return value overflows.
29876         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29877         (__ieee754_y1l): Set errno if return value overflows.
29878         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29879         * math/auto-libm-test-out: Regenerated.
29880
29881         * math/gen-auto-libm-tests.c: Document use of
29882         ignore-zero-inf-sign.
29883         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29884         (input_flags): Add ignore-zero-inf-sign.
29885         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29886         * math/gen-libm-test.pl (generate_testfile): Handle
29887         ignore-zero-inf-sign.
29888         * math/auto-libm-test-in: Mark some cpow tests with
29889         ignore-zero-inf-sign and some with xfail-rounding.
29890         * math/auto-libm-test-out: Regenerated.
29891         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29892         * sysdeps/i386/fpu/libm-test-ulps: Update.
29893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29894
29895         [BZ #16315]
29896         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29897         overflowing or underflowing operations take place with sign of
29898         result.
29899         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29900         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29901         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29902         (__ieee754_pow): Recompute overflowing and underflowing results in
29903         original rounding mode.
29904         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29905         (__powl_helper): Allow negative argument X and scale negated value
29906         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29907         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29908         overflowing or underflowing operations take place with sign of
29909         result.
29910         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29911         Include <math.h>.
29912         * math/auto-libm-test-in: Add more tests of pow.
29913         * math/auto-libm-test-out: Regenerated.
29914         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29915         (pow_tonearest_test_data): Remove.
29916         (pow_test_tonearest): Likewise.
29917         (pow_towardzero_test_data): Likewise.
29918         (pow_test_towardzero): Likewise.
29919         (pow_downward_test_data): Likewise.
29920         (pow_test_downward): Likewise.
29921         (pow_upward_test_data): Likewise.
29922         (pow_test_upward): Likewise.
29923         (main): Don't call removed functions.
29924         * sysdeps/i386/fpu/libm-test-ulps: Update.
29925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29926
29927 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29928
29929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29930         Moved ...
29931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29933         Moved ...
29934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29936         Moved ...
29937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29939         Moved ...
29940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29942         File removed.
29943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29944         File removed.
29945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29946         File removed.
29947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29948         File removed.
29949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29950         File removed.
29951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29952         File removed.
29953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29954         File removed.
29955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29956         File removed.
29957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29958         File removed.
29959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29960         File removed.
29961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29962         File removed.
29963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29964         File removed.
29965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29966         Moved ...
29967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29969         Moved ...
29970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29971         ... here.
29972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29973         Moved ...
29974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29976         Moved ...
29977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29979         Moved ...
29980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29982         Moved ...
29983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29985         Moved ...
29986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29988         Moved ...
29989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29991         Moved ...
29992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29995         ... here.
29996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29997         Moved ...
29998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30000         Moved ...
30001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30002         ... here.
30003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30004         Moved ...
30005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30006         ... here.
30007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30008         Moved ...
30009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30010         ... here.
30011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30012         Moved ...
30013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30015         Moved ...
30016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30020         Moved ...
30021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30022         ... here.
30023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30024         Moved ...
30025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30026         ... here.
30027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30028         Moved ...
30029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30031         Moved ...
30032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30034         Moved ...
30035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30037         Moved ...
30038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30040         Moved ...
30041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30042         ... here.
30043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30044         Moved ...
30045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30047         Moved ...
30048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30050         Moved ...
30051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30053         Moved ...
30054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30058         Moved ...
30059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30061         Moved ...
30062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30064         Moved ...
30065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30066         ... here.
30067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30068         Moved ...
30069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30070         ... here.
30071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30072         Moved ...
30073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30074         ... here.
30075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30076         Moved ...
30077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30079         Moved ...
30080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30082         Moved ...
30083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30085         Moved ...
30086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30087         ... here.
30088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30089         Moved ...
30090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30091         ... here.
30092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30093         Moved ...
30094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30095         ... here.
30096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30097         Moved ...
30098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30100         Moved ...
30101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30102
30103 2014-06-23  Will Newton  <will.newton@linaro.org>
30104             Wilco  <wdijkstr@arm.com>
30105
30106         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30107         implementation.  Include get-rounding-mode.h.
30108         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30109         [!libc_feholdsetround_noex_ctx]: Define
30110         libc_feholdsetround_noex_ctx.
30111         [!libc_feholdsetround_noexf_ctx]: Define
30112         libc_feholdsetround_noexf_ctx.
30113         [!libc_feholdsetround_noexl_ctx]: Define
30114         libc_feholdsetround_noexl_ctx.
30115         (libc_feholdsetround_ctx): New function.
30116         (libc_feresetround_ctx): New function.
30117         (libc_feholdsetround_noex_ctx): New function.
30118         (libc_feresetround_noex_ctx): New function.
30119
30120 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30121
30122         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30123         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30124         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30125         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30126         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30127         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30128
30129         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30130         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30131         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30132         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30133         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30134         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30135         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30136         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30137         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30138         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30139         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30140         Moved ...
30141         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30142         ... here.
30143         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30144         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30145         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30146         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30147         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30148         Moved ...
30149         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30150         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30151         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30152         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30153         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30154         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30155         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30156         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30157         Moved ...
30158         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30159         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30160         Moved ...
30161         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30162         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30163         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30164         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30165         Moved ...
30166         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30167         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30168         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30169         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30170         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30171         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30172         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30173         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30174         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30175         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30176         Moved ...
30177         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30178         ... here.
30179         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30180         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30181         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30182         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30183         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30184         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30185         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30186         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30187         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30188         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30189         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30190         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30191         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30192         Moved ...
30193         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30194         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30195         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30196         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30197         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30198         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30199         Moved ...
30200         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30201         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30202         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30203         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30204         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30205
30206         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30207         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30208         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30209         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30210         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30211         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30212         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30213         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30214         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30215         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30216         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30217         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30218         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30219         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30220         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30221         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30222         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30223         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30224         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30225         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30226         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30227         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30228         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30229         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30230         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30231         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30232         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30233         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30234
30235 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30236
30237         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30238         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30239         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30240         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30241         (IPV6_PMTUDISC_INTERFACE): Likewise.
30242         (IPV6_PMTUDISC_OMIT): Likewise.
30243
30244 2014-06-23  Andreas Schwab  <schwab@suse.de>
30245
30246         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30247         Remove unused errout label.
30248
30249 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30250
30251         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30252         macro: hardware supports Vector Crypto instructions.
30253
30254 2014-06-23  Will Newton  <will.newton@linaro.org>
30255
30256         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30257         rather than __builtin_expect.
30258
30259         * elf/dl-lookup.c (undefined_msg): Remove variable.
30260         (_dl_lookup_symbol_x): Replace undefined_msg with string
30261         literal.
30262
30263         * elf/dl-lookup.c (do_lookup_unique): New function.
30264         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30265         to a separate function.
30266
30267 2014-06-23  Andreas Schwab  <schwab@suse.de>
30268
30269         [BZ #17079]
30270         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30271         before reading the next line.
30272
30273 2014-06-23  Will Newton  <will.newton@linaro.org>
30274
30275         * test-skeleton.c (signal_handler): Use printf and %m
30276         rather than perror.  Use printf rather than fprintf to
30277         stderr.  Use puts rather than fputs to stderr.
30278         (main): Likewise.
30279
30280 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30281
30282         * nscd/nscd.c (thread_info_t): Remove typedef.
30283         (thread_info): Remove variable.
30284
30285 2014-06-21  Allan McRae  <allan@archlinux.org>
30286
30287         * NEWS: Mention CVE-2014-4043.
30288
30289 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30290
30291         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30292         * nptl/smp.h: ... here.
30293
30294         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30295
30296         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30297         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30298         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30299         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30300
30301         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30302         * nptl/stack-aliasing.h: New file.
30303         * sysdeps/i386/i686/stack-aliasing.h: New file.
30304         * sysdeps/i386/i686/nptl/Makefile: File removed.
30305         * sysdeps/x86_64/stack-aliasing.h: New file.
30306         * sysdeps/x86_64/nptl/Makefile
30307         (CFLAGS-pthread_create.c): Variable removed.
30308
30309         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30310         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30311         old file.
30312         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30313         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30314         old file.
30315
30316 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30317
30318         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30319         (__ASSUME_SIGFRAME_V2): Remove macro.
30320         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30321         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30322         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30323         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30324         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30325         Declare as function.  Remove conditional macro definitions.
30326         (__default_rt_sa_restorer): Likewise.
30327         (__default_sa_restorer_v1): Remove declaration.
30328         (__default_sa_restorer_v2): Likewise.
30329         (__default_rt_sa_restorer_v1): Likewise.
30330         (__default_rt_sa_restorer_v2): Likewise.
30331         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30332         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30333         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30334
30335 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30336
30337         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30338         (libpthread-routines): Add sysdep.
30339         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30340         * sysdeps/unix/sysv/linux/sparc/Versions
30341         (libpthread: GLIBC_2.3.3): New version set.
30342         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30343         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30344         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30345         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30346         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30347         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30348         Moved ...
30349         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30350         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30351         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30352         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30353         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30354         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30355         * sysdeps/sparc/nptl/sem_init.c: ... here.
30356         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30357         * sysdeps/sparc/nptl/sem_post.c: ... here.
30358         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30359         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30360         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30361         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30362         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30363         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30364         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30365         (libpthread-routines): Add cpu_relax.
30366         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30367         File removed.
30368         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30369         (librt: GLIBC_2.3.3): New version set.
30370         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30371         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30372         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30373         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30374         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30375         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30376         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30377         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30378         Moved ...
30379         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30380         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30381         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30382         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30383         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30384         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30385         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30386         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30387         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30388         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30389         Moved ...
30390         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30391         Update #include.
30392         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30393         Moved ...
30394         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30395         Update #include.
30396         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30397         Moved ...
30398         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30399         Update #include.
30400         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30401         Moved ...
30402         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30403         Update #include.
30404         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30405         Moved ...
30406         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30407         Update #include.
30408         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30409         Moved ...
30410         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30411         Update #include.
30412         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30413         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30414         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30415         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30416         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30417         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30418         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30419         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30420         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30421         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30422         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30423         Moved ...
30424         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30425         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30426         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30427         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30428         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30429
30430 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30431
30432         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30433         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30434         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30435         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30436         * nscd/nscd.c: Likewise.
30437         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30438         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30439         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30440         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30441
30442         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30443         <kernel-features.h>.
30444         (init_mq_netlink): Remove conditional have_sock_cloexec
30445         definitions.  Remove code conditional on have_sock_cloexec < 0.
30446         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30447         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30448         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30449         <kernel-features.h>.
30450         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30451         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30452
30453 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30454
30455         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30456         Add tests for memset_chk and memset.
30457
30458         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30459         with AVX2_Usable.
30460
30461 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30462
30463         [BZ #16046]
30464         * elf/tst-dl-iter-static.c: New file.
30465         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30466
30467         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30468         error.
30469
30470 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30471
30472         * sysdeps/unix/sysv/linux/kernel-features.h
30473         (__ASSUME_F_GETOWN_EX): Remove macro.
30474         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30475         <kernel-features.h>.
30476         (miss_F_GETOWN_EX): Remove variable or macro.
30477         (do_fcntl): Do not check miss_F_GETOWN_EX.
30478         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30479
30480         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30481         Remove macro.
30482         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30483         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30484         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30485
30486         * sysdeps/unix/sysv/linux/kernel-features.h
30487         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30488         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30489         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30490         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30491
30492 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30493
30494         [BZ #17075]
30495         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30496         Fix calculation of the symbol's value.
30497         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30498         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30499         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30500         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30501         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30502         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30503         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30504         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30505         (modules-names): Add `tst-armtlsdescmod',
30506         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30507         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30508         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30509         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30510         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30511         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30512         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30513         ($(objpfx)tst-armtlsdescloc): New dependency.
30514         ($(objpfx)tst-armtlsdescextnow): Likewise.
30515         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30516         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30517         TLS scheme support.
30518         * sysdeps/arm/configure: Regenerate.
30519
30520 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30521
30522         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30523         (__atfct_seterrno_2): Likewise.
30524         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30525         <kernel-features.h>.
30526         (__ASSUME_ATFCTS): Do not undefine and redefine.
30527         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30528         (__have_atfcts): Remove conditional definition.
30529         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30530         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30531         unreachable if [__ASSUME_ATFCTS].
30532         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30533         not undefine and redefine.
30534         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30535         <kernel-features.h>.
30536         (faccessat) [__NR_faccessat]: Make code unconditional.
30537         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30538         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30539         <kernel-features.h>.
30540         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30541         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30542         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30543         <kernel-features.h>.
30544         (fchownat) [__NR_fchownat]: Make code unconditional.
30545         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30546         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30547         <kernel-features.h>.
30548         (futimesat) [__NR_futimesat]: Make code unconditional.
30549         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30550         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30551         <kernel-features.h>.
30552         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30553         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30554         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30555         <kernel-features.h>.
30556         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30557         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30558         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30559         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30560         <kernel-features.h>.
30561         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30562         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30563         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30564         <kernel-features.h>.
30565         (linkat) [__NR_linkat]: Make code unconditional.
30566         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30567         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30568         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30569         <kernel-features.h>.
30570         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30571         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30572         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30573         <kernel-features.h>.
30574         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30575         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30576         * sysdeps/unix/sysv/linux/openat.c: Do not include
30577         <kernel-features.h>.
30578         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30579         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30580         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30581         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30582         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30583         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30584         <kernel-features.h>.
30585         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30586         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30587         result of INLINE_SYSCALL directly, not via int variable.
30588         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30589         <kernel-features.h>.
30590         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30591         (renameat) [__NR_renameat]: Make code unconditional.
30592         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30593         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30594         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30595         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30596         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30597         (__ASSUME_ATFCTS): Do not undefine and redefine.
30598         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30599         <kernel-features.h>.
30600         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30601         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30602         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30603         <kernel-features.h>.
30604         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30605         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30606         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30607         (__ASSUME_ATFCTS): Do not undefine and redefine.
30608         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30609         <kernel-features.h>.
30610         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30611         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30612         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30613         <kernel-features.h>.
30614         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30615         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30616
30617 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30618
30619         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30620
30621 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30622
30623         [BZ #17069]
30624         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30625         constructed tree before returning error.
30626         * posix/bug-regexp36.c: Expand test case.
30627
30628 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30629
30630         [BZ #6803]
30631         * math/libm-test.inc (scalbln_test_date):
30632         Add errno expectations.
30633         * math/w_scalblnf.c: New File.
30634         Add wrapper which checks for setting errno to ERANGE.
30635         Add weak_alias for corresponding scalbln function.
30636         * math/w_scalbln.c: Likewise.
30637         * math/w_scalblnl.c: Likewise.
30638         * math/Makefile (libm-calls): Add w_scalbln.
30639         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30640         Remove weak_alias for corresponding scalbln function.
30641         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30642         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30643         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30644         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30645         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30646         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30647         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30648         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30649         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30650         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30651         Remove long_double_symbol for scalblnl function in libm, libc.
30652         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30653         Add wrapper which checks for setting errno to ERANGE.
30654         Add long_double_symbol for scalblnl function in libm, libc.
30655         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30656         Remove long_double_symbol for scalblnl in libm.
30657         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30658         Add wrapper which checks for setting errno to ERANGE.
30659         Add long_double_symbol for scalblnl function in libm.
30660         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30661         Do not use wrapper because of own implementation.
30662
30663 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30664
30665         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30666         3 bytes for __pad1 for x32.
30667         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30668
30669 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30670             H.J. Lu  <hongjiu.lu@intel.com>
30671
30672         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30673         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30674         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30675         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30676         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30677
30678 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30679
30680         [BZ #17069]
30681         * posix/regcomp.c (parse_expression): Deallocate partially
30682         constructed tree before returning error.
30683         * posix/Makefile.c (tests): Add bug-regex36.
30684         (generated): Add bug-regex36.mtrace.
30685         (tests-special): Add $(objpfx)bug-regex36-mem.out
30686         (bug-regex36-ENV): New variable.
30687         ($(objpfx)bug-regex36-mem.out): New rule.
30688         * posix/bug-regex36.c: New file.
30689
30690 2014-06-19  Will Newton  <will.newton@linaro.org>
30691
30692         * malloc/malloc.c (systrim): If extra is zero then return
30693         early.
30694
30695 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30696
30697         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30698
30699 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30700
30701         * sysdeps/aarch64/strchr.S: New file.
30702
30703 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30704
30705         [BZ #17022]
30706         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30707         from arguments -2 or below.
30708         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30709         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30710
30711 2014-06-18  Andreas Schwab  <schwab@suse.de>
30712
30713         [BZ #17062]
30714         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30715         of a bracket expr not to run off the end of the string.
30716         * posix/Makefile (tests): Add tst-fnmatch3.
30717         * posix/tst-fnmatch3.c: New file.
30718
30719 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30720
30721         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30722         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30723         [$(cross-compiling) = no]: Likewise.
30724         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30725         [$(cross-compiling) = no]: Likewise.
30726
30727 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30728
30729         [BZ #17031]
30730         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30731         double, adjusted for any remainder from the high double.
30732         * math/libm-test.inc (nearbyint): Add tests.
30733         (rint): Likewise.
30734
30735 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30736
30737         * nptl/sysdeps/powerpc/Makefile: Moved ...
30738         * sysdeps/powerpc/nptl/Makefile: ... here.
30739         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30740         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30741         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30742         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30743         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30744         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30745         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30746         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30747         * nptl/sysdeps/powerpc/tls.h: Moved ...
30748         * sysdeps/powerpc/nptl/tls.h: ... here.
30749
30750 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30751
30752         [BZ #16681]
30753         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30754         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30755         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30756         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30757         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30758         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30759         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30760         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30761         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30762
30763 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30764
30765         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30766
30767 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30768
30769         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30770         defined operator.
30771
30772         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30773         $TIMEOUTFACTOR.
30774
30775 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30776
30777         [BZ #17058]
30778         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30779         non-executed part of the test.
30780
30781 2014-06-16  Andreas Schwab  <schwab@suse.de>
30782
30783         * string/bits/string2.h (strdup, strndup): Update feature guard.
30784
30785 2014-06-14  David S. Miller  <davem@davemloft.net>
30786
30787         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30788
30789 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30790
30791         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30792         that was previously under [RESET_PID].
30793         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30794
30795         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30796         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30797         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30798         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30799         (__libc_vfork): New strong alias.
30800         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30801
30802 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30803
30804         * sysdeps/generic/elide.h: New file.
30805
30806 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30807
30808         * Makefile (installed-headers): Adjust path of pthread.h header.
30809
30810 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30811
30812         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30813         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30814         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30815         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30816
30817         * nptl/sysdeps/s390/Makefile: Moved ...
30818         * sysdeps/s390/nptl/Makefile: ... here.
30819         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30820         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30821         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30822         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30823         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30824         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30825         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30826         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30827         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30828         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30829         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30830         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30831         * nptl/sysdeps/s390/tls.h: Moved ...
30832         * sysdeps/s390/nptl/tls.h: ... here.
30833
30834         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30835         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30836
30837 2014-06-13  David S. Miller  <davem@davemloft.net>
30838
30839         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30840         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30841         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30842         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30843         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30844         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30845         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30846         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30847         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30848         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30849         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30850         Remove RESET_PID cpp guards.
30851         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30852         Remove RESET_PID cpp guards.
30853         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30854
30855 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30856
30857         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30858         __sp to uintptr_t.
30859
30860 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30861
30862         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30863         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30864         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30865         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30866         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30867         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30868         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30869         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30870         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30871         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30872         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30873         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30874         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30875         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30876         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30877         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30878         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30879         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30880         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30881         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30882
30883         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30884         (pthread_rwlock_rdlock): Add elision.
30885         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30886         (pthread_rwlock_wrlock): Add elision.
30887         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30888         (pthread_rwlock_trywrlock): Add elision.
30889         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30890         (pthread_rwlock_tryrdlock): Add elision.
30891         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30892         (pthread_rwlock_tryrdlock): Add elision unlock.
30893         * nptl/sysdeps/pthread/pthread.h:
30894         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30895         (PTHREAD_RWLOCK_INITIALIZER,
30896         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30897         Handle new elision field.
30898         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30899         * sysdeps/arm/nptl/bits/pthreadtypes.h
30900         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30901         * sysdeps/sh/nptl/bits/pthreadtypes.h
30902         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30903         * sysdeps/tile/nptl/bits/pthreadtypes.h
30904         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30905         * sysdeps/a/nptl/bits/pthreadtypes.h
30906         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30907         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30908         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30909         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30910         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30911         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30912         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30913         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30914         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30915         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30916         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30917         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30918         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30919         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30920         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30921         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30922         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30923         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30924         (elision_init): Set try_xbegin to zero when no RTM.
30925         * sysdeps/x86/nptl/bits/pthreadtypes.h
30926         (pthread_rwlock_t): Change __pad1 to __rwelision.
30927         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30928
30929 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30930
30931         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30932         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30933         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30934         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30935
30936 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30937
30938         [BZ #16996]
30939         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30940         that the cached result has been set before returning it.
30941
30942 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30943
30944         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30945         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30946         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30947         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30948         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30949         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30950
30951         * nptl/sysdeps/sparc/Makefile: Moved ...
30952         * sysdeps/sparc/nptl/Makefile: ... here.
30953         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30954         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30955         * nptl/sysdeps/sparc/tls.h: Moved ...
30956         * sysdeps/sparc/nptl/tls.h: ... here.
30957         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30958         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30959         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30960         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30961         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30962         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30963         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30964         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30965         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30966         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30967         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30968         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30969         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30970         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30971         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30972         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30973         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30974         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30975         Update #include.
30976         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30977         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30978         Update #include.
30979         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30980         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30981         Update #include.
30982         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30983         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30984         Update #include.
30985
30986         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30987
30988         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30989         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30990
30991         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30992         (struct list_links): Type removed.
30993         (struct thread_node, struct timer_node): Replace struct list_links
30994         with struct list_head.
30995         (list_unlink_ip): Likewise.
30996         * sysdeps/pthread/timer_routines.c
30997         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30998         (list_append, list_insbefore): Likewise.
30999         (list_init): Function removed.
31000         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31001         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31002         * sysdeps/pthread/Makefile: ... here, new file.
31003
31004         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31005         * sysdeps/nptl/Implies: ... here.
31006         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31007         * nptl/sysdeps/pthread/list.h: Moved ...
31008         * include/list.h: ... here.
31009         * nptl/sysdeps/pthread/createthread.c: Moved ...
31010         * nptl/createthread.c: ... here.
31011         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31012         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31013         * nptl/pt-longjmp.c: ... here.
31014         * nptl/sysdeps/pthread/Makefile: Moved ...
31015         * sysdeps/nptl/Makefile: ... here.
31016         * nptl/sysdeps/pthread/Subdirs: Moved ...
31017         * sysdeps/nptl/Subdirs: ... here.
31018         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31019         * sysdeps/nptl/aio_misc.h: ... here.
31020         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31021         * sysdeps/nptl/bits/libc-lock.h: ... here.
31022         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31023         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31024         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31025         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31026         * nptl/sysdeps/pthread/configure: Moved ...
31027         * sysdeps/nptl/configure: ... here.
31028         * nptl/sysdeps/pthread/configure.ac: Moved ...
31029         * sysdeps/nptl/configure.ac: ... here.
31030         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31031         * sysdeps/nptl/gai_misc.h: ... here.
31032         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31033         * sysdeps/nptl/librt-cancellation.c: ... here.
31034         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31035         * sysdeps/nptl/malloc-machine.h: ... here.
31036         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31037         * sysdeps/nptl/pthread-functions.h: ... here.
31038         * nptl/sysdeps/pthread/pthread.h: Moved ...
31039         * sysdeps/nptl/pthread.h: ... here.
31040         * nptl/sysdeps/pthread/setxid.h: Moved ...
31041         * sysdeps/nptl/setxid.h: ... here.
31042         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31043         * sysdeps/nptl/sigfillset.c: ... here.
31044         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31045         * sysdeps/nptl/tcb-offsets.h: ... here.
31046         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31047         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31048         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31049         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31050         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31051         * sysdeps/pthread/allocalim.h: ... here.
31052         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31053         * sysdeps/pthread/bits/sigthread.h: ... here.
31054         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31055         * sysdeps/pthread/flockfile.c: ... here.
31056         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31057         * sysdeps/pthread/ftrylockfile.c: ... here.
31058         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31059         * sysdeps/pthread/funlockfile.c: ... here.
31060         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31061         * sysdeps/pthread/posix-timer.h: ... here.
31062         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31063         * sysdeps/pthread/timer_create.c: ... here.
31064         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31065         * sysdeps/pthread/timer_delete.c: ... here.
31066         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31067         * sysdeps/pthread/timer_getoverr.c: ... here.
31068         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31069         * sysdeps/pthread/timer_gettime.c: ... here.
31070         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31071         * sysdeps/pthread/timer_routines.c: ... here.
31072         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31073         * sysdeps/pthread/timer_settime.c: ... here.
31074         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31075         * sysdeps/pthread/tst-timer.c: ... here.
31076         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31077         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31078
31079         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31080         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31081
31082         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31083         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31084         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31085         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31086         Update #include target.
31087         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31088         * sysdeps/i386/i686/nptl/Makefile: ... here.
31089         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31090         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31091         Update #include target.
31092         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31093         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31094         * nptl/sysdeps/i386/Makefile: Moved ...
31095         * sysdeps/i386/nptl/Makefile: ... here.
31096         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31097         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31098         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31099         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31100         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31101         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31102         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31103         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31104         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31105         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31106         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31107         * nptl/sysdeps/i386/tls.h: Moved ...
31108         * sysdeps/i386/nptl/tls.h: ... here.
31109
31110         * sysdeps/sh/Makefile [$(subdir) = csu]
31111         (gen-as-const-headers): Add tcb-offsets.sym.
31112         * nptl/sysdeps/sh/Makefile: File removed.
31113         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31114         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31115         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31116         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31117         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31118         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31119         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31120         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31121         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31122         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31123         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31124         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31125         * nptl/sysdeps/sh/tls.h: Moved ...
31126         * sysdeps/sh/nptl/tls.h: ... here.
31127         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31128         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31129         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31130         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31131         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31132         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31133         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31134         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31135         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31136         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31137         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31138         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31139         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31140         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31141         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31142         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31143         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31144         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31145         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31146         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31147         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31148         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31149         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31150         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31151         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31152         Moved ...
31153         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31154         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31155         Moved ...
31156         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31157         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31158         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31159         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31160         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31161         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31162         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31163         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31164         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31165         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31166         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31167         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31168         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31169         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31170         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31171         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31172         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31173         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31174         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31175
31176 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31177
31178         * posix/spawn_faction_addopen.c: Include string.h.
31179
31180 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31181
31182         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31183         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31184         * nptl/sysdeps/x86_64/Makefile: Moved ...
31185         * sysdeps/x86_64/nptl/Makefile: ... here.
31186         * nptl/sysdeps/x86_64/configure: Moved ...
31187         * sysdeps/x86_64/nptl/configure: ... here.
31188         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31189         * sysdeps/x86_64/nptl/configure.ac: ... here.
31190         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31191         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31192         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31193         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31194         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31195         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31196         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31197         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31198         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31199         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31200         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31201         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31202         * nptl/sysdeps/x86_64/tls.h: Moved ...
31203         * sysdeps/x86_64/nptl/tls.h: ... here.
31204         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31205         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31206         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31207         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31208
31209         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31210
31211 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31212
31213         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31214
31215 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31216
31217         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31218         type.
31219         [POSIX] (off_t): Likewise.
31220         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31221         [POSIX] (S_ISBLK): Require macro.
31222         [POSIX] (S_ISCHR): Likewise.
31223         [POSIX] (S_ISDIR): Likewise.
31224         [POSIX] (S_ISFIFO): Likewise.
31225         [POSIX] (S_ISREG): Likewise.
31226         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31227         optional-macro.
31228         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31229         type.
31230         [POSIX] (time_t): Likewise.
31231         [POSIX] (timer_t): Likewise.
31232
31233 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31234
31235         [BZ #17048]
31236         * posix/spawn_int.h (struct __spawn_action): Make the path string
31237         non-const to support deallocation.
31238         * posix/spawn_faction_addopen.c
31239         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31240         * posix/spawn_faction_destroy.c
31241         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31242         path in all spawn_do_open actions.
31243         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31244         posix_spawn_file_actions_addopen.
31245
31246 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31247
31248         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31249         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31250         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31251         conditional code always true.
31252         (__libc_vfork): New alias.
31253
31254 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31255
31256         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31257         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31258
31259         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31260
31261         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31262         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31263
31264         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31265         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31266
31267         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31268         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31269
31270 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31271
31272         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31273         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31274         multiarch strcmp for PPC64.
31275         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31276         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31277         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31278         multiarch optimizations.
31279         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31280         (__libc_ifunc_impl_list): Likewise.
31281
31282 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31283
31284         * benchtests/scripts/validate_benchout.py: New script.
31285         * benchtests/Makefile (bench-func): Call it.
31286         * benchtests/scripts/benchout.schema.json: New file.
31287
31288 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31289
31290         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31291         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31292         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31293         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31294         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31295         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31296         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31297         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31298         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31299         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31300         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31301         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31302         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31303         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31304         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31305         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31306         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31307         Moved ...
31308         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31309         ... here.
31310         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31311         Moved ...
31312         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31313         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31314         Moved ...
31315         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31316         ... here.
31317         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31318         Moved ...
31319         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31320         ... here.
31321         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31322         Moved ...
31323         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31324         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31325         Moved ...
31326         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31327         ... here.
31328         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31329         Moved ...
31330         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31331         ... here.
31332         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31333         Moved ...
31334         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31335         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31336         Moved ...
31337         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31338         ... here.
31339         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31340         Moved ...
31341         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31342         ... here.
31343         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31344         Moved ...
31345         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31346         ... here.
31347         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31348         Moved ...
31349         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31350         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31351         Moved ...
31352         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31353         ... here.
31354         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31355         Moved ...
31356         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31357         ... here.
31358         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31359         Moved ...
31360         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31361         ... here.
31362         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31363         Moved ...
31364         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31365         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31366         Moved ...
31367         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31368         ... here.
31369         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31370         Moved ...
31371         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31372         ... here.
31373         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31374         Moved ...
31375         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31376         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31377         Moved ...
31378         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31379         ... here.
31380         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31381         Moved ...
31382         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31383         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31384         Moved ...
31385         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31386         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31387         Moved ...
31388         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31389         ... here.
31390         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31391         Moved ...
31392         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31393         ... here.
31394         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31395         Moved ...
31396         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31397         ... here.
31398         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31399         Moved ...
31400         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31401         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31402         Moved ...
31403         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31404         ... here.
31405         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31406         Moved ...
31407         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31408         ... here.
31409         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31410         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31411         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31412         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31413         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31414         Moved ...
31415         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31416         ... here.
31417         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31418         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31419         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31420         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31421         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31422         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31423         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31424         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31425         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31426         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31427         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31428         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31429         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31430         Moved ...
31431         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31432         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31433         Moved ...
31434         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31435         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31436         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31437         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31438         Moved ...
31439         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31440         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31441         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31442         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31443         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31444         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31445         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31446
31447 2014-06-10  Wilco  <wdijkstr@arm.com>
31448
31449         * math/test-fenv-return.c: New file.
31450         * math/Makefile: Add new test test-fenv-return.
31451
31452 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31453
31454         [BZ #17042]
31455         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31456         when x - 1 is zero.
31457         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31458         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31459         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31460         0.0L for an argument of 1.0L.
31461         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31462         Likewise.
31463         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31464         value when x - 1 is zero.
31465         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31466         * sysdeps/i386/fpu/libm-test-ulps: Update.
31467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31468
31469 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31470
31471         [BZ #15119]
31472         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31473
31474 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31475
31476         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31477         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31478
31479 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31480
31481         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31482         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31483
31484         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31485         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31486
31487         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31488         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31489
31490         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31491         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31492
31493         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31494         if not already defined.
31495         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31496         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31497         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31498         (TLS_INIT_TP): Use it.
31499         (TLS_DEFINE_INIT_TP): New macro.
31500         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31501
31502 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31503
31504         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31505         constant.
31506         [POSIX] (IXANY): Likewise.
31507         [POSIX] (OLCUC): Likewise.
31508         [POSIX || POSIX2008] (CBAUD): Do not allow.
31509         [POSIX || POSIX2008] (DEFECHO): Likewise.
31510         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31511         [POSIX || POSIX2008] (ECHOKE): Likewise.
31512         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31513         [POSIX || POSIX2008] (EXTA): Likewise.
31514         [POSIX || POSIX2008] (EXTB): Likewise.
31515         [POSIX || POSIX2008] (FLUSHO): Likewise.
31516         [POSIX || POSIX2008] (LOBLK): Likewise.
31517         [POSIX || POSIX2008] (PENDIN): Likewise.
31518         [POSIX || POSIX2008] (SWTCH): Likewise.
31519         [POSIX || POSIX2008] (VDISCARD): Likewise.
31520         [POSIX || POSIX2008] (VDSUSP): Likewise.
31521         [POSIX || POSIX2008] (VLNEXT): Likewise.
31522         [POSIX || POSIX2008] (VREPRINT): Likewise.
31523         [POSIX || POSIX2008] (VSTATUS): Likewise.
31524         [POSIX || POSIX2008] (VWERASE): Likewise.
31525         (B*): Change to B[0123456789]*.
31526         * conform/data/time.h-data [POSIX || UNIX98]
31527         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31528         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31529         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31530         [POSIX] (tm_*): Do not allow.
31531
31532 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31533
31534         * Makefile (install): Don't set LANGUAGE.
31535         * Makefile.in (install): Likewise.
31536         * assert/Makefile (test-assert-ENV): Remove variable.
31537         (test-assert-perr-ENV): Likewise.
31538         * elf/Makefile (neededtest4-ENV): Likewise.
31539         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31540         [$(cross-compiling) = no]: Don't set LANGUAGE.
31541         * io/ftwtest-sh (LANG): Remove variable.
31542         * libio/Makefile (tst-widetext-ENV): Likewise.
31543         * manual/install.texi (Running make install): Don't refer to
31544         environment settings for make install.
31545         * INSTALL: Regenerated.
31546         * nptl/tst-tls6.sh: Don't set LANG.
31547         * posix/globtest.sh (LANG): Remove variable.
31548         * string/Makefile (tester-ENV): Likewise.
31549         (inl-tester-ENV): Likewise.
31550         (noinl-tester-ENV): Likewise.
31551         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31552         [$(cross-compiling) = no]: Don't set LANGUAGE.
31553         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31554         without explicit environment settings.
31555
31556 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31557
31558         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31559         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31560         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31561         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31562
31563 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31564
31565         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31566         other files in the crypt directory.
31567         * crypt/crypt.c: Remove duplicate includes.
31568         * crypt/crypt-entry.c: Likewise.
31569         * crypt/crypt_util.c: Likewise.
31570
31571 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31572
31573         * Makeconfig (run-program-env): New variable.
31574         (run-program-prefix-before-env): Likewise.
31575         (run-program-prefix-after-env): Likewise.
31576         (run-program-prefix): Define in terms of new variables.
31577         (built-program-cmd-before-env): New variable.
31578         (built-program-cmd-after-env): Likewise.
31579         (built-program-cmd): Define in terms of new variables.
31580         (test-program-prefix-before-env): New variable.
31581         (test-program-prefix-after-env): Likewise.
31582         (test-program-prefix): Define in terms of new variables.
31583         (test-program-cmd-before-env): New variable.
31584         (test-program-cmd-after-env): Likewise.
31585         (test-program-cmd): Define in terms of new variables.
31586         * Rules (make-test-out): Use $(run-program-env).
31587         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31588         (help): Do not mention environment variables.  Mention
31589         --timeoutfactor option.
31590         (timeoutfactor): New variable.
31591         (blacklist_exports): Remove function.
31592         (exports): Remove variable.
31593         (command): Do not include ${exports}.
31594         * manual/install.texi (Configuring and compiling): Do not mention
31595         test wrappers preserving environment variables.  Mention that last
31596         assignment to a variable must take precedence.
31597         * INSTALL: Regenerated.
31598         * benchtests/Makefile (run-bench): Use $(run-program-env).
31599         * catgets/Makefile ($(objpfx)test1.cat): Use
31600         $(built-program-cmd-before-env), $(run-program-env) and
31601         $(built-program-cmd-after-env).
31602         ($(objpfx)test2.cat): Do not specify environment variables
31603         explicitly.
31604         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31605         $(run-program-env) and $(built-program-cmd-after-env).
31606         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31607         $(run-program-env) and $(test-program-cmd-after-env).
31608         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31609         explicitly.
31610         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31611         run_program_env and test_program_cmd_after_env arguments.
31612         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31613         * elf/tst-pathopt.sh: Use run_program_env argument.
31614         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31615         $(test-wrapper-env) and $(run-program-env).
31616         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31617         run_program_env arguments.
31618         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31619         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31620         $(test-program-prefix-before-env), $(run-program-env) and
31621         $(test-program-prefix-after-env).
31622         ($(objpfx)tst-gettext2.out): Likewise.
31623         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31624         run_program_env and test_program_prefix_after_env arguments.
31625         * intl/tst-gettext2.sh: Likewise.
31626         * intl/tst-gettext4.sh: Do not set environment variables
31627         explicitly.
31628         * intl/tst-gettext6.sh: Likewise.
31629         * intl/tst-translit.sh: Likewise.
31630         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31631         $(test-program-prefix-before-env), $(run-program-env) and
31632         $(test-program-prefix-after-env).
31633         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31634         run_program_env and test_program_prefix_after_env arguments.
31635         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31636         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31637         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31638         explicitly with each use of ${test_wrapper_env}.
31639         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31640         $(test-program-prefix-before-env), $(run-program-env) and
31641         $(test-program-prefix-after-env).
31642         * posix/tst-getconf.sh: Do not set environment variables
31643         explicitly.
31644         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31645         run_program_env and test_program_prefix_after_env arguments.
31646         * stdio-common/tst-printf.sh: Do not set environment variables
31647         explicitly.
31648         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31649         $(test-program-prefix-before-env), $(run-program-env) and
31650         $(test-program-prefix-after-env).
31651         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31652         run_program_env and test_program_prefix_after_env arguments.
31653         Split $test calls into $test_pre and $test.
31654         * timezone/Makefile (build-testdata): Use
31655         $(built-program-cmd-before-env), $(run-program-env) and
31656         $(built-program-cmd-after-env).
31657
31658 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31659
31660         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31661         strlen for non SHARED builds.
31662
31663 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31664
31665         * nptl/allocatestack.c (check_list): Inlined function...
31666         (__reclaim_stacks): ... here.
31667
31668 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31669
31670         [BZ #15698]
31671         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31672         memory overrun.
31673
31674 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31675
31676         * Rules (make-test-out): Include
31677         LOCPATH=$(common-objpfx)localedata in default environment.
31678         * debug/Makefile (tst-chk1-ENV): Remove variable.
31679         (tst-chk2-ENV): Likewise.
31680         (tst-chk3-ENV): Likewise.
31681         (tst-chk4-ENV): Likewise.
31682         (tst-chk5-ENV): Likewise.
31683         (tst-chk6-ENV): Likewise.
31684         (tst-lfschk1-ENV): Likewise.
31685         (tst-lfschk2-ENV): Likewise.
31686         (tst-lfschk3-ENV): Likewise.
31687         (tst-lfschk4-ENV): Likewise.
31688         (tst-lfschk5-ENV): Likewise.
31689         (tst-lfschk6-ENV): Likewise.
31690         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31691         (tst-iconv7-ENV): Likewise.
31692         * intl/Makefile (LOCPATH-ENV): Likewise.
31693         (tst-codeset-ENV): Likewise.
31694         (tst-gettext3-ENV): Likewise.
31695         (tst-gettext5-ENV): Likewise.
31696         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31697         (tst-fopenloc-ENV): Likewise.
31698         (tst-fgetws-ENV): Remove variable.
31699         (tst-ungetwc1-ENV): Likewise.
31700         (tst-ungetwc2-ENV): Likewise.
31701         (bug-ungetwc2-ENV): Likewise.
31702         (tst-swscanf-ENV): Likewise.
31703         (bug-ftell-ENV): Likewise.
31704         (tst-fgetwc-ENV): Likewise.
31705         (tst-fseek-ENV): Likewise.
31706         (tst-ftell-partial-wide-ENV): Likewise.
31707         (tst-ftell-active-handler-ENV): Likewise.
31708         (tst-ftell-append-ENV): Likewise.
31709         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31710         (tst-regexloc-ENV): Likewise.
31711         (bug-regex1-ENV): Likewise.
31712         (tst-regex-ENV): Likewise.
31713         (tst-regex2-ENV): Likewise.
31714         (bug-regex5-ENV): Likewise.
31715         (bug-regex6-ENV): Likewise.
31716         (bug-regex17-ENV): Likewise.
31717         (bug-regex18-ENV): Likewise.
31718         (bug-regex19-ENV): Likewise.
31719         (bug-regex20-ENV): Likewise.
31720         (bug-regex22-ENV): Likewise.
31721         (bug-regex23-ENV): Likewise.
31722         (bug-regex25-ENV): Likewise.
31723         (bug-regex26-ENV): Likewise.
31724         (bug-regex30-ENV): Likewise.
31725         (bug-regex32-ENV): Likewise.
31726         (bug-regex33-ENV): Likewise.
31727         (bug-regex34-ENV): Likewise.
31728         (bug-regex35-ENV): Likewise.
31729         (tst-rxspencer-ENV): Likewise.
31730         (tst-rxspencer-no-utf8-ENV): Likewise.
31731         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31732         (tst-sscanf-ENV): Likewise.
31733         (tst-swprintf-ENV): Likewise.
31734         (tst-swscanf-ENV): Likewise.
31735         (test-vfprintf-ENV): Likewise.
31736         (scanf13-ENV): Likewise.
31737         (bug14-ENV): Likewise.
31738         (tst-grouping-ENV): Likewise.
31739         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31740         (tst-strtod3-ENV): Likewise.
31741         (tst-strtod4-ENV): Likewise.
31742         (tst-strtod5-ENV): Likewise.
31743         (testmb2-ENV): Likewise./
31744         * string/Makefile (tst-strxfrm-ENV): Likewise.
31745         (tst-strxfrm2-ENV): Likewise.
31746         (bug-strcoll1-ENV): Likewise.
31747         (test-strcasecmp-ENV): Likewise.
31748         (test-strncasecmp-ENV): Likewise.
31749         * time/Makefile (tst-strptime-ENV): Likewise.
31750         (tst-ftime_l-ENV): Likewise.
31751         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31752         (tst-mbrtowc-ENV): Likewise.
31753         (tst-wcrtomb-ENV): Likewise.
31754         (tst-mbrtowc2-ENV): Likewise.
31755         (tst-c16c32-1-ENV): Likewise.
31756         (tst-mbsnrtowcs-ENV): Likewise.
31757
31758 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31759
31760         * manual/resource.texi (How to get information about the memory
31761         subsystem?): Fix typo.
31762         Reported by Peon de la Parra Ivan <peon@keba.com>
31763
31764 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31765
31766         [BZ #16882]
31767         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31768         (pthread_spin_lock): Branch out of spin loop to proper location.
31769         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31770         (pthread_spin_lock): Likewise.
31771
31772         * nptl/tst-spin4.c: New test.
31773         * nptl/Makefile (tests): Add tst-spin4.
31774
31775 2014-06-03  Andreas Schwab  <schwab@suse.de>
31776
31777         [BZ #15946]
31778         * resolv/res_send.c (send_dg): Reload file descriptor after
31779         calling reopen.
31780
31781 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31782
31783         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31784
31785 2014-06-03  Richard Henderson  <rth@redhat.com>
31786
31787         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31788         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31789         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31790         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31791         in the SAVE_PID block.
31792         (__libc_vfork): New alias.
31793         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31794
31795         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31796         child in registers, not on the stack.  Remove RESET_PID conditionals.
31797         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31798
31799 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31800
31801         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31802
31803 2014-06-03  Wilco  <wdijkstr@arm.com>
31804
31805         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31806         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31807         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31808         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31809         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31810         Likewise.
31811
31812 2014-06-03  Wilco  <wdijkstr@arm.com>
31813
31814         * sysdeps/aarch64/fpu/math_private.h
31815         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31816         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31817         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31818         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31819         Fix declarations.
31820
31821 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31822
31823         * crypt/crypt-private.h: Include ufc-crypt.h.
31824         (__b64_from_24bit): Declare extern.
31825         * crypt/crypt_util.c(__b64_from_24bit): New function.
31826         (b64t): New static const variable.
31827         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31828         (b64t): Remove variable.
31829         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31830         * crypt/sha256-crypt.c: Include crypt-private.h.
31831         (b64t): Remove variable.
31832         (__sha256_crypt_r): Remove b64_from_24bit and replace
31833         with __b64_from_24bit.
31834         * crypt/sha512-crypt.c: Likewise.
31835
31836 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31837
31838         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31839         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31840         Label the code __libc_vfork rather than __vfork.
31841         [!NOT_IN_libc] (vfork): Define as weak alias.
31842         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31843         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31844         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31845
31846 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31847
31848         * malloc/malloc.c (malloc_info): Fix format specifier for
31849         n_mmaps.
31850
31851 2014-06-02  Wilco  <wdijkstr@arm.com>
31852
31853         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31854         FPCR write.
31855
31856 2014-06-02  Wilco  <wdijkstr@arm.com>
31857
31858         [BZ #17009]
31859         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31860         Rewrite to reduce FPCR/FPSR accesses.
31861
31862 2014-06-01  David S. Miller  <davem@davemloft.net>
31863
31864         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31865
31866 2014-05-31  David S. Miller  <davem@davemloft.net>
31867
31868         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31869         to occur in round to nearest mode when |x| >= 2.0
31870
31871 2014-05-30  Richard Henderson  <rth@twiddle.net>
31872
31873         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31874         (PSEUDO_RET_NOERRNO): Remove.
31875         (ret): Don't redefine.
31876         (ret_NOERRNO): Define in terms of ret.
31877         (ret_ERRVAL): Likewise.
31878
31879         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31880         use of PSEUDO_RET; perform the error check directly.
31881
31882 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31883
31884         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31885         with __int128_t.
31886
31887 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31888
31889         * malloc/malloc (malloc_info): Fix formatting.
31890
31891 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31892             Roland McGrath  <roland@hack.frob.com>
31893
31894         * malloc/malloc (malloc_info): Also print mmapped statistics.
31895
31896 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31897
31898         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31899         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31900
31901 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31902
31903         * malloc/malloc.c (malloc_info): Inline mi_arena.
31904
31905 2014-05-29  Richard Henderson  <rth@twiddle.net>
31906
31907         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31908         Remove comma before expanding ASM_ARGS_##nr.
31909         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31910         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31911         of ASM_ARGS_##nr.
31912         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31913         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31914         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31915         (ASM_ARGS_1): Add leading comma.
31916
31917         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31918         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31919         to __errno_location.
31920         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31921         Remove the expected plt for __errno_location.
31922
31923         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31924         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31925         call to __read_tp.
31926
31927         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31928         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31929         it and break it down.
31930         (DOCARGS_0, DOCARGS_1): Do nothing.
31931         (DOCARGS_2): Update to store into the new stack frame.
31932         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31933         (UNDOCARGS_1): Update to restore from the new stack frame.
31934         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31935         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31936
31937         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31938         (SINGLE_THREAD_P): New parameter for result regno.
31939         (PSEUDO): Update to match; use cbz instead of beq.
31940
31941         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31942         Use ENTRY to define the _nocancel entry point.  Share the syscall
31943         and syscall error check paths with the cancel path.
31944         (PSEUDO_END): New.
31945
31946         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31947         whitespace; tabs before and after asm mnemonics.
31948
31949 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31950
31951         [BZ #15132]
31952         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31953         Call fstat64 or stat64 internally, depending on arguments passed.
31954         Replace stat buffer argument with file descriptor argument.
31955         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31956         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31957         Pass fd to __internal_statvfs instead of calling fstat64.
31958         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31959         Pass fd to __internal_statvfs64 instead of calling fstat64.
31960         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31961         Pass -1 to __internal_statvfs instead of calling stat64.
31962         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31963         Pass -1 to __internal_statvfs64 instead of calling stat64.
31964
31965 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31966
31967         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31968         that was previously under [RESET_PID].
31969         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31970
31971         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31972         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31973
31974 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31975
31976         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31977
31978         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31979         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31980
31981 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31982
31983         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31984
31985 2014-05-27  Andreas Schwab  <schwab@suse.de>
31986
31987         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31988         TLS_INIT_TP macro.
31989         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31990         * elf/rtld.c (init_tls, dl_main): Likewise.
31991         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31992         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31993         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31994         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31995         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31996         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31997         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31998         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31999         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32000         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32001         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32002         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32003         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32004         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32005         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32006         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32007         * sysdeps/generic/tls.h: Update description.
32008
32009 2014-05-27  Will Newton  <will.newton@linaro.org>
32010
32011         [BZ #16990]
32012         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32013         and restore r2 rather than just restoring.
32014
32015 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32016
32017         [BZ #16724]
32018         * libio/tst-ftell-append.c: New test case.
32019         * libio/Makefile (tests): Add test case.
32020         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32021         append mode.
32022         * libio/wfileops.c (do_ftell_wide): Likewise.
32023
32024 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32025
32026         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32027
32028         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32029         ...
32030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32032         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32033         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32034         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32035         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32036         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32037         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32038         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32039         Moved ...
32040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32041         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32042         Moved ...
32043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32044         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32045         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32046         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32047         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32048         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32049         ...
32050         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32051         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32052         Moved ...
32053         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32054         here.
32055         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32056         ...
32057         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32058         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32059         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32060
32061         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32062         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32063         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32064         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32065
32066         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32067         merge into ...
32068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32069         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32070         ...
32071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32072         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32073         ...
32074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32075         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32076         Moved ...
32077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32078         here.
32079         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32080         Moved ...
32081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32082         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32083         Moved ...
32084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32085
32086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32087         conditional [RESET_PID].
32088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32089         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32090         removed.
32091         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32092         removed.
32093
32094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32095         <tcb-offsets.h>.
32096         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32097         (__libc_vfork): New strong alias.
32098         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32099         removed.
32100         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32101         Removed.
32102
32103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32104         <tcb-offsets.h>.
32105         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32106         (__libc_vfork): New strong alias.
32107         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32108         removed.
32109         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32110         removed.
32111
32112 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32113
32114         * malloc/malloc.c (mi_arena): New function.
32115         (malloc_info): Remove nested function mi_arena. Call non-nosted
32116         function mi_arena.
32117
32118 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32119
32120         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32121         by insrwi.
32122         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32123         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32124         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32125         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32126         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32127         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32128         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32129
32130 2014-05-26  Andreas Schwab  <schwab@suse.de>
32131
32132         [BZ #16984]
32133         * locale/programs/repertoire.c (repertoire_read): Add slash
32134         between I18NPATH element and file name.
32135         * locale/programs/locfile.c (locfile_read): Likewise.
32136
32137 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32138
32139         * nptl/pthread_mutexattr_settype.c
32140         (__pthread_mutexattr_settype):
32141         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32142
32143 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32144
32145         * nptl/tst-mutex5 (do_test):
32146         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32147
32148 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32149
32150         * benchtests/README: Document 'init' directive.
32151         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32152         BENCH_INIT.
32153         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32154         (parse_file): Recognize 'init' directive.
32155
32156 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32157
32158         [BZ #16796]
32159         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32160         alignment of struct pthread.
32161
32162 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32163
32164         [BZ #16878]
32165         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32166         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32167         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32168         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32169
32170 2014-05-25  Richard Henderson  <rth@twiddle.net>
32171
32172         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32173         (SINGLE_THREAD_P_PIC): Remove.
32174         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32175         (SINGLE_THREAD_P_PIC): Remove.
32176
32177         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32178         branch to syscall error ...
32179         (PSEUDO): ... here.
32180         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32181         from __local_syscall_error to .Lsyscall_error.
32182         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32183         (SYSCALL_ERROR): Update label name.
32184
32185         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32186         Do not use DOARGS/UNDOARGS.
32187         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32188         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32189         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32190         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32191         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32192
32193         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32194         block comment.
32195
32196         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32197         define if !NOT_IN_libc.
32198         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32199         define with non-default symbol versions.
32200
32201 2014-05-23  Richard Henderson  <rth@twiddle.net>
32202
32203         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32204         (vfork, __vfork): Define via compat_symbol.
32205
32206         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32207         [!HAVE_IFUNC] (vfork_compat): Remove.
32208         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32209
32210 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32211
32212         [BZ #16978]
32213         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32214         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32215         variable.
32216
32217 2014-05-23  Richard Henderson  <rth@twiddle.net>
32218
32219         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32220         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32221         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32222         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32223
32224         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32225         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32226         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32227         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32228         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32229         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32230         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32231         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32232         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32233         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32234         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32235         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32236         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32237         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32238         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32239         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32240         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32241         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32242         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32243         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32244         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32245         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32246         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32247         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32248         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32249         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32250         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32251         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32252         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32253         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32254         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32255         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32256         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32257         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32258         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32259         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32260         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32261         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32262         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32263         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32264         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32265         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32266         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32267         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32268         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32269         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32270         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32271         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32272         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32273         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32274         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32275         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32276         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32277         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32278         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32279         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32280
32281         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32282         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32283         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32284         before exiting on error.
32285         (__libc_vfork): New strong alias.
32286         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32287         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32288
32289         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32290         that was previously under [RESET_PID].
32291         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32292
32293         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32294
32295 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32296
32297         [BZ #16977]
32298         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32299         value when x - 1 is zero.
32300         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32301         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32302         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32303         0.0L for an argument of 1.0L.
32304         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32305         Likewise.
32306         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32307         value when x - 1 is zero.
32308         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32309         * sysdeps/i386/fpu/libm-test-ulps: Update.
32310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32311
32312 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32313
32314         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32315         alphasort and versionsort.
32316
32317 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32318
32319         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32320         macro.
32321         [copysignf]: Likewise.
32322
32323 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32324
32325         * crypt/md5-crypt.c: Fix formatting.
32326
32327 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32328
32329         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32330         (b64_from_24bit): New function.
32331
32332 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32333
32334         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32335         libc_hidden_builtin_def to ifunc.
32336         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32337         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32338
32339 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32340
32341         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32342         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32343
32344 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32345
32346         * nscd/Depend (linuxthreads): Remove.
32347         (nptl): Add.
32348         * resolv/Depend (linuxthreads): Remove.
32349         * rt/Depend (linuxthreads): Remove.
32350
32351         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32352         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32353         $(common-objpfx)elf/.
32354         (link-libc-before-gnulib): Likewise.
32355         (elfobjdir): Remove variable.
32356         * Makefile (install): Use $(elf-objpfx) instead of
32357         $(common-objpfx)elf/.
32358         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32359         $(elfobjdir)/.
32360         (link-libc-deps): Likewise.
32361         ($(common-objpfx)libc.so): Likewise.
32362         ($(common-objpfx)linkobj/libc.so): Likewise.
32363         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32364         instead of $(common-objpfx)elf/.
32365         (symbolic-link-list): Likewise.
32366         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32367         [$(cross-compiling) = no]: Likewise.
32368         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32369         $(elfobjdir)/.
32370         (static-gnulib-arch): Likewise.
32371         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32372         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32373         $(common-objpfx)elf/.
32374
32375 2014-05-21  Richard Henderson  <rth@redhat.com>
32376
32377         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32378         (SINGLE_THREAD_P): Use the correct width load.  Fold
32379         into the ldr offset.
32380
32381         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32382         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32383
32384 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32385
32386         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32387         (libgcc_s_resume): Use __attribute_used__.
32388         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32389         Likewise.
32390
32391 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32392
32393         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32394         optimization when used with float constants.
32395
32396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32397
32398 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32399
32400         [BZ #16915]
32401         * locale/nl_langinfo_l.c: Make direct reference to every
32402         _nl_current_CATEGORY symbol.
32403         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32404         (tests-static): Add tst-langinfo-static.
32405         (tests-special): Add tst-langinfo-static.out.
32406         ($(objpfx)tst-langinfo.out): Redirect output.
32407         ($(objpfx)tst-langinfo-static.out): New.
32408         * localedata/tst-langinfo.sh: Send output to stdout.
32409         * localedata/tst-langinfo-static.c: New file.
32410
32411         [BZ #16965]
32412         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32413         when the shift amount is modulo the limb size.
32414
32415 2014-05-20  Richard Henderson  <rth@redhat.com>
32416
32417         [BZ #16967]
32418         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32419         Change type of sa_flags from unsigned int to int.
32420
32421         [BZ #16966]
32422         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32423
32424         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32425
32426 2014-05-20  Will Newton  <will.newton@linaro.org>
32427
32428         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32429         Test the return value of the system call in the nocancel case.
32430
32431 2014-05-20  Will Newton  <will.newton@linaro.org>
32432             Yvan Roux  <yvan.roux@linaro.org>
32433
32434         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32435         #include of asm/ptrace.h.
32436         (PTRACE_GET_THREAD_AREA): Remove #undef.
32437         (PTRACE_GETHBPREGS): Likewise.
32438         (PTRACE_SETHBPREGS): Likewise.
32439         (struct user_regs_struct): New structure.
32440         (struct user_fpsimd_struct): New structure.
32441         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32442         #include of asm/ptrace.h and second #include of sys/user.h.
32443         (PTRACE_GET_THREAD_AREA): Remove #undef.
32444         (PTRACE_GETHBPREGS): Likewise.
32445         (PTRACE_SETHBPREGS): Likewise.
32446         (ELF_NGREG): Use new struct user_regs_struct.
32447         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32448
32449 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32450
32451         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32452         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32453
32454 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32455
32456         [BZ #16958]
32457         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32458         membar to avoid block loads/stores to overlap previous stores.
32459
32460 2014-05-17  Richard Henderson  <rth@redhat.com>
32461
32462         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32463         Create the __##syscall_name##_nocancel entry point.
32464         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32465         Remove; let the sysdep-cancel.h code create it.
32466
32467 2014-05-17  David S. Miller  <davem@davemloft.net>
32468
32469         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32470         Protect with __USE_GNU.
32471         (TIOCSET_TEMPT): Likewise.
32472         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32473         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32474         these are already provided in bits/ioctl-types.h
32475
32476 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32477
32478         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32479         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32480
32481         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32482         Use wait4 regardless of [__NR_waitpid].
32483
32484 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32485
32486         PR libgcc/60166
32487         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32488         (_FP_NANSIGN_Q): Set the quiet bit.
32489
32490 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32491
32492         * benchtests/Makefile
32493         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32494         not $(common-objpfx)math/libm.so.
32495         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32496         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32497         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32498         $(common-objpfx)dlfcn/libdl.so.
32499         ($(objpfx)tst-audit8): Depend on $(libm), not
32500         $(common-objpfx)math/libm.so.
32501         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32502         not $(common-objpfx)dlfcn/libdl.so.
32503         * math/Makefile
32504         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32505         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32506         [$(build-shared) = yes].
32507         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32508         $(common-objpfx)nptl/libpthread.so.
32509         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32510         $(common-objpfx)math/libm.so$(libm.so-version) or
32511         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32512         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32513         $(common-objpfx)dlfcn/libdl.so.
32514         * setjmp/Makefile (link-libm): Remove variable.
32515         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32516         * stdio-common/Makefile (link-libm): Remove variable.
32517         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32518         * stdlib/Makefile (link-libm): Remove variable.
32519         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32520         ($(objpfx)tst-strtod-round): Likewise.
32521         ($(objpfx)tst-tininess): Likewise.
32522         ($(objpfx)tst-strtod-underflow): Likewise.
32523         ($(objpfx)tst-strtod6): Likewise.
32524         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32525         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32526         $(common-objpfx)dlfcn/libdl.so.
32527
32528 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32529
32530         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32531         BSD terminal modes definitions.
32532
32533 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32534
32535         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32536         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32537
32538         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32539         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32540         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32541         Don't do #include_next.
32542         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32543         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32544         Don't do #include_next.
32545         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32546         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32547         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32548         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32549
32550 2014-05-16  Allan McRae  <allan@archlinux.org>
32551
32552         * po/sv.po: Update Swedish translation from translation project.
32553
32554         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32555         in sed expression.
32556
32557 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32558
32559         [BZ #16917]
32560         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32561         errno if the TIOCGPTN ioctl fails with an error different than
32562         EINVAL.
32563         * login/tst-ptsname.c: New file.
32564         * login/Makefile (tests): Add tst-ptsname.
32565
32566         [BZ #16943]
32567         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32568         and prlimit64.
32569
32570 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32571
32572         [BZ #16849]
32573         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32574         herrno to return EAI_AGAIN.
32575
32576 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32577
32578         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32579         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32580         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32581         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32582         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32583         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32584         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32585         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32586         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32587         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32588         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32589         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32590         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32591         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32592         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32593         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32594         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32595         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32596         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32597         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32598         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32599         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32600         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32601         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32602         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32603         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32604         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32605         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32606         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32607         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32608         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32609         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32611         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32613         Moved ...
32614         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32615         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32616         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32618         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32619         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32620         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32622         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32623         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32624         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32625         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32626         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32627         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32628         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32629         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32630         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32631         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32632         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32634         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32635         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32636         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32637         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32638         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32639         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32640         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32641         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32642         Moved ...
32643         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32644         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32645         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32646         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32647         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32648         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32649         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32650         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32651         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32652         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32653         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32654         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32655         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32656         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32657         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32658         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32659         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32660         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32661         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32662         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32663         Moved ...
32664         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32665         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32666         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32667
32668         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32669         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32670         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32671         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32672         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32673         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32674         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32675         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32676         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32677         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32678         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32679         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32680         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32681         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32682         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32683         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32684         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32685         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32686         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32687         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32688         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32689         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32690         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32691         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32692         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32693         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32694         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32695         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32696         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32697         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32698         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32699
32700         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32701         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32702
32703         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32704         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32705         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32706         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32707         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32708         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32709         Moved ...
32710         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32711         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32712         Moved ...
32713         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32714         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32715         Moved ...
32716         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32717         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32718         Moved ...
32719         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32720         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32721         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32722         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32723         Moved ...
32724         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32725         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32726         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32727         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32728         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32729         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32730         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32731         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32732         Moved ...
32733         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32734         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32735         Moved ...
32736         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32737         ... here.
32738         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32739         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32740         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32741         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32742         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32743         Moved ...
32744         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32745         ... here.
32746         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32747         Moved ...
32748         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32749         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32750         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32751         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32752         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32753         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32754         Moved ...
32755         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32756         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32757         Moved ...
32758         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32759         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32760         Moved ...
32761         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32762         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32763         Moved ...
32764         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32765         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32766         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32767         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32768         Moved ...
32769         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32770         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32771         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32772         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32773         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32774         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32775         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32776         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32777         Moved ...
32778         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32779         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32780         Moved ...
32781         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32782         ... here.
32783         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32784         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32785         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32786         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32787         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32788         Moved ...
32789         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32790         ... here.
32791         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32792         Moved ...
32793         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32794         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32795         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32796         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32797         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32798         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32799         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32800         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32801         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32802         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32803         Moved ...
32804         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32805         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32806         Moved ...
32807         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32808         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32809         Moved ...
32810         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32811         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32812         Moved ...
32813         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32814         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32815         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32816         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32817         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32818         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32819         Moved ...
32820         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32821         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32822         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32823         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32824         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32825         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32826         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32827         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32828         Moved ...
32829         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32830         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32831         Moved ...
32832         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32833         ... here.
32834         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32835         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32836         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32837         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32838         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32839         Moved ...
32840         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32841         ... here.
32842         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32843         Moved ...
32844         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32845         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32846         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32847         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32848         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32849         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32850         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32851         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32852         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32853         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32854         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32855
32856         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32857         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32858
32859         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32860         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32861
32862         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32863         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32864         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32865         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32866         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32867         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32868         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32869         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32870         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32871         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32872         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32873         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32874         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32875         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32876         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32877         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32878         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32879         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32880         Moved ...
32881         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32882         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32883         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32884         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32885         Moved ...
32886         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32887         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32888         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32889         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32890         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32891         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32892         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32893         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32894         Moved ...
32895         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32896         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32897         Moved ...
32898         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32899         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32900         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32901         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32902         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32903         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32904         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32905         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32906         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32907         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32908         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32909         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32910         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32911         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32912         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32913         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32914         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32915
32916         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32917         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32918         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32919         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32920         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32921
32922         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32923         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32924         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32925         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32926         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32927         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32928         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32929         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32930         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32931         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32932
32933         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32934         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32935
32936         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32937         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32938         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32939         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32940         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32941         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32942         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32943         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32944         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32945         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32946         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32947         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32948         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32949         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32950         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32951         Update #include.
32952         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32953         Likewise.
32954         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32955         Likewise.
32956         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32957         Likewise.
32958         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32959         Likewise.
32960         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32961         Likewise.
32962         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32963         Likewise.
32964         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32965         Likewise.
32966         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32967         Likewise.
32968         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32969         Likewise.
32970         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32971         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32972         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32973         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32974         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32975         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32976         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32977         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32978         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32979         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32980         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32981         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32982         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32983         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32984         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32985
32986         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32987         that was previously under [RESET_PID].
32988         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32989         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32990         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32991
32992         * sysdeps/i386/nptl/Implies: New file.
32993         * sysdeps/x86_64/nptl/Implies: New file.
32994         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32995         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32996         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32997         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32998
32999         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33000         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33001         (__libc_vfork): New strong alias.
33002         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33003         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33004
33005         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33006         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33007         (__libc_vfork): New strong alias.
33008         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33009         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33010
33011         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33012         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33013         (__libc_vfork): New strong alias.
33014         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33015         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33016         * nptl/pt-vfork.c: New file.
33017         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33018         (libpthread: GLIBC_2.20): New version set (empty).
33019
33020 2014-05-14  Will Newton  <will.newton@linaro.org>
33021
33022         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33023         rather than #if.
33024
33025 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33026
33027         [BZ #16564]
33028         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33029         arguments with exponent 65 or above.
33030         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33031         arguments 0x1p113L or above.
33032         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33033         to arguments 0x1p107L or above.
33034         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33035         positive arguments with exponent 65 or above.
33036         * math/auto-libm-test-in: Add more tests of log1p.
33037         * math/auto-libm-test-out: Regenerated.
33038
33039         [BZ #16928]
33040         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33041         non-finite arguments is +0.
33042         * math/s_cacosf.c (__cacosf): Likewise.
33043         * math/s_cacosl.c (__cacosl): Likewise.
33044         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33045         * sysdeps/i386/fpu/libm-test-ulps: Update.
33046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33047
33048         [BZ #16927]
33049         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33050         value.
33051         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33052         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33053         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33054         for explicit high bit of mantissa when testing for argument equal
33055         to 1.
33056         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33057         * sysdeps/i386/fpu/libm-test-ulps: Update.
33058         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33059
33060         [BZ #16516]
33061         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33062         (__erf): Scale by 16 instead of 8 in potentially underflowing
33063         case.  Ensure exception if result actually underflows.
33064         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33065         (__erff): Scale by 16 instead of 8 in potentially underflowing
33066         case.  Ensure exception if result actually underflows.
33067         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33068         (efx8): Remove variable.
33069         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33070         case.  Ensure exception if result actually underflows.
33071         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33072         (efx8): Remove variable.
33073         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33074         case.  Ensure exception if result actually underflows.
33075         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33076         (efx8): Remove variable.
33077         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33078         case.  Ensure exception if result actually underflows.
33079         * math/auto-libm-test-in: Add more tests of erf.
33080         * math/auto-libm-test-out: Regenerated.
33081
33082 2014-05-14  Andreas Schwab  <schwab@suse.de>
33083
33084         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33085         Remove code conditionalized on USE___THREAD.
33086
33087         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33088         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33089         not definedness.
33090
33091 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33092
33093         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33094         Define unconditionally.
33095         (__ASSUME_O_CLOEXEC): Likewise.
33096         (__ASSUME_SOCK_CLOEXEC): Likewise.
33097         (__ASSUME_IN_NONBLOCK): Likewise.
33098         (__ASSUME_PIPE2): Likewise.
33099         (__ASSUME_EVENTFD2): Likewise.
33100         (__ASSUME_SIGNALFD4): Likewise.
33101         (__ASSUME_DUP3): Likewise.
33102         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33103         (__ASSUME_DUP3): Do not define.
33104         (__ASSUME_EVENTFD2): Likewise.
33105         (__ASSUME_IN_NONBLOCK): Likewise.
33106         (__ASSUME_O_CLOEXEC): Likewise.
33107         (__ASSUME_PIPE2): Likewise.
33108         (__ASSUME_SIGNALFD4): Likewise.
33109         (__ASSUME_SOCK_CLOEXEC): Likewise.
33110         (__ASSUME_UTIMES): Undefine.
33111         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33112         (__ASSUME_UTIMES): Do not define.
33113         (__ASSUME_O_CLOEXEC): Likewise.
33114         (__ASSUME_SOCK_CLOEXEC): Likewise.
33115         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33116         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33117         0x020621].
33118         (__ASSUME_PIPE2): Likewise.
33119         (__ASSUME_EVENTFD2): Likewise.
33120         (__ASSUME_SIGNALFD4): Likewise.
33121         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33122         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33123         Do not define.
33124         (__ASSUME_EVENTFD2): Likewise.
33125         (__ASSUME_SIGNALFD4): Likewise.
33126         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33127         (__ASSUME_32BITUIDS): Likewise.
33128         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33129         (__ASSUME_IPC64): Likewise.
33130         (__ASSUME_ST_INO_64_BIT): Likewise.
33131         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33132         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33133         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33134         (__ASSUME_UTIMES): Do not define.
33135         (__ASSUME_PSELECT): Likewise.
33136         (__ASSUME_PPOLL): Likewise.
33137         (__ASSUME_O_CLOEXEC): Likewise.
33138         (__ASSUME_SOCK_CLOEXEC): Likewise.
33139         (__ASSUME_IN_NONBLOCK): Likewise.
33140         (__ASSUME_PIPE2): Likewise.
33141         (__ASSUME_EVENTFD2): Likewise.
33142         (__ASSUME_SIGNALFD4): Likewise.
33143         (__ASSUME_DUP3): Likewise.
33144         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33145         (__ASSUME_UTIMES): Likewise.
33146         (__ASSUME_O_CLOEXEC): Likewise.
33147         (__ASSUME_SOCK_CLOEXEC): Likewise.
33148         (__ASSUME_IN_NONBLOCK): Likewise.
33149         (__ASSUME_PIPE2): Likewise.
33150         (__ASSUME_EVENTFD2): Likewise.
33151         (__ASSUME_SIGNALFD4): Likewise.
33152         (__ASSUME_DUP3): Likewise.
33153         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33154         (__ASSUME_UTIMES): Likewise.
33155         (__ASSUME_O_CLOEXEC): Likewise.
33156         (__ASSUME_SOCK_CLOEXEC): Likewise.
33157         (__ASSUME_IN_NONBLOCK): Likewise.
33158         (__ASSUME_PIPE2): Likewise.
33159         (__ASSUME_EVENTFD2): Likewise.
33160         (__ASSUME_SIGNALFD4): Likewise.
33161         (__ASSUME_DUP3): Likewise.
33162         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33163         Likewise.
33164         (__ASSUME_UTIMES): Likewise.
33165         (__ASSUME_EVENTFD2): Likewise.
33166         (__ASSUME_SIGNALFD4): Likewise.
33167         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33168         (__ASSUME_O_CLOEXEC): Likewise.
33169         (__ASSUME_SOCK_CLOEXEC): Likewise.
33170         (__ASSUME_IN_NONBLOCK): Likewise.
33171         (__ASSUME_PIPE2): Likewise.
33172         (__ASSUME_EVENTFD2): Likewise.
33173         (__ASSUME_SIGNALFD4): Likewise.
33174         (__ASSUME_DUP3): Likewise.
33175         (__ASSUME_UTIMES): Undefine.
33176
33177         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33178         feclearexcept.  Remove symbol versioning code.
33179         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33180         symbol versioning code.
33181         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33182         symbol versioning code.
33183         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33184         feupdateenv.  Remove symbol versioning code.
33185         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33186         fegetexceptflag.  Remove symbol versioning code.
33187         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33188         fesetexceptflag.  Remove symbol versioning code.
33189         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33190         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33191         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33192         (__posix_fadvise64_l32): Remove prototype.
33193         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33194         code.
33195
33196 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33197
33198         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33199         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33200         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33201         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33202
33203 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33204
33205         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33206         current working directory
33207
33208 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33209
33210         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33211         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33212         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33213         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33214         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33215         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33216         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33217         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33218         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33219         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33220         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33221         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33222         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33223         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33224         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33225         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33226         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33227         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33228         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33229         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33230         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33231         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33232         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33233         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33234         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33235         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33236         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33237         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33238         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33239         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33240         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33241         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33242         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33243         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33244         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33245         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33246         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33247         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33248         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33249         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33250         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33251         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33252
33253         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33254         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33255
33256         * sysdeps/unix/sysv/linux/arm/Makefile
33257         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33258         Add rt-aeabi_unwind_cpp_pr1.
33259         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33260         Add nptl-aeabi_unwind_cpp_pr1.
33261         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33262         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33263         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33264         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33265         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33266         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33267
33268         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33269         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33270         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33271         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33272
33273         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33274         Deconditionalize the code that was previously under [RESET_PID].
33275         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33276
33277         * sysdeps/generic/exit-thread.h: New file.
33278         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33279         * include/unistd.h (__exit_thread): Remove declaration.
33280         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33281         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33282         * csu/libc-start.c: Include <exit-thread.h>.
33283         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33284         * nptl/pthread_create.c: Include <exit-thread.h>.
33285         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33286         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33287         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33288         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33289         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33290         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33291         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33292         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33293         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33294         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33295         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33296         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33297         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33298         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33299         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33300         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33301         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33302
33303 2014-05-13  Andreas Schwab  <schwab@suse.de>
33304
33305         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33306
33307 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33308
33309         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33310         (__ASSUME_UTIMES): Do not condition on kernel version.
33311         (__ASSUME_PSELECT): Define unconditionally.
33312         (__ASSUME_PPOLL): Likewise.
33313         (__ASSUME_ATFCTS): Likewise.
33314         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33315         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33316         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33317         (__ASSUME_UTIMENSAT): Define unconditionally.
33318         (__ASSUME_PRIVATE_FUTEX): Likewise.
33319         (__ASSUME_FALLOCATE): Likewise.
33320         (__ASSUME_O_CLOEXEC): Likewise.
33321         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33322         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33323         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33324         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33325         (__ASSUME_IN_NONBLOCK): Likewise.
33326         (__ASSUME_PIPE2): Likewise.
33327         (__ASSUME_EVENTFD2): Likewise.
33328         (__ASSUME_SIGNALFD4): Likewise.
33329         (__ASSUME_DUP3): Likewise.
33330         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33331         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33332         (__ASSUME_AT_RANDOM): Likewise.
33333         (__ASSUME_PREADV): Likewise.
33334         (__ASSUME_PWRITEV): Likewise.
33335         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33336         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33337         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33338         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33339         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33340         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33341         (__ASSUME_O_CLOEXEC): Define unconditionally.
33342         (__ASSUME_PSELECT): Do not undefine conditionally.
33343         (__ASSUME_PPOLL): Likewise.
33344         (__ASSUME_ATFCTS): Likewise.
33345         (__ASSUME_SET_ROBUST_LIST): Likewise.
33346         (__ASSUME_UTIMENSAT): Likewise.
33347         (__ASSUME_FDATASYNC): Define unconditionally.
33348         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33349         (__ASSUME_SIGFRAME_V2): Likewise.
33350         )__ASSUME_EVENTFD2): Likewise.
33351         (__ASSUME_SIGNALFD4): Likewise.
33352         (__ASSUME_PSELECT): Do not undefine conditionally.
33353         (__ASSUME_PPOLL): Likewise.
33354         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33355         (__ASSUME_PSELECT): Define unconditionally.
33356         (__ASSUME_PPOLL): Likewise.
33357         (__ASSUME_O_CLOEXEC): Likewise.
33358         (__ASSUME_SOCK_CLOEXEC): Likewise.
33359         (__ASSUME_IN_NONBLOCK): Likewise.
33360         (__ASSUME_PIPE2): Likewise.
33361         (__ASSUME_EVENTFD2): Likewise.
33362         (__ASSUME_SIGNALFD4): Likewise.
33363         (__ASSUME_DUP3): Likewise.
33364         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33365         (__ASSUME_O_CLOEXEC): Likewise.
33366         (__ASSUME_SOCK_CLOEXEC): Likewise.
33367         (__ASSUME_IN_NONBLOCK): Likewise.
33368         (__ASSUME_PIPE2): Likewise.
33369         (__ASSUME_EVENTFD2): Likewise.
33370         (__ASSUME_SIGNALFD4): Likewise.
33371         (__ASSUME_DUP3): Likewise.
33372         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33373         (__ASSUME_EVENTFD2): Likewise.
33374         (__ASSUME_SIGNALFD4): Likewise.
33375         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33376
33377 2014-05-12  Andreas Schwab  <schwab@suse.de>
33378
33379         [BZ #16932]
33380         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33381         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33382         than maximum RPC packet size.
33383         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33384         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33385         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33386         (_nss_nis_getservbyport_r): Likewise.
33387
33388 2014-05-12  Will Newton  <will.newton@linaro.org>
33389
33390         * malloc/Makefile (tests): Add tst-mallopt.
33391         * malloc/tst-mallopt.c: New file.
33392
33393 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33394
33395         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33396         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33397
33398 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33399
33400         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33401         (tst-tlsmod6.so): Likewise.
33402
33403 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33404
33405         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33406
33407 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33408
33409         [BZ #16064]
33410         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33411         and <dl-procinfo.h>.
33412         (__fegetenv): Save SSE state in envp->__eip if supported.
33413         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33414         envp->__eip if supported.
33415         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33416         and <dl-procinfo.h>.
33417         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33418         __data_offset and __data_selector in environment to 0.  Set SSE
33419         state if supported.
33420         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33421         test-fenv-sse.
33422         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33423         -mfpmath=sse.
33424         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33425
33426 2014-05-09  Will Newton  <will.newton@linaro.org>
33427
33428         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33429         and libc_relro_required for ARM.
33430         * sysdeps/arm/preconfigure: Regenerate.
33431
33432 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33433             Stefan Liebler  <stli@linux.vnet.ibm.com>
33434
33435         * config.make.in (enable-lock-elision): New Makefile variable.
33436         * configure.ac: Likewise.
33437         * configure: Regenerate.
33438         * sysdeps/s390/configure.ac:
33439         Add check for gcc transactions support.
33440         * sysdeps/s390/configure: Regenerate.
33441         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33442         Build elision files if enabled.
33443         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33444         Add lock elision support for s390.
33445         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33446         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33447         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33448         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33449         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33450         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33451         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33452         Likewise.
33453         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33454         Likewise.
33455         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33456         Likewise.
33457         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33458         Likewise.
33459         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33460         (__lll_timedlock_elision, __lll_lock_elision)
33461         (__lll_unlock_elision, __lll_trylock_elision)
33462         (lll_timedlock_elision, lll_lock_elision)
33463         (lll_unlock_elision, lll_trylock_elision): Add.
33464         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33465         (pthread_mutex_t): Add lock elision support for s390.
33466
33467 2014-05-14  Wilco  <wdijkstr@arm.com>
33468
33469         * sysdeps/arm/fclrexcpt.c: Cleanup.
33470         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33471         * sysdeps/arm/feenablxcpt.c: Cleanup.
33472         * sysdeps/arm/fegetenv.c: Cleanup.
33473         * sysdeps/arm/fegetexcept.c: Cleanup.
33474         * sysdeps/arm/fegetround.c: Cleanup.
33475         * sysdeps/arm/feholdexcpt.c: Cleanup.
33476         * sysdeps/arm/fesetenv.c: Cleanup.
33477         * sysdeps/arm/fesetround.c: Cleanup.
33478         * sysdeps/arm/feupdateenv.c: Cleanup.
33479         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33480         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33481         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33482         * sysdeps/arm/ftestexcept.c: Cleanup.
33483         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33484         * sysdeps/arm/setfpucw.c: Cleanup.
33485
33486 2014-05-09  Will Newton  <will.newton@linaro.org>
33487
33488         * sysdeps/arm/armv7/strcmp.S: New file.
33489         * NEWS: Mention addition of ARMv7 optimized strcmp.
33490
33491 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33492
33493         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33494         look for %.ac rather than %.in.
33495
33496         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33497         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33498         * sysdeps/mach/hurd/configure: Regenerated.
33499         * sysdeps/unix/sysv/linux/configure: Regenerated.
33500
33501         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33502
33503 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33504
33505         [BZ# 16922]
33506         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33507         (LONG_SUB): Ditto.
33508         (PTR_SUB): Ditto.
33509
33510 2014-05-07  Andreas Schwab  <schwab@suse.de>
33511
33512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33513         when skipping over non-matching result from nscd.
33514
33515 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33516
33517         [BZ #16876]
33518         * nptl/sockperf.c (client): Check socket return value.
33519
33520         [BZ #16877]
33521         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33522         nscd security class.
33523
33524 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33525
33526         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33527         * sysdeps/arm/unwind.h: ... here.
33528
33529 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33530
33531         [BZ# 16916]
33532         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33533         Define.
33534
33535 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33536
33537         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33538         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33539         multiarch strncpy for PPC64.
33540         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33541         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33542         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33543         multiarch optimizations.
33544         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33545         (__libc_ifunc_impl_list): Likewise.
33546         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33547         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33548         multiarch stpncpy for PPC64.
33549         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33550         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33551
33552 2014-05-06  Andreas Schwab  <schwab@suse.de>
33553
33554         [BZ #16912]
33555         * gmon/mcount.c (_MCOUNT_DECL): Use
33556         atomic_compare_and_exchange_bool_acq instead of
33557         catomic_compare_and_exchange_bool_acq.
33558
33559 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33560
33561         * elf/Makefile (others, install-bin): Remove pldd.
33562         (pldd-modules): Variable removed.
33563         ($(objpfx)pldd): Target removed.
33564         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33565         (others, install-bin): Append pldd here.
33566         ($(objpfx)pldd): New target.
33567
33568         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33569         to 0, so the first #if test emitted later doesn't see it undefined.
33570         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33571         * sysdeps/gnu/errlist.c: Regenerated.
33572
33573 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33574
33575         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33576         [libc_hidden_builtin_def]: Define to empty value.
33577         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33578         [libc_hidden_builtin_def]: Likewise.
33579         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33580         [libc_hidden_builtin_def]: Likewise.
33581         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33582         [libc_hidden_builtin_def]: Likewise.
33583         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33584         __redirect_memcpy and define ifunc as default hidden symbol.
33585         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33586         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33587
33588 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33589
33590         * locale/iso-4217.def: Reintroduce XDR currency.
33591
33592 2014-05-04  Allan McRae  <allan@archlinux.org>
33593
33594         * po/eo.po: Update Esperanto translation from translation project.
33595
33596 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33597
33598         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33599         and FEATURE_INDEX_MAX to 1.
33600         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33601
33602 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33603
33604         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33605         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33606         * iconvdata/big5.c (ONE_DIRECTION): Define.
33607         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33608         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33609         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33610         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33611         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33612         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33613         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33614         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33615         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33616         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33617         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33618         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33619         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33620         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33621         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33622         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33623         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33624         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33625         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33626         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33627         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33628         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33629         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33630         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33631         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33632         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33633         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33634         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33635         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33636         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33637         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33638         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33639         * iconvdata/johab.c (ONE_DIRECTION): Define.
33640         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33641         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33642         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33643         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33644         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33645         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33646         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33647         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33648         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33649         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33650
33651 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33652
33653         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33654         (_IO_JUMPS_OFFSET): Define to 0.
33655
33656         * nptl/sysdeps/pthread/bits/libc-lock.h
33657         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33658         (__libc_lock_define_initialized_recursive): Always define using
33659         initializer.  Modern compilers treat uninitialized (implicit zero) and
33660         explicit zero initializers the same (i.e. put the datum in bss).
33661
33662 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33663
33664         * nscd/nscd-client.h: Include <string.h>.
33665
33666 2014-05-01  David S. Miller  <davem@davemloft.net>
33667
33668         [BZ #16885]
33669         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33670         multiple zero bytes exist at the end of a string.
33671         Reported by Aurelien Jarno <aurelien@aurel32.net>
33672
33673         * string/test-strcmp.c (check): Add explicit test for situations where
33674         there are multiple zero bytes after the first.
33675
33676 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33677
33678         [BZ #16890]
33679         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33680         when compiling wprintf.
33681         * stdio-common/tstdiomisc.c (t3): New function.
33682         (main): Call it.
33683
33684 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33685
33686         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33687         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33688         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33689         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33690
33691 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33692
33693         * stdlib/longlong.h: Updated from GCC.
33694
33695 2014-05-01  Will Newton  <will.newton@linaro.org>
33696             Bernard Ogden  <bernie.ogden@linaro.org>
33697
33698         * NEWS: Update fixed bug list.
33699
33700         [BZ #15119]
33701         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33702
33703 2014-04-30  David S. Miller  <davem@davemloft.net>
33704
33705         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33706         (libc_feholdexcept_setround_sparc_ctx): New function.
33707         (libc_fesetenv_sparc_ctx): Likewise.
33708         (libc_feupdateenv_sparc_ctx): Likewise.
33709         (libc_feholdsetround_sparc_ctx): Likewise.
33710         (libc_feholdexcept_setround_ctx): Define.
33711         (libc_feholdexcept_setroundf_ctx): Likewise.
33712         (libc_feholdexcept_setroundl_ctx): Likewise.
33713         (libc_fesetenv_ctx): Likewise.
33714         (libc_fesetenvf_ctx): Likewise.
33715         (libc_fesetenvl_ctx): Likewise.
33716         (libc_feupdateenv_ctx): Likewise.
33717         (libc_feupdateenvf_ctx): Likewise.
33718         (libc_feupdateenvl_ctx): Likewise.
33719         (libc_feresetround_ctx): Likewise.
33720         (libc_feresetroundf_ctx): Likewise.
33721         (libc_feresetroundl_ctx): Likewise.
33722         (libc_feholdsetround_ctx): Likewise.
33723         (libc_feholdsetroundf_ctx): Likewise.
33724         (libc_feholdsetroundl_ctx): Likewise.
33725
33726         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33727         with __USE_GNU instead of XOPEN cpp guards.
33728
33729         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33730         0.
33731
33732         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33733         with XOPEN cpp guards.
33734
33735 2014-04-30  Julian Brown  <julian@codesourcery.com>
33736
33737         [BZ #16888]
33738         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33739         handling.
33740
33741 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33742
33743         [BZ #9894]
33744         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33745         Change to 2.6.32.
33746         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33747         * sysdeps/unix/sysv/linux/configure: Regenerated.
33748         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33749         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33750         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33751         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33752         * README: Update reference to required Linux kernel version.
33753         * manual/install.texi (Linux): Update reference to required Linux
33754         kernel headers version.
33755         * INSTALL: Regenerated.
33756
33757         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33758         header inclusion.
33759         [POSIX] (limits.h): Likewise.
33760         [POSIX] (math.h): Likewise.
33761         [POSIX] (sys/wait.h): Likewise.
33762         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33763         function.
33764         [POSIX] (stddef.h): Do not allow header inclusion.
33765
33766 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33767
33768         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33769
33770 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33771
33772         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33773         Return immediately after lll_futex_wake.
33774
33775 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33776
33777         [BZ #16791]
33778         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33779         structure.
33780         (datahead_init_pos): Call datahead_init_common early.
33781         (datahead_init_neg): Likewise.
33782
33783         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33784         datahead_init_neg): New functions.
33785         * nscd/aicache.c (addhstaiX): Use them.
33786         * nscd/grpcache.c (cache_addgr): Likewise.
33787         * nscd/hstcache.c (cache_addhst): Likewise.
33788         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33789         * nscd/netgroupcache.c (do_notfound): Likewise.
33790         (addgetnetgrentX): Likewise.
33791         (addinnetgrX): Likewise.
33792         * nscd/pwdcache.c (cache_addpw): Likewise.
33793         * nscd/servicescache.c (cache_addserv): Likewise.
33794
33795 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33796             Atsushi Onoe  <atsushi@onoe.org>
33797
33798         [BZ #14308]
33799         [BZ #12994]
33800         [BZ #13651]
33801         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33802         one response is valid.
33803         * resolv/res_send.c (send_dg): Check for validity of other
33804         response if the current response is a referral.
33805
33806 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33807
33808         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33809
33810 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33811
33812         [BZ #16823]
33813         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33814         Always divide by positive zero when computing -Inf result.
33815         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33816         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33817
33818 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33819
33820         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33821         FPSCR if value do not change.
33822         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33823         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33824         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33825         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33826         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33827         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33828         function.
33829
33830 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33831
33832         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33833         * sysdeps/unix/sysv/linux/hppa: Move directory from
33834         ports/systeps/unix/sysv/linux/hppa.
33835         * README: Update listing for hppa-*-linux-gnu.
33836
33837 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33838
33839         [BZ #16754]
33840         * manual/stdio.texi (Hook functions): Fix types of stream hook
33841         functions.
33842         [BZ #16854]
33843         * socket/sys/socket.h: Fix typo in comment.
33844
33845 2014-04-28  Wilco  <wdijkstr@arm.com>
33846
33847         * sysdeps/arm/fenv_private.h: New file.
33848         * sysdeps/arm/math_private.h: New file.
33849         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33850
33851 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33852
33853         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33854         with __int128_t.
33855         (La_x86_64_retval): Likewise.
33856
33857 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33858
33859         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33860         fpsr if value didn't change.
33861         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33862         to fpcr if value didn't change.
33863         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33864         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33865         fpsr or fpcr if value didn't change.
33866         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33867         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33868         fpcr if value didn't change.
33869         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33870         to fpsr if value didn't change.
33871
33872 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33873
33874         * nptl/tst-sem3.c: Use test-skeleton.c
33875         (main): Rename to do_test.  Use return instead of
33876         exit.
33877         * nptl/tst-sem4.c: Use test-skeleton.c
33878         (main): Rename to do_test.
33879
33880 2014-04-22  David S. Miller  <davem@davemloft.net>
33881
33882         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33883         (struct sigaction): New struct member __glibc_reserved0, change
33884         type of sa_flags to int.
33885
33886 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33887
33888         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33889         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33890
33891 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33892
33893         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33894         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33895
33896 2014-04-22  Will Newton  <will.newton@linaro.org>
33897             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33898
33899         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33900         (__longjmp): Add longjmp and longjmp_target SystemTap
33901         probes.
33902         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33903         (__sigsetjmp): Add setjmp SystemTap probe.
33904
33905 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33906
33907         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33908         match manual order.
33909
33910 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33911
33912         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33913
33914         * sysdeps/powerpc/fpu/fenv_private.h
33915         (libc_feholdexcept_setroundl_ctx): Define to
33916         libc_feholdexcept_setround_ppc_ctx.
33917         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33918         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33919         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33920         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33921
33922 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33923
33924         * sysdeps/aarch64/math-tests.h: New file.
33925
33926 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33927
33928         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33929         New.
33930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33931         Check and set bit_AVX2_Usable.
33932         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33933         macro.
33934         (bit_AVX2): Likewise.
33935         (index_AVX2_Usable): Likewise.
33936         (CPUID_AVX2): Likewise.
33937         (HAS_AVX2): Likewise.
33938
33939 2014-04-17  Will Newton  <will.newton@linaro.org>
33940
33941         * manual/setjmp.texi (System V contexts): Add note that
33942         calling setcontext on a context created by a call to a
33943         signal handler is undefined.  Update text to note that
33944         setcontext from a signal handler is possible but not
33945         recommended.
33946
33947         [BZ #16629]
33948         * stdlib/tst-setcontext.c: Include signal.h.
33949         (main): Check that the signal stack before and
33950         after swapcontext is the same.
33951
33952         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33953         Re-implement to restore registers in user code and avoid
33954         rt_sigreturn system call.
33955
33956 2014-04-17  Wilco  <wdijkstr@arm.com>
33957
33958         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33959         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33960         * math/test-fenv.c: Skip exception trap tests on targets which only
33961         support non-stop mode.
33962
33963 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33964             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33965
33966         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33967         (libc_feholdsetround_aarch64_ctx)
33968         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33969         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33970         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33971         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33972         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33973         (libc_feresetround_noexl_ctx): Define.
33974
33975 2014-04-16  Richard Henderson  <rth@redhat.com>
33976
33977         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33978
33979         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33980         unwind tables.
33981
33982         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33983         const from the non-libc, non-ldso copy.
33984
33985         * sysdeps/alpha/libm-test-ulps: Regenerate.
33986
33987 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33988             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33989
33990         * sysdeps/aarch64/fpu/math_private.h: New file.
33991
33992 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33993
33994         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33995
33996 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33997
33998         [BZ #16275]
33999         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34000         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34001         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34002         Intel MPX bound registers before _dl_profile_fixup.
34003         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34004         registers after _dl_profile_fixup.  Save and restore bound
34005         registers bnd0/bnd1 when calling _dl_call_pltexit.
34006         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34007         (LR_BND_OFFSET): Likewise.
34008         (LRV_BND0_OFFSET): Likewise.
34009         (LRV_BND1_OFFSET): Likewise.
34010
34011 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34012
34013         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34014         to...
34015         * sysdeps/mach/hurd/i386/tls.h: ... here.
34016         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34017         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34018         fields.
34019
34020 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34021
34022         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34023
34024 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34025
34026         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34027
34028 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34029
34030         [BZ #14770]
34031         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34032         * sysdeps/s390/configure: Regenerate.
34033
34034         [BZ #16824]
34035         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34036         Set round-to-nearest internally to reduce error accumulation.
34037
34038 2014-04-16  Alan Modra  <amodra@gmail.com>
34039
34040         [BZ #16740]
34041         [BZ #16619]
34042         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34043         * math/libm-test.inc (frexp_test_data): Add tests.
34044         * NEWS: Update fixed bug list.
34045
34046 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34047
34048         * benchtests/Makefile: Depend on libraries in build directory.
34049         (bench-math): Separate out math tests.
34050         (bench-pthread): Separate out pthread tests.
34051         (bench): Include math and pthread tests.
34052
34053 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34054
34055         [BZ #16831]
34056         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34057         _dl_debug_initialize.
34058
34059         * configure.ac: Remove SELinux header check.
34060         * configure: Regenerate.
34061         * nscd/selinux.c (perms): Array of const char* to permission names.
34062         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34063         default policy. Call string_to_security_class and string_to_av_perm to
34064         translate strings. Enforce default policy and call avs_has_perm with
34065         results of translated strings.
34066
34067 2014-04-13  David S. Miller  <davem@davemloft.net>
34068
34069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34070
34071 2014-04-12  Allan McRae  <allan@archlinux.org>
34072
34073         [BZ #16838]
34074         * manual/string.texi (Collation Functions): Fix qsort argument
34075         order in example.
34076         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34077
34078 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34079
34080         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34081         Make the test a no-op if there are no exceptions defined.
34082
34083 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34084
34085         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34086         enable-hardcoded-path-in-tests
34087
34088 2014-04-11  Will Newton  <will.newton@linaro.org>
34089
34090         * benchtests/Makefile (extra-objs): Add json-lib.o.
34091         (bench-func): Tidy up JSON output.
34092         * benchtests/bench-skeleton.c: Include json-lib.h.
34093         (main): Use JSON library functions to do output of
34094         benchmark results.
34095         * benchtests/bench-timing-type.c (main): Output the
34096         timing type simply, leaving formatting to the user.
34097         * benchtests/json-lib.c: New file.
34098         * benchtests/json-lib.h: Likewise.
34099
34100 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34101
34102         [BZ #15215]
34103         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34104         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34105         memory barriers.  Add comments.
34106         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34107         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34108         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34109         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34110         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34111         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34112
34113 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34114
34115         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34116         * sysdeps/s390/s390-64/configure.ac: ... this ...
34117         * sysdeps/s390/configure.ac: ... to here.
34118         * sysdeps/s390/s390-32/configure: Delete file.
34119         * sysdeps/s390/s390-64/configure: Delete file.
34120         * sysdeps/s390/configure: Regenerate.
34121
34122 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34123
34124         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34125
34126 2014-04-11  Will Newton  <will.newton@linaro.org>
34127
34128         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34129         to zero if it is not defined elsewhere.  (mtrim): Test
34130         the value of MALLOC_DEBUG with #if rather than #ifdef.
34131
34132 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34133
34134         * benchtests/pthread_once-inputs: New file.
34135         * benchtests/pthread_once-source.c: New file.
34136         * benchtests/README: Update documentation.
34137
34138 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34139             H.J. Lu  <hongjiu.lu@intel.com>
34140
34141         [BZ #16275]
34142         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34143         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34144         * sysdeps/x86_64/configure: Regenerated.
34145         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34146         macro.
34147         (REGISTER_SAVE_RAX): Likewise.
34148         (REGISTER_SAVE_RCX): Likewise.
34149         (REGISTER_SAVE_RDX): Likewise.
34150         (REGISTER_SAVE_RSI): Likewise.
34151         (REGISTER_SAVE_RDI): Likewise.
34152         (REGISTER_SAVE_R8): Likewise.
34153         (REGISTER_SAVE_R9): Likewise.
34154         (REGISTER_SAVE_BND0): Likewise.
34155         (REGISTER_SAVE_BND1): Likewise.
34156         (REGISTER_SAVE_BND2): Likewise.
34157         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34158         bound registers when calling _dl_fixup.
34159
34160 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34161
34162         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34163         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34164         of its definition.
34165         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34166         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34167         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34168         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34169         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34170         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34171         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34172
34173 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34174
34175         [BZ #15514]
34176         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34177         pathconf(_PC_NAME_MAX).
34178
34179 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34180
34181         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34182         Remove macro usage.
34183         (__PTHREAD_SPINS): Move definition to ...
34184         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34185         (__PTHREAD_SPINS): ... here.
34186         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34187         (__PTHREAD_SPIN): Likewise.
34188         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34189         (__PTHREAD_SPIN): Likewise.
34190         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34191         (__PTHREAD_SPIN): Likewise.
34192         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34193         (__PTHREAD_SPIN): Likewise.
34194         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34195         (__PTHREAD_SPIN): Likewise.
34196         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34197         (__PTHREAD_SPIN): Likewise.
34198         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34199         (__PTHREAD_SPIN): Likewise.
34200         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34201         (__PTHREAD_SPIN): Likewise.
34202         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34203         (__PTHREAD_SPIN): Likewise.
34204         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34205         (__PTHREAD_SPIN): Likewise.
34206         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34207         (__PTHREAD_SPIN): Likewise.
34208         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34209         (__PTHREAD_SPIN): Likewise.
34210
34211         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34212         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34213         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34214         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34215         imply folder.
34216         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34217         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34218         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34219         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34220         correct imply path.
34221         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34222         strlen symbol for non multi-arch builds.
34223         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34224         missing hidden_def and weak_alias.
34225
34226 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34227
34228         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34229
34230 2014-04-07  Will Newton  <will.newton@linaro.org>
34231
34232         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34233         and contents.  [!_LIBC] Remove #ifndef and contents.
34234         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34235         * string/memccpy.c (__memccpy): Use ANSI prototype.
34236         * string/memfrob.c (memfrob): Likewise.
34237         * string/strcoll.c (STRCOLL): Likewise.
34238         * string/strlen.c (strlen): Likewise.
34239         * string/strtok.c (STRTOK): Likewise.
34240         * string/strcat.c: Remove unused #include of memcopy.h.
34241         (strcat): Use ANSI prototype.
34242         * string/strchr.c: Remove unused #include of memcopy.h.
34243         (strchr): Use ANSI prototype.
34244         * string/strcmp.c: Remove unused #include of memcopy.h.
34245         (strcmp): Use ANSI prototype.
34246         * string/strcpy.c: Remove unused #include of memcopy.h.
34247         (strcpy): Use ANSI prototype.
34248
34249 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34250
34251         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34252         * config.make.in (config-extra-cppflags): Set it from
34253         libc_extra_cppflags.
34254         * configure.ac (libc_extra_cflags): Make it accumulate over
34255         configure fragments.
34256         (libc_extra_cppflags): New flag.
34257         * configure. Regenerate.
34258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34259         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34260         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34262
34263         [BZ #16815]
34264         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34265         result for FE_DOWNWARD rounding mode.
34266         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34267         Likewise.
34268         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34269
34270 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34271
34272         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34273         in function argument name.
34274
34275 2014-04-03  David Svoboda  <svoboda@cert.org>
34276
34277         [BZ #5666]
34278         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34279         explicitly.
34280
34281 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34282
34283         * elf/dl-unmap-segments.h: New file.
34284         * sysdeps/generic/ldsodefs.h
34285         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34286         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34287         * elf/dl-fptr.c: Likewise.
34288         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34289         * sysdeps/aarch64/tlsdesc.c: Likewise.
34290         * sysdeps/arm/tlsdesc.c: Likewise.
34291         * sysdeps/i386/tlsdesc.c: Likewise.
34292         * sysdeps/tile/dl-runtime.c: Likewise.
34293         * sysdeps/x86_64/tlsdesc.c: Likewise.
34294         * elf/dl-load.h: New file.
34295         * elf/dl-load.c: Include it.
34296         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34297         Macros moved to dl-load.h.
34298         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34299         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34300         Use _dl_unmap_segments in place of __munmap.
34301         Break out segment-mapping loop into ...
34302         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34303
34304 2014-04-03  Will Newton  <will.newton@linaro.org>
34305
34306         * elf/dl-lookup.c (do_lookup_x): Remove comment
34307         referring to nested function and move variable
34308         declarations down to before first use.
34309
34310 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34311
34312         [BZ #16799]
34313         [BZ #16800]
34314         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34315         with 0 numerator.
34316         * math/s_catanf.c (__catanf): Likewise.
34317         * math/s_catanh.c (__catanh): Likewise.
34318         * math/s_catanhf.c (__catanhf): Likewise.
34319         * math/s_catanhl.c (__catanhl): Likewise.
34320         * math/s_catanl.c (__catanl): Likewise.
34321         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34322         by positive zero when computing -Inf result.
34323         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34324         (catanh_test): Likewise.
34325         * sysdeps/i386/fpu/libm-test-ulps: Update.
34326         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34327
34328         [BZ #16789]
34329         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34330         instead of using underflowing value in computing result.
34331         * math/s_clog10.c (__clog10): Likewise.
34332         * math/s_clog10f.c (__clog10f): Likewise.
34333         * math/s_clog10l.c (__clog10l): Likewise.
34334         * math/s_clogf.c (__clogf): Likewise.
34335         * math/s_clogl.c (__clogl): Likewise.
34336         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34337         (clog10_test): Likewise.
34338         * sysdeps/i386/fpu/libm-test-ulps: Update.
34339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34340
34341 2014-04-02  Alan Modra  <amodra@gmail.com>
34342
34343         [BZ #16739]
34344         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34345         output when value is near a power of two.  Use int64_t for lx and
34346         remove casts.  Use decimal rather than hex exponent constants.
34347         Don't use long double multiplication when double will suffice.
34348         * math/libm-test.inc (nextafter_test_data): Add tests.
34349         * NEWS: Add 16739 and 16786 to bug list.
34350
34351         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34352
34353         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34354
34355 2014-04-01  Will Newton  <will.newton@linaro.org>
34356
34357         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34358         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34359
34360 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34361
34362         [BZ #13347]
34363         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34364         * nptl/tst-setuid2.c: New file.
34365         * nptl/Makefile (xtests): Add tst-setuid2.
34366
34367 2014-04-01  Alan Modra  <amodra@gmail.com>
34368
34369         [BZ #16786]
34370         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34371
34372 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34373
34374         [BZ #6803]
34375         [BZ #6804]
34376         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34377         set errno as appropriate.
34378         * math/w_scalbf.c (__scalbf): Likewise.
34379         * math/w_scalbl.c (__scalbl): Likewise.
34380         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34381         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34382         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34383         Add more NaN tests.
34384
34385         [BZ #16349]
34386         * math/w_atan2.c: Include <errno.h>.
34387         (__atan2): Set errno for result underflowing to zero.
34388         * math/w_atan2f.c: Include <errno.h>.
34389         (__atan2f): Set errno for result underflowing to zero.
34390         * math/w_atan2l.c: Include <errno.h>.
34391         (__atan2l): Set errno for result underflowing to zero.
34392         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34393         tests.
34394         * math/auto-libm-test-out: Regenerated.
34395
34396 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34397
34398         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34399         Encode instruction correctly in little endian.
34400         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34401         Likewise.
34402         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34403         Likewise.
34404         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34405         Likewise.
34406         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34407         Likewise.
34408
34409 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34410
34411         [BZ #9894]
34412         * sysdeps/unix/sysv/linux/kernel-features.h
34413         [__sparc__ && !__arch64__ && !__sparc_v9__]
34414         (__ASSUME_SET_ROBUST_LIST): Do not define.
34415         [__sparc__ && !__arch64__ && !__sparc_v9__]
34416         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34417         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34418         Likewise.
34419         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34420         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34421         (__ASSUME_REQUEUE_PI): Likewise.
34422         (__ASSUME_SET_ROBUST_LIST): Likewise.
34423         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34424         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34425         Undefine.
34426         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34427         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34428         Likewise.
34429         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34430         Likewise.
34431         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34432         Likewise.
34433         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34434         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34435         Undefine.
34436         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34437         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34438         Likewise.
34439
34440         [BZ #16648]
34441         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34442         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34443         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34444
34445 2014-03-31  Will Newton  <will.newton@linaro.org>
34446
34447         * benchtests/Makefile (bench): Add ffs and ffsll to list
34448         of tests.
34449         * benchtests/ffs-inputs: New file.
34450         * benchtests/ffsll-inputs: Likewise.
34451
34452 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34453
34454         [BZ #16770]
34455         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34456         too large before casting to int.
34457         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34458         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34459         * math/libm-test.inc (scalb_test_data): Add more tests.
34460
34461 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34462
34463         * benchtests/Makefile (DETAILED_OPT): New make option.
34464         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34465         set.
34466         * benchtests/bench-skeleton.c: Include stdbool.h.
34467         (main): Store and print timings per input.
34468         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34469         member to each argument value.
34470         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34471         (_print_arg_data): Initialize per-input timing to 0.
34472
34473         * benchtests/Makefile (timing-type): New binary.
34474         (bench-clean): Also remove bench-timing-type.
34475         (bench): New target for timing-type.
34476         (bench-func): Print output in JSON format.
34477         * benchtests/bench-skeleton.c (main): Print output in JSON
34478         format.
34479         * benchtests/bench-timing-type.c: New file.
34480         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34481         (TIMING_PRINT_STATS): Remove.
34482         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34483         name separately.
34484
34485         * benchtests/bench-modf.c: Remove.
34486         * benchtests/modf-inputs: New inputs file.
34487
34488 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34489
34490         [BZ #16362]
34491         * math/s_clog10.c (M_PI_LOG10E): New macro.
34492         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34493         imaginary parts are 0.
34494         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34495         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34496         imaginary parts are 0.
34497         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34498         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34499         imaginary parts are 0.
34500         * math/libm-test.inc (clog10_test_data): Update expected results
34501         for when real and imaginary parts are 0.
34502
34503 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34504
34505         * elf/dl-load.c: Finish conversion of __builtin_expect into
34506         __glibc_{un}likely.
34507
34508 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34509
34510         [BZ #16348]
34511         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34512         1+x for argument with exponent below -67.
34513         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34514         Likewise.
34515         * math/auto-libm-test-in: Add more tests of exp.
34516         * math/auto-libm-test-out: Regenerated.
34517
34518 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34519
34520         [BZ #16759]
34521         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34522         (nscd_getnetgrent): Use it.
34523
34524         [BZ #16760]
34525         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34526         of stpcpy.
34527
34528 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34529
34530         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34531         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34532         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34533         (lll_robust_unlock): Remove out of line section. Use cfi
34534         intrinsics.
34535         (LLL_STUB_UNWIND_INFO*): Remove.
34536         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34537         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34538         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34539         (lll_robust_unlock): Remove out of line section. Use cfi
34540         intrinsics.
34541         (LLL_STUB_UNWIND_INFO*): Remove.
34542
34543 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34544
34545         [BZ #16758]
34546         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34547         blank values.
34548
34549 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34550
34551         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34552
34553 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34554
34555         [BZ #16198]
34556         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34557         fnstenv.
34558         * math/test-fenv-preserve.c: New file.
34559         * math/Makefile (tests): Add test-fenv-preserve.
34560
34561 2014-03-26  Will Newton <will.newton@linaro.org>
34562
34563         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34564
34565 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34566
34567         * scripts/versionlist.awk: Partition the version sets and emit all
34568         GLIBC_* (sorted) before all others (sorted).
34569
34570 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34571
34572         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34573         GLIBC_2.2.5 version.
34574
34575 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34576
34577         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34578         calls.
34579
34580         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34581         previous change.
34582
34583         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34584
34585 2014-03-25  Andreas Schwab  <schwab@suse.de>
34586
34587         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34588         label to be used after in6ailist is initialized.
34589
34590 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34591
34592         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34593         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34594
34595 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34596
34597         [BZ #16357]
34598         [BZ #16599]
34599         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34600         min_plus_half.
34601         (fp_formats): Update initializers.
34602         (init_fp_formats): Initialize new field.
34603         (output_for_one_input_case): Allow underflow for results up to
34604         min_plus_half.
34605         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34606         * math/auto-libm-test-in: Don't mark some underflows from asin and
34607         atanh as spurious.
34608         * math/auto-libm-test-out: Regenerated.
34609         * sysdeps/i386/fpu/libm-test-ulps: Update.
34610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34611
34612 2014-03-25  Andreas Schwab  <schwab@suse.de>
34613
34614         * libio/Makefile (tst-ftell-partial-wide-ENV)
34615         (tst-ftell-active-handler-ENV): Define.
34616
34617 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34618
34619         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34620
34621 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34622
34623         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34624
34625 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34626
34627         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34628         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34629         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34630
34631 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34632
34633         [BZ #16634]
34634         * elf/dl-load.c (open_verify): Add mode parameter.
34635         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34636         (open_path): Change from boolean 'secure' to complete flag 'mode'
34637         (_dl_map_object): Adjust.
34638         * elf/Makefile (tests): Add tst-dlopen-aout.
34639         * elf/tst-dlopen-aout.c: New test.
34640
34641 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34642
34643         [BZ #16714]
34644         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34645         (struct stat): Rename member pad0 to __glibc_reserved0.
34646
34647         [BZ #16712]
34648         * sysdeps/s390/s390-32/bits/wordsize.h
34649         (__WORDSIZE32_SIZE_ULONG): New define.
34650         * sysdeps/s390/s390-64/bits/wordsize.h
34651         (__WORDSIZE32_SIZE_ULONG): Likewise.
34652         * sysdeps/generic/stdint.h (SIZE_MAX):
34653         Define as UL if __WORDSIZE32_SIZE_ULONG.
34654
34655         [BZ #16713]
34656         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34657         (__glibc_reserved0): New variable.
34658         (sa_flags): Change type to int.
34659
34660         * posix/Makefile (before-compile): Use += before-compile instead
34661         of a :=.
34662
34663         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34664         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34665
34666 2014-03-20  Andreas Schwab  <schwab@suse.de>
34667
34668         [BZ #16743]
34669         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34670         non-matching result from nscd.
34671
34672 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34673
34674         * scripts/bench.py: Moved to ...
34675         * benchtests/scripts/bench.py: ... here.
34676         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34677
34678 2014-03-24  Andreas Schwab  <schwab@suse.de>
34679
34680         [BZ #16002]
34681         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34682         alloca_account and account alloca use for struct in6ailist.
34683
34684 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34685
34686         [BZ #16284]
34687         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34688         rounding mode to recompute results that overflow to infinity or
34689         underflow to zero.
34690         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34691         bug 16284.
34692         * math/auto-libm-test-out: Regenerated.
34693         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34694         (ccosh_test): Likewise.
34695         (csin_test_data): Use plus_oflow.
34696         (csin_test): Use ALL_RM_TEST.
34697         (csinh_test_data): Use plus_oflow.
34698         (csinh_test): Use ALL_RM_TEST.
34699         * sysdeps/i386/fpu/libm-test-ulps: Update.
34700         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34701
34702 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34703
34704         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34705         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34706         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34707
34708         [BZ #16731]
34709         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34710         when x - 1 is zero.
34711         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34712         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34713         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34714         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34715         argument is 1.
34716         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34717         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34718         zero.
34719         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34720         * sysdeps/i386/fpu/libm-test-ulps: Update.
34721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34722
34723 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34724
34725         * scripts/bench.pl: Remove file.
34726         * scripts/bench.py: New benchmark script.
34727         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34728         * benchtests/README: Mention python dependency.
34729         * scripts/pylintrc: New file.
34730         * scripts/pylint: New file.
34731
34732         * bits/mathdef.h: Use #ifdef instead of #if.
34733         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34734         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34735         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34736         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34737         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34738         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34739
34740 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34741             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34742
34743         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34744         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34745         and strpbrk-ppc64 objects.
34746         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34747         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34748         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34749         multiarch strpbrk for POWER7.
34750         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34751         multiarch strpbrk for PPC64.
34752         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34753         ifunc selector.
34754         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34755         strpbrk for POWER7.
34756
34757 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34758
34759         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34760         (atan_test): Likewise.
34761         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34762         (atanh_test): Use ALL_RM_TEST.
34763         (atan2_test_data): Likewise.
34764         (cabs_test): Likewise.
34765         (cacosh_test): Likewise.
34766         (carg_test): Likewise.
34767         (casin_test): Likewise.
34768         (casinh_test): Likewise.
34769         (cbrt_test): Likewise.
34770         (csqrt_test): Likewise.
34771         (erf_test): Likewise.
34772         (erfc_test): Likewise.
34773         (pow10_test): Likewise.
34774         (exp2_test): Likewise.
34775         (hypot_test): Likewise.
34776         (j0_test): Likewise.
34777         (j1_test): Likewise.
34778         (lgamma_test): Likewise.
34779         (gamma_test): Likewise.
34780         (sincos_test): Likewise.
34781         (tanh_test): Likewise.
34782         (y0_test): Likewise.
34783         (y1_test): Likewise.
34784         * sysdeps/i386/fpu/libm-test-ulps: Update.
34785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34786
34787 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34788
34789         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34790         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34791         and strcspn-ppc64 objects.
34792         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34793         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34794         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34795         multiarch strcspn for POWER7.
34796         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34797         multiarch strcspn for PPC64.
34798         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34799         ifunc selector.
34800         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34801         strcspn for POWER7.
34802
34803 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34804
34805         * math/gen-libm-test.pl (generate_testfile): Expect only function
34806         name as argument to AUTO_TESTS_* and pass results for all rounding
34807         modes to parse_args.
34808         (parse_auto_input): Separate inputs of automatic tests from
34809         outputs before storing in %auto_tests.
34810         * math/libm-test.inc (acos_test_data): Update call to
34811         AUTO_TESTS_f_f.
34812         (acos_test): Use ALL_RM_TEST.
34813         (acos_tonearest_test_data): Remove.
34814         (acos_test_tonearest): Likewise.
34815         (acos_towardzero_test_data): Likewise.
34816         (acos_test_towardzero): Likewise.
34817         (acos_downward_test_data): Likewise.
34818         (acos_test_downward): Likewise.
34819         (acos_upward_test_data): Likewise.
34820         (acos_test_upward): Likewise.
34821         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34822         (asin_test_data): Likewise.
34823         (asin_test): Use ALL_RM_TEST.
34824         (asin_tonearest_test_data): Remove.
34825         (asin_test_tonearest): Likewise.
34826         (asin_towardzero_test_data): Likewise.
34827         (asin_test_towardzero): Likewise.
34828         (asin_downward_test_data): Likewise.
34829         (asin_test_downward): Likewise.
34830         (asin_upward_test_data): Likewise.
34831         (asin_test_upward): Likewise.
34832         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34833         (atan_test_data): Likewise.
34834         (atanh_test_data): Likewise.
34835         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34836         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34837         (carg_test_data): Likewise.
34838         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34839         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34840         (ccosh_test_data): Likewise.
34841         (cexp_test_data): Likewise.
34842         (clog_test_data): Likewise.
34843         (clog10_test_data): Likewise.
34844         (cos_test_data): Update call to AUTO_TESTS_f_f.
34845         (cos_test): Use ALL_RM_TEST.
34846         (cos_tonearest_test_data): Remove.
34847         (cos_test_tonearest): Likewise.
34848         (cos_towardzero_test_data): Likewise.
34849         (cos_test_towardzero): Likewise.
34850         (cos_downward_test_data): Likewise.
34851         (cos_test_downward): Likewise.
34852         (cos_upward_test_data): Likewise.
34853         (cos_test_upward): Likewise.
34854         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34855         (cosh_test): Use ALL_RM_TEST.
34856         (cosh_tonearest_test_data): Remove.
34857         (cosh_test_tonearest): Likewise.
34858         (cosh_towardzero_test_data): Likewise.
34859         (cosh_test_towardzero): Likewise.
34860         (cosh_downward_test_data): Likewise.
34861         (cosh_test_downward): Likewise.
34862         (cosh_upward_test_data): Likewise.
34863         (cosh_test_upward): Likewise.
34864         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34865         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34866         (ctan_test_data): Likewise.
34867         (ctan_test): Use ALL_RM_TEST.
34868         (ctan_tonearest_test_data): Remove.
34869         (ctan_test_tonearest): Likewise.
34870         (ctan_towardzero_test_data): Likewise.
34871         (ctan_test_towardzero): Likewise.
34872         (ctan_downward_test_data): Likewise.
34873         (ctan_test_downward): Likewise.
34874         (ctan_upward_test_data): Likewise.
34875         (ctan_test_upward): Likewise.
34876         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34877         (ctanh_test): Use ALL_RM_TEST.
34878         (ctanh_tonearest_test_data): Remove.
34879         (ctanh_test_tonearest): Likewise.
34880         (ctanh_towardzero_test_data): Likewise.
34881         (ctanh_test_towardzero): Likewise.
34882         (ctanh_downward_test_data): Likewise.
34883         (ctanh_test_downward): Likewise.
34884         (ctanh_upward_test_data): Likewise.
34885         (ctanh_test_upward): Likewise.
34886         (erf_test_data): Update call to AUTO_TESTS_f_f.
34887         (erfc_test_data): Likewise.
34888         (exp_test_data): Likewise.
34889         (exp_test): Use ALL_RM_TEST.
34890         (exp_tonearest_test_data): Remove.
34891         (exp_test_tonearest): Likewise.
34892         (exp_towardzero_test_data): Likewise.
34893         (exp_test_towardzero): Likewise.
34894         (exp_downward_test_data): Likewise.
34895         (exp_test_downward): Likewise.
34896         (exp_upward_test_data): Likewise.
34897         (exp_test_upward): Likewise.
34898         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34899         (exp10_test): Use ALL_RM_TEST.
34900         (exp10_tonearest_test_data): Remove.
34901         (exp10_test_tonearest): Likewise.
34902         (exp10_towardzero_test_data): Likewise.
34903         (exp10_test_towardzero): Likewise.
34904         (exp10_downward_test_data): Likewise.
34905         (exp10_test_downward): Likewise.
34906         (exp10_upward_test_data): Likewise.
34907         (exp10_test_upward): Likewise.
34908         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34909         (expm1_test_data): Likewise.
34910         (expm1_test): Use ALL_RM_TEST.
34911         (expm1_tonearest_test_data): Remove.
34912         (expm1_test_tonearest): Likewise.
34913         (expm1_towardzero_test_data): Likewise.
34914         (expm1_test_towardzero): Likewise.
34915         (expm1_downward_test_data): Likewise.
34916         (expm1_test_downward): Likewise.
34917         (expm1_upward_test_data): Likewise.
34918         (expm1_test_upward): Likewise.
34919         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34920         (fma_test): Use ALL_RM_TEST.
34921         (fma_towardzero_test_data): Remove.
34922         (fma_test_towardzero): Likewise.
34923         (fma_downward_test_data): Likewise.
34924         (fma_test_downward): Likewise.
34925         (fma_upward_test_data): Likewise.
34926         (fma_test_upward): Likewise.
34927         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34928         (j0_test_data): Update call to AUTO_TESTS_f_f.
34929         (j1_test_data): Likewise.
34930         (jn_test_data): Update call to AUTO_TESTS_if_f.
34931         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34932         (log_test_data): Update call to AUTO_TESTS_f_f.
34933         (log10_test_data): Likewise.
34934         (log1p_test_data): Likewise.
34935         (log2_test_data): Likewise.
34936         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34937         (pow_tonearest_test_data): Likewise.
34938         (sin_test_data): Update call to AUTO_TESTS_f_f.
34939         (sin_test): Use ALL_RM_TEST.
34940         (sin_tonearest_test_data): Remove.
34941         (sin_test_tonearest): Likewise.
34942         (sin_towardzero_test_data): Likewise.
34943         (sin_test_towardzero): Likewise.
34944         (sin_downward_test_data): Likewise.
34945         (sin_test_downward): Likewise.
34946         (sin_upward_test_data): Likewise.
34947         (sin_test_upward): Likewise.
34948         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34949         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34950         (sinh_test): Use ALL_RM_TEST.
34951         (sinh_tonearest_test_data): Remove.
34952         (sinh_test_tonearest): Likewise.
34953         (sinh_towardzero_test_data): Likewise.
34954         (sinh_test_towardzero): Likewise.
34955         (sinh_downward_test_data): Likewise.
34956         (sinh_test_downward): Likewise.
34957         (sinh_upward_test_data): Likewise.
34958         (sinh_test_upward): Likewise.
34959         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34960         (sqrt_test): Use ALL_RM_TEST.
34961         (sqrt_tonearest_test_data): Remove.
34962         (sqrt_test_tonearest): Likewise.
34963         (sqrt_towardzero_test_data): Likewise.
34964         (sqrt_test_towardzero): Likewise.
34965         (sqrt_downward_test_data): Likewise.
34966         (sqrt_test_downward): Likewise.
34967         (sqrt_upward_test_data): Likewise.
34968         (sqrt_test_upward): Likewise.
34969         (tan_test_data): Update call to AUTO_TESTS_f_f.
34970         (tan_test): Use ALL_RM_TEST.
34971         (tan_tonearest_test_data): Remove.
34972         (tan_test_tonearest): Likewise.
34973         (tan_towardzero_test_data): Likewise.
34974         (tan_test_towardzero): Likewise.
34975         (tan_downward_test_data): Likewise.
34976         (tan_test_downward): Likewise.
34977         (tan_upward_test_data): Likewise.
34978         (tan_test_upward): Likewise.
34979         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34980         (tgamma_test_data): Likewise.
34981         (y0_test_data): Likewise.
34982         (y1_test_data): Likewise.
34983         (yn_test_data): Update call to AUTO_TESTS_if_f.
34984         (main): Do not call removed functions.
34985
34986 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34987
34988         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34989         (ldexp_test_data): Remove.
34990         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34991         scalbn_test_data.
34992         (scalb_test): Use ALL_RM_TEST.
34993
34994 2014-03-19  Andreas Schwab  <schwab@suse.de>
34995
34996         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34997
34998 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34999
35000         [BZ #16649]
35001         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35002         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35003         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35004         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35005         (__ASSUME_PREADV): Undefine.
35006         (__ASSUME_PWRITEV): Likewise.
35007
35008 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35009
35010         * bits/mman-linux.h: Add comment about non-Linux use.
35011         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35012         bits/mman-linux.h resting place.
35013
35014         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35015         * bits/mman-linux.h: ... here.
35016
35017 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35018
35019         * conform/conformtest.pl: Add standard definition when calling C
35020         preprocessor on data files.
35021         (checknamespace): Remove unused variable.
35022
35023 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35024
35025         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35026         minus_oflow, plus_uflow and minus_uflow in expected results.
35027         * math/libm-test.inc (scalbn_test_data): Add more tests of
35028         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35029         minus_uflow.
35030         (scalbn_test): Use ALL_RM_TEST.
35031         (scalbln_test_data): Add more tests of negative arguments.  Use
35032         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35033         (scalbln_test): Use ALL_RM_TEST.
35034
35035 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35036
35037         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35038
35039 2014-03-18  Will Newton  <will.newton@linaro.org>
35040
35041         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35042         inaccurate comment.
35043
35044 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35045
35046         * Makerules [!subdir] (check-abi): Exit with error status if a
35047         test failed.
35048
35049 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35050
35051         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35052         for rint.  Include results for all rounding modes.
35053         (nearbyint_test): Use ALL_RM_TEST.
35054         (rint_test_data): Include all tests used for nearbyint.
35055
35056 2014-03-17  Will Newton  <will.newton@linaro.org>
35057
35058         * nptl/sysdeps/pthread/pthread.h: Revert previous
35059         change.
35060
35061         * sysdeps/generic/ldsodefs.h: Revert previous
35062         change.
35063
35064         * libio/genops.c: Revert previous change.
35065         * libio/libioP.h: Likewise.
35066         * stdio-common/vfprintf.c: Likewise.
35067
35068         * sysdeps/generic/math_private.h: Revert previous
35069         change.
35070
35071         * sysdeps/generic/math_private.h: Check whether
35072         HAVE_RM_CTX is defined with #ifdef rather
35073         than #if.
35074
35075         * argp/argp-fmtstream.h: Check whether
35076         __STRICT_ANSI__ is defined with #ifdef rather
35077         than #if.
35078         * argp/argp.h: Likewise.
35079
35080         * libio/genops.c: Check whether
35081         _IO_JUMPS_OFFSET is defined with #ifdef rather
35082         than #if.
35083         * libio/libioP.h: Likewise.
35084         * stdio-common/vfprintf.c: Likewise.
35085
35086         * sysdeps/generic/ldsodefs.h: Check whether
35087         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35088         than #if.
35089
35090         * nptl/sysdeps/pthread/pthread.h: Check
35091         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35092         its value.
35093
35094 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35095
35096         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35097         setting O_APPEND.
35098         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35099         test case.
35100
35101         [BZ #16680]
35102         * libio/fileops.c (_IO_file_open): Seek to end of file but
35103         don't cache the offset.
35104         (get_file_offset): Remove function.
35105         (do_ftell): Use cached offset when available.
35106         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35107         don't cache the offset.
35108         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35109         case.
35110         (do_one_test): Call it.
35111         (do_ftell_test): Fix up expected old offset for a+ mode.
35112         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35113         available.
35114
35115         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35116         up test status with function return status.
35117         (do_write_test): Likewise.
35118         (do_append_test): Likewise.
35119
35120         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35121         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35122         Remove.
35123
35124 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35125
35126         * math/gen-libm-test.pl (parse_args): Handle results specified for
35127         each rounding mode separately.
35128         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35129         tests and results from lrint_tonearest_test_data,
35130         lrint_towardzero_test_data, lrint_downward_test_data and
35131         lrint_upward_test_data.
35132         (lrint_test): Use ALL_RM_TEST.
35133         (lrint_tonearest_test_data): Remove.
35134         (lrint_test_tonearest): Likewise.
35135         (lrint_towardzero_test_data): Likewise.
35136         (lrint_test_towardzero): Likewise.
35137         (lrint_downward_test_data): Likewise.
35138         (lrint_test_downward): Likewise.
35139         (lrint_upward_test_data): Likewise.
35140         (lrint_test_upward): Likewise.
35141         (llrint_test_data): Merge in per-rounding-mode tests and results
35142         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35143         llrint_downward_test_data and llrint_upward_test_data.
35144         (llrint_test): Use ALL_RM_TEST.
35145         (llrint_tonearest_test_data): Remove.
35146         (llrint_test_tonearest): Likewise.
35147         (llrint_towardzero_test_data): Likewise.
35148         (llrint_test_towardzero): Likewise.
35149         (llrint_downward_test_data): Likewise.
35150         (llrint_test_downward): Likewise.
35151         (llrint_upward_test_data): Likewise.
35152         (llrint_test_upward): Likewise.
35153         (rint_test_data): Merge in per-rounding-mode tests and results
35154         from rint_tonearest_test_data, rint_towardzero_test_data,
35155         rint_downward_test_data and rint_upward_test_data.  Add
35156         per-rounding-mode results for tests not in those arrays.
35157         (rint_test): Use ALL_RM_TEST.
35158         (rint_tonearest_test_data): Remove.
35159         (rint_test_tonearest): Likewise.
35160         (rint_towardzero_test_data): Likewise.
35161         (rint_test_towardzero): Likewise.
35162         (rint_downward_test_data): Likewise.
35163         (rint_test_downward): Likewise.
35164         (rint_upward_test_data): Likewise.
35165         (rint_test_upward): Likewise.
35166         (main): Don't call removed functions.
35167
35168 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35169
35170         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35171         "Compiled on ..." crapola.  It is anti-useful.
35172
35173 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35174
35175         * scripts/evaluate-test.sh: Handle fourth argument to determine
35176         whether test run should stop on failure.
35177         * Makeconfig (stop-on-test-failure): New variable.
35178         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35179         $(stop-on-test-failure).
35180         * Makefile (tests): Give a summary of results from testing and
35181         exit with failure status if they include an ERROR or FAIL.
35182         (xtests): Likewise.
35183         * manual/install.texi (Configuring and compiling): Mention
35184         stop-on-test-failure=y.
35185         * INSTALL: Regenerated.
35186
35187 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35188
35189         * scripts/versionlist.awk: New file.
35190         * Makerules [$(build-shared) = yes]
35191         (postclean-generated): Add Versions.def, not Versions.def.v and
35192         Versions.def.v.i.
35193         ($(common-objpfx)Versions.def.v.i): Target removed.
35194         ($(common-objpfx)Versions.def): New target.
35195         ($(common-objpfx)Versions.all): Depend on that rather that
35196         $(common-objpfx)Versions.def.v.
35197         * Versions.def: File removed.
35198
35199         * Makeconfig (+gccwarn): Add -Wundef.
35200         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35201         a dl-sysdep.h breaking its contract.
35202         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35203         * include/stackinfo.h: New file.
35204         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35205         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35206         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35207         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35208         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35209         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35210         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35211         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35212         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35213         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35214         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35215         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35216         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35217         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35218         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35219
35220 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35221
35222         [BZ #16707]
35223         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35224         implementation.
35225         * math/libm-test.inc (round_test_data): Add more tests.
35226
35227         [BZ #16706]
35228         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35229         implementation.
35230         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35231
35232         [BZ #16701]
35233         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35234         implementation.
35235         * math/libm-test.inc (ceil_test_data): Add more tests.
35236
35237         * math/libm-test.inc (trunc_test_data): Add more tests related to
35238         BZ#16414.
35239
35240 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35241
35242         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35243         with #if rather than #ifdef.
35244         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35245
35246 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35247
35248         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35249         first.  Disable AVX-512 GCC support if assembler doesn't support
35250         it.
35251         * sysdeps/x86_64/configure: Regenerated.
35252
35253 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35254
35255         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35256         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35257         (__old_pthread_attr_setstack): Likewise.
35258         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35259         [!_STACK_GROWS_DOWN]: Likewise.
35260
35261 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35262
35263         * config.make.in (have-bash2): Delete.
35264         * configure.ac (libc_cv_have_bash2): Delete.
35265         * configure: Regenerate.
35266         * elf/Makefile (common-ldd-rewrite): Rename to ...
35267         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35268         (sh-ldd-rewrite): Delete.
35269         (bash-ldd-rewrite): Delete.
35270         (have-bash2): Delete checks.
35271         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35272         ldd-rewrite.
35273
35274         * config.make.in (have-ksh): Delete.
35275         (KSH): Delete.
35276         * configure.ac (libc_cv_have_ksh): Delete.
35277         * configure: Regenerate.
35278
35279         * elf/Makefile: Delete $(have-ksh) check.
35280         ($(objpfx)sotruss): Change KSH to BASH.
35281         * elf/sotruss.ksh: Rename to ...
35282         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35283         function style to match POSIX.  Drop ksh vim mode setting.
35284
35285         * manual/time.texi (Specifying the Time Zone with TZ): Change
35286         Tuesday to Thursday.
35287
35288         * debug/tst-longjmp_chk2.c: Update header comment.
35289         (stackoverflow_handler): Add comment.  Call assert on pass value.
35290
35291 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35292
35293         [BZ #16194]
35294         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35295         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35296         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35297         (La_x86_64_vector): Add zmm.
35298         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35299         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35300         ($(objpfx)tst-audit10): New target.
35301         ($(objpfx)tst-audit10.out): Likewise.
35302         (tst-audit10-ENV): New.
35303         (AVX512-CFLAGS): Likewise.
35304         (CFLAGS-tst-audit10.c): Likewise.
35305         (CFLAGS-tst-auditmod10a.c): Likewise.
35306         (CFLAGS-tst-auditmod10b.c): Likewise.
35307         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35308         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35309         * sysdeps/x86_64/configure: Regenerated.
35310         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35311         AVX-512 zmm register support.
35312         (_dl_x86_64_save_sse): Likewise.
35313         (_dl_x86_64_restore_sse): Likewise.
35314         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35315         size vector registers.
35316         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35317         (ZMM_SIZE): Likewise.
35318         * sysdeps/x86_64/tst-audit10.c: New file.
35319         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35320         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35321
35322 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35323
35324         * configure.ac (HAVE_EHDR_START): New check.
35325         * configure: Regenerated.
35326         * config.h.in (HAVE_EHDR_START): New #undef.
35327         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35328         assuming the lowest-addressed segment maps the start of the file.
35329
35330 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35331
35332         * INSTALL: Regenerated.
35333
35334 2014-03-13  Will Newton  <will.newton@linaro.org>
35335
35336         * manual/setjmp.texi (System V contexts): Improve
35337         clarity and grammar of documentation.
35338
35339 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35340
35341         [BZ #16381]
35342         * elf/Makefile (tests): Add tst-pie2.
35343         (tests-pie): Add tst-pie2.
35344         * elf/tst-pie2.c: New file.
35345         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35346         for ET_EXEC.
35347         * elf/rtld.c (map_doit): Load executable as lt_executable.
35348         (dl_main): Likewise.
35349
35350 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35351
35352         [BZ #16642]
35353         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35354         (__ASSUME_PSELECT): Undefine.
35355
35356 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35357
35358         [BZ #16689]
35359         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35360         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35361         static build.
35362         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35363         selector for static builds.
35364
35365 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35366
35367         [BZ #16695]
35368         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35369         key in the buffer.
35370
35371 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35372
35373         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35374         IFUNC selector for static builds.
35375
35376 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35377
35378         * sysdeps/mips/math_private.h [__mips_hard_float]
35379         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35380         libc_feresetround_mips_ctx.
35381         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35382         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35383         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35384
35385         [BZ #16677]
35386         * math/s_nextafter.c (__nextafter): Do not return value from
35387         overflowing computation.
35388         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35389         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35390         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35391         Likewise.
35392         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35393         Likewise.
35394         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35395         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35396
35397 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35398
35399         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35400         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35401         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35402         the new mov targetting sp.
35403
35404 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35405
35406         [BZ #16683]
35407         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35408         Define it for static builds as well.
35409         (NO_BZERO_IMPL): Likewise.
35410
35411 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35412
35413         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35414         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35415         multiarch strspn for PPC64.
35416         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35417         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35418         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35419         (__libc_ifunc_impl_list): Likewise.
35420         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35421         multiarch optimizations
35422         * string/strspn.c (strspn): Using macro to redefine symbol name.
35423
35424 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35425             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35426
35427         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35428         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35429         multiarch strncat for PPC64.
35430         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35431         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35432         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35433         (__libc_ifunc_impl_list): Likewise.
35434         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35435         multiarch optimizations
35436
35437 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35438
35439         [BZ #16639]
35440         * nscd/nscd.service: Make service type forking.
35441
35442 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35443
35444         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35445         sign in non default rounding modes.
35446         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35447
35448 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35449
35450         * math/libm-test.inc (ALL_RM_TEST): New macro.
35451         (ceil_test): Use ALL_RM_TEST.
35452         (cimag_test): Likewise.
35453         (conj_test): Likewise.
35454         (copysign_test): Likewise.
35455         (cproj_test): Likewise.
35456         (creal_test): Likewise.
35457         (fabs_test): Likewise.
35458         (floor_test): Likewise.
35459         (fmax_test): Likewise.
35460         (fmin_test): Likewise.
35461         (fmod_test): Likewise.
35462         (fpclassify_test): Likewise.
35463         (frexp_test): Likewise.
35464         (ilogb_test): Likewise.
35465         (isfinite_test): Likewise.
35466         (finite_test): Likewise.
35467         (isgreater_test): Likewise.
35468         (isgreaterequal_test): Likewise.
35469         (isinf_test): Likewise.
35470         (isless_test): Likewise.
35471         (islessequal_test): Likewise.
35472         (islessgreater_test): Likewise.
35473         (isnan_test): Likewise.
35474         (isnormal_test): Likewise.
35475         (issignaling_test): Likewise.
35476         (isunordered_test): Likewise.
35477         (logb_test): Likewise.
35478         (logb_downward_test_data): Remove.
35479         (logb_test_downward): Likewise.
35480         (lround_test): Use ALL_RM_TEST.
35481         (llround_test): Likewise.
35482         (modf_test): Likewise.
35483         (nexttoward_test): Likewise.
35484         (remainder_test): Likewise.
35485         (drem_test): Likewise.
35486         (remainder_tonearest_test_data): Likewise.
35487         (remainder_test_tonearest): Likewise.
35488         (drem_test_tonearest): Likewise.
35489         (remainder_towardzero_test_data): Likewise.
35490         (remainder_test_towardzero): Likewise.
35491         (drem_test_towardzero): Likewise.
35492         (remainder_downward_test_data): Likewise.
35493         (remainder_test_downward): Likewise.
35494         (drem_test_downward): Likewise.
35495         (remainder_upward_test_data): Likewise.
35496         (remainder_test_upward): Likewise.
35497         (drem_test_upward): Likewise.
35498         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35499         (round_test): Use ALL_RM_TEST.
35500         (signbit_test): Likewise.
35501         (trunc_test): Likewise.
35502         (significand_test): Likewise.
35503         (main): Don't call removed functions.
35504
35505 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35506
35507         [BZ #16674]
35508         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35509         || __USE_XOPEN2K8].
35510         (ILL_ILLOPN): Likewise.
35511         (ILL_ILLADR): Likewise.
35512         (ILL_ILLTRP): Likewise.
35513         (ILL_PRVOPC): Likewise.
35514         (ILL_PRVREG): Likewise.
35515         (ILL_COPROC): Likewise.
35516         (ILL_BADSTK): Likewise.
35517         (FPE_INTDIV): Likewise.
35518         (FPE_INTOVF): Likewise.
35519         (FPE_FLTDIV): Likewise.
35520         (FPE_FLTOVF): Likewise.
35521         (FPE_FLTUND): Likewise.
35522         (FPE_FLTRES): Likewise.
35523         (FPE_FLTINV): Likewise.
35524         (FPE_FLTSUB): Likewise.
35525         (SEGV_MAPERR): Likewise.
35526         (SEGV_ACCERR): Likewise.
35527         (BUS_ADRALN): Likewise.
35528         (BUS_ADRERR): Likewise.
35529         (BUS_OBJERR): Likewise.
35530         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35531         (TRAP_TRACE): Likewise.
35532         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35533         __USE_XOPEN2K8].
35534         (CLD_KILLED): Likewise.
35535         (CLD_DUMPED): Likewise.
35536         (CLD_TRAPPED): Likewise.
35537         (CLD_STOPPED): Likewise.
35538         (CLD_CONTINUED): Likewise.
35539         (POLL_IN): Likewise.
35540         (POLL_OUT): Likewise.
35541         (POLL_MSG): Likewise.
35542         (POLL_ERR): Likewise.
35543         (POLL_PRI): Likewise.
35544         (POLL_HUP): Likewise.
35545         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35546         Likewise.
35547         (ILL_ILLOPN): Likewise.
35548         (ILL_ILLADR): Likewise.
35549         (ILL_ILLTRP): Likewise.
35550         (ILL_PRVOPC): Likewise.
35551         (ILL_PRVREG): Likewise.
35552         (ILL_COPROC): Likewise.
35553         (ILL_BADSTK): Likewise.
35554         (FPE_INTDIV): Likewise.
35555         (FPE_INTOVF): Likewise.
35556         (FPE_FLTDIV): Likewise.
35557         (FPE_FLTOVF): Likewise.
35558         (FPE_FLTUND): Likewise.
35559         (FPE_FLTRES): Likewise.
35560         (FPE_FLTINV): Likewise.
35561         (FPE_FLTSUB): Likewise.
35562         (SEGV_MAPERR): Likewise.
35563         (SEGV_ACCERR): Likewise.
35564         (BUS_ADRALN): Likewise.
35565         (BUS_ADRERR): Likewise.
35566         (BUS_OBJERR): Likewise.
35567         (BUS_MCEERR_AR): Likewise.
35568         (BUS_MCEERR_AO): Likewise.
35569         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35570         (TRAP_TRACE): Likewise.
35571         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35572         __USE_XOPEN2K8].
35573         (CLD_KILLED): Likewise.
35574         (CLD_DUMPED): Likewise.
35575         (CLD_TRAPPED): Likewise.
35576         (CLD_STOPPED): Likewise.
35577         (CLD_CONTINUED): Likewise.
35578         (POLL_IN): Likewise.
35579         (POLL_OUT): Likewise.
35580         (POLL_MSG): Likewise.
35581         (POLL_ERR): Likewise.
35582         (POLL_PRI): Likewise.
35583         (POLL_HUP): Likewise.
35584         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35585         (ILL_ILLOPN): Likewise.
35586         (ILL_ILLADR): Likewise.
35587         (ILL_ILLTRP): Likewise.
35588         (ILL_PRVOPC): Likewise.
35589         (ILL_PRVREG): Likewise.
35590         (ILL_COPROC): Likewise.
35591         (ILL_BADSTK): Likewise.
35592         (FPE_INTDIV): Likewise.
35593         (FPE_INTOVF): Likewise.
35594         (FPE_FLTDIV): Likewise.
35595         (FPE_FLTOVF): Likewise.
35596         (FPE_FLTUND): Likewise.
35597         (FPE_FLTRES): Likewise.
35598         (FPE_FLTINV): Likewise.
35599         (FPE_FLTSUB): Likewise.
35600         (SEGV_MAPERR): Likewise.
35601         (SEGV_ACCERR): Likewise.
35602         (BUS_ADRALN): Likewise.
35603         (BUS_ADRERR): Likewise.
35604         (BUS_OBJERR): Likewise.
35605         (BUS_MCEERR_AR): Likewise.
35606         (BUS_MCEERR_AO): Likewise.
35607         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35608         (TRAP_TRACE): Likewise.
35609         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35610         __USE_XOPEN2K8].
35611         (CLD_KILLED): Likewise.
35612         (CLD_DUMPED): Likewise.
35613         (CLD_TRAPPED): Likewise.
35614         (CLD_STOPPED): Likewise.
35615         (CLD_CONTINUED): Likewise.
35616         (POLL_IN): Likewise.
35617         (POLL_OUT): Likewise.
35618         (POLL_MSG): Likewise.
35619         (POLL_ERR): Likewise.
35620         (POLL_PRI): Likewise.
35621         (POLL_HUP): Likewise.
35622         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35623         Likewise.
35624         (ILL_ILLOPN): Likewise.
35625         (ILL_ILLADR): Likewise.
35626         (ILL_ILLTRP): Likewise.
35627         (ILL_PRVOPC): Likewise.
35628         (ILL_PRVREG): Likewise.
35629         (ILL_COPROC): Likewise.
35630         (ILL_BADSTK): Likewise.
35631         (ILL_BADIADDR): Likewise.
35632         (ILL_BREAK): Likewise.
35633         (FPE_INTDIV): Likewise.
35634         (FPE_INTOVF): Likewise.
35635         (FPE_FLTDIV): Likewise.
35636         (FPE_FLTOVF): Likewise.
35637         (FPE_FLTUND): Likewise.
35638         (FPE_FLTRES): Likewise.
35639         (FPE_FLTINV): Likewise.
35640         (FPE_FLTSUB): Likewise.
35641         (FPE_DECOVF): Likewise.
35642         (FPE_DECDIV): Likewise.
35643         (FPE_DECERR): Likewise.
35644         (FPE_INVASC): Likewise.
35645         (FPE_INVDEC): Likewise.
35646         (SEGV_MAPERR): Likewise.
35647         (SEGV_ACCERR): Likewise.
35648         (SEGV_PSTKOVF): Likewise.
35649         (BUS_ADRALN): Likewise.
35650         (BUS_ADRERR): Likewise.
35651         (BUS_OBJERR): Likewise.
35652         (BUS_MCEERR_AR): Likewise.
35653         (BUS_MCEERR_AO): Likewise.
35654         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35655         (TRAP_TRACE): Likewise.
35656         (TRAP_BRANCH): Likewise.
35657         (TRAP_HWBKPT): Likewise.
35658         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35659         __USE_XOPEN2K8].
35660         (CLD_KILLED): Likewise.
35661         (CLD_DUMPED): Likewise.
35662         (CLD_TRAPPED): Likewise.
35663         (CLD_STOPPED): Likewise.
35664         (CLD_CONTINUED): Likewise.
35665         (POLL_IN): Likewise.
35666         (POLL_OUT): Likewise.
35667         (POLL_MSG): Likewise.
35668         (POLL_ERR): Likewise.
35669         (POLL_PRI): Likewise.
35670         (POLL_HUP): Likewise.
35671         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35672         (ILL_ILLOPN): Likewise.
35673         (ILL_ILLADR): Likewise.
35674         (ILL_ILLTRP): Likewise.
35675         (ILL_PRVOPC): Likewise.
35676         (ILL_PRVREG): Likewise.
35677         (ILL_COPROC): Likewise.
35678         (ILL_BADSTK): Likewise.
35679         (FPE_INTDIV): Likewise.
35680         (FPE_INTOVF): Likewise.
35681         (FPE_FLTDIV): Likewise.
35682         (FPE_FLTOVF): Likewise.
35683         (FPE_FLTUND): Likewise.
35684         (FPE_FLTRES): Likewise.
35685         (FPE_FLTINV): Likewise.
35686         (FPE_FLTSUB): Likewise.
35687         (SEGV_MAPERR): Likewise.
35688         (SEGV_ACCERR): Likewise.
35689         (BUS_ADRALN): Likewise.
35690         (BUS_ADRERR): Likewise.
35691         (BUS_OBJERR): Likewise.
35692         (BUS_MCEERR_AR): Likewise.
35693         (BUS_MCEERR_AO): Likewise.
35694         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35695         (TRAP_TRACE): Likewise.
35696         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35697         __USE_XOPEN2K8].
35698         (CLD_KILLED): Likewise.
35699         (CLD_DUMPED): Likewise.
35700         (CLD_TRAPPED): Likewise.
35701         (CLD_STOPPED): Likewise.
35702         (CLD_CONTINUED): Likewise.
35703         (POLL_IN): Likewise.
35704         (POLL_OUT): Likewise.
35705         (POLL_MSG): Likewise.
35706         (POLL_ERR): Likewise.
35707         (POLL_PRI): Likewise.
35708         (POLL_HUP): Likewise.
35709         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35710         (ILL_ILLOPN): Likewise.
35711         (ILL_ILLADR): Likewise.
35712         (ILL_ILLTRP): Likewise.
35713         (ILL_PRVOPC): Likewise.
35714         (ILL_PRVREG): Likewise.
35715         (ILL_COPROC): Likewise.
35716         (ILL_BADSTK): Likewise.
35717         (FPE_INTDIV): Likewise.
35718         (FPE_INTOVF): Likewise.
35719         (FPE_FLTDIV): Likewise.
35720         (FPE_FLTOVF): Likewise.
35721         (FPE_FLTUND): Likewise.
35722         (FPE_FLTRES): Likewise.
35723         (FPE_FLTINV): Likewise.
35724         (FPE_FLTSUB): Likewise.
35725         (SEGV_MAPERR): Likewise.
35726         (SEGV_ACCERR): Likewise.
35727         (BUS_ADRALN): Likewise.
35728         (BUS_ADRERR): Likewise.
35729         (BUS_OBJERR): Likewise.
35730         (BUS_MCEERR_AR): Likewise.
35731         (BUS_MCEERR_AO): Likewise.
35732         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35733         (TRAP_TRACE): Likewise.
35734         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35735         __USE_XOPEN2K8].
35736         (CLD_KILLED): Likewise.
35737         (CLD_DUMPED): Likewise.
35738         (CLD_TRAPPED): Likewise.
35739         (CLD_STOPPED): Likewise.
35740         (CLD_CONTINUED): Likewise.
35741         (POLL_IN): Likewise.
35742         (POLL_OUT): Likewise.
35743         (POLL_MSG): Likewise.
35744         (POLL_ERR): Likewise.
35745         (POLL_PRI): Likewise.
35746         (POLL_HUP): Likewise.
35747         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35748         (ILL_ILLOPN): Likewise.
35749         (ILL_ILLADR): Likewise.
35750         (ILL_ILLTRP): Likewise.
35751         (ILL_PRVOPC): Likewise.
35752         (ILL_PRVREG): Likewise.
35753         (ILL_COPROC): Likewise.
35754         (ILL_BADSTK): Likewise.
35755         (FPE_INTDIV): Likewise.
35756         (FPE_INTOVF): Likewise.
35757         (FPE_FLTDIV): Likewise.
35758         (FPE_FLTOVF): Likewise.
35759         (FPE_FLTUND): Likewise.
35760         (FPE_FLTRES): Likewise.
35761         (FPE_FLTINV): Likewise.
35762         (FPE_FLTSUB): Likewise.
35763         (SEGV_MAPERR): Likewise.
35764         (SEGV_ACCERR): Likewise.
35765         (BUS_ADRALN): Likewise.
35766         (BUS_ADRERR): Likewise.
35767         (BUS_OBJERR): Likewise.
35768         (BUS_MCEERR_AR): Likewise.
35769         (BUS_MCEERR_AO): Likewise.
35770         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35771         (TRAP_TRACE): Likewise.
35772         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35773         __USE_XOPEN2K8].
35774         (CLD_KILLED): Likewise.
35775         (CLD_DUMPED): Likewise.
35776         (CLD_TRAPPED): Likewise.
35777         (CLD_STOPPED): Likewise.
35778         (CLD_CONTINUED): Likewise.
35779         (POLL_IN): Likewise.
35780         (POLL_OUT): Likewise.
35781         (POLL_MSG): Likewise.
35782         (POLL_ERR): Likewise.
35783         (POLL_PRI): Likewise.
35784         (POLL_HUP): Likewise.
35785         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35786         (ILL_ILLOPN): Likewise.
35787         (ILL_ILLADR): Likewise.
35788         (ILL_ILLTRP): Likewise.
35789         (ILL_PRVOPC): Likewise.
35790         (ILL_PRVREG): Likewise.
35791         (ILL_COPROC): Likewise.
35792         (ILL_BADSTK): Likewise.
35793         (ILL_DBLFLT): Likewise.
35794         (ILL_HARDWALL): Likewise.
35795         (FPE_INTDIV): Likewise.
35796         (FPE_INTOVF): Likewise.
35797         (FPE_FLTDIV): Likewise.
35798         (FPE_FLTOVF): Likewise.
35799         (FPE_FLTUND): Likewise.
35800         (FPE_FLTRES): Likewise.
35801         (FPE_FLTINV): Likewise.
35802         (FPE_FLTSUB): Likewise.
35803         (SEGV_MAPERR): Likewise.
35804         (SEGV_ACCERR): Likewise.
35805         (BUS_ADRALN): Likewise.
35806         (BUS_ADRERR): Likewise.
35807         (BUS_OBJERR): Likewise.
35808         (BUS_MCEERR_AR): Likewise.
35809         (BUS_MCEERR_AO): Likewise.
35810         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35811         (TRAP_TRACE): Likewise.
35812         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35813         __USE_XOPEN2K8].
35814         (CLD_KILLED): Likewise.
35815         (CLD_DUMPED): Likewise.
35816         (CLD_TRAPPED): Likewise.
35817         (CLD_STOPPED): Likewise.
35818         (CLD_CONTINUED): Likewise.
35819         (POLL_IN): Likewise.
35820         (POLL_OUT): Likewise.
35821         (POLL_MSG): Likewise.
35822         (POLL_ERR): Likewise.
35823         (POLL_PRI): Likewise.
35824         (POLL_HUP): Likewise.
35825         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35826         (ILL_ILLOPN): Likewise.
35827         (ILL_ILLADR): Likewise.
35828         (ILL_ILLTRP): Likewise.
35829         (ILL_PRVOPC): Likewise.
35830         (ILL_PRVREG): Likewise.
35831         (ILL_COPROC): Likewise.
35832         (ILL_BADSTK): Likewise.
35833         (FPE_INTDIV): Likewise.
35834         (FPE_INTOVF): Likewise.
35835         (FPE_FLTDIV): Likewise.
35836         (FPE_FLTOVF): Likewise.
35837         (FPE_FLTUND): Likewise.
35838         (FPE_FLTRES): Likewise.
35839         (FPE_FLTINV): Likewise.
35840         (FPE_FLTSUB): Likewise.
35841         (SEGV_MAPERR): Likewise.
35842         (SEGV_ACCERR): Likewise.
35843         (BUS_ADRALN): Likewise.
35844         (BUS_ADRERR): Likewise.
35845         (BUS_OBJERR): Likewise.
35846         (BUS_MCEERR_AR): Likewise.
35847         (BUS_MCEERR_AO): Likewise.
35848         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35849         (TRAP_TRACE): Likewise.
35850         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35851         __USE_XOPEN2K8].
35852         (CLD_KILLED): Likewise.
35853         (CLD_DUMPED): Likewise.
35854         (CLD_TRAPPED): Likewise.
35855         (CLD_STOPPED): Likewise.
35856         (CLD_CONTINUED): Likewise.
35857         (POLL_IN): Likewise.
35858         (POLL_OUT): Likewise.
35859         (POLL_MSG): Likewise.
35860         (POLL_ERR): Likewise.
35861         (POLL_PRI): Likewise.
35862         (POLL_HUP): Likewise.
35863         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35864         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35865
35866         [BZ #16670]
35867         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35868         before #include of <time.h>.
35869         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35870         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35871         (test-xfail-UNIX98/sched.h/conform): Likewise.
35872
35873 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35874
35875         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35876         error absence of trapping exception support.
35877         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35878
35879 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35880
35881         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35882         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35883         * timezone/Makefile (testdata): Move definition above include of
35884         Rules.
35885         (test-zones): New variable.
35886         (tests-special): Add zone files.
35887         (build-testdata): Use $(evaluate-test).
35888
35889         * elf/Makefile (tests-special): Rename tests to end with .out.
35890         ($(objpfx)noload-mem): Likewise.
35891         ($(objpfx)tst-leaks1-mem): Likewise.
35892         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35893         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35894         $(objpfx)test-iconvconfig.out.
35895         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35896         set -e inside subshell and redirect output to file.
35897         * iconvdata/Makefile (generated): Rename tests to end with .out.
35898         Correct type.
35899         (tests-special): Rename tests to end with .out.
35900         ($(objpfx)mtrace-tst-loading): Likewise.
35901         * intl/Makefile (generated): Likewise.
35902         (tests-special): Likewise.
35903         ($(objpfx)mtrace-tst-gettext): Likewise.
35904         * misc/Makefile (generated): Likewise.
35905         (tests-special): Likewise.
35906         ($(objpfx)tst-error1-mem): Likewise.
35907         * nptl/Makefile (tests-special): Likewise.
35908         ($(objpfx)tst-stack3-mem): Likewise.
35909         (generated): Likewise.
35910         * posix/Makefile (generated): Likewise.
35911         (tests-special): Likewise.
35912         (xtests-special): Likewise.
35913         ($(objpfx)tst-fnmatch-mem): Likewise.
35914         ($(objpfx)bug-regex2-mem): Likewise.
35915         ($(objpfx)bug-regex14-mem): Likewise.
35916         ($(objpfx)bug-regex21-mem): Likewise.
35917         ($(objpfx)bug-regex31-mem): Likewise.
35918         ($(objpfx)tst-vfork3-mem): Likewise.
35919         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35920         ($(objpfx)tst-pcre-mem): Likewise.
35921         ($(objpfx)tst-boost-mem): Likewise.
35922         ($(objpfx)bug-ga2-mem): Likewise.
35923         ($(objpfx)bug-glob2-mem): Likewise.
35924         * resolv/Makefile (generate): Likewise.
35925         (tests-special): Likewise.
35926         (xtests-special): Likewise.
35927         (generated): Likewise.
35928         ($(objpfx)mtrace-tst-leaks): Likewise.
35929         ($(objpfx)mtrace-tst-leaks2): Likewise.
35930
35931         * scripts/merge-test-results.sh: New file.
35932         * Makefile (tests-special-notdir): New variable.
35933         (tests): Run merge-test-results.sh.
35934         (xtests): Likewise.
35935         * Rules (tests-special-notdir): New variable.
35936         (xtests-special-notdir): Likewise.
35937         (tests): Run merge-test-results.sh
35938         (xtests): Likewise.
35939
35940         * Makeconfig (test-xfail-name): New variable.
35941         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35942         compute variable name for expected failures.
35943         * conform/Makefile (conformtest-headers-data): New variable.
35944         (conformtest-standards): Likewise.
35945         (conformtest-headers-ISO): Likewise.
35946         (conformtest-headers-ISO99): Likewise.
35947         (conformtest-headers-ISO11): Likewise.
35948         (conformtest-headers-POSIX): Likewise.
35949         (conformtest-headers-XPG3): Likewise.
35950         (conformtest-headers-XPG4): Likewise.
35951         (conformtest-headers-UNIX98): Likewise.
35952         (conformtest-headers-XOPEN2K): Likewise.
35953         (conformtest-headers-POSIX2008): Likewise.
35954         (conformtest-headers-XOPEN2K8): Likewise.
35955         (conformtest-header-list-base): Likewise.
35956         (conformtest-header-list-tests): Likewise.
35957         (conformtest-header-base): Likewise.
35958         (conformtest-header-tests): Likewise.
35959         (tests-special): Add $(conformtest-header-list-tests).  If
35960         [$(fast-check) && !$(cross-compiling)], add
35961         $(conformtest-header-tests) instead of
35962         $(objpfx)run-conformtest.out.
35963         (generated): Add $(conformtest-header-list-base).  If
35964         [$(fast-check) && !$(cross-compiling)], add
35965         $(conformtest-header-base).  Remove previous setting.
35966         ($(conformtest-header-list-tests)): New target.
35967         (test-xfail-run-conformtest): Remove variable.
35968         ($(objpfx)run-conformtest.out): Remove target.
35969         (test-xfail-ISO11/complex.h/conform): New variable.
35970         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35971         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35972         (test-xfail-XPG3/varargs.h/conform): Likewise.
35973         (test-xfail-XPG4/varargs.h/conform): Likewise.
35974         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35975         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35976         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35977         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35978         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35979         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35980         (test-xfail-XPG3/ftw.h/conform): Likewise.
35981         (test-xfail-XPG3/grp.h/conform): Likewise.
35982         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35983         (test-xfail-XPG3/limits.h/conform): Likewise.
35984         (test-xfail-XPG3/pwd.h/conform): Likewise.
35985         (test-xfail-XPG3/search.h/conform): Likewise.
35986         (test-xfail-XPG3/signal.h/conform): Likewise.
35987         (test-xfail-XPG3/stdio.h/conform): Likewise.
35988         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35989         (test-xfail-XPG3/string.h/conform): Likewise.
35990         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35991         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35992         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35993         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35994         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35995         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35996         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35997         (test-xfail-XPG3/termios.h/conform): Likewise.
35998         (test-xfail-XPG3/time.h/conform): Likewise.
35999         (test-xfail-XPG3/unistd.h/conform): Likewise.
36000         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36001         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36002         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36003         (test-xfail-XPG4/netdb.h/conform): Likewise.
36004         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36005         (test-xfail-XPG4/signal.h/conform): Likewise.
36006         (test-xfail-XPG4/stdio.h/conform): Likewise.
36007         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36008         (test-xfail-XPG4/stropts.h/conform): Likewise.
36009         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36010         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36011         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36012         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36013         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36014         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36015         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36016         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36017         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36018         (test-xfail-XPG4/termios.h/conform): Likewise.
36019         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36020         (test-xfail-XPG4/unistd.h/conform): Likewise.
36021         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36022         (test-xfail-POSIX/sched.h/conform): Likewise.
36023         (test-xfail-POSIX/signal.h/conform): Likewise.
36024         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36025         (test-xfail-POSIX/tar.h/conform): Likewise.
36026         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36027         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36028         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36029         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36030         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36031         (test-xfail-UNIX98/sched.h/conform): Likewise.
36032         (test-xfail-UNIX98/signal.h/conform): Likewise.
36033         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36034         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36035         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36036         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36037         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36038         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36039         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36040         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36041         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36042         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36043         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36044         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36045         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36046         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36047         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36048         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36049         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36050         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36051         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36052         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36053         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36054         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36055         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36056         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36057         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36058         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36059         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36060         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36061         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36062         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36063         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36064         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36065         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36066         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36067         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36068         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36069         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36070         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36071         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36072         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36073         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36074         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36075         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36076         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36077         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36078         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36079         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36080         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36081         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36082         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36083         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36084         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36085         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36086         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36087         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36088         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36089         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36090         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36091         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36092         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36093         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36094         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36095         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36096         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36097         (conformtest-cc-flags): Likewise.
36098         ($(conformtest-header-tests): New target.
36099         * conform/check-header-lists.sh: New file.
36100         * conform/run-conformtest.sh: Remove.
36101
36102         * conform/conformtest.pl: Allow ' and \ in values given for
36103         constants.
36104         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36105         inclusion.
36106         [POSIX] (sys/types.h): Likewise.
36107         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36108         inclusion.
36109         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36110         inclusion.
36111         * conform/data/signal.h-data (SIGIO): Remove expectation.
36112         [XPG3] (SIGBUS): Do not expect.
36113         [POSIX || XPG3] (SIGPOLL): Likewise.
36114         [POSIX || XPG3] (SIGPROF): Likewise.
36115         [POSIX || XPG3] (SIGSYS): Likewise.
36116         [XPG3] (SIGTRAP): Likewise.
36117         [POSIX || XPG3] (SIGURG): Likewise.
36118         [POSIX || XPG3] (SIGVTALRM): Likewise.
36119         [POSIX || XPG3] (SIGXCPU): Likewise.
36120         [POSIX || XPG3] (SIGXFSZ): Likewise.
36121         [POSIX] (SA_SIGINFO): Expect.
36122         [XPG3] (siginfo_t): Do not expect type or contents.
36123         [POSIX] (si_pid): Do not expect element.
36124         [POSIX] (si_uid): Likewise.
36125         [POSIX] (si_addr): Likewise.
36126         [POSIX] (si_status): Likewise.
36127         [POSIX] (si_band): Likewise.
36128         [XPG4] (si_value): Likewise.
36129         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36130         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36131         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36132         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36133         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36134         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36135         [POSIX || XPG3] (ILL_COPROC): Likewise.
36136         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36137         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36138         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36139         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36140         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36141         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36142         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36143         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36144         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36145         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36146         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36147         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36148         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36149         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36150         [POSIX || XPG3] (CLD_EXITED): Likewise.
36151         [POSIX || XPG3] (CLD_KILLED): Likewise.
36152         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36153         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36154         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36155         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36156         [POSIX || XPG3] (POLL_IN): Likewise.
36157         [POSIX || XPG3] (POLL_OUT): Likewise.
36158         [POSIX || XPG3] (POLL_MSG): Likewise.
36159         [POSIX || XPG3] (POLL_ERR): Likewise.
36160         [POSIX || XPG3] (POLL_PRI): Likewise.
36161         [POSIX || XPG3] (POLL_HUP): Likewise.
36162         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36163         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36164         (SIG*): Do not allow.
36165         [XPG3] (si_*): Likewise.
36166         [XPG3] (SI_*): Likewise.
36167         [XPG3 || XPG4] (sigev_*): Likewise.
36168         [XPG3 || XPG4] (SIGEV_*): Likewise.
36169         [XPG3 || XPG4] (sival_*): Likewise.
36170         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36171         [POSIX || XPG3] (BUS_*): Likewise.
36172         [POSIX || XPG3] (CLD_*): Likewise.
36173         [POSIX || XPG3] (FPE_*): Likewise.
36174         [POSIX || XPG3] (ILL_*): Likewise.
36175         [POSIX || XPG3] (POLL_*): Likewise.
36176         [POSIX || XPG3] (SEGV_*): Likewise.
36177         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36178         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36179         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36180         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36181         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36182         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36183         Specify type and value.
36184         (TVERSLEN): Likewise.
36185         (REGTYPE): Likewise.
36186         (AREGTYPE): Likewise.
36187         (LNKTYPE): Likewise.
36188         (SYMTYPE): Likewise.
36189         (CHRTYPE): Likewise.
36190         (BLKTYPE): Likewise.
36191         (DIRTYPE): Likewise.
36192         (FIFOTYPE): Likewise.
36193         (CONTTYPE): Likewise.
36194         (TSUID): Likewise.
36195         (TSGID): Likewise.
36196         (TSVTX): Likewise.
36197         (TUREAD): Likewise.
36198         (TUWRITE): Likewise.
36199         (TUEXEC): Likewise.
36200         (TGREAD): Likewise.
36201         (TGWRITE): Likewise.
36202         (TGEXEC): Likewise.
36203         (TOREAD): Likewise.
36204         (TOWRITE): Likewise.
36205         (TOEXEC): Likewise.
36206         [POSIX] (TSVTX): Expect constant.
36207
36208 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36209
36210         * Makefile (tests): Change dependencies to ....
36211         (tests-special): ... additions to this variable.
36212         (tests): Depend on $(tests-special).
36213         * Makerules (check-abi-list): New variable.
36214         (check-abi): Depend on $(check-abi-list).
36215         [$(subdir) = elf] (tests-special): Add
36216         $(objpfx)check-abi-libc.out.
36217         [$(build-shared) = yes && subdir] (tests-special): Add
36218         $(check-abi-list).
36219         [$(build-shared) = yes && subdir] (tests): Do not depend on
36220         check-abi.
36221         * Rules (tests): Depend on $(tests-special).
36222         (xtests): Depend on $(xtests-special).
36223         * catgets/Makefile (tests): Change dependencies to ....
36224         (tests-special): ... additions to this variable.
36225         * conform/Makefile (tests): Change dependencies to ....
36226         (tests-special): ... additions to this variable.
36227         * elf/Makefile (tests): Change dependencies to ....
36228         (tests-special): ... additions to this variable.
36229         * grp/Makefile (tests): Change dependencies to ....
36230         (tests-special): ... additions to this variable.
36231         * iconv/Makefile (xtests): Change dependencies to ....
36232         (xtests-special): ... additions to this variable.
36233         * iconvdata/Makefile (tests): Change dependencies to ....
36234         (tests-special): ... additions to this variable.
36235         * intl/Makefile (tests): Change dependencies to ....
36236         (tests-special): ... additions to this variable.  Also add
36237         $(objpfx)tst-gettext.out.
36238         * io/Makefile (tests): Change dependencies to ....
36239         (tests-special): ... additions to this variable.
36240         * libio/Makefile (tests): Change dependencies to ....
36241         (tests-special): ... additions to this variable.
36242         * malloc/Makefile (tests): Change dependencies to ....
36243         (tests-special): ... additions to this variable.
36244         * misc/Makefile (tests): Change dependencies to ....
36245         (tests-special): ... additions to this variable.
36246         * nptl/Makefile (tests): Change dependencies to ....
36247         (tests-special): ... additions to this variable.
36248         * nptl_db/Makefile (tests): Change dependencies to ....
36249         (tests-special): ... additions to this variable.
36250         * posix/Makefile (tests): Change dependencies to ....
36251         (tests-special): ... additions to this variable.
36252         (xtests): Change dependencies to ....
36253         (xtests-special): ... additions to this variable.
36254         * resolv/Makefile (tests): Change dependencies to ....
36255         (tests-special): ... additions to this variable.
36256         (xtests): Change dependencies to ....
36257         (xtests-special): ... additions to this variable.
36258         * stdio-common/Makefile (tests): Change dependencies to ....
36259         (tests-special): ... additions to this variable.
36260         (do-tst-unbputc): Remove target.
36261         (do-tst-printf): Likewise.
36262         * stdlib/Makefile (tests): Change dependencies to ....
36263         (tests-special): ... additions to this variable.
36264         * string/Makefile (tests): Change dependencies to ....
36265         (tests-special): ... additions to this variable.
36266         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36267         (tests-special): ... additions to this variable.
36268
36269         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36270         whole file.
36271         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36272         whole file.
36273         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36274         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36275
36276         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36277         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36278         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36279         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36280         * conform/data/libgen.h-data [XPG3]: Likewise.
36281         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36282         * conform/data/ndbm.h-data [XPG3]: Likewise.
36283         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36284         * conform/data/netdb.h-data [XPG3]: Likewise.
36285         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36286         * conform/data/poll.h-data [XPG3]: Likewise.
36287         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36288         * conform/data/strings.h-data [XPG3]: Likewise.
36289         * conform/data/stropts.h-data [XPG3]: Likewise.
36290         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36291         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36292         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36293         Likewise.
36294         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36295         * conform/data/sys/time.h-data [XPG3]: Likewise.
36296         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36297         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36298         * conform/data/sys/un.h-data [XPG3]: Likewise.
36299         * conform/data/syslog.h-data [XPG3]: Likewise.
36300         * conform/data/ucontext.h-data [XPG3]: Likewise.
36301         * conform/data/utmpx.h-data [XPG3]: Likewise.
36302         * conform/data/varargs.h-data [UNIX98]: Enable file.
36303
36304         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36305
36306         * math/libm-test.inc (struct test_f_f_data): Move expected results
36307         into structure for each rounding mode.
36308         (struct test_ff_f_data): Likewise.
36309         (struct test_ff_f_data_nexttoward): Likewise.
36310         (struct test_fi_f_data): Likewise.
36311         (struct test_fl_f_data): Likewise.
36312         (struct test_if_f_data): Likewise.
36313         (struct test_fff_f_data): Likewise.
36314         (struct test_c_f_data): Likewise.
36315         (struct test_f_f1_data): Likewise.
36316         (struct test_fF_f1_data): Likewise.
36317         (struct test_ffI_f1_data): Likewise.
36318         (struct test_c_c_data): Likewise.
36319         (struct test_cc_c_data): Likewise.
36320         (struct test_f_i_data): Likewise.
36321         (struct test_ff_i_data): Likewise.
36322         (struct test_f_l_data): Likewise.
36323         (struct test_f_L_data): Likewise.
36324         (struct test_fFF_11_data): Likewise.
36325         (RM_): New macro.
36326         (RM_FE_DOWNWARD): Likewise.
36327         (RM_FE_TONEAREST): Likewise.
36328         (RM_FE_TOWARDZERO): Likewise.
36329         (RM_FE_UPWARD): Likewise.
36330         (RUN_TEST_LOOP_f_f): Update references to expected results.
36331         (RUN_TEST_LOOP_2_f): Likewise.
36332         (RUN_TEST_LOOP_fff_f): Likewise.
36333         (RUN_TEST_LOOP_c_f): Likewise.
36334         (RUN_TEST_LOOP_f_f1): Likewise.
36335         (RUN_TEST_LOOP_fF_f1): Likewise.
36336         (RUN_TEST_LOOP_fI_f1): Likewise.
36337         (RUN_TEST_LOOP_ffI_f1): Likewise.
36338         (RUN_TEST_LOOP_c_c): Likewise.
36339         (RUN_TEST_LOOP_cc_c): Likewise.
36340         (RUN_TEST_LOOP_f_i): Likewise.
36341         (RUN_TEST_LOOP_f_i_tg): Likewise.
36342         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36343         (RUN_TEST_LOOP_f_b): Likewise.
36344         (RUN_TEST_LOOP_f_b_tg): Likewise.
36345         (RUN_TEST_LOOP_f_l): Likewise.
36346         (RUN_TEST_LOOP_f_L): Likewise.
36347         (RUN_TEST_LOOP_fFF_11): Likewise.
36348         * math/gen-libm-test.pl (parse_args): Output four copies of
36349         expected results for each test.
36350
36351         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36352         (__ASSUME_UTIMES): Remove.
36353         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36354         (__ASSUME_UTIMES): Likewise.
36355
36356         * math/gen-auto-libm-tests.c: Update comment on output format.
36357         (output_for_one_input_case): Generate before-rounding and
36358         after-rounding information as conditions on output flags not
36359         floating-point format.
36360         * math/auto-libm-test-out: Regenerated.
36361         * math/gen-libm-test.pl (cond_value): New function.
36362         (or_cond_value): Use cond_value.
36363         (generate_testfile): Handle conditional exceptions.
36364
36365 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36366
36367         * math/libm-test.inc (max_valid_error): New variable.
36368         (init_max_error): Take new argument specifying whether function
36369         results are exactly determined.  Set max_valid_error and bound
36370         other variables for errors based on this argument.
36371         (set_max_error): Do not record results above max_valid_error.
36372         (check_float_internal): Only accept errors of up to 0.5ulps if
36373         also at most max_valid_error.
36374         (START): Take new argument EXACT and pass it to init_max_error.
36375         (acos_test): Update call to START.
36376         (acos_test_tonearest): Likewise.
36377         (acos_test_towardzero): Likewise.
36378         (acos_test_downward): Likewise.
36379         (acos_test_upward): Likewise.
36380         (acosh_test): Likewise.
36381         (asin_test): Likewise.
36382         (asin_test_tonearest): Likewise.
36383         (asin_test_towardzero): Likewise.
36384         (asin_test_downward): Likewise.
36385         (asin_test_upward): Likewise.
36386         (asinh_test): Likewise.
36387         (atan_test): Likewise.
36388         (atanh_test): Likewise.
36389         (atan2_test): Likewise.
36390         (cabs_test): Likewise.
36391         (cacos_test): Likewise.
36392         (cacosh_test): Likewise.
36393         (carg_test): Likewise.
36394         (casin_test): Likewise.
36395         (casinh_test): Likewise.
36396         (catan_test): Likewise.
36397         (catanh_test): Likewise.
36398         (cbrt_test): Likewise.
36399         (ccos_test): Likewise.
36400         (ccosh_test): Likewise.
36401         (ceil_test): Likewise.
36402         (cexp_test): Likewise.
36403         (cimag_test): Likewise.
36404         (clog_test): Likewise.
36405         (clog10_test): Likewise.
36406         (conj_test): Likewise.
36407         (copysign_test): Likewise.
36408         (cos_test): Likewise.
36409         (cos_test_tonearest): Likewise.
36410         (cos_test_towardzero): Likewise.
36411         (cos_test_downward): Likewise.
36412         (cos_test_upward): Likewise.
36413         (cosh_test): Likewise.
36414         (cosh_test_tonearest): Likewise.
36415         (cosh_test_towardzero): Likewise.
36416         (cosh_test_downward): Likewise.
36417         (cosh_test_upward): Likewise.
36418         (cpow_test): Likewise.
36419         (cproj_test): Likewise.
36420         (creal_test): Likewise.
36421         (csin_test): Likewise.
36422         (csinh_test): Likewise.
36423         (csqrt_test): Likewise.
36424         (ctan_test): Likewise.
36425         (ctan_test_tonearest): Likewise.
36426         (ctan_test_towardzero): Likewise.
36427         (ctan_test_downward): Likewise.
36428         (ctan_test_upward): Likewise.
36429         (ctanh_test): Likewise.
36430         (ctanh_test_tonearest): Likewise.
36431         (ctanh_test_towardzero): Likewise.
36432         (ctanh_test_downward): Likewise.
36433         (ctanh_test_upward): Likewise.
36434         (erf_test): Likewise.
36435         (erfc_test): Likewise.
36436         (exp_test): Likewise.
36437         (exp_test_tonearest): Likewise.
36438         (exp_test_towardzero): Likewise.
36439         (exp_test_downward): Likewise.
36440         (exp_test_upward): Likewise.
36441         (exp10_test): Likewise.
36442         (exp10_test_tonearest): Likewise.
36443         (exp10_test_towardzero): Likewise.
36444         (exp10_test_downward): Likewise.
36445         (exp10_test_upward): Likewise.
36446         (pow10_test): Likewise.
36447         (exp2_test): Likewise.
36448         (expm1_test): Likewise.
36449         (expm1_test_tonearest): Likewise.
36450         (expm1_test_towardzero): Likewise.
36451         (expm1_test_downward): Likewise.
36452         (expm1_test_upward): Likewise.
36453         (fabs_test): Likewise.
36454         (fdim_test): Likewise.
36455         (floor_test): Likewise.
36456         (fma_test): Likewise.
36457         (fma_test_towardzero): Likewise.
36458         (fma_test_downward): Likewise.
36459         (fma_test_upward): Likewise.
36460         (fmax_test): Likewise.
36461         (fmin_test): Likewise.
36462         (fmod_test): Likewise.
36463         (fpclassify_test): Likewise.
36464         (frexp_test): Likewise.
36465         (hypot_test): Likewise.
36466         (ilogb_test): Likewise.
36467         (isfinite_test): Likewise.
36468         (finite_test): Likewise.
36469         (isgreater_test): Likewise.
36470         (isgreaterequal_test): Likewise.
36471         (isinf_test): Likewise.
36472         (isless_test): Likewise.
36473         (islessequal_test): Likewise.
36474         (islessgreater_test): Likewise.
36475         (isnan_test): Likewise.
36476         (isnormal_test): Likewise.
36477         (issignaling_test): Likewise.
36478         (isunordered_test): Likewise.
36479         (j0_test): Likewise.
36480         (j1_test): Likewise.
36481         (jn_test): Likewise.
36482         (ldexp_test): Likewise.
36483         (lgamma_test): Likewise.
36484         (gamma_test): Likewise.
36485         (lrint_test): Likewise.
36486         (lrint_test_tonearest): Likewise.
36487         (lrint_test_towardzero): Likewise.
36488         (lrint_test_downward): Likewise.
36489         (lrint_test_upward): Likewise.
36490         (llrint_test): Likewise.
36491         (llrint_test_tonearest): Likewise.
36492         (llrint_test_towardzero): Likewise.
36493         (llrint_test_downward): Likewise.
36494         (llrint_test_upward): Likewise.
36495         (log_test): Likewise.
36496         (log10_test): Likewise.
36497         (log1p_test): Likewise.
36498         (log2_test): Likewise.
36499         (logb_test): Likewise.
36500         (logb_test_downward): Likewise.
36501         (lround_test): Likewise.
36502         (llround_test): Likewise.
36503         (modf_test): Likewise.
36504         (nearbyint_test): Likewise.
36505         (nextafter_test): Likewise.
36506         (nexttoward_test): Likewise.
36507         (pow_test): Likewise.
36508         (pow_test_tonearest): Likewise.
36509         (pow_test_towardzero): Likewise.
36510         (pow_test_downward): Likewise.
36511         (pow_test_upward): Likewise.
36512         (remainder_test): Likewise.
36513         (drem_test): Likewise.
36514         (remainder_test_tonearest): Likewise.
36515         (drem_test_tonearest): Likewise.
36516         (remainder_test_towardzero): Likewise.
36517         (drem_test_towardzero): Likewise.
36518         (remainder_test_downward): Likewise.
36519         (drem_test_downward): Likewise.
36520         (remainder_test_upward): Likewise.
36521         (drem_test_upward): Likewise.
36522         (remquo_test): Likewise.
36523         (rint_test): Likewise.
36524         (rint_test_tonearest): Likewise.
36525         (rint_test_towardzero): Likewise.
36526         (rint_test_downward): Likewise.
36527         (rint_test_upward): Likewise.
36528         (round_test): Likewise.
36529         (scalb_test): Likewise.
36530         (scalbn_test): Likewise.
36531         (scalbln_test): Likewise.
36532         (signbit_test): Likewise.
36533         (sin_test): Likewise.
36534         (sin_test_tonearest): Likewise.
36535         (sin_test_towardzero): Likewise.
36536         (sin_test_downward): Likewise.
36537         (sin_test_upward): Likewise.
36538         (sincos_test): Likewise.
36539         (sinh_test): Likewise.
36540         (sinh_test_tonearest): Likewise.
36541         (sinh_test_towardzero): Likewise.
36542         (sinh_test_downward): Likewise.
36543         (sinh_test_upward): Likewise.
36544         (sqrt_test): Likewise.
36545         (sqrt_test_tonearest): Likewise.
36546         (sqrt_test_towardzero): Likewise.
36547         (sqrt_test_downward): Likewise.
36548         (sqrt_test_upward): Likewise.
36549         (tan_test): Likewise.
36550         (tan_test_tonearest): Likewise.
36551         (tan_test_towardzero): Likewise.
36552         (tan_test_downward): Likewise.
36553         (tan_test_upward): Likewise.
36554         (tanh_test): Likewise.
36555         (tgamma_test): Likewise.
36556         (trunc_test): Likewise.
36557         (y0_test): Likewise.
36558         (y1_test): Likewise.
36559         (yn_test): Likewise.
36560         (significand_test): Likewise.
36561
36562         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36563         individual tests in comment.
36564         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36565         (prev_max_error): New variable.
36566         (prev_real_max_error): Likewise.
36567         (prev_imag_max_error): Likewise.
36568         (compare_ulp_data): Don't refer to test names in comment.
36569         (find_test_ulps): Remove function.
36570         (find_function_ulps): Likewise.
36571         (find_complex_function_ulps): Likewise.
36572         (init_max_error): Take function name as argument.  Look up ulps
36573         for that function.
36574         (print_ulps): Remove function.
36575         (print_max_error): Use prev_max_error instead of calling
36576         find_function_ulps.
36577         (print_complex_max_error): Use prev_real_max_error and
36578         prev_imag_max_error instead of calling find_complex_function_ulps.
36579         (check_float_internal): Take max_ulp parameter instead of calling
36580         find_test_ulps.  Don't call print_ulps.
36581         (check_float): Update call to check_float_internal.
36582         (check_complex): Update calls to check_float_internal.
36583         (START): Pass argument to init_max_error.
36584         * math/gen-libm-test.pl (%results): Don't include "kind"
36585         information.
36586         (parse_ulps): Don't handle ulps of individual tests.
36587         (print_ulps_file): Likewise.
36588         (output_ulps): Likewise.
36589         * math/README.libm-test: Update.
36590         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36591         individual tests.
36592         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36593         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36594         * sysdeps/arm/libm-test-ulps: Likewise.
36595         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36596         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36597         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36598         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36599         * sysdeps/microblaze/libm-test-ulps: Likewise.
36600         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36601         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36602         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36603         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36604         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36605         * sysdeps/sh/libm-test-ulps: Likewise.
36606         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36607         * sysdeps/tile/libm-test-ulps: Likewise.
36608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36609
36610 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36611
36612         * math/libm-test.inc (print_complex_max_error): Check separately
36613         whether real and imaginary errors are within allowed range and
36614         pass 0 to print_complex_function_ulps instead of value within
36615         allowed range.
36616
36617 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36618
36619         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36620         formatting.
36621         (get_handles_fopen): Likewise.
36622         (do_write_test): Likewise.
36623
36624         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36625
36626         * libio/fileops.c (do_ftell): Use cached offset when
36627         available.
36628         * libio/iofwide.c (do_ftell_wide): Likewise.
36629         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36630         _IO_file_attach.
36631         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36632
36633         [BZ #16532]
36634         * libio/libioP.h (get_file_offset): New function.
36635         * libio/fileops.c (get_file_offset): Likewise.
36636         (do_ftell): Likewise.
36637         (_IO_new_file_seekoff): Split out ftell logic.
36638         * libio/wfileops.c (do_ftell_wide): Likewise.
36639         (_IO_wfile_seekoff): Split out ftell logic.
36640         * libio/tst-ftell-active-handler.c: New test case.
36641         * libio/Makefile (tests): Add it.
36642
36643 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36644
36645         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36646         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36647
36648 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36649
36650         [BZ #16639]
36651         * nscd/connections.c (nscd_init): Call do_exit.
36652         (start_threads): Call do_exit and notify_parent.
36653         (begin_drop_privileges): Call do_exit.
36654         (finish_drop_privileges): Likewise.
36655         * nscd/selinux.c (preserve_capabilities): Likewise.
36656         (install_real_capabilities): Likewise.
36657         (nscd_selinux_enabled): Likewise.
36658         (avc_create_thread): Likewise.
36659         (avc_alloc_lock): Likewise.
36660         (nscd_avc_init): Likewise.
36661         * nscd/nscd.c (parent_fd): New static variable.
36662         (main): Create a pipe between parent and child processes.
36663         Skip closing parent_fd.
36664         (monitor_child): New function.
36665         (do_exit): Likewise.
36666         (notify_parent): Likewise.
36667         * nscd/nscd.h (notify_parent): Likewise.
36668         (do_exit): Likewise.
36669
36670 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36671
36672         * malloc/malloc.c (__libc_calloc): Revert last change.
36673
36674 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36675
36676         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36677
36678 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36679
36680         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36681         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36682         implementation.
36683         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36684         (__libc_ifunc_impl_list): Likewise.
36685         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36686         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36687         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36688         * string/strrchr.c: Define STRRCHR.
36689
36690 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36691
36692         * benchtest/bench-strtok.c (simple_strtok): Delete.
36693         (strtok_string): Use as benchmark.
36694         * string/strtok (STRTOK): New macro.
36695
36696 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36697
36698         * manual/threads.texi: Add header and standard comments to all
36699         functions.
36700
36701         * elf/dl-lookup.c (check_match): New function.
36702         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36703         (do_lookup_x): Remove nested function check_match. Use non-nested
36704         function check_match.
36705
36706 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36707
36708         * csu/Makefile (generated, before-compile): Use += rather than =.
36709         * catgets/Makefile (generated, generated-dirs): Likewise.
36710         * debug/Makefile (generated): Likewise.
36711         * dlfcn/Makefile (generated): Likewise.
36712         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36713         * iconvdata/Makefile (before-compile, generated): Likewise.
36714         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36715         * libio/Makefile (generated): Likewise.
36716         * malloc/Makefile (generated): Likewise.
36717         * manual/Makefile (generated, generated-dirs): Likewise.
36718         * misc/Makefile (generated): Likewise.
36719         * posix/Makefile (generated): Likewise.
36720         * resolv/Makefile (generated): Likewise.
36721         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36722         * timezone/Makefile (generated, generated-dirs): Likewise.
36723
36724         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36725
36726 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36727
36728         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36729         power8 implementation.
36730         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36731         file: POWER8 llround ifunc implementation.
36732         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36733         (__lllround): Add POWER8 implementation.
36734         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36735         POWER8 llround implementation.
36736
36737         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36738         power8 implementation.
36739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36740         file: POWER8 llrint ifunc implementation.
36741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36742         Add POWER8 implementation.
36743         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36744         POWER8 llrint implementation.
36745
36746         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36747         power8 implementation.
36748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36749         file: POWER8 finite ifunc implementation.
36750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36751         Add POWER8 implementation.
36752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36753         Likewise.
36754         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36755         POWER8 finite implementation.
36756         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36757
36758         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36759         power8 implementation.
36760         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36761         file: POWER8 isinf ifunc implementation.
36762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36763         POWER8 implementation.
36764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36765         Likewise.
36766         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36767         isinf implementation.
36768         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36769
36770         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36771         (INIT_ARCH): Add hwcap2 initialization.
36772         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36773         power8 implementation.
36774         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36775         file: POWER8 isnan ifunc implementation.
36776         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36777         POWER8 implementation.
36778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36779         Likewise.
36780         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36781         isnan implementation.
36782         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36783
36784 2014-02-27  Joey Ye  <joey.ye@arm.com>
36785
36786         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36787         (_FP_NANFRAC_Q): Set to zero.
36788
36789 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36790
36791         [BZ #16623]
36792         * math/auto-libm-test-in: New test inputs.
36793         * math/auto-libm-test-out: Regenerate.
36794         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36795         and DA.
36796         (__cos): Likewise.
36797         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36798
36799 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36800
36801         * scripts/evaluate-test.sh: Take new argument indicating whether
36802         failure is expected.
36803         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36804         indicating whether failure is expected.
36805         * conform/Makefile (test-xfail-run-conformtest): New variable.
36806         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36807         level.
36808         * posix/Makefile (test-xfail-annexc): New variable.
36809         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36810
36811 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36812
36813         * argp/Makefile: Include Makeconfig immediately after defining
36814         subdir.
36815         * assert/Makefile: Likewise.
36816         * benchtests/Makefile: Likewise.
36817         * catgets/Makefile: Likewise.
36818         * conform/Makefile: Likewise.
36819         * crypt/Makefile: Likewise.
36820         * csu/Makefile: Likewise.
36821         (all): Remove target.
36822         * ctype/Makefile: Include Makeconfig immediately after defining
36823         subdir.
36824         * debug/Makefile: Likewise.
36825         * dirent/Makefile: Likewise.
36826         * dlfcn/Makefile: Likewise.
36827         * gmon/Makefile: Likewise.
36828         * gnulib/Makefile: Likewise.
36829         * grp/Makefile: Likewise.
36830         * gshadow/Makefile: Likewise.
36831         * hesiod/Makefile: Likewise.
36832         * hurd/Makefile: Likewise.
36833         (all): Remove target.
36834         * iconvdata/Makefile: Include Makeconfig immediately after
36835         defining subdir.
36836         * inet/Makefile: Likewise.
36837         * intl/Makefile: Likewise.
36838         * io/Makefile: Likewise.
36839         * libio/Makefile: Likewise.
36840         (all): Remove target.
36841         * locale/Makefile: Include Makeconfig immediately after defining
36842         subdir.
36843         * login/Makefile: Likewise.
36844         * mach/Makefile: Likewise.
36845         (all): Remove target.
36846         * malloc/Makefile: Include Makeconfig immediately after defining
36847         subdir.
36848         (all): Remove target.
36849         * manual/Makefile: Include Makeconfig immediately after defining
36850         subdir.
36851         * math/Makefile: Likewise.
36852         * misc/Makefile: Likewise.
36853         * nis/Makefile: Likewise.
36854         * nss/Makefile: Likewise.
36855         * po/Makefile: Likewise.
36856         (all): Remove target.
36857         * posix/Makefile: Include Makeconfig immediately after defining
36858         subdir.
36859         * pwd/Makefile: Likewise.
36860         * resolv/Makefile: Likewise.
36861         * resource/Makefile: Likewise.
36862         * rt/Makefile: Likewise.
36863         * setjmp/Makefile: Likewise.
36864         * shadow/Makefile: Likewise.
36865         * signal/Makefile: Likewise.
36866         * socket/Makefile: Likewise.
36867         * soft-fp/Makefile: Likewise.
36868         * stdio-common/Makefile: Likewise.
36869         * stdlib/Makefile: Likewise.
36870         * streams/Makefile: Likewise.
36871         * string/Makefile: Likewise.
36872         * sunrpc/Makefile: Likewise.
36873         (all): Remove target.
36874         * sysvipc/Makefile: Include Makeconfig immediately after defining
36875         subdir.
36876         * termios/Makefile: Likewise.
36877         * time/Makefile: Likewise.
36878         * timezone/Makefile: Likewise.
36879         (all): Remove target.
36880         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36881         subdir.
36882         * wctype/Makefile: Likewise.
36883
36884 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36885
36886         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36887         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36888         (libc_feholdexcept_setround_mips): Ditto.
36889         (libc_feholdsetround): New.
36890         (libc_feholdsetroundf): New.
36891         (libc_feholdsetroundl): New.
36892         (libc_feupdateenv_test_mips): New.
36893         (libc_feupdateenv_test): New.
36894         (libc_feupdateenv_testf): New.
36895         (libc_feupdateenv_testl): New.
36896         (libc_feresetround): New.
36897         (libc_feresetroundf): New.
36898         (libc_feresetroundl): New.
36899         (libc_fetestexcept_mips): New.
36900         (libc_fetestexcept): New.
36901         (libc_fetestexceptf): New.
36902         (libc_fetestexceptl): New.
36903         (HAVE_RM_CTX): New.
36904         (libc_feholdexcept_setround_mips_ctx): New.
36905         (libc_feholdexcept_setround_ctx): New.
36906         (libc_feholdexcept_setroundf_ctx): New.
36907         (libc_feholdexcept_setroundl_ctx): New.
36908         (libc_fesetenv_mips_ctx): New.
36909         (libc_fesetenv_ctx): New.
36910         (libc_fesetenv_ctxf): New.
36911         (libc_fesetenv_ctxl): New.
36912         (libc_feupdateenv_mips_ctx): New.
36913         (libc_feupdateenv_ctx): New.
36914         (libc_feupdateenvf_ctx): New.
36915         (libc_feupdateenvl_ctx): New.
36916         (libc_feholdsetround_mips_ctx): New.
36917         (libc_feholdsetround_ctx): New.
36918         (libc_feholdsetroundf_ctx): New.
36919         (libc_feholdsetroundl_ctx): New.
36920         (libc_feresetround_mips_ctx): New.
36921         (libc_feresetround_ctx): New.
36922         (libc_feresetroundf_ctx): New.
36923         (libc_feresetroundl_ctx): New.
36924
36925 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36926
36927         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36928
36929         * manual/ipc.texi: New file.
36930         * manual/Makefile (chapters): Add ipc.
36931         * manual/job.texi: Add "Inter-Process Communication" to next.
36932         * manual/process.texi: Add "Inter-Process Communication" to prev.
36933
36934 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36935
36936         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36937
36938 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36939
36940         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36941
36942         * manual/arith.texi: Fix spaces after sentences.
36943         * manual/charset.texi: Likewise.
36944         * manual/errno.texi: Likewise.
36945         * manual/install.texi: Likewise.
36946         * manual/llio.texi: Likewise.
36947         * manual/locale.texi: Likewise.
36948         * manual/maint.texi: Likewise.
36949         * manual/math.texi: Likewise.
36950         * manual/memory.texi: Likewise.
36951         * manual/message.texi: Likewise.
36952         * manual/probes.texi: Likewise.
36953         * manual/resource.texi: Likewise.
36954         * manual/signal.texi: Likewise.
36955         * manual/socket.texi: Likewise.
36956         * manual/stdio.texi: Likewise.
36957         * manual/string.texi: Likewise.
36958         * manual/time.texi: Likewise.
36959         * manual/users.texi: Likewise.
36960
36961 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36962
36963         [BZ #16632]
36964         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36965         _DEFAULT_SOURCE is defined.
36966
36967 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36968             Carlos O'Donell  <carlos@redhat.com>
36969
36970         [BZ #16613]
36971         * elf/dl-tls.c (_dl_count_modids): New function.
36972         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36973         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36974         audit library and increment generation counter.
36975         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36976         * elf/tst-audit9.c: New file.
36977         * elf/tst-auditmod9a.c: New file.
36978         * elf/tst-auditmod9b.c: New file.
36979         * elf/Makefile: Add rules to build and run tst-audit9.
36980
36981 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36982
36983         [BZ #15347]
36984         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36985
36986 2014-02-25  Will Newton  <will.newton@linaro.org>
36987
36988         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36989         (__longjmp): Restore sp and lr before restoring callee
36990         saved registers.  Add longjmp and longjmp_target
36991         SystemTap probe point.
36992         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36993         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36994         Define to zero to match jmpbuf layout.
36995         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36996         (__sigsetjmp): Save sp and lr before saving callee
36997         saved registers.  Add setjmp SystemTap probe point.
36998
36999 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37000
37001         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37002
37003 2014-02-24  Andreas Schwab  <schwab@suse.de>
37004
37005         [BZ #15804]
37006         * elf/pldd.c (wait_for_ptrace_stop): New function.
37007         (main): Call it after attaching.
37008
37009 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37010
37011         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37012         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37013         Versions files is now verboten.
37014         * hurd/Versions (libc: GLIBC_2.0):
37015         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37016         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37017         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37018         * mach/Versions: Likewise.
37019
37020         * csu/Versions: Remove unused %include.
37021         * resolv/Versions: Likewise.
37022
37023 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37024
37025         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37026         ($(objpfx)check-local-headers.out): Likewise.
37027         ($(objpfx)begin-end-check.out): Likewise.
37028         * Makerules (check-abi-%.out): Likewise.
37029         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37030         ($(objpfx)test2.cat): Likewise.
37031         ($(objpfx)de/libc.cat): Likewise.
37032         ($(objpfx)test-gencat.out): Likewise.
37033         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37034         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37035         ($(objpfx)noload-mem): Likewise.
37036         ($(objpfx)tst-pathopt.out): Likewise.
37037         ($(objpfx)tst-rtld-load-self.out): Likewise.
37038         ($(objpfx)tst-array1-cmp.out): Likewise.
37039         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37040         ($(objpfx)tst-array2-cmp.out): Likewise.
37041         ($(objpfx)tst-array3-cmp.out): Likewise.
37042         ($(objpfx)tst-array4-cmp.out): Likewise.
37043         ($(objpfx)tst-array5-cmp.out): Likewise.
37044         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37045         ($(objpfx)check-textrel.out): Likewise.
37046         ($(objpfx)check-execstack.out): Likewise.
37047         ($(objpfx)check-localplt.out): Likewise.
37048         ($(objpfx)order2-cmp.out): Likewise.
37049         ($(objpfx)tst-leaks1-mem): Likewise.
37050         ($(objpfx)tst-leaks1-static-mem): Likewise.
37051         ($(objpfx)tst-initorder-cmp.out): Likewise.
37052         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37053         ($(objpfx)tst-unused-dep.out): Likewise.
37054         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37055         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37056         * iconv/Makefile (test-iconvconfig): Likewise.
37057         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37058         ($(objpfx)iconv-test.out): Likewise.
37059         ($(objpfx)tst-tables.out): Likewise.
37060         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37061         ($(objpfx)tst-gettext.out): Likewise.
37062         ($(objpfx)tst-translit.out): Likewise.
37063         ($(objpfx)tst-gettext2.out): Likewise.
37064         ($(objpfx)tst-gettext4.out): Likewise.
37065         ($(objpfx)tst-gettext6.out): Likewise.
37066         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37067         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37068         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37069         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37070         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37071         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37072         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37073         ($(objpfx)wordexp-tst.out): Likewise.
37074         ($(objpfx)annexc.out): Likewise.
37075         ($(objpfx)tst-fnmatch-mem): Likewise.
37076         ($(objpfx)bug-regex2-mem): Likewise.
37077         ($(objpfx)bug-regex14-mem): Likewise.
37078         ($(objpfx)bug-regex21-mem): Likewise.
37079         ($(objpfx)bug-regex31-mem): Likewise.
37080         ($(objpfx)tst-vfork3-mem): Likewise.
37081         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37082         ($(objpfx)tst-pcre-mem): Likewise.
37083         ($(objpfx)tst-boost-mem): Likewise.
37084         ($(objpfx)tst-getconf.out): Likewise.
37085         ($(objpfx)bug-ga2-mem): Likewise.
37086         ($(objpfx)bug-glob2-mem): Likewise.
37087         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37088         ($(objpfx)mtrace-tst-leaks2): Likewise.
37089         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37090         ($(objpfx)tst-printf.out): Likewise.
37091         ($(objpfx)tst-setvbuf1.out): Likewise.
37092         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37093         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37094         ($(objpfx)tst-fmtmsg.out): Likewise.
37095         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37096         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37097
37098         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37099         * bits/sigaction.h [__USE_MISC]: Likewise.
37100         * bits/waitstatus.h: Update #endif comments.
37101         * ctype/ctype.h: Likewise.
37102         * dirent/dirent.h: Likewise.
37103         [__USE_MISC]: Remove redundant conditionals.
37104         * grp/grp.h: Update #endif comments.
37105         [__USE_GNU]: Remove redundant conditionals.
37106         [__USE_MISC]: Likewise.
37107         * inet/netinet/in.h [__USE_GNU]: Likewise.
37108         * io/sys/stat.h [__USE_MISC]: Likewise.
37109         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37110         * libio/bits/stdio.h: Update #endif comments.
37111         [__USE_MISC]: Remove redundant conditionals.
37112         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37113         * libio/stdio.h: Update #endif comments.
37114         [__USE_MISC]: Remove redundant conditionals.
37115         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37116         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37117         * math/math.h: Update #else and #endif comments.
37118         [__USE_MISC]: Remove redundant conditionals.
37119         * misc/sys/uio.h: Update #endif comments.
37120         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37121         * posix/glob.h [__USE_MISC]: Likewise.
37122         * posix/sys/types.h: Update #endif comments.
37123         [__USE_MISC]: Remove redundant conditionals.
37124         * posix/sys/wait.h: Update #endif comments.
37125         [__USE_MISC]: Remove redundant conditionals.
37126         * posix/unistd.h: Update #endif comments.
37127         [__USE_MISC]: Remove redundant conditionals.
37128         * pwd/pwd.h [__USE_GNU]: Likewise.
37129         [__USE_MISC]: Likewise.
37130         * resolv/netdb.h [__USE_GNU]: Likewise.
37131         * signal/signal.h: Update #endif comments.
37132         [__USE_MISC]: Remove redundant conditionals.
37133         * stdlib/stdlib.h: Update #else and #endif comments.
37134         [__USE_MISC]: Remove redundant conditionals.
37135         [__USE_GNU]: Likewise.
37136         * string/bits/string2.h [__USE_MISC]: Likewise.
37137         * string/string.h: Update #endif comments.
37138         [__USE_MISC]: Remove redundant conditionals.
37139         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37140         Likewise.
37141         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37142         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37143         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37144         Likewise.
37145         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37146         Likewise.
37147         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37148         comments.
37149         [__USE_MISC]: Remove redundant conditionals.
37150         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37151         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37152         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37153         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37154         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37155         Likewise.
37156         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37157         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37158         Likewise.
37159         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37160         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37161         Likewise.
37162         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37163         Likewise.
37164         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37165         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37166         Likewise.
37167         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37168         Likewise.
37169         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37170         * sysdeps/x86/bits/string.h: Update #endif comments.
37171         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37172         conditionals.
37173         * time/sys/time.h: Update #endif comments.
37174         * time/time.h: Likewise.
37175         [__USE_MISC]: Remove redundant conditionals.
37176
37177 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37178
37179         [BZ #16600]
37180         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37181
37182 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37183
37184         * Versions.def (librt): Add GLIBC_2.17.
37185
37186 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37187
37188         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37189         synonym for _SYS_AUXV_H to allow direct inclusion.
37190         * sysdeps/sparc/bits/hwcap.h: Likewise.
37191         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37192         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37193         * sysdeps/sparc/sysdep.h: Likewise.
37194
37195 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37196
37197         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37198
37199 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37200
37201         * benchtests/bench-strrchr.c: Print length instead of position.
37202
37203 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37204
37205         [BZ #16611]
37206         * sysdeps/unix/sysv/linux/kernel-features.h
37207         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37208         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37209         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37210         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37211         Likewise.
37212         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37213         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37214         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37215         (__ASSUME_SENDMMSG): Define instead of using previous
37216         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37217         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37218         (__ASSUME_SENDMMSG_SYSCALL): Define.
37219         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37220         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37221         Likewise.
37222         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37223         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37224         Likewise.
37225         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37226         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37227         Likewise.
37228         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37229         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37230         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37231         [__ASSUME_SENDMMSG]: Change conditionals to
37232         [__ASSUME_SENDMMSG_SOCKETCALL].
37233         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37234         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37235         Define.
37236         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37237         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37238         Likewise.
37239         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37240         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37241         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37242         [!__ASSUME_SENDMMSG]: Change conditional to
37243         [!__ASSUME_SENDMMSG_SOCKETCALL].
37244         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37245         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37246         Define.
37247
37248         [BZ #16610]
37249         * sysdeps/unix/sysv/linux/kernel-features.h
37250         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37251         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37252         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37253         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37254         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37255         [__i386__ || __sparc__]
37256         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37257         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37258         (__ASSUME_RECVMMSG): Define instead of using previous
37259         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37260         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37261         (__ASSUME_RECVMMSG_SYSCALL): Define.
37262         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37263         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37264         Likewise.
37265         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37266         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37267         Likewise.
37268         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37269         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37270         Likewise.
37271         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37272         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37273         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37274         [__ASSUME_RECVMMSG]: Change condition to
37275         [__ASSUME_RECVMMSG_SOCKETCALL].
37276         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37277         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37278         Define.
37279         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37280         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37281         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37282         Likewise.
37283         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37284         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37285         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37286         [!__ASSUME_RECVMMSG]: Change condition to
37287         [!__ASSUME_RECVMMSG_SOCKETCALL].
37288         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37289         (__ASSUME_RECVMMSG_SYSCALL): Define.
37290
37291         [BZ #16609]
37292         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37293         __powerpc__ || __s390__ || __sh__ || __sparc__]
37294         (__ASSUME_SOCKETCALL): Define.
37295         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37296         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37297         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37298         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37299         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37300         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37301         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37302         (__ASSUME_ACCEPT4): Define instead of using previous
37303         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37304         __powerpc__ || __sparc__ || __s390__)] condition.
37305         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37306         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37307         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37308         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37309         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37310         [!__ASSUME_ACCEPT4]: Change condition to
37311         [!__ASSUME_ACCEPT4_SOCKETCALL].
37312         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37313         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37314         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37315         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37316         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37317         __ASSUME_ACCEPT4_SYSCALL.
37318         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37319         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37320         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37321         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37322         __ASSUME_ACCEPT4_SYSCALL.
37323         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37324         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37325         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37326         [__ASSUME_ACCEPT4]: Change condition to
37327         [__ASSUME_ACCEPT4_SOCKETCALL].
37328         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37329         (__ASSUME_SOCKETCALL): Define.
37330         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37331         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37332         (__ASSUME_SOCKETCALL): Define.
37333         (__ASSUME_ACCEPT4): Remove.
37334         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37335         Define.
37336         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37337         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37338         Likewise.
37339         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37340         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37341
37342         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37343         macro.
37344         (HWCAP_ARM_LPAE): Likewise.
37345         (HWCAP_ARM_EVTSTRM): Likewise.
37346         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37347         Add vpfd32, lpae and evtstrm.
37348         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37349         Increase to 22.
37350
37351 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37352
37353         * math/auto-libm-test-in: Add tests of clog10.
37354         * math/auto-libm-test-out: Regenerated.
37355         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37356         * sysdeps/i386/fpu/libm-test-ulps: Update.
37357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37358
37359 2014-02-18  Andreas Schwab  <schwab@suse.de>
37360
37361         [BZ #16574]
37362         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37363         Store non-zero if the second buffer was newly allocated.
37364         (send_dg): Likewise.
37365         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37366         to send_vc and send_dg.
37367         (res_nsend): Pass NULL for ansp2_malloced.
37368         * resolv/res_query.c (__libc_res_nquery): Add parameter
37369         answerp2_malloced and pass it down to __libc_res_nsend.
37370         (res_nquery): Pass additional NULL to __libc_res_nquery.
37371         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37372         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37373         second answer buffer if answerp2_malloced was set.
37374         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37375         (__libc_res_nquerydomain): Add parameter
37376         answerp2_malloced and pass it down to __libc_res_nquery.
37377         (res_nquerydomain): Pass additional NULL to
37378         __libc_res_nquerydomain.
37379         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37380         additional NULL to __libc_res_nsend and __libc_res_nquery.
37381         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37382         additional NULL to __libc_res_nsearch.
37383         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37384         parameter of __libc_res_nsearch to check for separately allocated
37385         second buffer.
37386         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37387         __libc_res_nquery.
37388         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37389         additional NULL to __libc_res_nquery.
37390         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37391         __libc_res_nsearch.
37392         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37393         * include/resolv.h: Update prototypes of __libc_res_nquery,
37394         __libc_res_nsearch, __libc_res_nsend.
37395
37396 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37397
37398         * math/auto-libm-test-in: Add tests of fma.
37399         * math/auto-libm-test-out: Regenerated.
37400         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37401         (fma_towardzero_test_data): Likewise.
37402         (fma_downward_test_data): Likewise.
37403         (fma_upward_test_data): Likewise.
37404         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37405         mpc_mode.
37406         (rounding_modes): Add values for new field.
37407         (func_calc_method): Add value mpfr_fff_f.
37408         (func_calc_desc): Add mpfr_fff_f union field.
37409         (test_function): Add field exact_args.
37410         (FUNC): Add macro argument EXACT_ARGS.
37411         (FUNC_mpfr_f_f): Update call to FUNC.
37412         (FUNC_mpfr_f_f): Likewise.
37413         (FUNC_mpfr_ff_f): Likewise.
37414         (FUNC_mpfr_if_f): Likewise.
37415         (FUNC_mpc_c_f): Likewise.
37416         (FUNC_mpc_c_c): Likewise.
37417         (test_functions): Add fma.  Update calls to FUNC.
37418         (handle_input_arg): Add argument exact_args.
37419         (add_test): Update call to handle_input_arg.
37420         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37421         (output_for_one_input_case): Update call to calc_generic_results.
37422         Recalculate exact zero results in each rounding mode.
37423
37424         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37425         non-negative before setting low bit.
37426         * math/auto-libm-test-in: Mark one asin test possibly having
37427         spurious underflow.
37428         * math/auto-libm-test-out: Regenerated.
37429         * sysdeps/i386/fpu/libm-test-ulps: Update.
37430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37431
37432 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37433
37434         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37435         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37436         ports/sysdeps/unix/sysv/linux/microblaze.
37437         * README: Add missing listing for microblaze*-*-linux-gnu.
37438
37439 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37440
37441         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37442         duplicate code
37443
37444 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37445
37446         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37447         * sysdeps/unix/sysv/linux/ia64: Move directory from
37448         ports/sysdeps/unix/sysv/linux/ia64.
37449         * README: Update listing for ia64-*-linux-gnu.
37450
37451 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37452             Joseph Myers  <joseph@codesourcery.com>
37453
37454         * Makeconfig (test-name): New variable.
37455         (evaluate-test): Likewise.
37456         * Makerules (do-test-clean): Remove .test-result files.
37457         (common-mostlyclean): Likewise.
37458         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37459         * scripts/evaluate-test.sh: New file.
37460
37461 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37462
37463         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37464         separate $(objpfx)tst-fopenloc-cmp.out and
37465         $(objpfx)tst-fopenloc-mem.out targets.
37466         (tests): Update dependencies.
37467         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37468         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37469         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37470         (tst-rxspencer-no-utf8-ARGS): New variable.
37471         (tst-rxspencer-no-utf8-ENV): Likewise.
37472         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37473         instead of $(objpfx)tst-rxspencer-mem.
37474         ($(objpfx)tst-rxspencer-mem): Change target to
37475         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37476         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37477         * posix/tst-rxspencer-no-utf8.c: New file.
37478
37479         * elf/Makefile ($(objpfx)order.out): Remove rule.
37480         [$(run-built-tests) = yes] (tests): Depend on
37481         $(objpfx)order-cmp.out.
37482         ($(objpfx)order-cmp.out): New rule.
37483         [$(run-built-tests) = yes] (tests): Depend on
37484         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37485         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37486         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37487         $(objpfx)tst-array5-static-cmp.out.
37488         ($(objpfx)tst-array1.out): Remove rule.
37489         ($(objpfx)tst-array1-cmp.out): New rule.
37490         ($(objpfx)tst-array1-static.out): Remove rule.
37491         ($(objpfx)tst-array1-static-cmp.out): New rule.
37492         ($(objpfx)tst-array2.out): Remove rule.
37493         ($(objpfx)tst-array2-cmp.out): New rule.
37494         ($(objpfx)tst-array3.out): Remove rule.
37495         ($(objpfx)tst-array3-cmp.out): New rule.
37496         ($(objpfx)tst-array4.out): Remove rule.
37497         ($(objpfx)tst-array4-cmp.out): New rule.
37498         ($(objpfx)tst-array5.out): Remove rule.
37499         ($(objpfx)tst-array5-cmp.out): New rule.
37500         ($(objpfx)tst-array5-static.out): Remove rule.
37501         ($(objpfx)tst-array5-static-cmp.out): New rule.
37502         [$(run-built-tests) = yes] (tests): Depend on
37503         $(objpfx)order2-cmp.out.
37504         ($(objpfx)order2.out): Remove rule.
37505         ($(objpfx)order2-cmp.out): New rule.
37506         ($(objpfx)tst-initorder.out): Remove rule.
37507         [$(run-built-tests) = yes] (tests): Depend on
37508         $(objpfx)tst-initorder-cmp.out.
37509         ($(objpfx)tst-initorder-cmp.out): New rule.
37510         ($(objpfx)tst-initorder2.out): Remove rule.
37511         [$(run-built-tests) = yes] (tests): Depend on
37512         $(objpfx)tst-initorder2-cmp.out.
37513         ($(objpfx)tst-initorder2-cmp.out): New rule.
37514         [$(run-built-tests) = yes] (tests): Depend on
37515         $(objpfx)tst-unused-dep-cmp.out.
37516         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37517         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37518         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37519         on $(objpfx)tst-setvbuf1-cmp.out.
37520         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37521         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37522         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37523         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37524         ($(objpfx)tst-svc.out): Remove rule.
37525         ($(objpfx)tst-svc-cmp.out): New rule.
37526
37527 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37528
37529         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37530         * ctype/ctype.h [__USE_MISC]: Likewise.
37531         * dirent/dirent.h [__USE_MISC]: Likewise.
37532         * grp/grp.h [__USE_MISC]: Likewise.
37533         * io/fcntl.h [__USE_MISC]: Likewise.
37534         * io/sys/stat.h [__USE_MISC]: Likewise.
37535         * libio/stdio.h [__USE_MISC]: Likewise.
37536         * posix/unistd.h [__USE_MISC]: Likewise.
37537         * pwd/pwd.h [__USE_MISC]: Likewise.
37538         * stdlib.h [__USE_MISC]: Likewise.
37539         * string/bits/string2.h [__USE_MISC]: Likewise.
37540         * string/string.h [__USE_MISC]: Likewise.
37541         * time/time.h [__USE_MISC]: Likewise.
37542
37543 2014-02-13  Andreas Schwab  <schwab@suse.de>
37544
37545         [BZ #16574]
37546         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37547         second answer buffer if it was separately allocated.
37548
37549 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37550
37551         * sysdeps/mips/math-tests.h: Include <features.h>.
37552         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37553         (ROUNDING_TESTS_long_double): Do not define.
37554         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37555         (EXCEPTION_TESTS_long_double): Likewise.
37556         * sysdeps/mips/mips64/libm-test-ulps: Update.
37557
37558         * include/features.h (__USE_BSD): Remove macro definitions.
37559         (__USE_SVID): Likewise.
37560         (_BSD_SOURCE): Likewise.
37561         (_SVID_SOURCE): Likewise.
37562         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37563         from definition of _DEFAULT_SOURCE.
37564         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37565         [_DEFAULT_SOURCE].
37566         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37567         * bits/mman.h [__USE_BSD]: Likewise.
37568         * bits/termios.h [__USE_BSD]: Likewise.
37569         * bits/waitstatus.h [__USE_BSD]: Likewise.
37570         * ctype/ctype.h [__USE_SVID]: Likewise.
37571         * dirent/dirent.h [__USE_BSD]: Likewise.
37572         * grp/grp.h [__USE_SVID]: Likewise.
37573         [__USE_BSD]: Likewise.
37574         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37575         * io/fcntl.h [__USE_BSD]: Likewise.
37576         * io/ftw.h [__USE_BSD]: Likewise.
37577         * io/sys/stat.h [__USE_BSD]: Likewise.
37578         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37579         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37580         * libio/stdio.h [__USE_SVID]: Likewise.
37581         [__USE_BSD]: Likewise.
37582         * math/math.h [__USE_SVID]: Likewise.
37583         [__USE_BSD]: Likewise.
37584         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37585         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37586         * misc/search.h [__USE_SVID]: Likewise.
37587         * misc/sys/mman.h [__USE_BSD]: Likewise.
37588         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37589         * misc/sys/uio.h [__USE_BSD]: Likewise.
37590         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37591         * posix/glob.h [__USE_BSD]: Likewise.
37592         * posix/regex.h [__USE_BSD]: Likewise.
37593         * posix/sys/types.h [__USE_BSD]: Likewise.
37594         [__USE_SVID]: Likewise.
37595         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37596         * posix/sys/wait.h [__USE_BSD]: Likewise.
37597         [__USE_SVID]: Likewise.
37598         * posix/unistd.h [__USE_BSD]: Likewise.
37599         [__USE_SVID]: Likewise.
37600         * pwd/pwd.h [__USE_SVID]: Likewise.
37601         * resolv/netdb.h [__USE_BSD]: Likewise.
37602         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37603         * signal/signal.h [__USE_BSD]: Likewise.
37604         [__USE_SVID]: Likewise.
37605         * socket/sys/socket.h [__USE_BSD]: Likewise.
37606         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37607         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37608         [__USE_SVID]: Likewise.
37609         * string/bits/string2.h [__USE_BSD]: Likewise.
37610         [__USE_SVID]: Likewise.
37611         * string/bits/string3.h [__USE_BSD]: Likewise.
37612         * string/endian.h [__USE_BSD]: Likewise.
37613         * string/string.h [__USE_SVID]: Likewise.
37614         [__USE_BSD]: Likewise.
37615         * string/strings.h [__USE_BSD]: Likewise.
37616         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37617         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37618         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37619         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37620         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37621         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37622         Likewise.
37623         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37624         Likewise.
37625         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37626         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37627         Likewise.
37628         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37629         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37630         Likewise.
37631         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37632         Likewise.
37633         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37634         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37635         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37636         Likewise.
37637         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37638         Likewise.
37639         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37640         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37641         * termios/termios.h [__USE_BSD]: Likewise.
37642         * time/sys/time.h [__USE_BSD]: Likewise.
37643         * time/time.h [__USE_BSD]: Likewise.
37644         [__USE_SVID]: Likewise.
37645
37646         * Makefile (subdir_targets): Remove subdir_lint.out.
37647
37648         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37649         (do-tst-printf): Likewise.
37650         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37651         $(objpfx)tst-printf.out.
37652
37653         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37654
37655         * Makerules (check-abi-%): Change target to
37656         $(objpfx)check-abi-%.out.
37657         (check-abi target): Update dependencies.
37658         (check-abi-pattern variable): Redirect output of diff to $@.
37659         (check-abi variable): Likewise.
37660         * elf/Makefile (check-abi): Update dependencies.
37661
37662         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37663         unused.
37664         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37665         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37666         subnormal range.
37667         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37668         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37669         value has largest subnormal exponent.
37670         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37671         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37672         * sysdeps/aarch64/soft-fp/sfp-machine.h
37673         (_FP_TININESS_AFTER_ROUNDING): New macro.
37674         * sysdeps/alpha/soft-fp/sfp-machine.h
37675         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37676         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37677         Likewise.
37678         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37679         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37680         * sysdeps/mips/soft-fp/sfp-machine.h
37681         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37682         * sysdeps/powerpc/soft-fp/sfp-machine.h
37683         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37684         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37685         Likewise.
37686         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37687         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37688         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37689         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37690         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37691         Likewise.
37692
37693 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37694
37695         [BZ #16545]
37696         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37697         model 1.
37698
37699 2014-02-12  Richard Henderson  <rth@redhat.com>
37700
37701         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37702         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37703         * sysdeps/unix/sysv/linux/alpha: Move directory from
37704         ports/sysdeps/unix/sysv/linux/alpha.
37705         * README: Update listing for alpha-*-linux-gnu.
37706
37707 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37708
37709         * include/features.h: Update comment documenting feature test
37710         macros.
37711         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37712         _DEFAULT_SOURCE.
37713         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37714         (_SVID_SOURCE): Likewise.
37715         (_DEFAULT_SOURCE): Update description of default features.
37716         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37717         with _GNU_SOURCE.
37718         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37719         (S_ISVTX): Likewise.
37720         * manual/math.texi (Mathematical Constants): Likewise.
37721         * manual/signal.texi (Interrupted Primitives): Likewise.
37722         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37723         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37724         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37725         Don't refer to _SVID_SOURCE in warning text.
37726
37727         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37728
37729         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37730         already defined.
37731         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37732         * sysdeps/mips/dl-lookup.c: Remove.
37733         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37734
37735 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37736
37737         [BZ #16447]
37738         * math/auto-libm-test-in: Add testcase for expl.
37739         * math/auto-libm-test-out: Regenerate.
37740         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37741         calculation of unsafe.
37742         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37743
37744 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37745
37746         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37747         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37748         ports/sysdeps/unix/sysv/linux/aarch64.
37749         * README: Update listing for aarch64*-*-linux-gnu.
37750
37751 2014-02-11  Will Newton  <will.newton@linaro.org>
37752
37753         * manual/probes.texi (Mathematical Function Probes): Use
37754         "triggered" instead of "hit".
37755
37756         * manual/probes.texi (Internal Probes): Add documentation
37757         of setjmp, longjmp and longjmp_target probes.
37758
37759         * include/stap-probe.h: Add comment about probe argument
37760         format.
37761
37762         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37763         definition.  (tr_where, tr_freehook, tr_mallochook,
37764         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37765
37766 2014-02-11  David S. Miller  <davem@davemloft.net>
37767
37768         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37769         processing int_tests.
37770
37771 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37772
37773         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37774         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37775         * sysdeps/unix/sysv/linux/mips: Move directory from
37776         ports/sysdeps/unix/sysv/linux/mips.
37777         * README: Update listing for mips-*-linux-gnu and
37778         mips64-*-linux-gnu.
37779
37780 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37781
37782         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37783         * sysdeps/unix/sysv/linux/m68k: Move directory from
37784         ports/sysdeps/unix/sysv/linux/m68k.
37785         * README: Update listing for m68k-*-linux-gnu.
37786
37787 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37788
37789         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37790         * sysdeps/unix/sysv/linux/generic: Move directory from
37791         ports/sysdeps/unix/sysv/linux/generic.
37792         * sysdeps/unix/sysv/linux/tile: Move directory from
37793         ports/sysdeps/unix/sysv/linux/tile.
37794         * README: Update listing for tile*-*-linux-gnu.
37795
37796 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37797
37798         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37799         __builtin_expect.
37800         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37801         * catgets/open_catalog.c (__open_catalog): Likewise.
37802         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37803         * debug/confstr_chk.c: Likewise.
37804         * debug/fread_chk.c (__fread_chk): Likewise.
37805         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37806         * debug/getgroups_chk.c: Likewise.
37807         * debug/mbsnrtowcs_chk.c: Likewise.
37808         * debug/mbsrtowcs_chk.c: Likewise.
37809         * debug/mbstowcs_chk.c: Likewise.
37810         * debug/memcpy_chk.c: Likewise.
37811         * debug/memmove_chk.c: Likewise.
37812         * debug/mempcpy_chk.c: Likewise.
37813         * debug/memset_chk.c: Likewise.
37814         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37815         * debug/strcat_chk.c (__strcat_chk): Likewise.
37816         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37817         * debug/strncat_chk.c (__strncat_chk): Likewise.
37818         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37819         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37820         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37821         * debug/wcpncpy_chk.c: Likewise.
37822         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37823         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37824         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37825         * debug/wcsncpy_chk.c: Likewise.
37826         * debug/wcsnrtombs_chk.c: Likewise.
37827         * debug/wcsrtombs_chk.c: Likewise.
37828         * debug/wcstombs_chk.c: Likewise.
37829         * debug/wmemcpy_chk.c: Likewise.
37830         * debug/wmemmove_chk.c: Likewise.
37831         * debug/wmempcpy_chk.c: Likewise.
37832         * debug/wmemset_chk.c: Likewise.
37833         * dirent/scandirat.c (SCANDIRAT): Likewise.
37834         * dlfcn/dladdr1.c (dladdr1): Likewise.
37835         * dlfcn/dladdr.c (dladdr): Likewise.
37836         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37837         * dlfcn/dlerror.c (__dlerror): Likewise.
37838         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37839         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37840         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37841         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37842         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37843         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37844         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37845         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37846         Likewise.
37847         * elf/dl-conflict.c: Likewise.
37848         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37849         * elf/dl-dst.h: Likewise.
37850         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37851         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37852         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37853         * elf/dl-init.c (call_init, _dl_init): Likewise.
37854         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37855         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37856         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37857         Likewise.
37858         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37859         Likewise.
37860         * elf/dl-minimal.c (__libc_memalign): Likewise.
37861         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37862         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37863         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37864         * elf/dl-sym.c (do_sym): Likewise.
37865         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37866         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37867         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37868         * elf/dl-writev.h (_dl_writev): Likewise.
37869         * elf/ldconfig.c (search_dir): Likewise.
37870         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37871         (dl_main): Likewise.
37872         * elf/setup-vdso.h (setup_vdso): Likewise.
37873         * grp/compat-initgroups.c (compat_call): Likewise.
37874         * grp/fgetgrent.c (fgetgrent): Likewise.
37875         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37876         * grp/putgrent.c (putgrent): Likewise.
37877         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37878         Likewise.
37879         * hurd/hurdinit.c: Likewise.
37880         * iconvdata/8bit-gap.c (struct): Likewise.
37881         * iconvdata/ansi_x3.110.c : Likewise.
37882         * iconvdata/big5.c : Likewise.
37883         * iconvdata/big5hkscs.c : Likewise.
37884         * iconvdata/cp1255.c: Likewise.
37885         * iconvdata/cp1258.c : Likewise.
37886         * iconvdata/cp932.c : Likewise.
37887         * iconvdata/euc-cn.c: Likewise.
37888         * iconvdata/euc-jisx0213.c : Likewise.
37889         * iconvdata/euc-jp.c: Likewise.
37890         * iconvdata/euc-jp-ms.c : Likewise.
37891         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37892         * iconvdata/gb18030.c : Likewise.
37893         * iconvdata/gbbig5.c (const): Likewise.
37894         * iconvdata/gbgbk.c: Likewise.
37895         * iconvdata/gbk.c : Likewise.
37896         * iconvdata/ibm1364.c : Likewise.
37897         * iconvdata/ibm930.c : Likewise.
37898         * iconvdata/ibm932.c: Likewise.
37899         * iconvdata/ibm933.c : Likewise.
37900         * iconvdata/ibm935.c : Likewise.
37901         * iconvdata/ibm937.c : Likewise.
37902         * iconvdata/ibm939.c : Likewise.
37903         * iconvdata/ibm943.c: Likewise.
37904         * iconvdata/iso_11548-1.c: Likewise.
37905         * iconvdata/iso-2022-cn.c : Likewise.
37906         * iconvdata/iso-2022-cn-ext.c : Likewise.
37907         * iconvdata/iso-2022-jp-3.c: Likewise.
37908         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37909         * iconvdata/iso-2022-kr.c : Likewise.
37910         * iconvdata/iso646.c (gconv_end): Likewise.
37911         * iconvdata/iso_6937-2.c : Likewise.
37912         * iconvdata/iso_6937.c : Likewise.
37913         * iconvdata/iso8859-1.c: Likewise.
37914         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37915         * iconvdata/shift_jisx0213.c : Likewise.
37916         * iconvdata/sjis.c : Likewise.
37917         * iconvdata/t.61.c : Likewise.
37918         * iconvdata/tcvn5712-1.c : Likewise.
37919         * iconvdata/tscii.c: Likewise.
37920         * iconvdata/uhc.c : Likewise.
37921         * iconvdata/unicode.c (gconv_end): Likewise.
37922         * iconvdata/utf-16.c (gconv_end): Likewise.
37923         * iconvdata/utf-32.c (gconv_end): Likewise.
37924         * iconvdata/utf-7.c (base64): Likewise.
37925         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37926         * iconv/gconv_close.c (__gconv_close): Likewise.
37927         * iconv/gconv_open.c (__gconv_open): Likewise.
37928         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37929         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37930         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37931         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37932         (ucs4le_internal_loop_single): Likewise.
37933         * iconv/iconv.c (iconv): Likewise.
37934         * iconv/iconv_close.c: Likewise.
37935         * iconv/loop.c (SINGLE): Likewise.
37936         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37937         * include/atomic.h: Likewise.
37938         * inet/inet6_option.c (option_alloc): Likewise.
37939         * intl/bindtextdom.c (set_binding_values): Likewise.
37940         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37941         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37942         * intl/localealias.c (read_alias_file): Likewise.
37943         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37944         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37945         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37946         * libio/fmemopen.c (fmemopen): Likewise.
37947         * libio/iofgets.c (_IO_fgets): Likewise.
37948         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37949         * libio/iofgetws.c (fgetws): Likewise.
37950         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37951         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37952         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37953         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37954         * locale/findlocale.c (_nl_find_locale): Likewise.
37955         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37956         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37957         Likewise.
37958         * locale/setlocale.c (setlocale): Likewise.
37959         * login/programs/pt_chown.c (main): Likewise.
37960         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37961         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37962         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37963         (mmap, mmap64, mremap, munmap): Likewise.
37964         * math/e_exp2l.c: Likewise.
37965         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37966         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37967         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37968         * math/s_catan.c (__catan): Likewise.
37969         * math/s_catanf.c (__catanf): Likewise.
37970         * math/s_catanh.c (__catanh): Likewise.
37971         * math/s_catanhf.c (__catanhf): Likewise.
37972         * math/s_catanhl.c (__catanhl): Likewise.
37973         * math/s_catanl.c (__catanl): Likewise.
37974         * math/s_ccosh.c (__ccosh): Likewise.
37975         * math/s_ccoshf.c (__ccoshf): Likewise.
37976         * math/s_ccoshl.c (__ccoshl): Likewise.
37977         * math/s_cexp.c (__cexp): Likewise.
37978         * math/s_cexpf.c (__cexpf): Likewise.
37979         * math/s_cexpl.c (__cexpl): Likewise.
37980         * math/s_clog10.c (__clog10): Likewise.
37981         * math/s_clog10f.c (__clog10f): Likewise.
37982         * math/s_clog10l.c (__clog10l): Likewise.
37983         * math/s_clog.c (__clog): Likewise.
37984         * math/s_clogf.c (__clogf): Likewise.
37985         * math/s_clogl.c (__clogl): Likewise.
37986         * math/s_csin.c (__csin): Likewise.
37987         * math/s_csinf.c (__csinf): Likewise.
37988         * math/s_csinh.c (__csinh): Likewise.
37989         * math/s_csinhf.c (__csinhf): Likewise.
37990         * math/s_csinhl.c (__csinhl): Likewise.
37991         * math/s_csinl.c (__csinl): Likewise.
37992         * math/s_csqrt.c (__csqrt): Likewise.
37993         * math/s_csqrtf.c (__csqrtf): Likewise.
37994         * math/s_csqrtl.c (__csqrtl): Likewise.
37995         * math/s_ctan.c (__ctan): Likewise.
37996         * math/s_ctanf.c (__ctanf): Likewise.
37997         * math/s_ctanh.c (__ctanh): Likewise.
37998         * math/s_ctanhf.c (__ctanhf): Likewise.
37999         * math/s_ctanhl.c (__ctanhl): Likewise.
38000         * math/s_ctanl.c (__ctanl): Likewise.
38001         * math/w_pow.c: Likewise.
38002         * math/w_powf.c: Likewise.
38003         * math/w_powl.c: Likewise.
38004         * math/w_scalb.c (sysv_scalb): Likewise.
38005         * math/w_scalbf.c (sysv_scalbf): Likewise.
38006         * math/w_scalbl.c (sysv_scalbl): Likewise.
38007         * misc/error.c (error_tail): Likewise.
38008         * misc/pselect.c (__pselect): Likewise.
38009         * nis/nis_callback.c (__nis_create_callback): Likewise.
38010         * nis/nis_call.c (__nisfind_server): Likewise.
38011         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38012         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38013         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38014         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38015         * nis/nis_lookup.c (nis_lookup): Likewise.
38016         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38017         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38018         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38019         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38020         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38021         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38022         * nis/nss_compat/compat-initgroups.c (add_group)
38023         (internal_getgrent_r): Likewise.
38024         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38025         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38026         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38027         (internal_getspnam_r): Likewise.
38028         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38029         (_nss_nis_getaliasbyname_r): Likewise.
38030         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38031         (_nss_nis_getntohost_r): Likewise.
38032         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38033         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38034         (_nss_nis_getgrgid_r): Likewise.
38035         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38036         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38037         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38038         (_nss_nis_gethostbyname4_r): Likewise.
38039         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38040         (initgroups_netid): Likewise.
38041         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38042         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38043         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38044         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38045         (_nss_nis_getprotobynumber_r): Likewise.
38046         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38047         (_nss_nis_getsecretkey): Likewise.
38048         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38049         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38050         (_nss_nis_getpwuid_r): Likewise.
38051         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38052         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38053         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38054         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38055         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38056         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38057         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38058         Likewise.
38059         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38060         (_nss_nisplus_getntohost_r): Likewise.
38061         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38062         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38063         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38064         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38065         Likewise.
38066         * nis/nss_nisplus/nisplus-initgroups.c
38067         (_nss_nisplus_initgroups_dyn): Likewise.
38068         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38069         (_nss_nisplus_getnetbyaddr_r): Likewise.
38070         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38071         (_nss_nisplus_getprotobynumber_r): Likewise.
38072         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38073         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38074         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38075         Likewise.
38076         * nis/nss_nisplus/nisplus-service.c
38077         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38078         (_nss_nisplus_getservbyport_r): Likewise.
38079         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38080         (_nss_nisplus_getspnam_r): Likewise.
38081         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38082         Likewise.
38083         * nscd/aicache.c (addhstaiX): Likewise.
38084         * nscd/cache.c (cache_search, prune_cache): Likewise.
38085         * nscd/connections.c (register_traced_file, send_ro_fd)
38086         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38087         (main_loop_epoll): Likewise.
38088         * nscd/grpcache.c (addgrbyX): Likewise.
38089         * nscd/hstcache.c (addhstbyX): Likewise.
38090         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38091         * nscd/mem.c (gc, mempool_alloc): Likewise.
38092         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38093         (addinnetgrX): Likewise.
38094         * nscd/nscd-client.h (__nscd_acquire_maplock)
38095         (__nscd_drop_map_ref): Likewise.
38096         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38097         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38098         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38099         Likewise.
38100         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38101         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38102         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38103         (__nscd_get_map_ref): Likewise.
38104         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38105         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38106         Likewise.
38107         * nscd/pwdcache.c (addpwbyX): Likewise.
38108         * nscd/selinux.c (preserve_capabilities): Likewise.
38109         * nscd/servicescache.c (addservbyX): Likewise.
38110         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38111         * posix/fnmatch.c (fnmatch): Likewise.
38112         * posix/getopt.c (_getopt_internal_r): Likewise.
38113         * posix/glob.c (glob, glob_in_dir): Likewise.
38114         * posix/wordexp.c (exec_comm_child): Likewise.
38115         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38116         (getanswer_r, gaih_getanswer_slice): Likewise.
38117         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38118         * resolv/res_init.c: Likewise.
38119         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38120         * resolv/res_query.c (__libc_res_nquery): Likewise.
38121         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38122         Likewise.
38123         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38124         * stdio-common/perror.c (perror): Likewise.
38125         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38126         * stdio-common/tmpnam.c (tmpnam): Likewise.
38127         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38128         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38129         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38130         Likewise.
38131         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38132         * stdlib/putenv.c (putenv): Likewise.
38133         * stdlib/setenv.c (__add_to_environ): Likewise.
38134         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38135         * stdlib/strtol_l.c (INTERNAL): Likewise.
38136         * string/memmem.c (memmem): Likewise.
38137         * string/strerror.c (strerror): Likewise.
38138         * string/strnlen.c (__strnlen): Likewise.
38139         * string/test-memmem.c (simple_memmem): Likewise.
38140         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38141         * sunrpc/pm_getport.c (__get_socket): Likewise.
38142         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38143         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38144         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38145         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38146         Likewise.
38147         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38148         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38149         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38150         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38151         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38152         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38153         Likewise.
38154         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38155         Likewise.
38156         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38157         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38158         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38159         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38160         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38161         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38162         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38163         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38164         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38165         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38166         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38167         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38168         Likewise.
38169         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38170         Likewise.
38171         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38172         Likewise.
38173         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38174         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38175         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38176         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38177         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38178         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38179         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38180         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38181         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38182         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38183         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38184         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38185         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38186         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38187         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38188         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38189         Likewise.
38190         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38191         Likewise.
38192         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38193         Likewise.
38194         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38195         Likewise.
38196         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38197         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38198         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38199         Likewise.
38200         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38201         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38202         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38203         * sysdeps/posix/sleep.c: Likewise.
38204         * sysdeps/posix/tempname.c: Likewise.
38205         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38206         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38207         Likewise.
38208         * sysdeps/powerpc/powerpc32/dl-machine.h
38209         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38210         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38211         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38212         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38213         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38214         Likewise.
38215         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38216         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38217         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38218         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38219         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38220         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38221         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38222         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38223         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38224         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38225         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38226         (elf_machine_lazy_rel): Likewise.
38227         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38228         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38229         (elf_machine_lazy_rel): Likewise.
38230         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38231         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38232         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38233         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38234         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38235         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38236         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38237         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38238         Likewise.
38239         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38240         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38241         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38242         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38243         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38244         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38245         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38246         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38247         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38248         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38249         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38250         Likewise.
38251         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38252         (__posix_fallocate64_l64): Likewise.
38253         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38254         (posix_fallocate): Likewise.
38255         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38256         Likewise.
38257         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38258         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38259         (getifaddrs_internal): Likewise.
38260         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38261         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38262         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38263         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38264         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38265         (__posix_fallocate64_l64): Likewise.
38266         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38267         Likewise.
38268         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38269         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38270         (__get_clockfreq): Likewise.
38271         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38272         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38273         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38274         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38275         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38276         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38277         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38278         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38279         Likewise.
38280         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38281         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38282         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38283         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38284         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38285         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38286         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38287         Likewise.
38288         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38289         (posix_fallocate): Likewise.
38290         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38291         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38292         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38293         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38294         (elf_machine_rela, elf_machine_rela_relative)
38295         (elf_machine_lazy_rel): Likewise.
38296         * time/asctime.c (asctime_internal): Likewise.
38297         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38298         * time/tzset.c (__tzset_parse_tz): Likewise.
38299         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38300         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38301         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38302         * wcsmbs/wcsmbsload.h: Likewise.
38303
38304         [BZ #15894]
38305         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38306
38307         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38308         (arena_get2): Remove THREAD_STATS conditionals.
38309         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38310         (__malloc_stats, int): Likewise.
38311
38312 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38313
38314         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38315         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38316
38317         * manual/setjmp.texi: Fix typos/grammar errors.
38318
38319         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38320         Only return early when n is <= 0.  Delete unused return statement.
38321
38322         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38323         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38324         * debug/tst-longjmp_chk3.c: New file.
38325
38326         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38327         (test_main): Replace code with set_fortify_handler call.
38328         * debug/test-strcpy_chk.c: Likewise.
38329         * debug/tst-chk1.c: Likewise.
38330         * debug/tst-longjmp_chk.c: Likewise.
38331         * test-skeleton.c: Include fcntl.h & paths.h
38332         (set_fortify_handler): Define.
38333
38334         * debug/tst-longjmp_chk.c: Add header comment and include
38335         ../test-skeleton.c.
38336         (do_test): Mark static.
38337         (TEST_FUNCTION): Define.
38338
38339         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38340         (IP_PMTUDISC_INTERFACE): Likewise.
38341         (IP_MULTICAST_IF): Likewise.
38342         (IP_MULTICAST_TTL): Likewise.
38343         (IP_MULTICAST_LOOP): Likewise.
38344         (IP_ADD_MEMBERSHIP): Likewise.
38345         (IP_DROP_MEMBERSHIP): Likewise.
38346         (IP_UNBLOCK_SOURCE): Likewise.
38347         (IP_BLOCK_SOURCE): Likewise.
38348         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38349         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38350         (IP_MSFILTER): Likewise.
38351         (MCAST_JOIN_GROUP): Likewise.
38352         (MCAST_BLOCK_SOURCE): Likewise.
38353         (MCAST_UNBLOCK_SOURCE): Likewise.
38354         (MCAST_LEAVE_GROUP): Likewise.
38355         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38356         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38357         (MCAST_MSFILTER): Likewise.
38358         (IP_MULTICAST_ALL): Likewise.
38359         (IP_UNICAST_IF): Likewise.
38360
38361         * timezone/Makefile: Delete $(have-ksh) check.
38362         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38363         * timezone/tzselect.ksh: Add +x mode bits.
38364
38365         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38366         (ANON_INODE_FS_MAGIC): Likewise.
38367         (BDEVFS_MAGIC): Likewise.
38368         (BINFMTFS_MAGIC): Likewise.
38369         (BTRFS_TEST_MAGIC): Likewise.
38370         (CRAMFS_MAGIC_WEND): Likewise.
38371         (DEBUGFS_MAGIC): Likewise.
38372         (ECRYPTFS_SUPER_MAGIC): Likewise.
38373         (EXT3_SUPER_MAGIC): Likewise.
38374         (EXT4_SUPER_MAGIC): Likewise.
38375         (FUTEXFS_SUPER_MAGIC): Likewise.
38376         (HOSTFS_SUPER_MAGIC): Likewise.
38377         (HUGETLBFS_MAGIC): Likewise.
38378         (MINIX3_SUPER_MAGIC): Likewise.
38379         (MTD_INODE_FS_MAGIC): Likewise.
38380         (NILFS_SUPER_MAGIC): Likewise.
38381         (OPENPROM_SUPER_MAGIC): Likewise.
38382         (PIPEFS_MAGIC): Likewise.
38383         (PSTOREFS_MAGIC): Likewise.
38384         (QNX6_SUPER_MAGIC): Likewise.
38385         (RAMFS_MAGIC): Likewise.
38386         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38387         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38388         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38389         (SECURITYFS_MAGIC): Likewise.
38390         (SELINUX_MAGIC): Likewise.
38391         (SMACK_MAGIC): Likewise.
38392         (SOCKFS_MAGIC): Likewise.
38393         (SQUASHFS_MAGIC): Likewise.
38394         (STACK_END_MAGIC): Likewise.
38395         (TMPFS_MAGIC): Likewise.
38396         (USBDEVICE_SUPER_MAGIC): Likewise.
38397         (V9FS_MAGIC): Likewise.
38398         (XENFS_SUPER_MAGIC): Likewise.
38399         (CRAMFS_MAGIC): Fix typo in comment.
38400         (EXT2_SUPER_MAGIC): Update comment.
38401         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38402
38403 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38404
38405         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38406         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38407         * sysdeps/unix/sysv/linux/arm: Move directory from
38408         ports/sysdeps/unix/sysv/linux/arm.
38409         * README: Update listing for arm-*-linux-gnueabi.
38410
38411         * README: Remove mention of am33.
38412
38413 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38414
38415         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38416         than the comma operator, to avoid "rhs of comma has no effect"
38417         compiler warnings.
38418         (__sigfillset, __sigandset, __sigorset): Likewise.
38419         * include/signal.h (__sigemptyset): Likewise.
38420         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38421
38422 2014-02-07  Allan McRae  <allan@archlinux.org>
38423
38424         * version.h (RELEASE): Set to "development".
38425         (VERSION): Set to "2.19.90"
38426         * NEWS: Add 2.20 section.
38427
38428 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38429
38430         [BZ #16529]
38431         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38432
38433 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38434
38435         * manual/contrib.texi: Update entry for Carlos O'Donell,
38436         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38437
38438 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38439
38440         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38441
38442         * sysdeps/unix/sysv/linux/kernel-features.h
38443         [__LINUX_KERNEL_VERSION >= 0x020621]
38444         (__ASSUME_PROC_PID_TASK_COMM): Define.
38445
38446 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38447
38448         [BZ #16398]
38449         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38450         conversion when destination buffer does not have enough space.
38451         * libio/tst-ftell-partial-wide.c: New test case.
38452         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38453
38454         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38455         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38456         Leonard and Allan McRae.
38457
38458 2014-02-04  David S. Miller  <davem@davemloft.net>
38459
38460         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38461         32-bit.
38462
38463 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38464
38465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38466         New file
38467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38468         New file
38469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38470         New file.
38471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38472         New file.
38473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38474         New file.
38475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38476         New file.
38477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38478         New file.
38479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38480         New file.
38481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38482         New file.
38483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38484         New file.
38485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38486         New file.
38487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38488         New file.
38489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38490         New file.
38491
38492 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38493
38494         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38495         * shlib-versions: Likewise.
38496
38497 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38498             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38499
38500         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38501         (abilist-pattern): New variable, set to %-le.abilist.
38502
38503         * Makerules (abilist-pattern): New variable.
38504         (vpath): Use $(abilist-pattern) in place of %.abilist.
38505         (check-abi-% pattern rule): Likewise.
38506         (check-abi, update-abi): Likewise.
38507
38508 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38509
38510         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38511
38512 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38513
38514         * manual/startup.texi: Add next, previous, and top entries for
38515         the `Program Arguments' and `Environment Variables' nodes.
38516
38517 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38518
38519         * manual/macros.texi: Add comments before MTASC-safety macros.
38520
38521         * manual/users.texi: Document MTASC-safety properties.
38522
38523         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38524         (pthread_getspecific, pthread_setspecific): Format with
38525         @deftypefun, and add @safety note.
38526         * manual/signal.texi: Move comments that analyze the above
38527         functions to their home place.
38528
38529 2014-02-03  Allan McRae  <allan@archlinux.org>
38530
38531         * po/sl.po: Update Slovenian translation from translation project.
38532
38533 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38534
38535         * manual/time.texi (timegm): Add missing blank after @c.
38536         Reported by Joseph Myers <joseph@codesourcery.com>.
38537
38538 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38539
38540         * manual/check-safety.sh: New.
38541         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38542
38543         * manual/terminal.texi: Document MTASC-safety properties.
38544
38545         * manual/filesys.texi: Document MTASC-safety properties.
38546
38547         * manual/errno.texi: Document MTASC-safety properties.
38548
38549         * manual/intro.texi: Document safety identifiers and
38550         conditionals.
38551
38552         * manual/string.texi (wcstok): Fix prototype.
38553         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38554
38555         * manual/time.texi: Document MTASC-safety properties.
38556
38557         * manual/string.texi: Document MTASC-safety properties.
38558
38559         * manual/threads.texi: Document MTASC-safety properties.
38560
38561         * manual/stdio.texi: Document MTASC-safety properties.
38562
38563         * manual/syslog.texi: Document MTASC-safety properties.
38564
38565         * manual/sysinfo.texi: Document MTASC-safety properties.
38566
38567         * manual/startup.texi: Document MTASC-safety properties.
38568
38569         * manual/socket.texi: Document MTASC-safety properties.
38570
38571         * manual/signal.texi: Document MTASC-safety properties.
38572
38573 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38574
38575         * manual/setjmp.texi: Document MTASC-safety properties.
38576
38577         * manual/search.texi: Document MTASC-safety properties.
38578
38579         * manual/resource.texi: Document MTASC-safety properties.
38580
38581         * manual/process.texi: Document MTASC-safety properties.
38582
38583         * manual/platform.texi: Document MTASC-safety properties.
38584
38585         * manual/pipe.texi: Document MTASC-safety properties.
38586
38587         * manual/pattern.texi: Document MTASC-safety properties.
38588
38589         * manual/message.texi: Document MTASC-safety properties.
38590
38591         [BZ #12751]
38592         * manual/memory.texi: Document MTASC-safety properties.
38593
38594         * manual/math.texi: Document MTASC-safety properties.
38595
38596         * manual/locale.texi: Document MTASC-safety properties.
38597
38598         * manual/llio.texi: Document MTASC-safety properties.
38599
38600         * manual/libdl.texi: New.
38601
38602         * manual/lang.texi: Document MTASC-safety properties.
38603
38604         * manual/job.texi: Document MTASC-safety properties.
38605
38606         * manual/getopt.texi: Document MTASC-safety properties.
38607
38608         * manual/ctype.texi: Document MTASC-safety properties.
38609
38610 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38611
38612         [BZ #16046]
38613         * csu/libc-tls.c (static_map): Remove variable.
38614         (__libc_setup_tls): Use main executable's link map for TLS data.
38615         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38616         casing for LM_ID_BASE and GL(dl_nns).
38617         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38618         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38619         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38620         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38621         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38622         member.
38623         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38624         l_phnum members.
38625
38626 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38627
38628         * manual/debug.texi: Document MTASC-safety properties.
38629
38630 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38631
38632         [BZ #16510]
38633         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38634         of __x86_64__ when disabling x87 inline functions.
38635
38636 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38637
38638         * manual/charset.texi: Document MTASC-safety properties.
38639
38640         * manual/crypt.texi: Document MTASC-safety properties.
38641
38642         * manual/conf.texi: Document MTASC-safety properties.
38643
38644         * manual/arith.texi: Document MTASC-safety properties.
38645
38646         * manual/argp.texi: Document MTASC-safety properties.
38647
38648         * manual/macros.texi: Introduce macros to document multi
38649         thread, asynchronous signal and asynchronous cancellation
38650         safety properties.
38651         * manual/intro.texi: Introduce the properties themselves.
38652
38653 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38654
38655         * sysdeps/sh/sh4/Makefile: New file.
38656
38657 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38658
38659         * math/gen-libm-test.pl ($srcdir): New variable.
38660         ($auto_input): Use it.
38661
38662 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38663
38664         [BZ #16506]
38665         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38666         access beyond array bounds when parsing netgroups file.
38667
38668         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38669         the old buffer before realloc.
38670
38671 2014-01-27  Allan McRae  <allan@archlinux.org>
38672
38673         * po/fr.po: Update French translation from translation project.
38674
38675 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38676
38677         * sysdeps/sh/libm-test-ulps: Regenerate.
38678
38679 2014-01-24  David S. Miller  <davem@davemloft.net>
38680
38681         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38682
38683 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38684
38685         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38686         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38687
38688 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38689
38690         [BZ #16474]
38691         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38692         string pointers after reallocation.
38693
38694 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38695
38696         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38697         __SH4A__ instead of __SH_FPU_ANY__.
38698
38699 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38700
38701         * sysdeps/sh/fpu_control.h: New file.
38702         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38703         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38704         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38705         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38706         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38707         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38708         * sysdeps/sh/sys/ucontext.h: Remove.
38709         * sysdeps/sh/sys: Remove directory.
38710
38711 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38712
38713         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38714         s390/sys/ucontext.h.
38715         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38716         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38717
38718 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38719
38720         [BZ #15605]
38721         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38722
38723 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38724
38725         [BZ#16431]
38726         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38727         Adjust the vDSO correctly for internal calls.
38728         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38729
38730 2014-01-20  Allan McRae  <allan@archlinux.org>
38731
38732         * po/ca.po: Update Catalan translation from translation project.
38733
38734 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38735
38736         * sysdeps/s390/sotruss-lib.c: New file.
38737
38738 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38739
38740         [BZ#16430]
38741         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38742         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38743         local calls issues by not having a PLT stub required for IFUNC calls.
38744         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38745
38746 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38747
38748         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38749         * math/test-fpucw-static.c: Likewise.
38750
38751 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38752
38753         [BZ #16453]
38754         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38755
38756 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38757
38758         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38759         implementation for powerpc.
38760
38761 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38762
38763         [BZ #14782]
38764         * sysdeps/posix/system.c (__libc_system): Do not enable
38765         asynchronous cancellation.
38766
38767 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38768
38769         [BZ #16427]
38770         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38771         handling only for numbers special also in the IEEE case.
38772
38773 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38774
38775         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38776
38777 2014-01-11  Allan McRae  <allan@archlinux.org>
38778
38779         * po/bg.po: Update Bulgarian translation from translation project.
38780
38781         * po/de.po: Update German translation from translation project.
38782
38783 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38784
38785         * sysdeps/generic/gcc-compat.h: New file.
38786
38787 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38788
38789         * benchtests/asin-inputs: Correct slow inputs.
38790         * benchtests/acos-inputs: Likewise.
38791
38792 2014-01-10  Allan McRae  <allan@archlinux.org>
38793
38794         * po:sv.po: Update Swedish translation from translation project.
38795
38796         * po/vi.po: Update Vietnamese translation from translation project.
38797
38798         * po/eo.po: Update Esperanto translation from translation project.
38799
38800         * po/cs.po: Update Czech translation from translation project.
38801
38802         * po/nl.po: Update Dutch translation from translation project.
38803
38804         * po/pl.po: Update Polish translation from translation project.
38805
38806         * po/ru.po: Update Russian translation from translation project.
38807
38808         * po/uk.po: Update Ukrainian translation from translation project.
38809
38810 2014-01-08  Brooks Moses  <bmoses@google.com>
38811
38812         * elf/dl-load.c: Fix comment typo.
38813
38814 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38815
38816         * po/header.pot: Rename to...
38817         * po/pot.header: ... this.
38818         * po/Makefile: Use pot.header.
38819
38820 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38821             Maxim Kuvyrkov  <maxim@kugelworks.com>
38822
38823         [BZ #16394]
38824         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38825         SRC and DEST against LEN.
38826
38827 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38828
38829         [BZ #16414]
38830         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38831         implementation.
38832         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38833
38834 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38835
38836         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38837
38838 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38839
38840         [BZ #16408]
38841         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38842         for large positive arguments.
38843
38844 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38845
38846         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38847
38848         * math/auto-libm-test-in: Mark various tests with
38849         xfail-rounding:ldbl-128ibm.
38850         * math/auto-libm-test-out: Regenerated.
38851
38852         [BZ #16407]
38853         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38854         Increase overflow threshold.
38855
38856 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38857
38858         [BZ #14286]
38859         * stdio-common/vfprintf.c: Check for integer overflow.
38860
38861 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38862
38863         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38864         the first argument and return value of __tls_get_addr_internal.
38865
38866 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38867
38868         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38869         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38870
38871 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38872
38873         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38874         * sysdeps/s390/rtld-global-offsets.sym: New file.
38875         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38876         GLIBC_2.19 symbol.
38877         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38878         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38879         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38880         ... this.
38881         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38882         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38883         ... this.
38884         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38885         Regenerate.
38886         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38887         Regenerate.
38888         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38889         halfs of GPRs for high_gprs contexts.
38890         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38891         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38892         field.
38893         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38894         uc_flags field.
38895         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38896         64 bit versions:
38897         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38898         for high GPRs (uc_high_gprs) and for future extensions
38899         (__reserved).
38900         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38901         for future extensions (__reserved).
38902         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38903         64 bit versions:
38904         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38905         SC_HIGHGPRS offset definition.
38906         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38907         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38908
38909         * Versions.def: Add GLIBC_2.19 for libpthread.
38910         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38911         siglongjmp for libpthread with GLIBC_2.19 symver.
38912         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38913         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38914         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38915         * sysdeps/s390/__longjmp.c: New file.
38916         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38917         * sysdeps/s390/longjmp.c: New file.
38918         * sysdeps/s390/setjmp.S: New file.
38919         * sysdeps/s390/sigjmp.S: New file.
38920         * sysdeps/s390/v1-longjmp.c: New file.
38921         * sysdeps/s390/v1-setjmp.h: New file.
38922         * sysdeps/s390/v1-sigjmp.c: New file.
38923         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38924         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38925         GLIBC_2.19 version.
38926         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38927         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38928         versioned symbols for ____longjmp_chk.
38929         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38930         Likewise.
38931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38932         Regenerate.
38933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38934         Regenerate.
38935         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38936         Regenerate.
38937         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38938         Regenerate.
38939         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38940         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38941         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38942         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38943         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38944         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38945         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38946         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38947         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38948         * sysdeps/s390/rtld-__longjmp.c: New file.
38949         * sysdeps/s390/rtld-setjmp.S: New file.
38950
38951 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38952
38953         [BZ #16400]
38954         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38955         Return -__logl (x) for small positive arguments without evaluating
38956         a polynomial.
38957
38958 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38959
38960         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38961         Rename to ...
38962         (__ptrace_peeksiginfo_args): ... this.
38963         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38964         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38965         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38966
38967 2014-01-06  Allan McRae  <allan@archlinux.org>
38968
38969         * inet/netinet/in.h: Fix typo in comment.
38970
38971 2014-01-05  Andreas Jaeger  <aj@suse.de>
38972
38973         * sysdeps/i386/fpu/libm-test-ulps: Update.
38974
38975 2014-01-05  Allan McRae  <allan@archlinux.org>
38976
38977         * po/libc.pot: Regenerated.
38978
38979         * malloc/memusagestat.c: Fix gettext call formatting.
38980
38981 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38982
38983         * nscd/nscd.c: Improve usage() output.
38984
38985 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38986
38987         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38988         * sysdeps/unix/sysv/linux/configure: Regenerated.
38989         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38990         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38991
38992 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38993
38994         [BZ #16390]
38995         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38996         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38997
38998 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38999
39000         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39001         extra tokens at end of #undef directive.
39002         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39003         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39004         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39005
39006 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39007
39008         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39009
39010         * math/auto-libm-test-in: Mark various tests with
39011         xfail-rounding:ldbl-128ibm.
39012         * math/auto-libm-test-out: Regenerated.
39013
39014 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39015
39016         [BZ #16386]
39017         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39018         numbers with subnormal high part when calculating exponent.
39019
39020         [BZ #16385]
39021         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39022         fabs.
39023
39024         [BZ #16384]
39025         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39026         M_LN2l.
39027         (__ieee754_acoshl): Use __log1pl not __log1p.
39028
39029 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39030
39031         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39032         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39033         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39034         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39035         (reused_arena, arena_get2): Convert to GNU style.
39036         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39037         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39038         (memalign_check, __malloc_set_state): Likewise.
39039         * malloc/mallocbug.c (main): Likewise.
39040         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39041         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39042         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39043         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39044         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39045         (__posix_memalign, malloc_info): Likewise.
39046         * malloc/malloc.h: Likewise.
39047         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39048         (mallochook, memalignhook, reallochook, mabort): Likewise.
39049         * malloc/mcheck.h: Likewise.
39050         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39051         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39052         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39053         * malloc/morecore.c (__default_morecore): Likewise.
39054         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39055         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39056         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39057         (print_and_abort): Likewise.
39058         * malloc/obstack.h: Likewise.
39059         * malloc/set-freeres.c (__libc_freeres): Likewise.
39060         * malloc/tst-mallocstate.c (main): Likewise.
39061         * malloc/tst-mtrace.c (main): Likewise.
39062         * malloc/tst-realloc.c (do_test): Likewise.
39063
39064 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39065
39066         [BZ #16366]
39067         * nscd/netgroupcache.c (do_notfound): New function.
39068         (addgetnetgrentX): Use it.
39069
39070         [BZ # 16365]
39071         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39072         NSS_STATUS_NOTFOUND.
39073
39074 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39075
39076         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39078
39079 2014-01-01  Allan McRae  <allan@archlinux.org>
39080
39081         * scripts/update-copyrights: Update configure input file suffix.
39082
39083         * NEWS: Update copyright year.
39084         * catgets/gencat.c: Likewise.
39085         * csu/version.c: Likewise.
39086         * debug/catchsegv.sh: Likewise.
39087         * debug/pcprofiledump.c: Likewise.
39088         * debug/xtrace.sh: Likewise.
39089         * elf/ldconfig.c: Likewise.
39090         * elf/ldd.bash.in: Likewise.
39091         * elf/pldd.c: Likewise.
39092         * elf/sotruss.ksh: Likewise.
39093         * elf/sprof.c: Likewise.
39094         * iconv/iconv_prog.c: Likewise.
39095         * iconv/iconvconfig.c: Likewise.
39096         * locale/programs/locale.c: Likewise.
39097         * locale/programs/localedef.c: Likewise.
39098         * login/programs/pt_chown.c: Likewise.
39099         * malloc/memusage.sh: Likewise.
39100         * malloc/memusagestat.c: Likewise.
39101         * malloc/mtrace.pl: Likewise.
39102         * manual/libc.texinfo: Likewise.
39103         * nscd/nscd.c: Likewise.
39104         * nss/getent.c: Likewise.
39105         * nss/makedb.c: Likewise.
39106         * posix/getconf.c: Likewise.
39107         * scripts/test-installation.pl: Likewise.
39108
39109         * All files with FSF copyright notices: Update copyright dates
39110         using scripts/update-copyrights.
39111         * intl/plural.c: Regenerated.
39112         * locale/programs/charmap-kw.h: Likewise.
39113         * locale/programs/locfile-kw.h: Likewise.
39114
39115 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39116
39117         * sysdeps/unix/sysv/linux/configure: Regenerated.
39118         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39119         the linux/fanotify.h header.
39120         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39121         HAVE_LINUX_FANOTIFY_H is defined.
39122
39123 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39124
39125         * benchtests/cos-inputs: New inputs.
39126         * benchtests/sin-inputs: Likewise.
39127
39128         * benchtests/atan-inputs: New inputs. Fix name of multiple
39129         precision fallback inputs.
39130
39131         * benchtests/atanh-inputs: New inputs.
39132         * benchtests/tanh-inputs: Likewise.
39133
39134         * benchtests/acosh-inputs: New inputs.
39135         * benchtests/asinh-inputs: Likewise.
39136
39137         * benchtests/cosh-inputs: New inputs.
39138         * benchtests/sinh-inputs: Likewise.
39139
39140         * benchtests/acos-inputs: Add more inputs.
39141         * benchtests/asin-inputs: Likewise.
39142
39143 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39144
39145         [BZ #16375]
39146         * manual/arith.texi: Fix spelling.
39147         * manual/charset.texi: Likewise.
39148         * manual/errno.texi: Likewise.
39149         * manual/filesys.texi: Likewise.
39150         * manual/lang.texi: Likewise.
39151         * manual/llio.texi: Likewise.
39152         * manual/locale.texi: Likewise.
39153         * manual/message.texi: Likewise.
39154         * manual/resource.texi: Likewise.
39155         * manual/search.texi: Likewise.
39156         * manual/setjmp.texi: Likewise.
39157         * manual/stdio.texi: Likewise.
39158         * manual/string.texi: Likewise.
39159         * manual/sysinfo.texi: Likewise.
39160         * manual/time.texi: Likewise.
39161
39162 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39163
39164         * po/sl.po: New file.
39165
39166 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39167
39168         * .gitignore: Add core/.gdbinit/.gdb_history.
39169
39170 2013-12-27  Allan McRae  <allan@archlinux.org>
39171
39172         [BZ #16369]
39173         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39174         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39175
39176 2013-12-24  Brooks Moses  <bmoses@google.com>
39177
39178         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39179         all compilers that claim C++98 compliance, not just GCC.
39180         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39181         Likewise.
39182
39183 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39184
39185         * NEWS: Restore accidentally deleted bug-fix entries.
39186
39187 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39188             Ondřej Bílka  <neleai@seznam.cz>
39189
39190         [BZ #15073]
39191         * malloc/malloc.c (_int_free): Perform sanity check only if we
39192         have_lock.
39193
39194 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39195
39196         [BZ #12986]
39197         * manual/stdio.texi (String Input Conversions): Clarify that character
39198         classes are not supported.
39199
39200 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39201
39202         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39203
39204 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39205
39206         [BZ #16337]
39207         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39208         Calculate results for small negative arguments directly rather
39209         than using reflection formula with special underflow handling.
39210
39211         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39212         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39213         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39214         (fchflags): Likewise.
39215         (revoke): Likewise.
39216         (setlogin): Likewise.
39217         (sigaltstack): Likewise.
39218         (wait4): Likewise.
39219         (sigblock): Remove.
39220         (sigsetmask): Likewise.
39221         (wait3): Likewise.
39222         (waitpid): Likewise.
39223         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39224         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39225         file.
39226         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39227         * sysdeps/unix/bsd/Makefile: ... here.
39228         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39229         * sysdeps/unix/bsd/Versions: ... here.
39230         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39231         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39232         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39233         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39234         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39235         * sysdeps/unix/bsd/sigblock.c: ... here.
39236         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39237         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39238         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39239         * sysdeps/unix/bsd/sigvec.c: ... here.
39240         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39241         * sysdeps/unix/bsd/tcdrain.c: ... here.
39242         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39243         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39244         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39245         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39246         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39247         * sysdeps/unix/bsd/wait.c: ... here.
39248         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39249         * sysdeps/unix/bsd/wait3.c: ... here.
39250         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39251         * sysdeps/unix/bsd/waitpid.c: ... here.
39252
39253 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39254
39255         [BZ #16356]
39256         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39257         round-to-nearest for [!USE_AS_EXPM1L].
39258         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39259         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39260         more tests of exp and exp10.  Expect some exp10 tests to miss
39261         exceptions or fail in directed rounding modes.
39262         * math/auto-libm-test-out: Regenerated.
39263         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39264         (exp10_test_tonearest): New function.
39265         (exp10_towardzero_test_data): New array.
39266         (exp10_test_towardzero): New function.
39267         (exp10_downward_test_data): New array.
39268         (exp10_test_downward): New function.
39269         (exp10_upward_test_data): New array.
39270         (exp10_test_upward): New function.
39271         (main): Call the new functions.
39272         * sysdeps/i386/fpu/libm-test-ulps: Update.
39273         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39274
39275 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39276
39277         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39278         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39279         * math/auto-libm-test-out: Regenerated.
39280         * math/libm-test.inc (acosh_test_data): Add more tests.
39281         (atanh_test_data): Likewise.
39282         (ceil_test_data): Likewise.
39283         (copysign_test_data): Likewise.
39284         * sysdeps/i386/fpu/libm-test-ulps: Update.
39285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39286
39287         * timezone/checktab.awk: Update from tzcode 2013i.
39288         * timezone/private.h: Likewise.
39289         * timezone/scheck.c: Likewise.
39290         * timezone/tzfile.h: Likewise.
39291         * timezone/tzselect.ksh: Likewise.
39292         * timezone/zdump.c: Likewise.
39293         * timezone/zic.c: Likewise.
39294
39295         * math/auto-libm-test-in: Add tests of cpow.
39296         * math/auto-libm-test-out: Regenerated.
39297         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39298         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39299         mpc_cc_c.
39300         (func_calc_desc): Add mpc_cc_c union field.
39301         (test_functions): Add cpow.
39302         (special_fill_2pi): New function.
39303         (special_real_inputs): Add 2pi.
39304         (calc_generic_results): Handle mpc_cc_c.
39305         * sysdeps/i386/fpu/libm-test-ulps: Update.
39306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39307
39308         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39309         csqrt, ctan and ctanh.
39310         * math/auto-libm-test-out: Regenerated.
39311         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39312         (TEST_COND_x86): Likewise.
39313         (ccos_test_data): Use AUTO_TESTS_c_c.
39314         (ccosh_test_data): Likewise.
39315         (cexp_test_data): Likewise.
39316         (clog_test_data): Likewise.
39317         (csqrt_test_data): Likewise.
39318         (ctan_test_data): Likewise.
39319         (ctan_tonearest_test_data): Likewise.
39320         (ctan_towardzero_test_data): Likewise.
39321         (ctan_downward_test_data): Likewise.
39322         (ctan_upward_test_data): Likewise.
39323         (ctanh_test_data): Likewise.
39324         (ctanh_tonearest_test_data): Likewise.
39325         (ctanh_towardzero_test_data): Likewise.
39326         (ctanh_downward_test_data): Likewise.
39327         (ctanh_upward_test_data): Likewise.
39328         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39329         mpc_c_c.
39330         (func_calc_desc): Add mpc_c_c union field.
39331         (FUNC_mpc_c_c): New macro.
39332         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39333         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39334         ctanh.
39335         (special_fill_min_subnorm_p120): New function.
39336         (special_real_inputs): Add min_subnorm_p120.
39337         (calc_generic_results): Handle mpc_c_c.
39338         * sysdeps/i386/fpu/libm-test-ulps: Update.
39339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39340
39341 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39342
39343         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39344         (do_sin_slow): New functions.
39345         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39346         (cslow2, csloww1, csloww2): Use the new functions.
39347
39348         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39349         Use M to change sign of result instead of X.  Assume X is
39350         positive.
39351         (csloww1): Likewise.
39352         (__sin): Adjust.
39353         (__cos): Adjust.
39354
39355         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39356         arguments A and DA.
39357         (__sin): Adjust.
39358         (__cos): Likewise.
39359
39360         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39361         (__cos): Likewise.
39362         (sloww1): Don't adjust sign of DX.
39363         (csloww1): Likewise.
39364         (sloww2): Use X directly and don't adjust sign of DX.
39365         (csloww2): Likewise.
39366
39367 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39368
39369         * math/auto-libm-test-in: Add tests of cabs and carg.
39370         * math/auto-libm-test-out: Regenerated.
39371         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39372         (carg_test_data): Likewise.
39373         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39374         mpc_c_f.
39375         (func_calc_desc): Add mpc_c_f union field.
39376         (test_functions): Add cabs and carg.
39377         (calc_generic_results): Handle mpc_c_f.
39378
39379         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39380         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39381         as a macro and a compat symbol.
39382         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39383         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39384         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39385         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39386         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39387         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39388         not use .hidden.
39389         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39390         Likewise.
39391         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39392         Likewise.
39393         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39394         Likewise.
39395         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39396         Likewise.
39397         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39398         Likewise.
39399         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39400         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39401         from GLIBC_2.3.2.
39402
39403 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39404
39405         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39406
39407 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39408
39409         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39410         trailing whitespace removed.
39411         * scripts/config.guess: Update to version 2013-11-29.
39412         * scripts/config.sub: Update to version 2013-10-01.
39413
39414         * math/auto-libm-test-in: Add tests of sincos.
39415         * math/auto-libm-test-out: Regenerated.
39416         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39417         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39418         mpfr_f_11.
39419         (func_calc_desc): Add mpfr_f_11 union field.
39420         (test_functions): Add sincos.
39421         (calc_generic_results): Handle mpfr_f_11.
39422         * sysdeps/i386/fpu/libm-test-ulps: Update.
39423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39424
39425 2013-12-19  Andreas Schwab  <schwab@suse.de>
39426
39427         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39428         CALL_MCOUNT.
39429         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39430         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39431         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39432
39433 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39434
39435         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39436         * sysdeps/i386/fpu/libm-test-ulps: Update.
39437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39438
39439         [BZ #16293]
39440         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39441         round-to-nearest mode when using frndint.
39442         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39443         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39444         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39445         Likewise.
39446         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39447         sinh test to fail.
39448         * math/auto-libm-test-out: Regenerated.
39449         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39450         (TEST_COND_x86): Likewise.
39451         (expm1_tonearest_test_data): New array.
39452         (expm1_test_tonearest): New function.
39453         (expm1_towardzero_test_data): New array.
39454         (expm1_test_towardzero): New function.
39455         (expm1_downward_test_data): New array.
39456         (expm1_test_downward): New function.
39457         (expm1_upward_test_data): New array.
39458         (expm1_test_upward): New function.
39459         (main): Run the new test functions.
39460         * sysdeps/i386/fpu/libm-test-ulps: Update.
39461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39462
39463         * include/features.h: Update comment documenting feature test
39464         macros.  Mention _DEFAULT_SOURCE in comment.
39465         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39466         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39467         _BSD_SOURCE and _SVID_SOURCE.
39468         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39469         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39470         !_SVID_SOURCE]: Likewise.
39471         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39472         (__USE_POSIX_IMPLICITLY): Define.
39473         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39474         (_POSIX_SOURCE): Undefine and redefine.
39475         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39476         (_POSIX_C_SOURCE): Likewise.
39477         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39478         (Feature Test Macros): Update documentation of default features.
39479
39480 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39481
39482         * benchtests/Makefile: Add bench-strtok.
39483         * benchtests/bench-strtok.c: New file: strtok benchtest.
39484
39485 2013-12-19  Allan McRae  <allan@archlinux.org>
39486
39487         * manual/install.texi: Suppress menu for plain text output.
39488         * INSTALL: Regenerated.
39489
39490 2013-12-18  Brooks Moses  <bmoses@google.com>
39491
39492         [BZ #15846]
39493         * misc/getauxval.c: Include errno.h.
39494         (__getauxval): Set errno to ENOENT if the requested type is not
39495         found.
39496         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39497         don't declare with __attribute_const__.
39498         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39499         * manual/startup.texi: Document that getauxval sets errno.
39500
39501 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39502
39503         * math/auto-libm-test-in: Add tests of jn and yn.
39504         * math/auto-libm-test-out: Regenerated.
39505         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39506         (yn_test_data): Likewise.
39507         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39508         mpfr_if_f.
39509         (func_calc_desc): Add mpfr_if_f union field.
39510         (FUNC_mpfr_if_f): New macro.
39511         (test_functions): Add jn and yn.
39512         (calc_generic_results): Assert type of second input for
39513         mpfr_ff_f.  Handle mpfr_if_f.
39514         (output_for_one_input_case): Disable all checking for arguments
39515         fitting floating-point types in case of an integer argument.
39516         * sysdeps/i386/fpu/libm-test-ulps: Update.
39517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39518
39519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39520         Don't expect fegetround reference in libm.so.
39521
39522 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39523
39524         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39525         $(config-cflags-nofma).
39526
39527 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39528
39529         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39530         * math/auto-libm-test-out: Regenerated.
39531
39532         [BZ #16338]
39533         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39534         to determine exponent and adjust argument to have exponent of -1.
39535         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39536         log2.
39537         * math/auto-libm-test-out: Regenerated.
39538         * sysdeps/i386/fpu/libm-test-ulps: Update.
39539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39540
39541 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39542
39543         * manual/probes.texi: Remove cases when per-thread arenas are
39544         disabled.
39545
39546 2013-12-18  Andreas Schwab  <schwab@suse.de>
39547
39548         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39549         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39550         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39551         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39552         * sysdeps/i386/i686/multiarch/Makefile: Update.
39553         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39554
39555 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39556
39557         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39558         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39559
39560 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39561
39562         [BZ #15968]
39563         Support TZ transition times < 00:00:00.
39564         This is needed for version-3 tz-format files; it supports time
39565         stamps past 2037 for America/Godthab (the only entry in the tz
39566         database for which this change is relevant).
39567         * manual/time.texi (TZ Variable): Document transition times
39568         from -167:59:59 through -00:00:01.
39569         * time/tzset.c (tz_rule): Time of day is now signed.
39570         (__tzset_parse_tz): Parse negative time of day.
39571
39572         Document TZ transition times >= 25:00:00.
39573         * manual/time.texi (TZ Variable): Document transition times from
39574         25:00:00 through 167:59:59.  These are already supported, and this
39575         support will help with version-3 tz-format files.
39576
39577         * manual/time.texi (TZ Variable): Modernize North America example
39578         to reflect current (i.e., 2007-and-later) daylight saving rules.
39579
39580         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39581
39582 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39583
39584         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39585         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39586         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39587         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39588         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39589         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39590         * sysdeps/unix/bsd/clock.c: Likewise.
39591         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39592         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39593         * sysdeps/unix/bsd/init-posix.c: Likewise.
39594         * sysdeps/unix/bsd/poll.c: Likewise.
39595         * sysdeps/unix/bsd/ptsname.c: Likewise.
39596         * sysdeps/unix/bsd/seekdir.c: Likewise.
39597         * sysdeps/unix/bsd/setegid.c: Likewise.
39598         * sysdeps/unix/bsd/seteuid.c: Likewise.
39599         * sysdeps/unix/bsd/setgid.c: Likewise.
39600         * sysdeps/unix/bsd/setrgid.c: Likewise.
39601         * sysdeps/unix/bsd/setruid.c: Likewise.
39602         * sysdeps/unix/bsd/setsid.c: Likewise.
39603         * sysdeps/unix/bsd/setuid.c: Likewise.
39604         * sysdeps/unix/bsd/sigaction.c: Likewise.
39605         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39606         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39607         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39608         * sysdeps/unix/bsd/telldir.c: Likewise.
39609         * sysdeps/unix/bsd/times.c: Likewise.
39610         * sysdeps/unix/bsd/usleep.c: Likewise.
39611
39612         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39613         ($(objpfx)libbsd-compat.a): Remove rule.
39614
39615         * include/features.h (__FAVOR_BSD): Do not define.
39616         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39617         features conflicting with POSIX.
39618         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39619         (_BSD_SOURCE): Remove description of not being a subset of other
39620         feature test macros.
39621         * manual/job.texi (getpgrp): Do not document BSD version.
39622         (getpgid): Do not document by reference to BSD getpgrp.
39623         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39624         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39625         * signal/signal.h [__FAVOR_BSD]: Likewise.
39626         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39627         instead of making contents conditional on [__FAVOR_BSD].
39628         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39629
39630 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39631
39632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39633
39634 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39635
39636         [BZ #16314]
39637         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39638         values below 2**-450, not 2**-500.
39639         * math/auto-libm-test-in: Don't allow spurious underflow from
39640         hypot.
39641         * math/auto-libm-test-out: Regenerated.
39642
39643         [BZ #16316]
39644         [BZ #16330]
39645         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39646         values of ha and hb and sort them after adjusting subnormal
39647         arguments.
39648         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39649         Likewise.
39650         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39651         values of ea and eb and sort them after adjusting subnormal
39652         arguments.
39653         * math/auto-libm-test-in: Do not expect some hypot tests of
39654         subnormals to fail.  Add more hypot tests.
39655         * math/auto-libm-test-out: Regenerated.
39656
39657 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39658
39659         [BZ #13304]
39660         * sysdeps/sh/s_fma.c: New file.
39661         * sysdeps/sh/s_fmaf.c: New file.
39662         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39663         version.
39664         * sysdeps/sh/Implies: Add sh/soft-fp.
39665
39666 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39667
39668         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39669         level of indirection to members `objname', `errstring', `malloced'.
39670         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39671         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39672         it as the __longjmp argument (just pass 1 instead).
39673         (_dl_catch_error): Initialize C with argument pointers and address of
39674         volatile local ERRCODE rather than copying values out of C at return.
39675
39676 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39677
39678         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39679         * math/auto-libm-test-out: Regenerated.
39680         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39681         (hypot_test_data): Likewise.
39682         (pow_test_data): Likewise.
39683         (pow_tonearest_test_data): Likewise.
39684         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39685         mpfr_ff_f.
39686         (func_calc_desc): Add mpfr_ff_f union field.
39687         (FUNC_mpfr_ff_f): New macro.
39688         (test_functions): Add atan2, hypot and pow.
39689         (special_fill_min): New function.
39690         (special_fill_minus_min): Likewise.
39691         (special_fill_min_subnorm): Likewise.
39692         (special_fill_minus_min_subnorm): Likewise.
39693         (special_real_inputs): Add min, -min, min_subnorm and
39694         -min_subnorm.
39695         (calc_generic_results): Handle mpfr_ff_f.
39696         * sysdeps/i386/fpu/libm-test-ulps: Update.
39697         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39698
39699 2013-12-16  Will Newton  <will.newton@linaro.org>
39700
39701         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39702         (Aligned Memory Blocks): Add documentation for aligned_alloc
39703         and suggest it as an alternative to posix_memalign.
39704         (Hooks for Malloc): Document __memalign_hook is also called
39705         for aligned_alloc.  (Summary of Malloc): Add summary for
39706         aligned alloc.  Document __memalign_hook is also called
39707         for aligned_alloc.
39708
39709 2013-12-16  Will Newton  <will.newton@linaro.org>
39710
39711         * manual/memory.texi (Malloc Examples): Clarify default
39712         alignment documentation.  Suggest posix_memalign rather
39713         than memalign or valloc.
39714         (Aligned Memory Blocks): Remove suggestion to use memalign
39715         or valloc.  Remove obsolete comment about BSD.
39716         Document memalign errno values and mark the function obsolete.
39717         Document posix_memalign returned error codes.  Mark valloc
39718         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39719         called for posix_memalign and valloc.
39720         (Summary of Malloc): Add posix_memalign to function summary.
39721         __memalign_hook is also called for posix_memalign and valloc.
39722
39723 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39724
39725         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39726         TAYLOR_SIN.
39727         (__sin): Adjust.
39728         (__cos): Likewise.
39729         (sloww): Use mynumber union.  Expand ternary operator into
39730         if-else statements.
39731         (cslow): use mynumber union.
39732
39733 2013-12-16  Allan McRae  <allan@archlinux.org>
39734
39735         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39736         * configure: Regenerated.
39737
39738         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39739
39740         [BZ #14120]
39741         * configure.ac: Added --enable-maintainer-mode. Check for
39742         autoconf when enabled.
39743         * configure: Regenerated.
39744
39745         * nscd/nscd.service: New file.
39746         * nscd/nscd.tmpfiles: New file.
39747
39748 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39749
39750         [BZ #12100]
39751         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39752         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39753         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39754         (strstr): Add __strstr_sse2_unaligned ifunc.
39755         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39756         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39757         (strcasestr): Remove __strcasestr_sse42 ifunc.
39758         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39759         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39760         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39761
39762 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39763
39764         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39765         * sysdeps/sh/bits/fenv.h: ... here.
39766         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39767
39768 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39769
39770         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39771
39772         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39773         hypotf multiarch implementations.
39774         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39775         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39776         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39777         multiarch hypot for PPC64.
39778         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39779         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39780         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39781         multiarch hypotf for PPC64.
39782
39783         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39784         modff multiarch implementations.
39785         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39787         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39788         multiarch modf for PPC64.
39789         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39790         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39792         multiarch modff for PPC64.
39793
39794         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39795         and logl multiarch implementations.
39796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39797         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39799         multiarch logb for PPC64.
39800         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39801         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39802         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39803         multiarch logb for PPC64.
39804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39806         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39807         multiarch logb for PPC64.
39808
39809         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39810         isinff multiarch implementation.
39811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39812         file.
39813         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39815         multiarch isinf for PPC64.
39816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39817         file.
39818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39819         multiarch isinff for PPC64.
39820
39821         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39822         finitef multiarch implementation.
39823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39824         file.
39825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39826         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39827         multiarch finite for PPC64.
39828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39829         file.
39830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39831         multiarch finitef for PPC64.
39832
39833         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39834         lrint multiarch implementation.
39835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39836         file.
39837         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39839         multiarch llrint for PPC64.
39840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39841         multiarch lrint for PPC64.
39842
39843         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39844         copysignf multiarch implementation.
39845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39846         file.
39847         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39848         file.
39849         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39850         multiarch copysign for PPC64.
39851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39852         multiarch copysignf for PPC64.
39853
39854         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39855         multiarch implementation.
39856         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39857         file.
39858         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39859         file.
39860         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39861         file.
39862         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39863         file.
39864         multiarch llround for PPC64.
39865         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39866         multiarch trunc for PPC64.
39867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39868         multiarch truncf for PPC64.
39869
39870         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39871         multiarch implementation.
39872         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39873         file.
39874         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39875         file.
39876         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39877         file.
39878         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39879         file.
39880         multiarch llround for PPC64.
39881         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39882         multiarch round for PPC64.
39883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39884         multiarch roundf for PPC64.
39885
39886         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39887         multiarch implementation.
39888         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39889         file.
39890         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39891         file.
39892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39893         file.
39894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39895         file.
39896         multiarch llround for PPC64.
39897         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39898         multiarch floor for PPC64.
39899         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39900         multiarch floorf for PPC64.
39901
39902         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39903         multiarch implementation.
39904         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39905         file.
39906         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39907         file.
39908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39909         file.
39910         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39911         file.
39912         multiarch llround for PPC64.
39913         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39914         multiarch ceil for PPC64.
39915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39916         multiarch ceilf for PPC64.
39917
39918         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39919         multiarch implementation.
39920         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39921         file.
39922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39923         file.
39924         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39925         file.
39926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39927         multiarch llround for PPC64.
39928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39929         multiarch lround for PPC64.
39930
39931         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39932         multiarch implementation.
39933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39935         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39936         file.
39937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39939         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39940         multiarch isnan for PPC64.
39941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39942         multiarch isnanf for PPC64.
39943
39944         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39945         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39946         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39947         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39948         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39950
39951         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39952         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39953         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39954         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39955
39956         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39957         multiarch implementations.
39958         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39959         (__libc_ifunc_impl_list): Likewise.
39960         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39961         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39962         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39963         multiarch stpcpy for PPC64.
39964
39965         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39966         multiarch implementations.
39967         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39968         (__libc_ifunc_impl_list): Likewise.
39969         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39970         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39971         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39972         multiarch strcpy for PPC64.
39973
39974         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39975         redefine function name.
39976         (_wordcopy_fwd_dest_aligned): Likewise.
39977         (_wordcopy_bwd_aligned): Likewise.
39978         (_wordcopy_bwd_dest_aligned): Likewise.
39979         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39980         multiarch implementations.
39981         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39982         (__libc_ifunc_impl_list): Likewise.
39983         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39984         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39985         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39986         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39987         multiarch wcscpy for PPC64.
39988
39989         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39990         multiarch implementations.
39991         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39992         (__libc_ifunc_impl_list): Likewise.
39993         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39994         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39995         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39996         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39997         multiarch wcscpy for PPC64.
39998
39999         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40000         multiarch implementations.
40001         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40002         (__libc_ifunc_impl_list): Likewise.
40003         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40004         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40005         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40006         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40007         multiarch wcsrchr for PPC64.
40008
40009         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40010         multiarch implementations.
40011         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40012         (__libc_ifunc_impl_list): Likewise.
40013         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40014         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40015         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40016         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40017         multiarch wcschr for PPC64.
40018
40019         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40020         multiarch implementations.
40021         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40022         (__libc_ifunc_impl_list): Likewise.
40023         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40024         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40025         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40026         multiarch strchrnul for PPC64.
40027
40028         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40029         implementations.
40030         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40031         (__libc_ifunc_impl_list): Likewise.
40032         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40033         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40034         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40035         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40036         strchr for PPC64.
40037
40038         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40039         implementations.
40040         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40041         (__libc_ifunc_impl_list): Likewise.
40042         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40043         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40044         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40045         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40046         strncmp for PPC64.
40047
40048         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40049         multiarch implementations.
40050         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40051         (__libc_ifunc_impl_list): Likewise.
40052         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40053         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40054         strncasecmp for PPC64.
40055         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40056         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40057         multiarch strncasecmp_l for PPC64.
40058
40059         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40060         multiarch implementations.
40061         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40062         (__libc_ifunc_impl_list): Likewise.
40063         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40064         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40065         multiarch strcasecmp for PPC64.
40066         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40067         file.
40068         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40069         multiarch strcasecmp_l for PPC64.
40070
40071         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40072         implementations.
40073         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40074         (__libc_ifunc_impl_list): Likewise.
40075         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40076         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40077         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40078         strnlen for PPC64.
40079
40080         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40081         implementations.
40082         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40083         (__libc_ifunc_impl_list): Likewise.
40084         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40085         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40086         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40087         strlen for PPC64.
40088
40089         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40090         implementations.
40091         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40092         (__libc_ifunc_impl_list): Likewise.
40093         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40094         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40095         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40096         rawmemrchr for PPC64.
40097
40098         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40099         implementation.
40100         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40101         (__libc_ifunc_impl_list): Likewise.
40102         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40103         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40104         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40105         memrchr for PPC64.
40106
40107         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40108         implementation.
40109         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40110         (__libc_ifunc_impl_list): Likewise.
40111         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40112         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40113         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40114         memchr for PPC64.
40115
40116         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40117         implementation.
40118         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40119         (__libc_ifunc_impl_list): Likewise.
40120         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40121         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40122         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40123         mempcpy for PPC64.
40124
40125         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40126         avoid cretion of __bzero symbol.
40127         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40128         Likewise.
40129         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40130         Likewise.
40131         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40132         Likewise.
40133         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40134         multiarch implementations.
40135         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40136         (__libc_ifunc_impl_list): Likewise.
40137         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40138         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40139         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40140         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40141         bzero for PPC32.
40142         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40143         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40144         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40145         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40146         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40147         memset for PPC64.
40148         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40149
40150         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40151         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40152         implementations.
40153         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40154         (__libc_ifunc_impl_list): Likewise.
40155         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40156         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40157         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40158         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40159         memcmp for PPC64.
40160
40161         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40162         multiarch for POWER/PPC64.
40163         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40164         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40165         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40166         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40167         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40168         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40169         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40170         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40171         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40172         memcpy for PPC64.
40173
40174         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40175         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40176         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40177         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40178         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40179         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40180         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40181         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40182         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40183         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40184         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40185         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40186         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40187         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40188         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40196
40197 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40198
40199         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40200
40201 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40202
40203         * benchtests/Makefile (bench): Add exp2 and log2.
40204         (LDLIBS-bench-exp2): Add -lm.
40205         (LDLIBS-bench-log2): Likewise.
40206         * benchtests/exp2-inputs: New inputs file.
40207         * benchtests/log2-inputs: New inputs file.
40208         * benchtests/log-inputs: Add new inputs.
40209         * benchtests/tan-inputs: Likewise.
40210
40211 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40212
40213         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40214         definition...
40215         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40216         (csloww2): ... from here.
40217
40218         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40219         instead of structures.
40220         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40221         (POLYNOMIAL): Likewise.
40222         (TAYLOR_SLOW): Likewise.
40223         (__sin): Likewise.
40224         (__cos): Likewise.
40225         (slow1): Likewise.
40226         (slow2): Likewise.
40227         (sloww): Likewise.
40228         (sloww1); Likewise.
40229         (sloww2): Likewise.
40230         (bsloww1): Likewise.
40231         (bsloww2): Likewise.
40232         (cslow2): Likewise.
40233         (csloww): Likewise.
40234         (csloww1): Likewise.
40235         (csloww2): Likewise.
40236
40237 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40238
40239         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40240         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40241         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40242         * malloc/hooks.c (realloc_check): Likewise.
40243
40244         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40245         * malloc/arena.c: Remove PER_THREAD conditional.
40246         [!PER_THREAD]: Remove code.
40247         (ptmalloc_unlock_all2): Likewise.
40248         (ptmalloc_init): Likewise.
40249         (_int_new_arena): Likewise.
40250         (arena_get2): Likewise.
40251         * malloc/hooks.c (__malloc_get_state): Likewise.
40252         (__malloc_set_state): Likewise.
40253         * malloc/malloc.c: Likewise.
40254         (struct malloc_state): Likewise.
40255         (struct malloc_par): Likewise.
40256         (__libc_realloc): Likewise.
40257         (__libc_mallopt): Likewise.
40258
40259 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40260
40261         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40262
40263 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40264
40265         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40266         macro to a function.  Check for zero perturb_byte.
40267         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40268
40269         * malloc/malloc.c: (force_reg): Remove.
40270         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40271         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40272         force_reg by atomic_forced_read.
40273         * malloc/arena.c (ptmalloc_init): Likewise.
40274         * malloc/hooks.c (top_check): Likewise.
40275
40276 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40277
40278         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40279
40280 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40281
40282         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40283
40284 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40285
40286         * math/auto-libm-test-in: Add tests of lgamma.
40287         * math/auto-libm-test-out: Regenerated.
40288         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40289         (M_LOG_2_SQRT_PIl): Likewise.
40290         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40291         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40292         mpfr_f_f1.
40293         (func_calc_desc): Add mpfr_f_f1 union field.
40294         (ARGS1): New macro.
40295         (ARGS2): Likewise.
40296         (ARGS3): Likewise.
40297         (ARGS4): Likewise.
40298         (RET1): Likewise.
40299         (RET2): Likewise.
40300         (CALC): Likewise.
40301         (FUNC): Likewise.
40302         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40303         (test_functions): Add lgamma.
40304         (calc_generic_results): Handle mpfr_f_f1.
40305         * sysdeps/i386/fpu/libm-test-ulps: Update.
40306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40307
40308 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40309
40310         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40311         __mpn_add_n for PowerPC64/POWER7.
40312         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40313         __mpn_sub_n for PowerPC64/POWER7.
40314
40315         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40316         __mpn_addmul_1 for PowerPC64.
40317         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40318         __mpn_submul_1 for PowerPC64.
40319         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40320         for PowerPC64.
40321         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40322         for PowerPC64.
40323
40324 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40325
40326         [BZ #15089]
40327         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40328
40329 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40330
40331         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40332
40333         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40334         add multiarch folders.
40335         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40336         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40337         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40338         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40339         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40340         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40341         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40342         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40343         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40344         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40345         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40352
40353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40354         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40356         New file.
40357         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40358         New file.
40359         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40360         multiarch __ieee754_hypot for PowerPC32.
40361         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40362         New file.
40363         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40364         New file.
40365         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40366         multiarch __ieee754_hypotf for PowerPC32.
40367
40368         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40369         long_double_symbol only if __logbl is defined.
40370         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40371         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40372         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40373         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40374         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40375         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40376         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40377         path for implementation.
40378         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40379         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40380         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40381         logb, and logbl multiarch implementations for PowerPC32.
40382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40383         file.
40384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40385         file.
40386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40387         multiarch logb for PowerPC32.
40388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40389         file.
40390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40391         file.
40392         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40393         multiarch logbf for PowerPC32.
40394         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40396         file.
40397         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40398         multiarch logbl implementation for PowerPC32.
40399
40400         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40401         and modff multiarch implementations.
40402         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40403         New file.
40404         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40405         New file.
40406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40407         multiarch modf for PowerPC32.
40408         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40409         New file.
40410         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40411         New file.
40412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40413         multiarch modff for PowerPC32.
40414
40415         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40416         and lrintf multiarch implementations.
40417         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40418         New file.
40419         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40420         New file.
40421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40422         multiarch lrint for PowerPC32.
40423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40424         file: multiarch lrintf for PowerPC32.
40425
40426         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40427         and lroundf multiarch implementations.
40428         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40429         New file.
40430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40431         New file.
40432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40433         New file.
40434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40435         multiarch lround for PowerPC32.
40436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40437         file: multiarch lroundf for PowerPC32.
40438
40439         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40440         copysign and copysignf multiarch implementations.
40441         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40442         New file.
40443         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40444         New file.
40445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40446         file: multiarch copysign for PowerPC32.
40447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40448         file: multiarch copysignf for PowerPC32.
40449
40450         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40451         and truncf multiarch implementations.
40452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40453         New file.
40454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40455         file.
40456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40457         multiarch trunc for PowerPC32.
40458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40459         New file.
40460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40461         New file.
40462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40463         multiarch truncf for PowerPC32.
40464
40465         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40466         and roundf multiarch implementations.
40467         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40468         New file.
40469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40470         file.
40471         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40472         multiarch round for PowerPC32.
40473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40474         New file.
40475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40476         New file.
40477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40478         multiarch roundf for PowerPC32.
40479
40480         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40481         and floorf multiarch implementations.
40482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40483         New file.
40484         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40485         file.
40486         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40487         multiarch floor for PowerPC32.
40488         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40489         New file.
40490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40491         New file.
40492         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40493         multiarch floorf for PowerPC32.
40494
40495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40496         and ceilf multiarch implementations.
40497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40498         New file.
40499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40500         file.
40501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40502         multiarch ceil for PowerPC32.
40503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40504         New file.
40505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40506         file.
40507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40508         multiarch ceilf for PowerPC32.
40509
40510         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40511         is defined.
40512         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40513         FINITEF is defined.
40514         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40515         and finitef multiarch implementations.
40516         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40517         New file.
40518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40519         file.
40520         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40521         multiarch finite for PowerPC32.
40522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40523         New file.
40524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40525         file: multiarch finitef for PowerPC32.
40526
40527         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40528         and isinff multiarch implementations.
40529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40530         file.
40531         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40532         file.
40533         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40534         multiarch isinf for PowerPC32.
40535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40536         New file.
40537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40538         multiarch isinff for PowerPC32.
40539
40540         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40541         alias when __isnan is defined.
40542         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40543         and isnanf multiarch implementations.
40544         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40545         file.
40546         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40547         file.
40548         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40549         file.
40550         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40551         file.
40552         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40553         multiarch isnan for PowerPC32.
40554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40555         New file.
40556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40557         New file.
40558         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40559         multiarch isnanf for PowerPC32.
40560
40561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40562         and sqrtf multiarch implementations.
40563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40564         file.
40565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40566         file.
40567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40568         multiarch sqrt for PowerPC32.
40569         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40570         file.
40571         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40572         file.
40573         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40574         multiarch sqrtf for PowerPC32.
40575
40576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40577         and llroundf multiarch implementations.
40578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40579         New file.
40580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40581         New file.
40582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40583         New file.
40584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40585         file: multiarch llround for PowerPC32.
40586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40587         file: multiarch llroundf for PowerPC32.
40588
40589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40590         multiarch PowerPC32 fpu implementations.
40591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40592         New file.
40593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40594         New file.
40595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40596         multiarch llrint for PowerPC32.
40597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40598         New file.
40599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40600         New file.
40601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40602         file.
40603
40604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40605
40606         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40607         file.
40608         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40609         file.
40610         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40611         file.
40612         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40613         multiarch wordcopy for PPC32.
40614         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40615         wordcopy objects.
40616         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40617         (__libc_ifunc_impl_list): Likewise.
40618         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40619         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40620         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40621         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40622         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40623         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40624
40625         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40626         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40627         file.
40628         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40629         file.
40630         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40631         file.
40632         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40633         multiarch wcscpy for PPC32.
40634         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40635         multiarch objects.
40636         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40637         (__libc_ifunc_impl_list): Likewise.
40638         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40639         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40640         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40641         sysdeps/powerpc/power6/wcscpy.c.
40642
40643         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40644         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40645         file.
40646         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40647         file.
40648         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40649         file.
40650         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40651         multiarch wcsrchr for PPC32.
40652         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40653         multiarch objects.
40654         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40655         (__libc_ifunc_impl_list): Likewise.
40656         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40657         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40658         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40659         sysdeps/powerpc/power6/wcsrchr.c.
40660
40661         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40662         file.
40663         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40664         file.
40665         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40666         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40667         multiarch wcschr for PPc32.
40668         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40669         multiarch objects.
40670         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40671         (__libc_ifunc_impl_list): Likewise.
40672         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40673         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40674         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40675         sysdeps/powerpc/power6/wcschr.c.
40676
40677         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40678         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40679         file.
40680         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40681         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40682         file: multiarch strchr for PPC32.
40683         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40684         multiarch objects.
40685         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40686         (__libc_ifunc_impl_list): Likewise.
40687
40688         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40689         name.
40690         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40691         file.
40692         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40693         file.
40694         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40695         multiarch strchrnul for PPC32.
40696         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40697         multiarch objects.
40698         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40699         (__libc_ifunc_impl_list): Likewise.
40700
40701         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40702         file.
40703         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40704         multiarch strncasecmp for PPC32.
40705         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40706         file.
40707         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40708         multiarch strncasecmp_l for PPC32.
40709         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40710         strncasecmp multiarch objects.
40711         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40712         (__libc_ifunc_impl_list): Likewise.
40713
40714         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40715         file.
40716         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40717         multiarch strncasecmp for PPC32.
40718         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40719         New file.
40720         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40721         multiarch strcasecmp_l for PPC32.
40722         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40723         multiarch objects.
40724         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40725         (__libc_ifunc_impl_list): Likewise.
40726
40727         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40728         file.
40729         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40730         file.
40731         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40732         multiarch strncmp for PPC32.
40733         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40734         multiarch objects.
40735         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40736         (__libc_ifunc_impl_list): Likewise.
40737
40738         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40739         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40740         file.
40741         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40742         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40743         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40744         multiarch objects.
40745         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40746         (__libc_ifunc_impl_list): Likewise.
40747
40748         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40749         file.
40750         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40751         file.
40752         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40753         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40754         multiarch objects.
40755         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40756         (__libc_ifunc_impl_list): Likewise.
40757
40758         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40759         file.
40760         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40761         file.
40762         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40763         multiarch rawmemchr for PPC32.
40764         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40765         multiarch objects.
40766         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40767         (__libc_ifunc_impl_list): Likewise.
40768
40769         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40770         file.
40771         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40772         file.
40773         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40774         file: memrchr multiarch for PPC32.
40775         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40776         multiarch objects.
40777         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40778         (__libc_ifunc_impl_list): Likewise.
40779
40780         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40781         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40782         file.
40783         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40784         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40785         multiarch memchr for PPC32.
40786         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40787         multiarch objects.
40788         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40789         (__libc_ifunc_impl_list): Likewise.
40790
40791         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40792         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40793         file.
40794         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40795         file.
40796         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40797         file: multiarch mempcpy for PPC32.
40798         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40799         multiarch objects.
40800         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40801         (__libc_ifunc_impl_list): Likewise.
40802
40803         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40804         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40805         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40806         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40807         multiarch bzero for PPC32.
40808         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40809         file.
40810         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40811         file.
40812         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40813         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40814         file: multiarch memset for PPC32.
40815         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40816         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40817         memset multiarch objects.
40818         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40819         (__libc_ifunc_impl_list): Likewise.
40820
40821         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40822         file.
40823         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40824         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40825         memcmp for PPC32.
40826         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40827         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40828         multiarch objects.
40829         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40830         (__libc_ifunc_impl_list): Likewise.
40831
40832         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40833         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40834         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40835         file.
40836         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40837         file.
40838         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40839         file.
40840         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40841         multiarch memcpy for PPC32.
40842         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40843         multiarch objects.
40844         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40845         (__libc_ifunc_impl_list): Likewise.
40846
40847         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40848         support multiarch for POWER/PPC32.
40849         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40850         Likewise.
40851         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40853         Implies file to make multiarch folder appers before the fpu and
40854         default folder for power4 configuration.
40855
40856 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40857
40858         * scripts/bench.pl: Append volatile keyword to type.
40859
40860 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40861
40862         * sysdeps/sh/sotruss-lib.c: New file.
40863         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40864
40865 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40866
40867         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40868
40869 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40870
40871         [BZ #6810]
40872         * math/w_tgamma.c: Include <errno.h>.
40873         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40874         * math/w_tgammaf.c: Include <errno.h>.
40875         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40876         * math/w_tgammal.c: Include <errno.h>.
40877         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40878         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40879         underflow.  Add more tgamma tests.
40880         * math/auto-libm-test-out: Regenerated.
40881         * sysdeps/i386/fpu/libm-test-ulps: Update.
40882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40883
40884         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40885         sin, sinh, tan, tanh, tgamma, y0 and y1.
40886         * math/auto-libm-test-out: Regenerated.
40887         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40888         (TEST_COND_x86): Likewise.
40889         (M_E2l): Remove macro.
40890         (M_E3l): Likewise.
40891         (M_2_SQRT_PIl): Likewise.
40892         (M_SQRT_PIl): Likewise.
40893         (M_1_DIV_El): Likewise.
40894         (log_test_data): Use AUTO_TESTS_f_f.
40895         (log10_test_data): Likewise.
40896         (log1p_test_data): Likewise.
40897         (log2_test_data): Likewise.
40898         (sin_test_data): Likewise.
40899         (sin_tonearest_test_data): Likewise.
40900         (sin_towardzero_test_data): Likewise.
40901         (sin_downward_test_data): Likewise.
40902         (sin_upward_test_data): Likewise.
40903         (sinh_test_data): Likewise.
40904         (sinh_tonearest_test_data): Likewise.
40905         (sinh_towardzero_test_data): Likewise.
40906         (sinh_downward_test_data): Likewise.
40907         (sinh_upward_test_data): Likewise.
40908         (tan_test_data): Likewise.
40909         (tan_tonearest_test_data): Likewise.
40910         (tan_towardzero_test_data): Likewise.
40911         (tan_downward_test_data): Likewise.
40912         (tan_upward_test_data): Likewise.
40913         (tanh_test_data): Likewise.
40914         (tgamma_test_data): Likewise.
40915         (y0_test_data): Likewise.
40916         (y1_test_data): Likewise.
40917         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40918         (special_real_inputs): Add pi/4.
40919         * sysdeps/i386/fpu/libm-test-ulps: Update.
40920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40921
40922 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40923
40924         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40925         "longjmp_target" static probes.
40926         (__longjmp): Rename to __longjmp_symbol.
40927         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40928         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40929         on which longjmp to generate.
40930         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40931         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40932         probe.
40933         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40934         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40935         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40936         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40937         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40938         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40940         __longjmp_symbol based on which __longjmp to generate.
40941         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40942         probe.
40943         (setjmp): Rename to setjmp_symbol.
40944         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40945         (_setjmp): Rename to _setjmp_symbol.
40946         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40947         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40948         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40949         which setjmp to generate.
40950         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40951         "longjmp_target" static probes.
40952
40953 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40954
40955         * benchtests/README: Add note about output arguments.
40956         * benchtests/bench-sincos.c: Remove file.
40957         * benchtests/sincos-inputs: New file.
40958         * scripts/bench.pl: Identify output arguments and define
40959         static variables for them.
40960
40961         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40962
40963         [BZ #15941]
40964         * Makefile (INSTALL): Add install-plain.texi as the primary
40965         dependency.
40966         * manual/install-plain.texi: New file.
40967         * manual/install.texi: Include node directive only for
40968         non-plaintext output.
40969
40970 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40971
40972         * stdlib/longlong.h: Update from GCC.
40973
40974         [BZ #6807]
40975         [BZ #15901]
40976         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40977         * math/w_j0f.c (y0f): Likewise.
40978         * math/w_j0l.c (__y0l): Likewise.
40979         * math/w_j1.c (y1): Likewise.
40980         * math/w_j1f.c (y1f): Likewise.
40981         * math/w_j1l.c (__y1l): Likewise.
40982         * math/w_jn.c (yn): Likewise.
40983         * math/w_jnf.c (ynf): Likewise.
40984         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40985         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40986         value for Bessel function domain errors outside _SVID_ mode.
40987         Adjust sign of return value for yn (negative integer, 0).
40988         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40989         by zero in return for negative x and set sign appropriately for
40990         negative n.
40991         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40992         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40993         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40994         expectations in error cases.
40995         (y1_test_data): Likewise.
40996         (yn_test_data): Likewise.
40997         * sysdeps/i386/fpu/libm-test-ulps: Update.
40998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40999
41000 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41001
41002         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41003         "64" to "64-v1".  Add "64-v2".
41004         (abi-64-options): Rename to ...
41005         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41006         (abi-64-condition): Rename to ...
41007         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41008         (abi-64-ld-soname): Rename to ...
41009         (abi-64-v1-ld-soname): ... this.
41010         (abi-64-v2-options): Define.
41011         (abi-64-v2-condition): Likewise.
41012         (abi-64-v2-ld-soname): Likewise.
41013         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41014         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41018
41019 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41020             Alan Modra  <amodra@gmail.com>
41021
41022         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41023         New versions for use with the ELFv2 ABI.
41024         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41025         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41026         declaration.
41027         (struct La_ppc64v2_retval): Likewise.
41028         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41029         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41030         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41031         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41032         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41033         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41034         Do not save or restore CR.
41035         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41036         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41037         return values for ELFv2 ABI.  Fix location of FPR return registers.
41038         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41039         updated values for _CALL_ELF == 2.
41040         (La_regs, La_retval, int_retval): Likewise.
41041
41042 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41043
41044         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41045         (FRAME_MIN_SIZE_PARM): Likewise.
41046         (FRAME_BACKCHAIN): Likewise.
41047         (FRAME_CR_SAVE): Likewise.
41048         (FRAME_LR_SAVE): Likewise.
41049         (FRAME_TOC_SAVE): Likewise.
41050         (FRAME_PARM_SAVE): Likewise.
41051         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41052         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41053         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41054         (call_mcount_parm_offset): New macro.
41055         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41056         (PROF): Use symbolic stack frame offsets.
41057         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41058         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41059         Redefine in terms of FRAME_MIN_SIZE.
41060         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41061         (_dl_profile_resolve): Likewise.  Update comment.
41062         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41063         symbols stack frame offsets.
41064         (__sigsetjmp): Likewise.
41065         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41066         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41067         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41068         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41069
41070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41071         (FRAME_BACKCHAIN): Remove.
41072         (FRAME_CR_SAVE): Likewise.
41073         (FRAME_LR_SAVE): Likewise.
41074         (FRAME_COMPILER_DW): Likewise.
41075         (FRAME_LINKER_DW): Likewise.
41076         (FRAME_TOC_SAVE): Likewise.
41077         (FRAME_PARM_SAVE): Likewise.
41078         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41079         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41080         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41082         (CHECK_SP): Use symbolic stack frame offsets.
41083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41084         zone" instead of caller's parameter save area for temp storage.
41085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41086         Likewise.  Also, use symbolic stack frame offsets.
41087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41088         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41089         our own stack frame instead of the caller's.
41090         (__socket): Use symbolic stack frame offsets.
41091
41092 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41093             Alan Modra  <amodra@gmail.com>
41094
41095         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41096         Define.
41097         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41098         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41099         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41100         New function.
41101         (elf_machine_fixup_plt): Call it.
41102         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41103         reloc arguments.
41104         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41105         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41106         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41107         r2 before calling target.
41108
41109 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41110             Alan Modra  <amodra@gmail.com>
41111
41112         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41113         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41114         versions of macros to support ELFv2 ABI.
41115         (LOCALENTRY): New macro.
41116         (ENTRY, EALIGN): Use it.
41117         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41118         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41119         fall through into ENTRY entry point.
41120         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41121         Only define if _CALL_ELF != 2.
41122
41123         (elf_machine_matches_host): Verify ABI version matches.
41124         (RTLD_START): Use LOCALENTRY.
41125         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41126         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41127         (PLT_ENTRY_WORDS): New macro.
41128         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41129         (elf_machine_runtime_setup): Support ELFv2 ABI.
41130         (elf_machine_fixup_plt): Likewise.
41131         (elf_machine_plt_conflict): Likewise.
41132         (resolve_ifunc): Likewise.
41133         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41134         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41135         Likewise.
41136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41137         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41139         (makecontext): Support ELFv2 ABI.
41140         * elf/elf.h (EF_PPC64_ABI): Define.
41141
41142 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41143
41144         * sysdeps/powerpc/powerpc64/sysdep.h
41145         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41146         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41147         (ENTRY) [ASSEMBLER]: ... but instead here ...
41148         (EALIGN) [ASSEMBLER]: ... and here.
41149         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41150         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41151         (ENTRY_2) [!ASSEMBLER]: Use it.
41152         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41153         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41154         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41155         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41156         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41158         Use PPC64_LOAD_FUNCPTR.
41159
41160         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41161
41162 2013-12-04  Alan Modra  <amodra@gmail.com>
41163
41164         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41165         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41166         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41167         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41168
41169         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41170         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41171         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41172         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41173         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41174         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41175
41176 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41177
41178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41179         (__makecontext): Fix incorrect CFI when backtracing out of
41180         context created via makecontext.
41181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41182         (__setcontext): Fix incorrect CFI during switch to new context.
41183         (__novec_setcontext): Likewise.
41184
41185 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41186
41187         [BZ #4772]
41188         * time/strptime_l.c (__strptime_internal): Allow modifiers
41189         in strptime.
41190         * time/tst-strptime.c (day_tests): Add testcase.
41191
41192 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41193
41194         * scripts/bench.pl: Skip over blank lines.
41195
41196 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41197
41198         [BZ #926]
41199         * manual/time.texi (Calendar Time): Clarify what timezone functions
41200         use.
41201
41202 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41203
41204         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41205
41206 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41207
41208         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41209         implementation.
41210         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41211         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41212         * debug/memset_chk.c (__memset_chk): Likewise.
41213         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41214         * debug/strncpy_chk.c: Likewise.
41215
41216 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41217
41218         [BZ #15268]
41219         [BZ #15425]
41220         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41221         (__ieee754_exp): For possibly underflowing results, check size of
41222         result and force underflow exception if required.
41223         * math/auto-libm-test-in: Add more tests of exp.
41224         * math/auto-libm-test-out: Regenerated.
41225         * sysdeps/i386/fpu/libm-test-ulps: Update.
41226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41227
41228         [BZ #16283]
41229         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41230         * math/w_exp2f.c (__exp2f): Likewise.
41231         * math/w_exp2l.c (__exp2l): Likewise.
41232         * math/auto-libm-test-in: Do not allow missing errno on exp2
41233         underflow.
41234         * math/auto-libm-test-out: Regenerated.
41235
41236 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41237
41238         [BZ #16274]
41239         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41240         handle filename validation.
41241         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41242         (do_open): Delete.
41243
41244 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41245
41246         [BZ #6786]
41247         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41248         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41249         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41250         <float.h>.
41251         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41252         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41253         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41254         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41255         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41256         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41257         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41258         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41259         Add more erfc tests.
41260         * math/auto-libm-test-out: Regenerated.
41261         * sysdeps/i386/fpu/libm-test-ulps: Update.
41262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41263
41264         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41265         exp2, expm1, j0 and j1.
41266         * math/auto-libm-test-out: Regenerated.
41267         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41268         (erfc_test_data): Likewise.
41269         (exp_test_data): Likewise.
41270         (exp_tonearest_test_data): Likewise.
41271         (exp_towardzero_test_data): Likewise.
41272         (exp_downward_test_data): Likewise.
41273         (exp_upward_test_data): Likewise.
41274         (exp10_test_data): Likewise.
41275         (exp2_test_data): Likewise.
41276         (expm1_test_data): Likewise.
41277         (j0_test_data): Likewise.
41278         (j1_test_data): Likewise.
41279         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41280         (input_flag_type): Add flag_xfail_rounding.
41281         (input_flags): Add xfail-rounding.
41282         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41283         (output_for_one_input_case): Handle flag_xfail_rounding.
41284         * sysdeps/i386/fpu/libm-test-ulps: Update.
41285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41286
41287 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41288
41289         [BZ #16289]
41290         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41291         division by 0.
41292
41293 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41294
41295         [BZ #16195]
41296         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41297         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41298         (STAP_PROBE0): New macro.
41299         (STAP_PROBE1): Likewise.
41300         (STAP_PROBE2): Likewise.
41301         (STAP_PROBE3): Likewise.
41302         (STAP_PROBE4): Likewise.
41303
41304 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41305
41306         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41307
41308 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41309
41310         * benchtests/Makefile (bench): Add sqrt.
41311         (LDLIBS-bench-sqrt): New.
41312         * benchtests/sqrt-input: New.
41313
41314 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41315
41316         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41317         (GAIH_EAI): Likewise.
41318         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41319         (gaih_inet): Likewise.
41320         (getaddrinfo): Don't use GAIH_EAI.
41321
41322         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41323         (struct gaih): Remove definition.
41324
41325 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41326
41327         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41328         Use HERRNOP directly.
41329
41330 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41331
41332         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41333
41334 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41335
41336         * math/gen-auto-libm-tests.c (test_functions): Add more
41337         single-argument functions.
41338         (special_fill_pi_2): New function.
41339         (special_fill_minus_pi_2): Likewise.
41340         (special_fill_pi_6): Likewise.
41341         (special_fill_minus_pi_6): Likewise.
41342         (special_fill_pi_3): Likewise.
41343         (special_fill_2pi_3): Likewise.
41344         (special_fill_e): Likewise.
41345         (special_fill_1_e): Likewise.
41346         (special_fill_e_minus_1): Likewise.
41347         (special_real_inputs): Add more special inputs.
41348         (output_for_one_input_case): Do not require ERANGE on underflow to
41349         zero if round-to-nearest result does not underflow to zero, unless
41350         exact results required.
41351         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41352         atan, atanh, cbrt, cos and cosh.
41353         * math/auto-libm-test-out: Regenerated.
41354         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41355         (acos_tonearest_test_data): Likewise.
41356         (acos_towardzero_test_data): Likewise.
41357         (acos_downward_test_data): Likewise.
41358         (acos_upward_test_data): Likewise.
41359         (acosh_test_data): Likewise.
41360         (asin_test_data): Likewise.
41361         (asin_tonearest_test_data): Likewise.
41362         (asin_towardzero_test_data): Likewise.
41363         (asin_upward_test_data): Likewise.
41364         (asinh_test_data): Likewise.
41365         (atan_test_data): Likewise.
41366         (atanh_test_data): Likewise.
41367         (cbrt_test_data): Likewise.
41368         (cos_test_data): Likewise.
41369         (cos_tonearest_test_data): Likewise.
41370         (cos_towardzero_test_data): Likewise.
41371         (cos_downward_test_data): Likewise.
41372         (cos_upward_test_data): Likewise.
41373         (cosh_test_data): Likewise.
41374         (cosh_tonearest_test_data): Likewise.
41375         (cosh_towardzero_test_data): Likewise.
41376         (cosh_downward_test_data): Likewise.
41377         (cosh_upward_test_data): Likewise.
41378         * sysdeps/i386/fpu/libm-test-ulps: Update.
41379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41380
41381 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41382
41383         [BZ #6787]
41384         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41385         * math/w_exp10f.c (__exp10f): Likewise.
41386         * math/w_exp10l.c (__exp10l): Likewise.
41387         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41388         errno settings in existing tests.
41389
41390         [BZ #14032]
41391         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41392         precision control set to double precision.
41393         * sysdeps/i386/fpu/w_sqrt.c: New file.
41394         * math/auto-libm-test-in: Add more tests.
41395         * math/auto-libm-test-out: Update.
41396
41397         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41398         (sqrt_test_tonearest): New function.
41399         (sqrt_towardzero_test_data): New variable.
41400         (sqrt_test_towardzero): New function.
41401         (sqrt_downward_test_data): New variable.
41402         (sqrt_test_downward): New function.
41403         (sqrt_upward_test_data): New variable.
41404         (sqrt_test_upward): New function.
41405         (main): Call the new functions.
41406
41407         * math/gen-auto-libm-tests.c: New file.
41408         * math/auto-libm-test-in: Likewise.
41409         * math/auto-libm-test-out: New generated file.
41410         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41411         variables.
41412         (%beautify): Add generated representations of zero.
41413         (top level): Set $auto_input and call parse_auto_input.
41414         (beautify): Remove trailing "f" from hex float constants.
41415         (parse_args): Handle XFAIL_TEST.
41416         (convert_condition): New function.
41417         (or_value): Likewise.
41418         (or_cond_value): Likewise.
41419         (generate_testfile): Handle AUTO_TESTS_* lines.
41420         (parse_auto_input): New function.
41421         * math/libm-test.inc (XFAIL_TEST): New macro.
41422         (ERRNO_UNCHANGED): Update value.
41423         (ERRNO_EDOM): Likewise.
41424         (ERRNO_ERANGE): Likewise.
41425         (IGNORE_RESULT): Likewise.
41426         (TEST_COND_flt_32): New macro.
41427         (TEST_COND_dbl_64): Likewise.
41428         (TEST_COND_ldbl_96_intel): Likewise.
41429         (TEST_COND_ldbl_96_m68k): Likewise.
41430         (TEST_COND_ldbl_128): Likewise.
41431         (TEST_COND_ldbl_128ibm): Likewise.
41432         (TEST_COND_long32): Likewise.
41433         (TEST_COND_long64): Likewise.
41434         (TEST_COND_before_rounding): Likewise.
41435         (TEST_COND_after_rounding): Likewise.
41436         (enable_test): Handle XFAIL_TEST flag.
41437         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41438         with finite results.
41439         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41440         auto-libm-test-out.
41441
41442 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41443             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41444
41445         [BZ #16214]
41446         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41447         __tls_get_addr_internal instead of __tls_get_offset in order to
41448         avoid GOT pointer dependency.  Make rtld export
41449         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41450         __tls_get_addr since we are a __tls_get_offset platform.
41451         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41452         GOT pointer being set up before.
41453         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41454
41455 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41456
41457         * manual/math.texi (Errors in Math Functions): Document accuracy
41458         goals.
41459
41460         [BZ #15004]
41461         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41462         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41463         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41464         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41465         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41466         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41467         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41468         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41469         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41470         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41471         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41472         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41473         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41474         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41475         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41476         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41477
41478         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41479         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41480         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41481         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41482         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41483         Likewise.
41484         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41485         Likewise.
41486         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41487         Likewise.
41488         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41489         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41490         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41491         atomic-feupdateenv and flt-rounds.
41492         * sysdeps/powerpc/nofpu/Versions (libc): Add
41493         __atomic_feholdexcept, __atomic_feclearexcept,
41494         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41495         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41496         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41497         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41498         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41499         here.
41500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41501         Update.
41502
41503         * manual/arith.texi (FP Exceptions): Document that exceptions may
41504         not be raised when matherr is used.
41505         (Math Error Reporting): Document overflow in directed rounding
41506         modes.  Document that errno may not be set when finite values are
41507         returned on overflow.  Document intent to set errno on underflow
41508         only for underflow to zero.
41509
41510         [BZ #16271]
41511         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41512         round-to-nearest then adjust result for other rounding modes.
41513         * include/fenv.h (fegetround): Use libm_hidden_proto.
41514         * math/fegetround.c (fegetround): Use libm_hidden_def.
41515         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41516         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41517         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41518         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41519         Likewise.
41520         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41521         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41522         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41523         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41524
41525 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41526
41527         [BZ #16077]
41528         * nss/Versions (libnss_files): Add
41529         _nss_files_gethostbyname3_r.
41530         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41531         New function.
41532         (HOST_DB_LOOKUP): Remove macro.
41533         (_nss_files_gethostbyname_r): Implement function without the
41534         HOST_DB_LOOKUP macro.
41535         (_nss_files_gethostbyname2_r): Likewise.
41536
41537 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41538
41539         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41540
41541 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41542
41543         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41544         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41545         warning.
41546
41547 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41548
41549         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41550         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41551         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41552         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41553         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41554         __fe_nomask_env_priv and attribute_hidden.
41555         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41556         (libc_feupdateenv_test_ppc): Likewise.
41557         (libc_feresetround_ppc): Likewise.
41558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41559         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41560         compat_symbol macro.
41561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41562         (__fe_nomask_env): Likewise.
41563         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41564
41565 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41566
41567         * string/Makefile: Remove ifunc tests.
41568         * string/test-string.h: Define TEST_IFUNC.
41569         * string/test-bcopy-ifunc.c: Remove.
41570         * string/test-bzero-ifunc.c: Likewise.
41571         * string/test-memccpy-ifunc.c: Likewise.
41572         * string/test-memchr-ifunc.c: Likewise.
41573         * string/test-memcmp-ifunc.c: Likewise.
41574         * string/test-memcpy-ifunc.c: Likewise.
41575         * string/test-memmem-ifunc.c: Likewise.
41576         * string/test-memmove-ifunc.c: Likewise.
41577         * string/test-mempcpy-ifunc.c: Likewise.
41578         * string/test-memrchr-ifunc.c: Likewise.
41579         * string/test-memset-ifunc.c: Likewise.
41580         * string/test-rawmemchr-ifunc.c: Likewise.
41581         * string/test-stpcpy-ifunc.c: Likewise.
41582         * string/test-stpncpy-ifunc.c: Likewise.
41583         * string/test-strcasecmp-ifunc.c: Likewise.
41584         * string/test-strcasestr-ifunc.c: Likewise.
41585         * string/test-strcat-ifunc.c: Likewise.
41586         * string/test-strchr-ifunc.c: Likewise.
41587         * string/test-strchrnul-ifunc.c: Likewise.
41588         * string/test-strcmp-ifunc.c: Likewise.
41589         * string/test-strcpy-ifunc.c: Likewise.
41590         * string/test-strcspn-ifunc.c: Likewise.
41591         * string/test-strlen-ifunc.c: Likewise.
41592         * string/test-strncasecmp-ifunc.c: Likewise.
41593         * string/test-strncat-ifunc.c: Likewise.
41594         * string/test-strncmp-ifunc.c: Likewise.
41595         * string/test-strncpy-ifunc.c: Likewise.
41596         * string/test-strnlen-ifunc.c: Likewise.
41597         * string/test-strpbrk-ifunc.c: Likewise.
41598         * string/test-strrchr-ifunc.c: Likewise.
41599         * string/test-strspn-ifunc.c: Likewise.
41600         * string/test-strstr-ifunc.c: Likewise.
41601
41602 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41603
41604         * benchtests/Makefile: Remove ifunc tests.
41605         * benchtests/bench-string.h: Define TEST_IFUNC.
41606         * benchtests/bench-bcopy-ifunc.c: Remove.
41607         * benchtests/bench-bzero-ifunc.c: Likewise.
41608         * benchtests/bench-memccpy-ifunc.c: Likewise.
41609         * benchtests/bench-memchr-ifunc.c: Likewise.
41610         * benchtests/bench-memcmp-ifunc.c: Likewise.
41611         * benchtests/bench-memcpy-ifunc.c: Likewise.
41612         * benchtests/bench-memmem-ifunc.c: Likewise.
41613         * benchtests/bench-memmove-ifunc.c: Likewise.
41614         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41615         * benchtests/bench-memrchr-ifunc.c: Likewise.
41616         * benchtests/bench-memset-ifunc.c: Likewise.
41617         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41618         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41619         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41620         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41621         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41622         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41623         * benchtests/bench-strcat-ifunc.c: Likewise.
41624         * benchtests/bench-strchr-ifunc.c: Likewise.
41625         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41626         * benchtests/bench-strcmp-ifunc.c: Likewise.
41627         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41628         * benchtests/bench-strcpy-ifunc.c: Likewise.
41629         * benchtests/bench-strcspn-ifunc.c: Likewise.
41630         * benchtests/bench-strlen-ifunc.c: Likewise.
41631         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41632         * benchtests/bench-strncat-ifunc.c: Likewise.
41633         * benchtests/bench-strncmp-ifunc.c: Likewise.
41634         * benchtests/bench-strncpy-ifunc.c: Likewise.
41635         * benchtests/bench-strnlen-ifunc.c: Likewise.
41636         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41637         * benchtests/bench-strrchr-ifunc.c: Likewise.
41638         * benchtests/bench-strsep-ifunc.c: Likewise.
41639         * benchtests/bench-strspn-ifunc.c: Likewise.
41640         * benchtests/bench-strstr-ifunc.c: Likewise.
41641
41642 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41643
41644         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41645
41646 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41647
41648         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41649         * rt/aio.h: Likewise.
41650         * sysdeps/gnu/bits/utmp.h: Likewise.
41651         * sysdeps/gnu/bits/utmpx.h: Likewise.
41652         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41653         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41654         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41655         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41656         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41657         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41658         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41659         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41660         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41661         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41662         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41663         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41664         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41666         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41667         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41668         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41669         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41670         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41671         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41672         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41673         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41674         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41675         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41676         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41677         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41678         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41679         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41680         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41681         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41682         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41683         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41684         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41685         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41686         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41687         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41688         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41689         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41690         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41691         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41692         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41693         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41694
41695 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41696
41697         [BZ #16245]
41698         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41699         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41700
41701 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41702
41703         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41704         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41705         Likewise.
41706
41707 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41708
41709         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41710         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41711         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41712         (__fesetround): Remove define.
41713         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41714         rounding and exceptions handling.
41715         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41716         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41717         (__fe_nomask_env): Likewise.
41718         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41719         __fegetround instead of fegetround.
41720         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41721         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41722
41723 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41724
41725         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41726         it's there.
41727
41728         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41729
41730 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41731
41732         [BZ #11157]
41733         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41734         (encrypt_r): Likewise.
41735         * malloc/obstack.h (obstack_free): Likewise.
41736         * posix/unistd.h (encrypt): Likewise.
41737
41738 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41739
41740         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41741         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41742         DL_CALL_DT_FINI() that call the functions directly.
41743         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41744         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41745         * elf/dl-fini.c: Likewise.
41746
41747 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41748
41749         * malloc/hooks.c (memalign_check): Add alignment rounding.
41750         * malloc/malloc.c (_mid_memalign): New function.
41751         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41752         Implement by calling _mid_memalign.
41753         * manual/probes.texi (Memory Allocation Probes): Remove
41754         memory_valloc_retry and memory_pvalloc_retry.
41755
41756 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41757
41758         * locale/programs/locarchive.c (open_archive): Add const
41759         qualifier to ARCHIVEFNAME and copy default fname to
41760         DEFAULT_FNAME.
41761
41762         [BZ #15601]
41763         * libio/tst-widetext.input: Rename Oriya to Odia.
41764         * locale/iso-639.def: Likewise.
41765
41766         * manual/probes.texi (Mathematical Function Probes): Add
41767         documentation for sin, cos, asin and acos probes.
41768         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41769         (__sin32): Add slowasin probe.
41770         (__cos32): Add slowacos probe.
41771         (__mpsin): Add slowsin probe.
41772         (__mpcos): Add slowcos probe.
41773
41774 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41775
41776         [BZ #15483]
41777         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41778         thread-local __sim_exceptions_thread and global
41779         __sim_exceptions_global.
41780         (__sim_disabled_exceptions): Change to thread-local
41781         __sim_disabled_exceptions_thread and global
41782         __sim_disabled_exceptions_global.
41783         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41784         and global __sim_round_mode_global.
41785         (__simulate_exceptions): Use thread-local floating-point state and
41786         set global state from it as needed.
41787         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41788         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41789         __sim_round_mode_thread.
41790         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41791         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41792         and global __sim_exceptions_global.
41793         (__sim_disabled_exceptions): Change to thread-local
41794         __sim_disabled_exceptions_thread and global
41795         __sim_disabled_exceptions_global.
41796         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41797         and global __sim_round_mode_global.
41798         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41799         (SIM_SET_GLOBAL): Likewise.
41800         * sysdeps/powerpc/soft-fp/sfp-machine.h
41801         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41802         __sim_round_mode_thread.
41803         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41804         __sim_disabled_exceptions_thread.
41805         (__sim_exceptions): Change to __sim_exceptions_thread.
41806         (__sim_disabled_exceptions): Change to
41807         __sim_disabled_exceptions_thread.
41808         (__sim_round_mode): Change to __sim_round_mode_thread.
41809         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41810         thread-local floating-point state and set global state from it as
41811         needed.
41812         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41813         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41814         (__sim_disabled_exceptions): Remove extern declaration.
41815         (feenableexcept): Use thread-local floating-point state and set
41816         global state from it as needed.
41817         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41818         extern declaration.
41819         (__sim_disabled_exceptions): Likewise.
41820         (__sim_round_mode): Likewise.
41821         (__fegetenv): Use thread-local floating-point state.
41822         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41823         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41824         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41825         floating-point state and set global state from it as needed.
41826         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41827         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41828         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41829         Likewise.
41830         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41831         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41832         Likewise.
41833         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41834         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41835         Use __sim_round_mode_thread.
41836         * math/test-fenv-tls.c: New file.
41837         * math/Makefile (tests): Add test-fenv-tls.
41838         ($(objpfx)test-fenv-tls): Depend on
41839         $(common-objpfx)nptl/libpthread.so.
41840
41841 2013-11-19  Andreas Schwab  <schwab@suse.de>
41842
41843         * locale/programs/locale.c (show_info): Decode wordarray elements.
41844         * locale/categories.def (LC_MONETARY): Add element for
41845         _NL_MONETARY_CRNCYSTR.
41846         * locale/C-monetary.c (conversion_rate): New variable.
41847         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41848         element.
41849
41850 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41851
41852         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41853         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41854
41855 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41856
41857         * elf/Makefile (tst-auxv): New test.
41858         * elf/tst-auxv.c: New
41859         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41860
41861 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41862
41863         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41864         (hidden_proto): Caller changed.
41865         (hidden_tls_proto): New macro.
41866         (libc_hidden_tls_proto): Likewise.
41867         (rtld_hidden_tls_proto): Likewise.
41868         (libm_hidden_tls_proto): Likewise.
41869         (libresolv_hidden_tls_proto): Likewise.
41870         (librt_hidden_tls_proto): Likewise.
41871         (libdl_hidden_tls_proto): Likewise.
41872         (libnss_files_hidden_tls_proto): Likewise.
41873         (libnsl_hidden_tls_proto): Likewise.
41874         (libnss_nisplus_hidden_tls_proto): Likewise.
41875         (libutil_hidden_tls_proto): Likewise.
41876
41877 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41878
41879         [BZ #10253]
41880         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41881         (decompose_rpath): Defer expansion to fillin_rpath.
41882         (_dl_init_paths): Pass linkmap to fillin_rpath.
41883
41884 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41885
41886         * benchtests/Makefile: Add strsep.
41887         * benchtests/bench-strsep.c: New file: strsep benchtest.
41888         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41889
41890 2013-11-18  Andreas Schwab  <schwab@suse.de>
41891
41892         * locale/programs/locale.c (show_info) [case byte]: Check for
41893         '\377' instead of '\177'.
41894         * locale/C-monetary.c (not_available): Always use "\377".
41895         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41896         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41897         detect unavailable sign_posn locale elements.
41898         * locale/localeconv.c (__localeconv): For grouping and
41899         mon_grouping handle "\177" and "\377" like no grouping.
41900         (INT_ELEM): New macro.  Use it to set all numeric members.
41901         * locale/programs/ld-monetary.c (monetary_read)
41902         <tok_mon_grouping>: Normalize single -1 to the empty string.
41903         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41904         Likewise.
41905
41906 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41907
41908         [BZ #16055]
41909         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41910         when we match (nil).
41911         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41912
41913 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41914
41915         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41916         (NO_TEST_INLINE): Update value.
41917         (ERRNO_UNCHANGED): Likewise.
41918         (ERRNO_EDOM): Likewise.
41919         (ERRNO_ERANGE): Likewise.
41920         (IGNORE_RESULT): Likewise.
41921         (check_float_internal): Check signs of NaN results if
41922         TEST_NAN_SIGN used.
41923         (check_complex): Pass TEST_NAN_SIGN flag through to second
41924         check_float_internal call.
41925         (copysign_test_data): Add tests with quiet NaNs as second
41926         argument.  Use TEST_NAN_SIGN.
41927         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41928         TEST_NAN_SIGN.
41929         (signbit_test_data): Add tests of quiet NaN argument.
41930         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41931
41932         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41933         $ignore_result.
41934         (parse_args): Handle function results specified as IGNORE.
41935         * math/libm-test.inc (IGNORE_RESULT): New macro.
41936         (check_float_internal): Do not check numerical result if flag
41937         IGNORE_RESULT set.
41938         (check_complex): Pass through IGNORE_RESULT to second
41939         check_float_internal call.
41940         (check_int): Do not check numerical result if flag IGNORE_RESULT
41941         set.
41942         (check_long): Likewise.
41943         (check_bool): Likewise.
41944         (check_longlong): Likewise.
41945         (lrint_test_data): Add tests of infinite and NaN arguments.
41946         (lrint_tonearest_test_data): Likewise.
41947         (lrint_towardzero_test_data): Likewise.
41948         (lrint_downward_test_data): Likewise.
41949         (lrint_upward_test_data): Likewise.
41950         (llrint_test_data): Likewise.
41951         (llrint_tonearest_test_data): Likewise.
41952         (llrint_towardzero_test_data): Likewise.
41953         (llrint_downward_test_data): Likewise.
41954         (llrint_upward_test_data): Likewise.
41955         (lround_test_data): Likewise.
41956         (llround_test_data): Likewise.
41957
41958         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41959         (ERRNO_UNCHANGED): Update value.
41960         (ERRNO_EDOM): Likewise.
41961         (ERRNO_ERANGE): Likewise.
41962         (NO_TEST_INLINE_FLOAT): New macro.
41963         (NO_TEST_INLINE_DOUBLE): Likewise.
41964         (enable_test): New function.
41965         (RUN_TEST_f_f): Check enable_test before running test.
41966         (RUN_TEST_2_f): Likewise.
41967         (RUN_TEST_fff_f): Likewise.
41968         (RUN_TEST_c_f): Likewise.
41969         (RUN_TEST_f_f1): Likewise.
41970         (RUN_TEST_fF_f1): Likewise.
41971         (RUN_TEST_fI_f1): Likewise.
41972         (RUN_TEST_ffI_f1): Likewise.
41973         (RUN_TEST_c_c): Likewise.
41974         (RUN_TEST_cc_c): Likewise.
41975         (RUN_TEST_f_i): Likewise.
41976         (RUN_TEST_f_i_tg): Likewise.
41977         (RUN_TEST_ff_i_tg): Likewise.
41978         (RUN_TEST_f_b): Likewise.
41979         (RUN_TEST_f_b_tg): Likewise.
41980         (RUN_TEST_f_l): Likewise.
41981         (RUN_TEST_f_L): Likewise.
41982         (RUN_TEST_fFF_11): Likewise.
41983         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41984         conditionals.
41985         (cosh_test_data): Likewise.
41986         (exp_test_data): Likewise.
41987         (expm1_test_data): Likewise.
41988         (hypot_test_data): Likewise.
41989         (pow_test_data): Likewise.
41990         (sinh_test_data): Likewise.
41991         (tanh_test_data): Likewise.
41992         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41993         flags argument.
41994
41995         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41996         tests with quiet NaN input and output.
41997         (acosh_test_data): Likewise.
41998         (asin_test_data): Likewise.
41999         (asinh_test_data): Likewise.
42000         (atan_test_data): Likewise.
42001         (atanh_test_data): Likewise.
42002         (atan2_test_data): Likewise.
42003         (cbrt_test_data): Likewise.
42004         (cos_test_data): Likewise.
42005         (cosh_test_data): Likewise.
42006         (erf_test_data): Likewise.
42007         (erfc_test_data): Likewise.
42008         (exp_test_data): Likewise.
42009         (exp10_test_data): Likewise.
42010         (exp2_test_data): Likewise.
42011         (expm1_test_data): Likewise.
42012         (hypot_test_data): Likewise.
42013         (j0_test_data): Likewise.
42014         (j1_test_data): Likewise.
42015         (jn_test_data): Likewise.
42016         (lgamma_test_data): Likewise.
42017         (log_test_data): Likewise.
42018         (log10_test_data): Likewise.
42019         (log1p_test_data): Likewise.
42020         (log2_test_data): Likewise.
42021         (pow_test_data): Likewise.
42022         (scalb_test_data): Likewise.
42023         (sin_test_data): Likewise.
42024         (sincos_test_data): Likewise.
42025         (sinh_test_data): Likewise.
42026         (tan_test_data): Likewise.
42027         (tanh_test_data): Likewise.
42028         (tgamma_test_data): Likewise.
42029         (y0_test_data): Likewise.
42030         (y1_test_data): Likewise.
42031         (yn_test_data): Likewise.
42032
42033         [BZ #16167]
42034         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42035         argument being NaN and avoid computations with second argument in
42036         that case.
42037         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42038         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42039         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42040
42041 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42042
42043         * locale/iso-639.def: Add Chitwani Tharu (the).
42044
42045 2013-11-14  Andreas Schwab  <schwab@suse.de>
42046
42047         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42048         word instead of empty string.
42049
42050 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42051
42052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42053         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42055         (__fe_nomask_env): Likewise.
42056
42057 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42058
42059         * benchtests/bench-timing.h: Include time.h.
42060
42061 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42062
42063         [BZ #15997]
42064         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42065         to 3.4.0 for x32.
42066         * sysdeps/unix/sysv/linux/configure: Regenerated.
42067
42068 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42069
42070         [BZ #16151]
42071         * stdlib/strtod_l.c (round_and_return): Do not consider
42072         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42073         exponent one less than half the least subnormal exponent.
42074         * stdlib/test-strtod-round-data: Add more tests.
42075         * stdlib/tst-strtod-round.c (tests): Regenerated.
42076
42077 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42078
42079         [BZ #14143]
42080         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42081         (__fe_mask_env): Likewise.
42082         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42083         libm_hidden_proto and add function prototype.
42084         (__fe_mask_env): Add function prototype.
42085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42086         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42088         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42090         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42091
42092 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42093
42094         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42095         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42096
42097 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42098
42099         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42100         of htab_find_slot().
42101
42102 2013-11-11  David S. Miller  <davem@davemloft.net>
42103
42104         [BZ #16150]
42105         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42106         symbol in the non-vis3 case in static builds.
42107         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42108         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42109         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42110         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42111
42112 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42113
42114         [BZ #387]
42115         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42116         it is empty.
42117
42118 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42119
42120         * benchtests/Makefile: Add bench-strtod.
42121         * benchtests/bench-strtod.c: New file: strtod benchtest
42122
42123 2013-11-11  Andreas Schwab  <schwab@suse.de>
42124
42125         [BZ #16153]
42126         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42127         terminating NUL in key length.
42128
42129 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42130
42131         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42132         Add artificial ODP entry for vDSO symbol for PPC64.
42133         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42134         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42135
42136 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42137
42138         [BZ #15374]
42139         * nss/getent.c (services_keys): Recognize services starting with digit.
42140
42141 2013-11-06  David S. Miller  <davem@davemloft.net>
42142
42143         [BZ #15985]
42144         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42145         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42146
42147 2013-11-06  Will Newton  <will.newton@linaro.org>
42148
42149         * manual/memory.texi (Malloc Examples): Remove register
42150         keyword from examples.
42151
42152 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42153
42154         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42155
42156 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42157
42158         [BZ #6981]
42159         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42160         depending on [__GCC_IEC_559 > 0].
42161         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42162         depending on [__GCC_IEC_559_COMPLEX > 0].
42163
42164 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42165
42166         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42167         to iso-639.def.
42168
42169 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42170
42171         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42172
42173 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42174
42175         [BZ #16112]
42176         * malloc/malloc (malloc_info): Do not handle first bin as
42177         special case.
42178
42179 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42180
42181         * locale/iso-639.def: Add Central Nahuatl (nhn).
42182
42183 2013-11-01  Bruno Haible  <bruno@clisp.org>
42184
42185         [BZ #7003]
42186         * manual/math.texi (BSD Random): Specify range upper bound as
42187         in POSIX.
42188
42189 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42190
42191         * locale/iso-639.def: Add Meadow Mari (mhr).
42192
42193 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42194
42195         [BZ #14752], [BZ #15763]
42196         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42197         Validate name.
42198         * rt/tst_shm.c: Add test for escaping directory.
42199
42200 2013-10-31  Andreas Schwab  <schwab@suse.de>
42201
42202         [BZ #15917]
42203         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42204         followed by 'x' as part of digit sequence.
42205         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42206
42207 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42208
42209         [BZ #16037]
42210         * configure.ac: allow GNU Make 4.0 and greater.
42211         * configure: Regenerated.
42212
42213 2013-10-30  Will Newton  <will.newton@linaro.org>
42214
42215         [BZ #16038]
42216         * malloc/hooks.c (memalign_check): Limit alignment to the
42217         maximum representable power of two.
42218         * malloc/malloc.c (__libc_memalign): Likewise.
42219         * malloc/tst-memalign.c (do_test): Add test for very
42220         large alignment values.
42221         * malloc/tst-posix_memalign.c (do_test): Likewise.
42222
42223 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42224
42225         [BZ #11087]
42226         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42227         (munmap_chunk): Likewise.
42228         (mremap_chunk): Likewise.
42229
42230 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42231
42232         [BZ #15799]
42233         * stdlib/div.c (div): Remove obsolete code.
42234         * stdlib/ldiv.c (ldiv): Likewise.
42235         * stdlib/lldiv.c (lldiv): Likewise.
42236
42237 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42238
42239         [BZ #16071]
42240         * nss/nss_files/files-XXX.c (get_contents_ret): New
42241         enumerator.
42242         (get_contents): New function.
42243         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42244
42245 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42246
42247         * configure.in: Moved to ...
42248         * configure.ac: ... here. Change reference to configure.in
42249         to configure.ac.
42250         * sysdeps/arm/preconfigure.ac: ... here.
42251         configure.in to configure.ac.
42252         * sysdeps/gnu/configure.in: Moved to ...
42253         * sysdeps/gnu/configure.ac: ... here.
42254         * sysdeps/i386/configure.in: Moved to ...
42255         * sysdeps/i386/configure.ac: ... here.
42256         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42257         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42258         * sysdeps/mach/configure.in: Moved to ...
42259         * sysdeps/mach/configure.ac: ... here.
42260         * sysdeps/mach/hurd/configure.in: Moved to ...
42261         * sysdeps/mach/hurd/configure.ac: ... here.
42262         * sysdeps/powerpc/configure.in: Moved to ...
42263         * sysdeps/powerpc/configure.ac: ... here.
42264         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42265         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42266         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42267         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42268         * sysdeps/s390/s390-32/configure.in: Moved to ...
42269         * sysdeps/s390/s390-32/configure.ac: ... here.
42270         * sysdeps/s390/s390-64/configure.in: Moved to ...
42271         * sysdeps/s390/s390-64/configure.ac: ... here.
42272         * sysdeps/sh/configure.in: Moved to ...
42273         * sysdeps/sh/configure.ac: ... here.
42274         * sysdeps/sparc/configure.in: Moved to ...
42275         * sysdeps/sparc/configure.ac: ... here.
42276         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42277         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42278         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42279         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42280         * sysdeps/x86_64/configure.in: Moved to ...
42281         * sysdeps/x86_64/configure.ac: ... here.
42282         * sysdeps/x86_64/preconfigure.in: Moved to ...
42283         * sysdeps/x86_64/preconfigure.ac: ... here.
42284         * aclocal.m4: Change reference to configure.in to configure.ac.
42285         * config.h.in: Likewise.
42286         * manual/install.texi: Likewise.
42287         * manual/maint.texi: Likewise.
42288         * Makefile: Likewise.
42289         * malloc/Makefile: Likewise.
42290         * nscd/Makefile: Likewise.
42291         * Makeconfig: Change reference to configure.in and
42292         preconfigure.in to configure.ac and preconfigure.ac
42293         respectively.
42294         * INSTALL: Regenerated.
42295         * configure: Likewise.
42296         * sysdeps/gnu/configure: Likewise.
42297         * sysdeps/i386/configure: Likewise.
42298         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42299         * sysdeps/mach/configure: Likewise.
42300         * sysdeps/mach/hurd/configure: Likewise.
42301         * sysdeps/powerpc/configure: Likewise.
42302         * sysdeps/powerpc/powerpc32/configure: Likewise.
42303         * sysdeps/powerpc/powerpc64/configure: Likewise.
42304         * sysdeps/s390/s390-32/configure: Likewise.
42305         * sysdeps/s390/s390-64/configure: Likewise.
42306         * sysdeps/sh/configure: Likewise.
42307         * sysdeps/sparc/configure: Likewise.
42308         * sysdeps/unix/sysv/linux/configure: Likewise.
42309         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42310         * sysdeps/x86_64/configure: Likewise.
42311         * sysdeps/x86_64/preconfigure: Likewise.
42312
42313 2013-10-29  Andreas Schwab  <schwab@suse.de>
42314
42315         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42316
42317 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42318
42319         * benchtests/pow-inputs: Add new inputs.
42320
42321         * benchtests/exp-inputs: Add new inputs.
42322
42323         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42324         conditional check for return value.
42325         (__cos32): Likewise.
42326
42327 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42328
42329         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42330         to provide a boost for large inputs with word alignment.
42331         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42332         implementation based on optimized PPC64 strcpy.
42333         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42334         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42335         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42336         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42337
42338 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42339
42340         [BZ #2801]
42341         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42342
42343 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42344
42345         [BZ #14876]
42346         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42347         * time/tst-strptime.c (day_tests): Add testcase.
42348
42349 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42350
42351         [BZ #14029]
42352         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42353
42354 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42355
42356         [BZ #16074]
42357         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42358         MAP_FAILED on error.
42359
42360 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42361
42362         [BZ #16072]
42363         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42364         heap for large requests.
42365
42366 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42367
42368         [BZ #9954]
42369         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42370         result if the result has no associated interface.
42371         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42372         interface for all 127.X.Y.Z addresses.
42373
42374 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42375
42376         * locale/iso-639.def: Add Ligurian (lij)
42377
42378 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42379
42380         [BZ #15825]
42381         * sunrpc/rpc_main.c: Document rpcgen -5.
42382
42383 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42384
42385         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42386
42387 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42388
42389         [BZ #10278]
42390         * posix/glob.c: Match only directories when trailing slash is present.
42391         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42392         (main): Add testcase.
42393
42394 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42395
42396         [BZ #15670]
42397         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42398
42399 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42400
42401         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42402         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42403         AUTH_DES and cindex for FIPS 140-2.
42404         (DES Encryption): Add cindex FIPS 46-3.
42405
42406         * locale/locarchive.h (struct locarhandle): Add fname.
42407         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42408         if an optional argument was specified to --list-archive,
42409         otherwise NULL.
42410         * locale/programs/locarchive.c (show_archive_content): Take new
42411         argument fname and pass it via ah.fname to open_archive.
42412         * locale/programs/localedef.h: Update decl.
42413         (open_archive): If AH->fname is non-null, open that file
42414         rather than the default file name, and don't ignore ENOENT.
42415         (create_archive): Set AH.fname to NULL.
42416         (delete_locales_from_archive): Likewise.
42417         (add_locales_to_archive): Likewise.
42418         * locale/programs/locfile.c (write_all_categories): Likewise.
42419
42420 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42421             Aldy Hernandez  <aldyh@redhat.com>
42422
42423         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42424         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42425         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42426         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42427         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42428         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42429         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42430         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42431         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42432         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42433         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42434         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42435         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42436         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42437         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42438         Likewise.
42439         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42440         Likewise.
42441         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42442         Likewise.
42443         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42444         Likewise.
42445         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42446         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42447         Likewise.
42448         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42449         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42450         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42451         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42452         Likewise.
42453         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42454         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42455         * sysdeps/powerpc/preconfigure: Likewise.
42456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42457         Likewise.
42458         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42459         Replace contents of file by #include of <fenv_libc.h>.
42460         * sysdeps/powerpc/soft-fp/sfp-machine.h
42461         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42462         and <sys/prctl.h>.
42463         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42464         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42465         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42466         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42467         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42468         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42469         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42470         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42471         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42472         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42473         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42474         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42476         Allow copysignl PLT reference to be missing.
42477
42478 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42479             Joseph Myers  <joseph@codesourcery.com
42480
42481         [BZ #15948]
42482         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42483         single character.
42484         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42485
42486 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42487
42488         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42489         * elf/tst-tls1.c: Likewise.
42490         * elf/tst-tls10.h: Likewise.
42491         * elf/tst-tls14.c: Likewise.
42492         * elf/tst-tls2.c: Likewise.
42493         * elf/tst-tls3.c: Likewise.
42494         * elf/tst-tls4.c: Likewise.
42495         * elf/tst-tls5.c: Likewise.
42496         * elf/tst-tls6.c: Likewise.
42497         * elf/tst-tls7.c: Likewise.
42498         * elf/tst-tls8.c: Likewise.
42499         * elf/tst-tls9.c: Likewise.
42500         * elf/tst-tlsmod1.c: Likewise.
42501         * elf/tst-tlsmod13.c: Likewise.
42502         * elf/tst-tlsmod13a.c: Likewise.
42503         * elf/tst-tlsmod14a.c: Likewise.
42504         * elf/tst-tlsmod16a.c: Likewise.
42505         * elf/tst-tlsmod16b.c: Likewise.
42506         * elf/tst-tlsmod2.c: Likewise.
42507         * elf/tst-tlsmod3.c: Likewise.
42508         * elf/tst-tlsmod4.c: Likewise.
42509         * elf/tst-tlsmod5.c: Likewise.
42510         * elf/tst-tlsmod6.c: Likewise.
42511
42512 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42513
42514         [BZ #12486]
42515         * malloc/malloc.c: remove checks for statistics.
42516
42517 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42518
42519         [BZ #15277]
42520         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42521         * inet/tst-network.c: Add testcase.
42522
42523 2013-10-17  Andreas Schwab  <schwab@suse.de>
42524
42525         [BZ #15218]
42526         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42527         to determine canonical name.
42528
42529 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42530
42531         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42532         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42533         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42534         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42535         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42536         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42537         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42538         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42539         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42540         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42541         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42542         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42543         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42544         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42545         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42546         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42547         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42548         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42549         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42550         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42551         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42552         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42553         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42554         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42555         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42556         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42557         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42558         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42559         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42560         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42561         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42562         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42563         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42564         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42565         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42566         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42567         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42568         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42569         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42570         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42571         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42572         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42573         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42574         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42575         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42576         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42577         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42578         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42579         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42580         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42581         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42582         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42583         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42584         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42585         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42586         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42587         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42588         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42589
42590 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42591
42592         [BZ #16041]
42593         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42594         make result into a quiet NaN.
42595
42596 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42597
42598         * soft-fp/adddf3.c: Fix horizontal whitespace.
42599         * soft-fp/addsf3.c: Likewise.
42600         * soft-fp/addtf3.c: Likewise.
42601         * soft-fp/divdf3.c: Likewise.
42602         * soft-fp/divsf3.c: Likewise.
42603         * soft-fp/divtf3.c: Likewise.
42604         * soft-fp/double.h: Likewise.
42605         * soft-fp/eqdf2.c: Likewise.
42606         * soft-fp/eqsf2.c: Likewise.
42607         * soft-fp/eqtf2.c: Likewise.
42608         * soft-fp/extenddftf2.c: Likewise.
42609         * soft-fp/extended.h: Likewise.
42610         * soft-fp/extendsfdf2.c: Likewise.
42611         * soft-fp/extendsftf2.c: Likewise.
42612         * soft-fp/extendxftf2.c: Likewise.
42613         * soft-fp/fixdfdi.c: Likewise.
42614         * soft-fp/fixdfsi.c: Likewise.
42615         * soft-fp/fixdfti.c: Likewise.
42616         * soft-fp/fixsfdi.c: Likewise.
42617         * soft-fp/fixsfsi.c: Likewise.
42618         * soft-fp/fixsfti.c: Likewise.
42619         * soft-fp/fixtfdi.c: Likewise.
42620         * soft-fp/fixtfsi.c: Likewise.
42621         * soft-fp/fixtfti.c: Likewise.
42622         * soft-fp/fixunsdfdi.c: Likewise.
42623         * soft-fp/fixunsdfsi.c: Likewise.
42624         * soft-fp/fixunsdfti.c: Likewise.
42625         * soft-fp/fixunssfdi.c: Likewise.
42626         * soft-fp/fixunssfsi.c: Likewise.
42627         * soft-fp/fixunssfti.c: Likewise.
42628         * soft-fp/fixunstfdi.c: Likewise.
42629         * soft-fp/fixunstfsi.c: Likewise.
42630         * soft-fp/fixunstfti.c: Likewise.
42631         * soft-fp/floatdidf.c: Likewise.
42632         * soft-fp/floatdisf.c: Likewise.
42633         * soft-fp/floatditf.c: Likewise.
42634         * soft-fp/floatsidf.c: Likewise.
42635         * soft-fp/floatsisf.c: Likewise.
42636         * soft-fp/floatsitf.c: Likewise.
42637         * soft-fp/floattidf.c: Likewise.
42638         * soft-fp/floattisf.c: Likewise.
42639         * soft-fp/floattitf.c: Likewise.
42640         * soft-fp/floatundidf.c: Likewise.
42641         * soft-fp/floatundisf.c: Likewise.
42642         * soft-fp/floatunditf.c: Likewise.
42643         * soft-fp/floatunsidf.c: Likewise.
42644         * soft-fp/floatunsisf.c: Likewise.
42645         * soft-fp/floatunsitf.c: Likewise.
42646         * soft-fp/floatuntidf.c: Likewise.
42647         * soft-fp/floatuntisf.c: Likewise.
42648         * soft-fp/floatuntitf.c: Likewise.
42649         * soft-fp/fmadf4.c: Likewise.
42650         * soft-fp/fmasf4.c: Likewise.
42651         * soft-fp/fmatf4.c: Likewise.
42652         * soft-fp/gedf2.c: Likewise.
42653         * soft-fp/gesf2.c: Likewise.
42654         * soft-fp/getf2.c: Likewise.
42655         * soft-fp/ledf2.c: Likewise.
42656         * soft-fp/lesf2.c: Likewise.
42657         * soft-fp/letf2.c: Likewise.
42658         * soft-fp/muldf3.c: Likewise.
42659         * soft-fp/mulsf3.c: Likewise.
42660         * soft-fp/multf3.c: Likewise.
42661         * soft-fp/negdf2.c: Likewise.
42662         * soft-fp/negsf2.c: Likewise.
42663         * soft-fp/negtf2.c: Likewise.
42664         * soft-fp/op-1.h: Likewise.
42665         * soft-fp/op-2.h: Likewise.
42666         * soft-fp/op-4.h: Likewise.
42667         * soft-fp/op-8.h: Likewise.
42668         * soft-fp/op-common.h: Likewise.
42669         * soft-fp/quad.h: Likewise.
42670         * soft-fp/single.h: Likewise.
42671         * soft-fp/soft-fp.h: Likewise.
42672         * soft-fp/sqrtdf2.c: Likewise.
42673         * soft-fp/sqrtsf2.c: Likewise.
42674         * soft-fp/sqrttf2.c: Likewise.
42675         * soft-fp/subdf3.c: Likewise.
42676         * soft-fp/subsf3.c: Likewise.
42677         * soft-fp/subtf3.c: Likewise.
42678         * soft-fp/truncdfsf2.c: Likewise.
42679         * soft-fp/trunctfdf2.c: Likewise.
42680         * soft-fp/trunctfsf2.c: Likewise.
42681         * soft-fp/trunctfxf2.c: Likewise.
42682         * soft-fp/unorddf2.c: Likewise.
42683         * soft-fp/unordsf2.c: Likewise.
42684         * soft-fp/unordtf2.c: Likewise.
42685
42686 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42687
42688         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42689         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42690
42691 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42692
42693         * elf/dl-libc.c: Clear initfini list after freeing.
42694
42695 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42696
42697         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42698         * soft-fp/addsf3.c: Likewise.
42699         * soft-fp/addtf3.c: Likewise.
42700         * soft-fp/divdf3.c: Likewise.
42701         * soft-fp/divsf3.c: Likewise.
42702         * soft-fp/divtf3.c: Likewise.
42703         * soft-fp/double.h: Likewise.
42704         * soft-fp/eqdf2.c: Likewise.
42705         * soft-fp/eqsf2.c: Likewise.
42706         * soft-fp/eqtf2.c: Likewise.
42707         * soft-fp/extenddftf2.c: Likewise.
42708         * soft-fp/extended.h: Likewise.
42709         * soft-fp/extendsfdf2.c: Likewise.
42710         * soft-fp/extendsftf2.c: Likewise.
42711         * soft-fp/extendxftf2.c: Likewise.
42712         * soft-fp/fixdfdi.c: Likewise.
42713         * soft-fp/fixdfsi.c: Likewise.
42714         * soft-fp/fixdfti.c: Likewise.
42715         * soft-fp/fixsfdi.c: Likewise.
42716         * soft-fp/fixsfsi.c: Likewise.
42717         * soft-fp/fixsfti.c: Likewise.
42718         * soft-fp/fixtfdi.c: Likewise.
42719         * soft-fp/fixtfsi.c: Likewise.
42720         * soft-fp/fixtfti.c: Likewise.
42721         * soft-fp/fixunsdfdi.c: Likewise.
42722         * soft-fp/fixunsdfsi.c: Likewise.
42723         * soft-fp/fixunsdfti.c: Likewise.
42724         * soft-fp/fixunssfdi.c: Likewise.
42725         * soft-fp/fixunssfsi.c: Likewise.
42726         * soft-fp/fixunssfti.c: Likewise.
42727         * soft-fp/fixunstfdi.c: Likewise.
42728         * soft-fp/fixunstfsi.c: Likewise.
42729         * soft-fp/fixunstfti.c: Likewise.
42730         * soft-fp/floatdidf.c: Likewise.
42731         * soft-fp/floatdisf.c: Likewise.
42732         * soft-fp/floatditf.c: Likewise.
42733         * soft-fp/floatsidf.c: Likewise.
42734         * soft-fp/floatsisf.c: Likewise.
42735         * soft-fp/floatsitf.c: Likewise.
42736         * soft-fp/floattidf.c: Likewise.
42737         * soft-fp/floattisf.c: Likewise.
42738         * soft-fp/floattitf.c: Likewise.
42739         * soft-fp/floatundidf.c: Likewise.
42740         * soft-fp/floatundisf.c: Likewise.
42741         * soft-fp/floatunsidf.c: Likewise.
42742         * soft-fp/floatunsisf.c: Likewise.
42743         * soft-fp/floatuntidf.c: Likewise.
42744         * soft-fp/floatuntisf.c: Likewise.
42745         * soft-fp/floatuntitf.c: Likewise.
42746         * soft-fp/fmadf4.c: Likewise.
42747         * soft-fp/fmasf4.c: Likewise.
42748         * soft-fp/fmatf4.c: Likewise.
42749         * soft-fp/gedf2.c: Likewise.
42750         * soft-fp/gesf2.c: Likewise.
42751         * soft-fp/getf2.c: Likewise.
42752         * soft-fp/ledf2.c: Likewise.
42753         * soft-fp/lesf2.c: Likewise.
42754         * soft-fp/letf2.c: Likewise.
42755         * soft-fp/muldf3.c: Likewise.
42756         * soft-fp/mulsf3.c: Likewise.
42757         * soft-fp/multf3.c: Likewise.
42758         * soft-fp/negdf2.c: Likewise.
42759         * soft-fp/negsf2.c: Likewise.
42760         * soft-fp/negtf2.c: Likewise.
42761         * soft-fp/op-1.h: Likewise.
42762         * soft-fp/op-2.h: Likewise.
42763         * soft-fp/op-4.h: Likewise.
42764         * soft-fp/op-8.h: Likewise.
42765         * soft-fp/op-common.h: Likewise.
42766         * soft-fp/quad.h: Likewise.
42767         * soft-fp/single.h: Likewise.
42768         * soft-fp/soft-fp.h: Likewise.
42769         * soft-fp/sqrtdf2.c: Likewise.
42770         * soft-fp/sqrtsf2.c: Likewise.
42771         * soft-fp/sqrttf2.c: Likewise.
42772         * soft-fp/subdf3.c: Likewise.
42773         * soft-fp/subsf3.c: Likewise.
42774         * soft-fp/subtf3.c: Likewise.
42775         * soft-fp/truncdfsf2.c: Likewise.
42776         * soft-fp/trunctfdf2.c: Likewise.
42777         * soft-fp/trunctfsf2.c: Likewise.
42778         * soft-fp/trunctfxf2.c: Likewise.
42779         * soft-fp/unorddf2.c: Likewise.
42780         * soft-fp/unordsf2.c: Likewise.
42781         * soft-fp/unordtf2.c: Likewise.
42782
42783 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42784
42785         [BZ #15672]
42786         * misc/error.c (error_tail): Fix possible buffer overflow.
42787
42788 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42789
42790         [BZ #13028]
42791         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42792         address.
42793
42794 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42795
42796         [BZ #832]
42797         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42798         testing pipefail option.
42799
42800 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42801
42802         * soft-fp/double.h: Indent preprocessor directives inside #if.
42803         * soft-fp/extended.h: Likewise.
42804         * soft-fp/op-2.h: Likewise.
42805         * soft-fp/op-4.h: Likewise.
42806         * soft-fp/op-common.h: Likewise.
42807         * soft-fp/quad.h: Likewise.
42808         * soft-fp/single.h: Likewise.
42809         * soft-fp/soft-fp.h: Likewise.
42810
42811 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42812
42813         * iconv/iconv_prog.c: Fix typos.
42814         * stdio-common/psiginfo-data.h: Likewise.
42815
42816 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42817
42818         [BZ #15764]
42819         * locale/setlocale.c: Fix typo.
42820
42821 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42822
42823         [BZ #16036]
42824         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42825         signaling NaN arguments.
42826         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42827         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42828
42829         [BZ #14910]
42830         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42831         unordered operands.
42832         * soft-fp/gesf2.c (__gesf2): Likewise.
42833         * soft-fp/getf2.c (__getf2): Likewise.
42834         * soft-fp/ledf2.c (__ledf2): Likewise.
42835         * soft-fp/lesf2.c (__lesf2): Likewise.
42836         * soft-fp/letf2.c (__letf2): Likewise.
42837
42838         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42839         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42840         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42841         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42842         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42843         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42844         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42845         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42846         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42847         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42848         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42849         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42850         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42851         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42852         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42853         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42854         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42855         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42856         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42857         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42858         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42859         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42860         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42861         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42862         * soft-fp/floattidf.c (__floattidf): Likewise.
42863         * soft-fp/floattisf.c (__floattisf): Likewise.
42864         * soft-fp/floattitf.c (__floattitf): Likewise.
42865         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42866         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42867         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42868         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42869         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42870         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42871         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42872         * soft-fp/gesf2.c (__gesf2): Likewise.
42873         * soft-fp/getf2.c (__getf2): Likewise.
42874         * soft-fp/ledf2.c (__ledf2): Likewise.
42875         * soft-fp/lesf2.c (__lesf2): Likewise.
42876         * soft-fp/letf2.c (__letf2): Likewise.
42877
42878         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42879         Undefine and redefine.
42880         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42881         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42882         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42883         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42884         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42885         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42886         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42887         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42888         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42889         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42890         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42891         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42892         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42893         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42894         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42895
42896         [BZ #16032]
42897         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42898         without decrementing exponent if mantissa >= that for the
42899         denominator, not >.
42900         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42901         denominator, not >.  Decrement exponent in < case instead of
42902         incrementing in >= case.
42903         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42904         without decrementing exponent if mantissa >= that for the
42905         denominator, not >.
42906
42907         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42908         computing saturated result for unsigned overflow.
42909
42910 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42911             Jeff Law  <law@redhat.com>
42912
42913         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42914         (atan2Mp): Add systemtap probe marker.
42915         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42916         (__ieee754_log): Add systemtap probe marker.
42917         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42918         (atanMp): Add systemtap probe marker.
42919         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42920         (tanMp): Add systemtap probe marker.
42921         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42922         (__slowexp): Add systemtap probe marker.
42923         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42924         (__slowpow): Add systemtap probe marker.
42925         * manual/probes.texi: Document probes.
42926
42927 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42928
42929         [BZ #15362]
42930         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42931         written.
42932         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42933         written.
42934         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42935         written to buffer but not flushed.
42936         * libio/iofwrite_u.c:  Likewise.
42937         * libio/iopadn.c:  Return bytes returned even if EOF was
42938         encountered.
42939         * libio/iowpadn.c:  Likewise.
42940         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42941         if _IO_padn does not write the whole buffer.
42942         [!COMPILE_WPRINTF] (PAD): Likewise.
42943
42944 2013-10-10  David S. Miller  <davem@davemloft.net>
42945
42946         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42947         directory block.
42948
42949 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42950
42951         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42952         instead of FSF address.
42953         * soft-fp/fixdfti.c: Likewise.
42954         * soft-fp/fixsfti.c: Likewise.
42955         * soft-fp/fixtfti.c: Likewise.
42956         * soft-fp/fixunsdfti.c: Likewise.
42957         * soft-fp/fixunssfti.c: Likewise.
42958         * soft-fp/fixunstfti.c: Likewise.
42959         * soft-fp/floattidf.c: Likewise.
42960         * soft-fp/floattisf.c: Likewise.
42961         * soft-fp/floattitf.c: Likewise.
42962         * soft-fp/floatuntidf.c: Likewise.
42963         * soft-fp/floatuntisf.c: Likewise.
42964         * soft-fp/floatuntitf.c: Likewise.
42965         * soft-fp/trunctfxf2.c: Likewise.
42966
42967         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42968         * soft-fp/fixdfti.c: Likewise.
42969         * soft-fp/fixsfti.c: Likewise.
42970         * soft-fp/fixtfti.c: Likewise.
42971         * soft-fp/fixunsdfti.c: Likewise.
42972         * soft-fp/fixunssfti.c: Likewise.
42973         * soft-fp/fixunstfti.c: Likewise.
42974         * soft-fp/floattidf.c: Likewise.
42975         * soft-fp/floattisf.c: Likewise.
42976         * soft-fp/floattitf.c: Likewise.
42977         * soft-fp/floatuntidf.c: Likewise.
42978         * soft-fp/floatuntisf.c: Likewise.
42979         * soft-fp/floatuntitf.c: Likewise.
42980         * soft-fp/trunctfxf2.c: Likewise.
42981
42982 2013-10-10  David S. Miller  <davem@davemloft.net>
42983
42984         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42985
42986 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42987
42988         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42989         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42990         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42991         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42992         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42993         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42994         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42995
42996         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42997         for NaNs before doing comparisons on argument.
42998         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42999         Likewise.
43000
43001 2013-10-10  Will Newton  <will.newton@linaro.org>
43002
43003         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43004         passed to _int_memalign does not overflow.
43005
43006 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43007
43008         * scripts/bench.pl: Add include-sources directive.
43009         * benchtests/README: Update documentation.
43010
43011 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43012
43013         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43014         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43015         instead of FP_INIT_ROUNDMODE.
43016         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43017         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43018
43019         [BZ #16034]
43020         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43021         copy class of input value.
43022         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43023         not handle exceptions.
43024         * soft-fp/negsf2.c (__negsf2): Likewise.
43025         * soft-fp/negtf2.c (__negtf2): Likewise.
43026         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43027
43028 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43029
43030         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43031         semicolon.  From Linux kernel.
43032
43033 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43034
43035         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43036
43037 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43038
43039         [BZ #156]
43040         * manual/socket.texi: Added statement about buffer
43041         for gethostbyname2_r.
43042
43043 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43044
43045         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43046         Use .p2align directive instead, throughout.
43047         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43048         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43049         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43050         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43051         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43052         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43053         * sysdeps/x86_64/strchr.S: Likewise.
43054         * sysdeps/x86_64/strrchr.S: Likewise.
43055
43056 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43057
43058         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43059
43060         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43061
43062         * sysdeps/generic/math_private.h (__mpsin1): Remove
43063         declaration.
43064         (__mpcos1): Likewise.
43065         (__mpsin): New argument __range_reduce.
43066         (__mpcos): Likewise.
43067         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43068         (slow): Use __mpsin and __mpcos.
43069         (slow1): Likewise.
43070         (slow2): Likewise.
43071         (sloww): Likewise.
43072         (sloww1): Likewise.
43073         (sloww2): Likewise.
43074         (bsloww): Likewise.
43075         (bsloww1): Likewise.
43076         (bsloww2): Likewise.
43077         (cslow2): Likewise.
43078         (csloww): Likewise.
43079         (csloww1): Likewise.
43080         (csloww2): Likewise.
43081         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43082         range_reduce.  Merge in __mpsin1.
43083         (__mpcos): Likewise.
43084         (__mpsin1): Remove.
43085         (__mpcos1): Likewise.
43086
43087 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43088
43089         * locale/loadlocale.c (_nl_intern_locale_data): Use
43090         LOCFILE_ALIGNED_P.
43091         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43092         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43093         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43094         obstack data is appropriately aligned.
43095         (obstack_int32_grow_fast): Likewise.
43096         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43097         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43098         (add_locale_uint32_array): Likewise.
43099
43100 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43101
43102         * benchtests/Makefile: Remove ARGLIST and RET variables.
43103         ($(objpfx)bench-%.c): Pass only function name to the script.
43104         * benchtests/README: Update documentation.
43105         * benchtests/acos-inputs: Add new directives.
43106         * benchtests/acosh-inputs: Likewise.
43107         * benchtests/asin-inputs: Likewise.
43108         * benchtests/asinh-inputs: Likewise.
43109         * benchtests/atan-inputs: Likewise.
43110         * benchtests/atanh-inputs: Likewise.
43111         * benchtests/cos-inputs: Likewise.
43112         * benchtests/cosh-inputs: Likewise.
43113         * benchtests/exp-inputs: Likewise.
43114         * benchtests/log-inputs: Likewise.
43115         * benchtests/pow-inputs: Likewise.
43116         * benchtests/rint-inputs: Likewise.
43117         * benchtests/sin-inputs: Likewise.
43118         * benchtests/sinh-inputs: Likewise.
43119         * benchtests/tan-inputs: Likewise.
43120         * benchtests/tanh-inputs: Likewise.
43121         * scripts/bench.pl: Add support for new directives.
43122
43123 2013-10-07  Alan Modra  <amodra@gmail.com>
43124
43125         * README: Fix careless merge.
43126
43127 2013-10-05  Alan Modra  <amodra@gmail.com>
43128
43129         * NEWS: Mention powerpc64le support and bugs fixed.
43130         * README: Both big-endian and little-endian powerpc64 supported.
43131
43132 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43133
43134         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43135         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43136         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43137         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43138
43139 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43140
43141         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43142         match prototype.
43143
43144 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43145
43146         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43147         Move -mhard-float appending from
43148         ports/sysdeps/powerpc/powerpc32/Makefile.
43149         [$(with-fp) = yes] (ASFLAGS): Likewise.
43150         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43151         * sysdeps/powerpc/nofpu: Move directory from
43152         ports/sysdeps/powerpc/nofpu.
43153         * sysdeps/powerpc/soft-fp: Move directory from
43154         ports/sysdeps/powerpc/soft-fp.
43155         * sysdeps/powerpc/powerpc32/405: Move directory from
43156         ports/sysdeps/powerpc/powerpc32/405.
43157         * sysdeps/powerpc/powerpc32/440: Move directory from
43158         ports/sysdeps/powerpc/powerpc32/440.
43159         * sysdeps/powerpc/powerpc32/464: Move directory from
43160         ports/sysdeps/powerpc/powerpc32/464.
43161         * sysdeps/powerpc/powerpc32/476: Move directory from
43162         ports/sysdeps/powerpc/powerpc32/476.
43163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43164         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43166         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43168         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43170         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43172         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43173         * README: Update for powerpc-*-linux-gnu software floating point
43174         support in libc.
43175
43176         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43177         case to powerpc/powerpc32*.
43178         * sysdeps/unix/sysv/linux/configure: Regenerated.
43179
43180         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43181         (_FPU_MASK_OM): Define as 0x04.
43182         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43183         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43184         0x00c10080.
43185         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43186         0x0000003c.
43187         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43188
43189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43190         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43191         getcontext_e500.
43192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43193         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43194         setcontext_e500.
43195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43196         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43197         and setcontext_e500.
43198
43199 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43200
43201         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43202
43203 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43204
43205         * manual/threads.texi (Default Thread Attributes): Fix typo.
43206
43207 2013-10-04  Will Newton  <will.newton@linaro.org>
43208
43209         * malloc/Makefile: Add tst-memalign.
43210         * malloc/tst-memalign.c: New file.
43211
43212         * malloc/tst-posix_memalign.c: Add comments.
43213         (do_test): Add comments and call free on all potentially
43214         allocated pointers. Add space after cast.
43215
43216         * malloc/tst-pvalloc.c: Add comments.
43217         (do_test): Add comments and call free on all potentially
43218         allocated pointers. Remove duplicate check for NULL pointer.
43219         Add space after cast.
43220
43221         * malloc/tst-valloc.c: Add comments.
43222         (do_test): Add comments and call free on all potentially
43223         allocated pointers. Remove duplicate check for NULL pointer.
43224         Add space after cast.
43225
43226 2013-10-04  Alan Modra  <amodra@gmail.com>
43227
43228         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43229         Use stdint types in rather than __attribute__((mode())).
43230         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43231
43232 2013-10-04  Alan Modra  <amodra@gmail.com>
43233
43234         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43235         Correct handling of unaligned relocs for little-endian.
43236         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43237
43238 2013-10-04  Alan Modra  <amodra@gmail.com>
43239
43240         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43241         * configure: Regenerate.
43242         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43243         * shlib-versions: Likewise.
43244
43245 2013-10-04  Alan Modra  <amodra@gmail.com>
43246
43247         * string/tester.c (test_memrchr): Increment reported test cycle.
43248
43249 2013-10-04  Alan Modra  <amodra@gmail.com>
43250
43251         * string/test-memcpy.c (do_one_test): When reporting errors, print
43252         string address and don't overrun end of string.
43253
43254 2013-10-04  Alan Modra  <amodra@gmail.com>
43255
43256         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43257         insrdi.  Make better use of reg selection to speed exit slightly.
43258         Schedule entry path a little better.  Remove useless "are we done"
43259         checks on entry to main loop.  Handle wrapping around zero address.
43260         Correct main loop count.  Handle single left-over word from main
43261         loop inline rather than by using loop_small.  Remove extra word
43262         case in loop_small caused by wrong loop count.  Add little-endian
43263         support.
43264         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43265         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43266         cache hint.
43267         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43268         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43269         support.  Avoid rlwimi.
43270         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43271
43272 2013-10-04  Alan Modra  <amodra@gmail.com>
43273
43274         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43275         insrdi.  Formatting.
43276         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43277         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43278         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43279         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43280         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43281         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43282
43283 2013-10-04  Alan Modra  <amodra@gmail.com>
43284
43285         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43286         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43287         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43288         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43289         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43290         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43291         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43292         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43293         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43294         use of regs.  Use power7 mtocrf.  Tidy function tails.
43295
43296 2013-10-04  Alan Modra  <amodra@gmail.com>
43297
43298         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43299         Formatting.  Consistently use rXXX register defines or rN defines.
43300         Use early exit labels that avoid restoring unused non-volatile regs.
43301         Make cr field use more consistent with rWORDn compares.  Rename
43302         regs used as shift registers for unaligned loop, using rN defines
43303         for short lifetime/multiple use regs.
43304         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43305         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43306         addi 1,1,64 to pop stack frame.  Simplify return value code.
43307         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43308
43309 2013-10-04  Alan Modra  <amodra@gmail.com>
43310
43311         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43312         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43313         rather than rlwimi.
43314         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43315         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43316         little-endian support.  Correct typos.
43317         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43318         rather than rlwimi.
43319         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43320         in loop and entry code to keep "and." results.
43321         (strchr): Add little-endian support.  Comment.  Move cntlzd
43322         earlier in tail.
43323         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43324
43325 2013-10-04  Alan Modra  <amodra@gmail.com>
43326
43327         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43328         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43329         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43330         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43331
43332 2013-10-04  Alan Modra  <amodra@gmail.com>
43333
43334         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43335         (rTMP): Define as r11.
43336         (strcmp): Add little-endian support.  Optimise tail.
43337         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43338         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43339         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43340         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43341         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43342         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43343         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43344
43345 2013-10-04  Alan Modra  <amodra@gmail.com>
43346
43347         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43348         little-endian support.  Remove unnecessary "are we done" tests.
43349         Handle "s" wrapping around zero and extremely large "size".
43350         Correct main loop count.  Handle single left-over word from main
43351         loop inline rather than by using small_loop.  Correct comments.
43352         Delete "zero" tail, use "end_max" instead.
43353         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43354
43355 2013-10-04  Alan Modra  <amodra@gmail.com>
43356
43357         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43358         support.  Don't branch over align.
43359         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43360         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43361         support.  Rearrange tmp reg use to suit.  Comment.
43362         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43363
43364 2013-10-04  Alan Modra  <amodra@gmail.com>
43365
43366         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43367
43368 2013-10-04  Alan Modra  <amodra@gmail.com>
43369
43370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43371         conditional form of branch and link when obtaining pc.
43372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43373
43374 2013-10-04  Alan Modra  <amodra@gmail.com>
43375
43376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43377         HIWORD/LOWORD.
43378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43380
43381 2013-10-04  Alan Modra  <amodra@gmail.com>
43382
43383         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43384         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43385         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43386         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43387         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43388         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43389         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43390         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43391         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43392         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43393
43394 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43395             Alistair Popple <alistair@ozlabs.au.ibm.com>
43396             Alan Modra <amodra@gmail.com>
43397
43398         [BZ #15723]
43399         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43400         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43401         _dl_hwcap access for little-endian.
43402         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43403         destroy vmx regs when saving unaligned.
43404         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43405         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43406         destroy vmx regs when saving unaligned.
43407
43408 2013-10-04  Alan Modra  <amodra@gmail.com>
43409
43410         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43411         Don't use a union to pack hi/low value.
43412
43413 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43414
43415         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43416         for little-endian.
43417         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43418         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43419         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43420         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43421         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43422
43423 2013-10-04  Alan Modra  <amodra@gmail.com>
43424
43425         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43426         constants to usual value for .cst8 section, and remove redundant
43427         high address load.
43428         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43429         constant for 0x1p52.  Load little-endian words of double from
43430         correct stack offsets.
43431
43432 2013-10-04  Alan Modra  <amodra@gmail.com>
43433
43434         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43435         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43436         words of double from correct stack offsets.
43437         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43438         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43439         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43440         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43441         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43442         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43443         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43444         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43445         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43446         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43447         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43448         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43449         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43450         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43451         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43452         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43453         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43454
43455 2013-10-04  Alan Modra  <amodra@gmail.com>
43456
43457         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43458         64-bit int/double union.
43459         (_FPU_SETCW): Likewise.
43460         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43461         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43462
43463 2013-10-04  Alan Modra  <amodra@gmail.com>
43464
43465         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43466         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43467
43468 2013-10-04  Alan Modra  <amodra@gmail.com>
43469
43470         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43471         use vector int constants.
43472         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43473
43474 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43475
43476         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43477         array with long long.
43478         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43479         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43480         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43481         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43482         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43483         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43484         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43485         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43486         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43487         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43488         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43489         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43490         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43491
43492 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43493
43494         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43495         (__signbit): Likewise.  Correct for little-endian.
43496         (__signbitl): Call __signbit.
43497         (lrint): Correct for little-endian.
43498         (lrintf): Call lrint.
43499
43500 2013-10-04  Alan Modra  <amodra@gmail.com>
43501
43502         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43503         union 32-bit int array member with 64-bit int array.
43504         (t515, tm256): Double rather than long double.
43505         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43506
43507 2013-10-04  Alan Modra  <amodra@gmail.com>
43508
43509         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43510         Delete.
43511         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43512         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43513         version of math_ldbl.h.
43514
43515 2013-10-04  Alan Modra  <amodra@gmail.com>
43516
43517         [BZ #15734], [BZ #15735]
43518         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43519         all uses of ieee875 long double macros and unions.  Simplify test
43520         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43521         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43522         normalize after ldbl_extract_mantissa, and don't add hidden bit
43523         already handled.  Don't treat low word of ieee854 mantissa like
43524         low word of IBM long double and mask off bit when testing for
43525         zero.
43526         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43527         all uses of ieee875 long double macros and unions.  Simplify tests
43528         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43529         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43530         two1022, instead use their values.  Recognise that tests for large
43531         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43532         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43533         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43534         test for 0.0L and nan.  Correct negation.
43535         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43536         ieee875 long double macros and unions.  Correct output for large
43537         magnitude x.  Correct absolute value calculation.
43538         (__erfcl): Likewise.
43539         * math/libm-test.inc: Add tests for errors discovered in IBM long
43540         double versions of fmodl, remainderl, erfl and erfcl.
43541
43542 2013-10-04  Alan Modra  <amodra@gmail.com>
43543
43544         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43545         all uses of ieee854 long double macros and unions.  Simplify tests
43546         for long doubles that are fully specified by the high double.
43547         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43548         Likewise.
43549         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43550         Remove dead code too.
43551         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43552         (__ieee754_ynl): Likewise.
43553         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43554         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43555         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43556         Remove dead code too.
43557         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43558         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43559         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43560         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43561         Simplify.
43562         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43563         Simplify.
43564         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43565         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43566         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43567         Comment on variable precision.
43568         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43569         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43570         Likewise.
43571         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43572         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43573         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43574         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43575         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43576
43577 2013-10-04  Alan Modra  <amodra@gmail.com>
43578
43579         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43580         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43581         all uses of ieee854 long double macros and unions.
43582         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43583         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43584         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43585         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43586         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43587         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43588         Likewise.
43589         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43590         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43591         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43592         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43593         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43594         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43595         Simplify sign and nan test too.
43596         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43597         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43598         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43599         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43600         Likewise.
43601         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43602         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43603         Likewise.
43604         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43605         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43606         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43607         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43608         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43609         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43610
43611 2013-10-04  Alan Modra  <amodra@gmail.com>
43612
43613         * stdio-common/printf_size.c (__printf_size): Don't use
43614         union ieee854_long_double in fpnum union.
43615         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43616         signbit macro to retrieve sign from long double.
43617         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43618         retrieve sign from long double.
43619         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43620         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43621         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43622         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43623         * math/test-misc.c (main): Don't use union ieee854_long_double.
43624
43625 2013-10-04  Alan Modra  <amodra@gmail.com>
43626
43627         [BZ #15680]
43628         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43629         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43630         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43631         calculation.  Remove unnecessary test for denormal exponent.
43632         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43633         Correct handling of denormals.  Avoid undefined shift behaviour.
43634         Correct normalisation of low mantissa when low double is denormal.
43635         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43636         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43637         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43638         Correct normalisation of low mantissa.  Test for overflow of high
43639         mantissa and normalise.
43640         (ldbl_nearbyint): Use more readable constant for two52.
43641         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43642         (__mpn_construct_long_double): Fix test for overflow of high
43643         mantissa and correct normalisation.  Avoid undefined shift.
43644
43645 2013-10-04  Alan Modra  <amodra@gmail.com>
43646
43647         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43648         (union ibm_extended_long_double): Define as an array of ieee754_double.
43649         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43650         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43651         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43652         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43653         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43654         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43655         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43656         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43657         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43658         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43659         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43660
43661 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43662
43663         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43664         page size instead of calling getpagesize.
43665
43666         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43667         (LOCFILE_ALIGN_MASK): Likewise.
43668         (LOCFILE_ALIGN_UP): Likewise.
43669         (LOCFILE_ALIGNED_P): Likewise.
43670         * locale/programs/ld-collate.c (collate_output): Use the new
43671         macros instead of __alignof__ (int32_t).
43672         * locale/weight.h (findidx): Likewise.
43673
43674 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43675
43676         [BZ #431]
43677         * manual/string.texi: Fix strncat and wcsncat.
43678
43679 2013-10-03  Brooks Moses  <bmoses@google.com>
43680
43681         [BZ #15915]
43682         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43683         * Makerules: ...here, and adjust associated comments.
43684
43685 2013-10-02  Will Newton  <will.newton@linaro.org>
43686
43687         * malloc/Makefile: Add tst-pvalloc.
43688         * malloc/tst-pvalloc.c: New file.
43689
43690 2013-10-02  Will Newton  <will.newton@linaro.org>
43691
43692         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43693         improve test coverage.
43694
43695 2013-10-02  Will Newton  <will.newton@linaro.org>
43696
43697         * malloc/Makefile: Add tst-posix_memalign.
43698         * malloc/tst-posix_memalign.c: New file.
43699
43700 2013-10-01  Eric Blake  <eblake@redhat.com>
43701
43702         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43703         Use __THROWNL rather than __THROW on static functions.
43704
43705 2013-09-30  Petr Machata  <pmachata@redhat.com>
43706
43707         * elf/elf.h (R_AARCH64_ABS16): New macro.
43708         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43709         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43710         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43711         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43712         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43713         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43714         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43715         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43716         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43717         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43718         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43719         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43720         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43721         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43722         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43723         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43724         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43725         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43726         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43727         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43728         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43729         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43730         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43731         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43732         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43733         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43734         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43735         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43736         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43737         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43738         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43739         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43740         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43741         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43742         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43743         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43744         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43745         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43746         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43747         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43748         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43749         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43750         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43751         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43752         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43753         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43754         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43755         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43756         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43757         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43758         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43759         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43760         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43761         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43762         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43763         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43764         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43765         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43766         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43767         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43768         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43769         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43770         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43771         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43772         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43773         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43774         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43775         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43776         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43777         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43778         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43779         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43780         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43781         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43782         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43783         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43784         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43785         (R_AARCH64_TLSDESC_LDR): Likewise.
43786         (R_AARCH64_TLSDESC_ADD): Likewise.
43787         (R_AARCH64_TLSDESC_CALL): Likewise.
43788
43789 2013-09-30  Andreas Schwab  <schwab@suse.de>
43790
43791         [BZ #15048]
43792         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43793         the nss database lookup.
43794         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43795         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43796
43797 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43798
43799         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43800
43801 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43802
43803         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43804         ${Bash-specific parameter/pattern/string} parameter expansion.
43805         * sysdeps/unix/make-syscalls.sh: Likewise.
43806
43807 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43808
43809         * sysdeps/sh/stackguard-macros.h: New file.
43810
43811 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43812
43813         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43814         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43815         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43816         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43817         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43818         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43819
43820 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43821
43822         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43823         Fix thread ID register.
43824
43825 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43826
43827         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43828         [POSIX || UNIX98]: Require rather than permitting all symbols from
43829         <time.h>.
43830         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43831         element of struct sched_param.
43832         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43833         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43834         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43835         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43836         constant.
43837
43838 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43839
43840         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43841         argument calculation.
43842
43843 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43844
43845         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43846         Expect macro.
43847         [POSIX] (pthread_attr_t): Do not require type.
43848         [POSIX] (pthread_cond_t): Likewise.
43849         [POSIX] (pthread_condattr_t): Likewise.
43850         [POSIX] (pthread_key_t): Likewise.
43851         [POSIX] (pthread_mutex_t): Likewise.
43852         [POSIX] (pthread_mutexattr_t): Likewise.
43853         [POSIX] (pthread_once_t): Likewise.
43854         [POSIX] (pthread_t): Likewise.
43855         [POSIX-based standards] (pthread_atfork): Expect function.
43856
43857 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43858             Richard Sandiford  <richard@codesourcery.com>
43859
43860         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43861         (swap_endianness_p): New extern variable.
43862         (set_big_endian): New inline function.
43863         (maybe_swap_uint32): Likewise.
43864         (maybe_swap_uint32_array): Likewise.
43865         (maybe_swap_uint32_obstack): Likewise.
43866         * locale/programs/locfile.c: Include <stdbool.h>.
43867         (swap_endianness_p): New variable.
43868         (add_locale_uint32): Call maybe_swap_uint32.
43869         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43870         (write_locale_data): Call maybe_swap_uint32_array.
43871         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43872         maybe_swap_uint32.
43873         (obstack_int32_grow_fast): Likewise.
43874         (output_weightwc): Call maybe_swap_uint32_obstack.
43875         (collate_output): Likewise.
43876         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43877         (OPT_LITTLE_ENDIAN): Likewise.
43878         (options): Add --little-endian and --big-endian options.
43879         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43880         * locale/programs/locarchive.c: Include "locfile.h".
43881         (GET): New macro.
43882         (SET): Likewise.
43883         (INC): Likewise.
43884         (create_archive): Use the new macros to access fields of
43885         structures directly mapped from or written to locale archives.
43886         (oldlocrecentcmp): Likewise.
43887         (enlarge_archive): Likewise.
43888         (insert_name): Likewise.
43889         (add_alias): Likewise.
43890         (add_locale): Likewise.
43891         (delete_locales_from_archive): Likewise.
43892         (show_archive_content): Likewise.
43893         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43894         locale data.
43895
43896 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43897
43898         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43899         http://www.gnu.org/doc/freemanuals.texi.
43900         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43901
43902 2013-09-24  Will Newton  <will.newton@linaro.org>
43903
43904         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43905         macro.
43906
43907 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43908
43909         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43910         unsigned char.
43911
43912 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43913
43914         * manual/threads.texi (POSIX Threads): Fix a typo.
43915
43916 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43917
43918         [BZ #14547]
43919         * string/tst-strcoll-overflow.c: New test case.
43920         * string/Makefile (xtests): Add tst-strcoll-overflow.
43921         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43922         cache if string sizes may cause integer overflow.
43923
43924         [BZ #14547]
43925         * string/strcoll_l.c (coll_seq): New members rule, idx,
43926         save_idx and back_us.
43927         (get_next_seq_nocache): New function.
43928         (do_compare_nocache): New function.
43929         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43930         when malloc fails.
43931
43932 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43933
43934         [BZ #15754]
43935         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43936         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43937         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43938
43939         [BZ #15754]
43940         * elf/Makefile (tests): Add tst-ptrguard1.
43941         (tests-static): Add tst-ptrguard1-static.
43942         (tst-ptrguard1-ARGS): Define.
43943         (tst-ptrguard1-static-ARGS): Define.
43944         * elf/tst-ptrguard1.c: New file.
43945         * elf/tst-ptrguard1-static.c: New file.
43946         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43947         * sysdeps/i386/stackguard-macros.h: Likewise.
43948         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43949         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43950         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43951         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43952         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43953         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43954
43955 2013-09-23  Hector Marco  <hecmargi@upv.es>
43956             Ismael Ripoll  <iripoll@disca.upv.es>
43957             Carlos O'Donell  <carlos@redhat.com>
43958
43959         [BZ #15754]
43960         * sysdeps/generic/stackguard-macros.h: Define
43961         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43962         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43963         Define __pointer_chk_guard_local.
43964         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43965         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43966
43967 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43968
43969         [BZ #15859]
43970         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43971
43972 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43973
43974         * include/string.h (__ffs): Declare as hidden.
43975         * string/ffs.c (__ffs): Define as hidden.
43976         * sysdeps/i386/ffs.c (__ffs): Likewise.
43977         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43978         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43979         * sysdeps/s390/ffs.c (__ffs): Likewise.
43980         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43981
43982 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43983
43984         * NEWS: Mention malloc probes.
43985
43986         * malloc/arena.c (new_heap): New memory_heap_new probe.
43987         (grow_heap): New memory_heap_more probe.
43988         (shrink_heap): New memory_heap_less probe.
43989         (heap_trim): New memory_heap_free probe.
43990         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43991         (systrim): New memory_sbrk_less probe.
43992         * manual/probes.texi: Document them.
43993
43994         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43995         * manual/probes.texi: Document it.
43996
43997         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43998         (__libc_realloc): Add memory_realloc_retry probe.
43999         (__libc_memalign): Add memory_memalign_retry probe.
44000         (__libc_valloc): Add memory_valloc_retry probe.
44001         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44002         (__libc_calloc): Add memory_calloc_retry probe.
44003         * manual/probes.texi: Document them.
44004
44005         * malloc/arena.c (get_free_list): Add probe
44006         memory_arena_reuse_free_list.
44007         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44008         and memory_arena_reuse.
44009         (arena_get2) [!PER_THREAD]: Likewise.
44010         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44011         memory_arena_reuse_realloc.
44012         * manual/probes.texi: Document them.
44013
44014         * malloc/malloc.c (__libc_free): Add
44015         memory_mallopt_free_dyn_thresholds probe.
44016         (__libc_mallopt): Add multiple memory_mallopt probes.
44017         * manual/probes.texi: Document them.
44018
44019         * malloc/malloc.c: Include stap-probe.h.
44020         (__libc_mallopt): Add memory_mallopt probe.
44021         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44022         * manual/probes.texi: New.
44023         * manual/Makefile (chapters): Add probes.
44024         * manual/threads.texi: Set next node.
44025
44026 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44027
44028         [BZ #15963, #13985]
44029         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44030         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44031         Add `Chinese' to `nan' entry name.
44032
44033 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44034
44035         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44036         (POLYNOMIAL): Likewise.
44037         (TAYLOR_SINCOS): Likewise.
44038         (TAYLOR_SLOW): Likewise.
44039         (__sin): Use TAYLOR_SINCOS.
44040         (__cos): Likewise.
44041         (slow): Use TAYLOR_SLOW.
44042         (sloww): Likewise.
44043         (bsloww): Likewise.
44044         (csloww): Likewise.
44045
44046 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44047
44048         * stdlib/strtod_l.c: Fix buffer overrun.
44049
44050 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44051
44052         * benchtests/Makefile (bench): Add sincos.
44053         * benchtests/bench-sincos.c: New file.
44054
44055         * math/libm-test.inc (cos_test_data): New test inputs.
44056         (sin_test_data): Likewise.
44057
44058         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44059         macro.
44060         (__sin): Use it.
44061         (__cos): Likewise.
44062         (slow1): Likewise.
44063         (slow2): Likewise.
44064         (sloww1): Likewise.
44065         (sloww2): Likewise.
44066         (bsloww1): Likewise.
44067         (bsloww2): Likewise.
44068         (cslow2): Likewise.
44069         (csloww1): Likewise.
44070         (csloww2): Likewise.
44071
44072         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44073         function.
44074         (__sin): Use it.
44075         (__cos): Likewise.
44076
44077         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44078         gotos.
44079         (__cos): Likewise.
44080
44081 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44082
44083         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44084         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44085         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44086         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44087         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44088         * elf/cache.c (print_entry): Handle the new cache flags.
44089
44090 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44091             Aldy Hernandez  <aldyh@redhat.com>
44092
44093         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44094         Change condition to [_SOFT_FLOAT].
44095         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44096         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44097         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44098         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44099         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44100         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44101         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44102         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44103         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44104         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44105         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44106         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44107         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44108         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44109         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44110         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44111         declaration.
44112
44113 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44114
44115         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44116         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44117         (__longjmp): Use LOAD_GP to load saved GPRs.
44118         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44119         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44120         (__sigsetjmp): Use SAVE_GP to save GPRs.
44121
44122         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44123         Do not append -msoft-float.
44124         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44125
44126 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44127
44128         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44129
44130 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44131
44132         [BZ #15966]
44133         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44134         (_FPU_GETCW): Use initial "__" on variable and field names but not
44135         on macro parameter name.
44136         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44137         parentheses around reference to macro parameter.
44138
44139 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44140
44141         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44142         prototype.
44143         (ctype_startup): Use uint32_t in cast and sizeof for
44144         ctype->charnames.
44145
44146 2013-09-11  Jia Liu  <proljc@gmail.com>
44147
44148         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44149         __daddr_t_defined.
44150         [__FreeBSD__]: Likewise.
44151
44152 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44153
44154         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44155         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44156         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44157         (strchr): Remove __strchr_sse42 ifunc selection.
44158         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44159         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44160
44161 2013-09-11  Will Newton  <will.newton@linaro.org>
44162
44163         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44164         parameter to RES. Remove hardcoded 1000 value.
44165         * benchtests/bench-skeleton.c (main): Pass RES parameter
44166         to TIMING_INIT and multiply result by 1000.
44167
44168 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44169
44170         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44171
44172 2013-09-11  Andreas Schwab  <schwab@suse.de>
44173
44174         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44175         if not defined.
44176         (O_TMPFILE) [__USE_GNU]: Define.
44177         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44178         Define.
44179
44180 2013-09-11  Will Newton  <will.newton@linaro.org>
44181
44182         [BZ #15857]
44183         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44184         does not overflow.
44185
44186 2013-09-11  Will Newton  <will.newton@linaro.org>
44187
44188         [BZ #15856]
44189         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44190         does not overflow.
44191
44192 2013-09-11  Will Newton  <will.newton@linaro.org>
44193
44194         [BZ #15855]
44195         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44196         does not overflow.
44197
44198 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44199
44200         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44201         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44202         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44203         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44204         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44205
44206 2013-09-10  Allan McRae  <allan@archlinux.org>
44207
44208         [BZ #15748]
44209         * manual/arith.texi (Parsing of Floats): Clarify
44210         cross-reference.
44211
44212         [BZ #15849]
44213         * manual/install.texi (Running make install): Mention
44214         --enable-pt-chown.
44215         * INSTALL: Regenerated.
44216
44217 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44218
44219         * csu/init-first.c (_init): Remove the !SHARED condition around
44220         FPU control word initialization.
44221         * elf/dl-support.c (_dl_fpu_control): New variable.
44222         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44223         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44224         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44225         * math/test-fpucw-static.c: New file.
44226         * math/test-fpucw-ieee.c: New file.
44227         * math/test-fpucw-ieee-static.c: New file.
44228         * math/Makefile (tests): Add `test-fpucw-ieee' and
44229         `$(tests-static)'.
44230         (tests-static): New variable.
44231         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44232         dependency to...
44233         [($(build-shared),yes)]
44234         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44235         ... this.
44236         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44237         New dependency.
44238
44239 2013-09-09  Allan McRae  <allan@archlinux.org>
44240
44241         [BZ #15939]
44242         * manual/string.texi (Collation Functions): Fix typo in
44243         strcoll example.
44244         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44245
44246         [BZ #15893]
44247         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44248
44249         [BZ #15892]
44250         * libio/memstream.c (open_memstream): Fix memory leak.
44251         * libio/wmemstream.c (open_wmemstream): Likewise.
44252
44253         [BZ #15895]
44254         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44255
44256 2013-09-09  Will Newton  <will.newton@linaro.org>
44257
44258         * malloc/Makefile: Add tst-realloc to tests.
44259         * malloc/tst-realloc.c: New file.
44260
44261 2013-09-09  Allan McRae  <allan@archlinux.org>
44262
44263         [BZ #15844]
44264         * COPYING: Update from GNU website to fix FSF address.
44265         * COPYING.LIB: Likewise.
44266
44267 2013-09-06  David S. Miller  <davem@davemloft.net>
44268
44269         * po/zh_TW.po: Update Chinese (traditional) translation from
44270         translation project.
44271
44272 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44273             Joseph Myers  <joseph@codesourcery.com>
44274
44275         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44276         "localeinfo.h".
44277         (obstack_chunk_alloc): New macro.
44278         (obstack_chunk_free): Likewise.
44279         (record_offset): New function.
44280         (init_locale_data): Likewise.
44281         (align_locale_data): Likewise.
44282         (add_locale_empty): Likewise.
44283         (add_locale_raw_data): Likewise.
44284         (add_locale_raw_obstack): Likewise.
44285         (add_locale_string): Likewise.
44286         (add_locale_wstring): Likewise.
44287         (add_locale_uint32): Likewise.
44288         (add_locale_uint32_array): Likewise.
44289         (add_locale_char): Likewise.
44290         (start_locale_structure): Likewise.
44291         (end_locale_structure): Likewise.
44292         (start_locale_prelude): Likewise.
44293         (end_locale_prelude): Likewise.
44294         (write_locale_data): Take locale_file structure rather than an
44295         iovec.
44296         * locale/programs/locfile.h: Include "obstack.h".
44297         (struct locale_file): Change to store locale file contents instead
44298         of header.
44299         (init_locale_data): New prototype.
44300         (align_locale_data): Likewise.
44301         (add_locale_empty): Likewise.
44302         (add_locale_raw_data): Likewise.
44303         (add_locale_raw_obstack): Likewise.
44304         (add_locale_string): Likewise.
44305         (add_locale_wstring): Likewise.
44306         (add_locale_uint32): Likewise.
44307         (add_locale_uint32_array): Likewise.
44308         (add_locale_char): Likewise.
44309         (start_locale_structure): Likewise.
44310         (end_locale_structure): Likewise.
44311         (start_locale_prelude): Likewise.
44312         (end_locale_prelude): Likewise.
44313         (write_locale_data): Update prototype.
44314         * locale/programs/3level.h (struct TABLE): Remove result field.
44315         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44316         Use new locale_file interface.
44317         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44318         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44319         * locale/programs/ld-address.c (address_output): Use new
44320         locale_file interface.
44321         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44322         NO_ADD_LOCALE.
44323         (collate_finish): Don't call collseq_table_finalize.
44324         (collate_output): Use new locale_file interface.
44325         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44326         in file.
44327         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44328         (TABLE): Move defines earlier in file.
44329         (ELEMENT): Likewise.
44330         (DEFAULT): Likewise.
44331         (wctrans_table_add): Move macro and inline function earlier in
44332         file.
44333         (struct wctype_table): Move type earlier in file.
44334         (add_locale_wctype_table): New static prototype.
44335         (struct locale_ctype_t): Use logical types instead of struct iovec
44336         pointers for members.
44337         (ctype_output): Use new locale_file interface.
44338         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44339         new locale_file interface.
44340         (allocate_arrays): Update for use of new locale_file interface.
44341         * locale/programs/ld-identification.c (identification_output): Use
44342         new locale_file interface.
44343         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44344         * locale/programs/ld-messages.c (messages_output): Likewise.
44345         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44346         * locale/programs/ld-name.c (name_output): Likewise.
44347         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44348         * locale/programs/ld-paper.c (paper_output): Likewise.
44349         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44350         * locale/programs/ld-time.c (time_output): Likewise.
44351
44352 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44353
44354         * benchtests/Makefile: Add memrchr benchmark.
44355         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44356         benchmark as memrchr.
44357         * benchtests/bench-memrchr-ifunc.c: New file.
44358         * benchtests/bench-memrchr.c: New file.
44359
44360 2013-09-06   Will Newton  <will.newton@linaro.org>
44361
44362         * benchtests/Makefile (string-bench): Add memcpy.
44363
44364 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44365             Cong Wang  <amwang@redhat.com>
44366
44367         [BZ #15850]
44368         * sysdeps/unix/sysv/linux/bits/in.h
44369         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44370         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44371         before __USE_KERNEL_IPV6_DEFS uses.
44372         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44373         IPPROTO_BEETPH.
44374         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44375         sockaddr_in6, or ipv6_mreq.
44376
44377 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44378
44379         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44380         memory access for final bytes in some large inputs.
44381         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44382
44383 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44384
44385         * string/test-memrchr.c: New file.
44386         * string/test-memrchr-ifunc.c: New file.
44387         * string/Makefile: Add new memrchr testcase.
44388
44389 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44390
44391         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44392         fanotify_init returns EPERM.
44393
44394 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44395
44396         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44397         errors.
44398         (top level): Treat second token from macro or constant entries for
44399         allowed headers as allowed.
44400         * include/complex.h: Condition internal declarations on
44401         [!_ISOMAC].
44402         * include/fenv.h: Condition include of <stdbool.h> and internal
44403         declarations on [!_ISOMAC].
44404
44405 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44406
44407         [BZ #15923]
44408         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44409
44410 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44411
44412         * configure.in (--enable-versioning): Remove configure option.
44413         (libc_cv_asm_symver_directive): Remove configure test.
44414         (libc_cv_ld_version_script_option): Likewise.
44415         (VERSIONING): Remove variable and AC_SUBST.
44416         (DO_VERSIONING): Remove AC_DEFINE.
44417         * configure: Regenerated.
44418         * config.h.in (DO_VERSIONING): Remove macro.
44419         * Makerules [$(versioning) = yes]: Change conditionals to
44420         [$(build-shared) = yes].
44421         * config.make.in (versioning): Remove variable.
44422         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44423         [$(build-shared) = yes].
44424         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44425         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44426         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44427         [$(build-shared) = yes].
44428         * extra-lib.mk [$(versioning) = yes]: Likewise.
44429         * hurd/Makefile [$(versioning) = yes]: Likewise.
44430         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44431         [SHARED].
44432         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44433         [SHARED].
44434         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44435         [SHARED && !NO_HIDDEN].
44436         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44437         [SHARED].
44438         [SHARED && DO_VERSIONING]: Likewise..
44439         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44440         [$(build-shared) = yes].
44441         * manual/install.texi (--disable-versioning): Remove
44442         documentation.
44443         * INSTALL: Regenerated.
44444         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44445         to [SHARED].
44446         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44447         [$(build-shared) = yes].
44448         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44449         * sysdeps/i386/i686/multiarch/strstr-c.c
44450         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44451         [SHARED && !NO_HIDDEN].
44452         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44453         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44454         * sysdeps/powerpc/powerpc32/dl-machine.c
44455         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44456         * sysdeps/powerpc/powerpc32/sysdep.h
44457         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44458         to [SHARED && PIC && !NO_HIDDEN].
44459         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44460         conditional to [SHARED].
44461
44462 2013-09-04   Will Newton  <will.newton@linaro.org>
44463
44464         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44465         * benchtests/bench-string.h: Include bench-timing.h instead
44466         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44467         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44468         call to HP_TIMING_DIFF_INIT.
44469         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44470         instead of hp-timing.h macros.
44471         * benchtests/bench-memchr.c: Likewise.
44472         * benchtests/bench-memcmp.c: Likewise.
44473         * benchtests/bench-memcpy.c: Likewise.
44474         * benchtests/bench-memmem.c: Likewise.
44475         * benchtests/bench-memmove.c: Likewise.
44476         * benchtests/bench-memset.c: Likewise.
44477         * benchtests/bench-rawmemchr.c: Likewise.
44478         * benchtests/bench-strcasecmp.c: Likewise.
44479         * benchtests/bench-strcasestr.c: Likewise.
44480         * benchtests/bench-strcat.c: Likewise.
44481         * benchtests/bench-strchr.c: Likewise.
44482         * benchtests/bench-strcmp.c: Likewise.
44483         * benchtests/bench-strcpy.c: Likewise.
44484         * benchtests/bench-strcpy_chk.c: Likewise.
44485         * benchtests/bench-strlen.c: Likewise.
44486         * benchtests/bench-strncasecmp.c: Likewise.
44487         * benchtests/bench-strncat.c: Likewise.
44488         * benchtests/bench-strncmp.c: Likewise.
44489         * benchtests/bench-strncpy.c: Likewise.
44490         * benchtests/bench-strnlen.c: Likewise.
44491         * benchtests/bench-strpbrk.c: Likewise.
44492         * benchtests/bench-strrchr.c: Likewise.
44493         * benchtests/bench-strspn.c: Likewise.
44494         * benchtests/bench-strstr.c: Likewise.
44495
44496 2013-09-04  Will Newton  <will.newton@linaro.org>
44497
44498         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44499
44500 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44501
44502         [BZ #15427]
44503         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44504         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44505         * math/libm-test.inc (lgamma_test_data): Add more tests.
44506         * sysdeps/i386/fpu/libm-test-ulps: Update.
44507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44508
44509 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44510
44511         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44512         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44513         Add ifunc.
44514         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44515         Add strcmp-sse2-unaligned
44516         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44517
44518 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44519
44520         * Versions.def (libc): Add GLIBC_2.19.
44521
44522 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44523
44524         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44525         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44526
44527 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44528
44529         [BZ #14155]
44530         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44531         intermediate calculations in recurrence.
44532         (__ieee754_ynf): Likewise.
44533         * math/libm-test.inc (jn_test_data): Do not allow spurious
44534         underflow exception.  Add more tests.
44535         (yn_test_data): Add more tests.
44536         * sysdeps/i386/fpu/libm-test-ulps: Update.
44537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44538
44539 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44540
44541         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44542
44543 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44544
44545         * csu/init-first.c: Fix then/than typos.
44546         * locale/programs/ld-collate.c: Likewise.
44547         * locale/programs/linereader.h: Likewise.
44548         * manual/charset.texi: Likewise.
44549         * manual/filesys.texi: Likewise.
44550         * manual/stdio.texi: Likewise.
44551         * manual/string.texi: Likewise.
44552         * stdlib/fmtmsg.c: Likewise.
44553         * sysdeps/i386/stpncpy.S: Likewise.
44554         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44555         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44556         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44557         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44558
44559 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44560
44561         * elf/dl-open.c: Fix typos.
44562         * iconvdata/gbbig5.c: Likewise.
44563         * iconvdata/iso-2022-jp.c: Likewise.
44564         * iconv/gconv_int.h: Likewise.
44565         * iconv/loop.c: Likewise.
44566         * nis/rpcsvc/nis.h: Likewise.
44567         * resolv/ns_name.c: Likewise.
44568         * stdio-common/vfscanf.c: Likewise.
44569         * streams/stropts.h: Likewise.
44570         * sunrpc/rpc_thread.c: Likewise.
44571         * sysdeps/i386/strpbrk.S: Likewise.
44572         * sysdeps/ieee754/k_standard.c: Likewise.
44573         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44574         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44575         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44576         * sysdeps/mach/hurd/profil.c: Likewise.
44577         * sysdeps/s390/dl-procinfo.h: Likewise.
44578         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44579         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44580         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44581         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44582         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44583
44584 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44585
44586         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44587         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44588
44589 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44590
44591         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44592         aix specific files.
44593         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44594         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44595         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44596         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44597         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44598         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44599         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44600         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44601
44602 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44603             Roland McGrath  <roland@hack.frob.com>
44604
44605         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44606         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44607
44608 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44609
44610         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44611         __executable_start symbol instead of _start.
44612
44613 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44614
44615         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44616         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44617         Move macros to...
44618         * sysdeps/gnu/ldsodefs.h: ... this new file.
44619
44620         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44621         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44622         instead of ELFOSABI_LINUX.
44623
44624         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44625         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44626         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44627         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44628         Likewise.
44629         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44630         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44631         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44632         Likewise.
44633         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44634         (ibm_extended_long_double): Add ieee_nan member.
44635         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44636         (do_test): New function.
44637
44638         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44639         TEST_TRUNC.
44640         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44641         functions, renamed from truncdfsf_test, trunctfsf_test,
44642         trunctfdf_test.
44643         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44644         functions.
44645         (do_test): Run all these.
44646
44647 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44648
44649         * argp/argp-help.c: Fix typos.
44650         * argp/argp-parse.c: Likewise.
44651         * debug/backtracesyms.c: Likewise.
44652         * elf/elf.h: Likewise.
44653         * malloc/malloc.c: Likewise.
44654         * nis/nis_print.c: Likewise.
44655         * resolv/res_comp.c: Likewise.
44656         * stdlib/stdlib.h: Likewise.
44657         * sunrpc/clnt_tcp.c: Likewise.
44658         * sunrpc/clnt_udp.c: Likewise.
44659         * sunrpc/clnt_unix.c: Likewise.
44660         * sysdeps/unix/bsd/ptsname.c: Likewise.
44661         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44662         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44664         Likewise.
44665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44666         Likewise.
44667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44668         Likewise.
44669         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44670
44671 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44672
44673         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44674         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44675
44676 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44677
44678         [BZ #15897]
44679         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44680         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44681         ($(objpfx)bug-dl-leaf): New rule.
44682         ($(objpfx)bug-dl-leaf.so): Likewise.
44683         ($(objpfx)bug-dl-leaf.out): Likewise.
44684         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44685         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44686         * dlfcn/bug-dl-leaf.c: New test.
44687         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44688         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44689         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44690         (dlclose): Likewise.
44691         (dlmopen): Likewise.
44692
44693 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44694
44695         * include/netdb.h [!_ISOMAC]:
44696         Don't include <tls.h>.
44697         (h_errno, __libc_h_errno): Move declaration and macros out of
44698         [_LIBC_REENTRANT].
44699
44700         * include/resolv.h [_RESOLV_H_]:
44701         Don't include <tls.h>.
44702         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44703         * resolv/res_libc.c: Don't include <tls.h>.
44704         (_res): Use __attribute__ ((nocommon)) in place of
44705         __attribute__ ((section (".bss"))).
44706
44707         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44708         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44709
44710         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44711
44712         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44713         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44714
44715         * resolv/res_mkquery.c: Include <sys/time.h>.
44716
44717         * inet/ifreq.c: Moved to ...
44718         * sysdeps/unix/ifreq.c: ... here.
44719         * inet/ifreq.c: New file, true stub version.
44720
44721         * socket/sa_len.c: New file.
44722         * socket/Makefile (aux): Add it.
44723         * sysdeps/unix/sysv/linux/Makefile
44724         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44725         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44726         and #include <socket/sa_len.c>.
44727         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44728         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44729
44730         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44731         * bits/socket.h: ... here.
44732
44733         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44734         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44735         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44736
44737 2013-08-27  Andreas Schwab  <schwab@suse.de>
44738
44739         [BZ #15736]
44740         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44741         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44742         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44743         * string/test-strcasecmp.c (test_main): Run tests in several
44744         locales.
44745         * string/test-strncasecmp.c (test_main): Likewise.
44746
44747         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44748         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44749         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44750         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44751         (__strncasecmp_ssse3) [PIC]: Likewise.
44752
44753 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44754
44755         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44756
44757         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44758         instead of explicitly declaring xdecrypt.
44759         * nis/nss_nis/nis-publickey.c: Likewise.
44760
44761 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44762
44763         [BZ #15890]
44764         * nscd/aicache.c: Include res_hconf.h.
44765         (addhstaiX): Initialize res_hconf.
44766
44767 2013-08-26  Andreas Schwab  <schwab@suse.de>
44768
44769         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44770         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44771
44772 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44773
44774         * nscd/aicache.c (addhstaiX): Fix indentation.
44775
44776 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44777
44778         * configure.ac: Quote $build_pt_chown test.
44779         * configure: Regenerated.
44780
44781 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44782
44783         [BZ #15532]
44784         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44785         * math/s_cexpf.c (__cexpf): Likewise.
44786         * math/s_cexpl.c (__cexpl): Likewise.
44787         * math/libm-test.inc (cexp_test_data): Correct expected return
44788         value for NaN + i0.  Add another test.
44789
44790 2013-08-22  David S. Miller  <davem@davemloft.net>
44791
44792         * po/ca.po: Update Catalan translation from translation project.
44793         * po/uk.po: Add Ukrainian translations from translation project.
44794
44795 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44796
44797         [BZ #15797]
44798         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44799         is infinite, not alongside NaN test.
44800         * math/s_fdimf.c (__fdimf): Likewise.
44801         * math/s_fdiml.c (__fdiml): Likewise.
44802         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44803         errno is unchanged.
44804
44805 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44806
44807         * argp/argp-help.c: Fix typos.
44808         * crypt/speeds.c: Likewise.
44809         * csu/check_fds.c: Likewise.
44810         * elf/dl-load.c: Likewise.
44811         * elf/dl-open.c: Likewise.
44812         * elf/reldep3.c: Likewise.
44813         * elf/reldep.c: Likewise.
44814         * elf/sprof.c: Likewise.
44815         * iconv/iconv_charmap.c: Likewise.
44816         * iconv/skeleton.c: Likewise.
44817         * iconv/strtab.c: Likewise.
44818         * io/lockf64.c: Likewise.
44819         * libio/libioP.h: Likewise.
44820         * resolv/gai_notify.c: Likewise.
44821         * resolv/ns_name.c: Likewise.
44822         * resolv/ns_samedomain.c: Likewise.
44823         * resolv/res_send.c: Likewise.
44824         * stdlib/random.c: Likewise.
44825         * sunrpc/rpc/xdr.h: Likewise.
44826         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44827         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44828         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44829         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44830         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44831         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44832         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44833         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44834         * sysdeps/mach/hurd/check_fds.c: Likewise.
44835         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44836         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44837         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44838         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44839         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44840         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44841         * sysdeps/pthread/aio_notify.c: Likewise.
44842         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44843         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44844         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44845         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44846         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44847
44848 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44849
44850         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44851         version if bit_Slow_SSE4_2 is set.
44852         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44853         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44854
44855 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44856
44857         [BZ #15867]
44858         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44859         trampoline stack frame information.
44860         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44861         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44862         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44863         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44864         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44865         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44866         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44867         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44868         sa_flags value.
44869         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44870         interrupting a syscall and set with option SA_SIGINFO.
44871
44872 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44873
44874         [BZ #15531]
44875         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44876         argument is infinite.
44877         * math/s_cprojf.c (__cprojf): Likewise.
44878         * math/s_cprojl.c (__cprojl): Likewise.
44879         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44880         * math/libm-test.inc (cproj_test_data): Add more tests.
44881
44882         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44883
44884         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44885         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44886         size.  Use __ffs to determine corresponding shift.
44887
44888 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44889             Roland McGrath  <roland@hack.frob.com>
44890
44891         * Makefile (INSTALL): Remove trailing blank lines from output of
44892         makeinfo.
44893
44894 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44895
44896         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44897         Align 32 bit compat elf_greg to 8 bytes.
44898
44899 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44900
44901         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44902
44903 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44904
44905         * string/strcoll_l.c (coll_seq): New structure.
44906         (get_next_seq_cached): New function.
44907         (get_next_seq): New function.
44908         (do_compare): New function.
44909         (STRCOLL): Use GNU style definition.  Simplify implementation
44910         by using get_next_seq, get_next_seq_cached and do_compare.
44911
44912 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44913
44914         [BZ #14699]
44915         CVE-2013-4237
44916         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44917         member.
44918         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44919         member.
44920         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44921         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44922         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44923         conditional.
44924         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44925         GETDENTS_64BIT_ALIGNED.
44926         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44927         * manual/filesys.texi (Reading/Closing Directory): Document
44928         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44929         strongly.
44930         * manual/conf.texi (Limits for Files): Add portability note to
44931         NAME_MAX, PATH_MAX.
44932         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44933
44934 2013-08-13  Andreas Schwab  <schwab@suse.de>
44935
44936         [BZ #15749]
44937         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44938         of fabs.
44939         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44940         LDBL_MAX_EXP >= 16384]: Add tests for it.
44941
44942 2013-08-12  David S. Miller  <davem@davemloft.net>
44943
44944         * version.h (RELEASE): Set to "development".
44945         (VERSION): Set to "2.18.90".
44946         * NEWS: Add 2.19 section.
44947
44948 2013-08-03  David S. Miller  <davem@davemloft.net>
44949
44950         * po/ko.po: Update Korean translation from translation project.
44951
44952 2013-08-01  David S. Miller  <davem@davemloft.net>
44953
44954         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44955         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44956         Bilka.
44957
44958 2013-07-30  David S. Miller  <davem@davemloft.net>
44959
44960         * po/fr.po: Update French translation from translation project.
44961
44962 2013-07-28  David S. Miller  <davem@davemloft.net>
44963
44964         * po/cs.po: Update Czech translation from translation project.
44965
44966         * po/sv.po: Update Swedish translation from translation project.
44967
44968 2013-07-27  David S. Miller  <davem@davemloft.net>
44969
44970         * po/eo.po: Update Esperanto translation from translation project.
44971
44972         * po/vi.po: Update Vietnamese translation from translation project.
44973
44974         * po/de.po: Update German translation from translation project.
44975
44976 2013-07-26  David S. Miller  <davem@davemloft.net>
44977
44978         * po/bg.po: Update Bulgarian translation from translation project.
44979
44980         * po/nl.po: Update Dutch translation from translation project.
44981         * po/pl.po: Update Polish translation from translation project.
44982         * po/ru.po: Update Russian translation from translation project.
44983
44984 2013-07-24  David S. Miller  <davem@davemloft.net>
44985
44986         * po/libc.pot: Update.
44987
44988 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44989
44990         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44991         variable page size.
44992         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44993         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44994         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44995
44996 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44997
44998         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44999
45000 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45001             Andreas Schwab  <schwab@suse.de>
45002             Roland McGrath  <roland@hack.frob.com>
45003             Joseph Myers  <joseph@codesourcery.com>
45004             Carlos O'Donell  <carlos@redhat.com>
45005
45006         [BZ #15755]
45007         * config.h.in: Define HAVE_PT_CHOWN.
45008         * config.make.in (build-pt-chown): New variable.
45009         * configure.in (--enable-pt_chown): New configure option.
45010         * configure: Regenerate.
45011         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45012         build-pt-chown is enabled.
45013         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45014         pt_chown to fix pty ownership.
45015         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45016         CLOSE_ALL_FDS.
45017         * manual/install.texi (Configuring and compiling): Mention
45018         --enable-pt_chown. Add @findex for grantpt.
45019         * INSTALL: Regenerate.
45020
45021 2013-07-20  David S. Miller  <davem@davemloft.net>
45022
45023         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45024         difference between 32-bit and 64-bit.
45025
45026 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45027
45028         [BZ #15711]
45029         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45030         Avoid system header dependency with -ffreestanding.
45031         ($(objpfx)bits/syscall%d): Likewise.
45032
45033 2013-07-13  David S. Miller  <davem@davemloft.net>
45034
45035         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45036         underflows from atanl/atan2l due to bug 15319.
45037         (casinh_test_data): Likewise.
45038
45039 2013-07-07  David S. Miller  <davem@davemloft.net>
45040
45041         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45042
45043 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45044
45045         * sysdeps/i386/fpu/libm-test-ulps: Update.
45046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45047
45048 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45049
45050         * configure.in (--enable-lock-elision): Fix message text.
45051         * INSTALL: Regenerate.
45052         * configure: Regenerate.
45053
45054 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45055
45056         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45057
45058 2013-07-03  Andreas Jaeger  <aj@suse.de>
45059
45060         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45061         define.
45062         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45063         (ptrace_peeksiginfo_args): Add.
45064         (__ptrace_peeksiginfo_flags): Add.
45065         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45066         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45067         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45068
45069 2013-07-03  Allan McRae  <allan@archlinux.org>
45070
45071         * sysdeps/i386/fpu/libm-test-ulps: Update.
45072
45073 2013-07-02  David S. Miller  <davem@davemloft.net>
45074
45075         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45076
45077 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45078
45079         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45080
45081 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45082
45083         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45085
45086 2013-07-02  Andi Kleen <ak@linux.intel.com>
45087
45088         * config.h.in (ENABLE_LOCK_ELISION): Add.
45089         * configure.in (--enable-lock-elision): Add option.
45090         * manual/install.texi: Document --enable lock elision.
45091         * configure: Regenerate
45092         * INSTALL: Regenerate.
45093
45094 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45095
45096         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45097         SSE4.2 strcasecmp for libc.a.
45098         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45099
45100 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45101
45102         [BZ #13304]
45103         * soft-fp/op-common.h (_FP_FMA): New macro.
45104         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45105         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45106         (_FP_MUL_MEAT_1_imm): ... here.
45107         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45108         (_FP_MUL_MEAT_1_wide): ... here.
45109         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45110         (_FP_MUL_MEAT_1_hard): ... here.
45111         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45112         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45113         (_FP_MUL_MEAT_2_wide): ... here.
45114         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45115         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45116         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45117         (_FP_MUL_MEAT_2_gmp): ... here.
45118         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45119         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45120         (_FP_MUL_MEAT_4_wide): ... here.
45121         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45122         (_FP_MUL_MEAT_4_gmp): ... here.
45123         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45124         (_FP_WFRACBITS_DW_S): Likewise.
45125         (_FP_WFRACXBITS_DW_S): Likewise.
45126         (_FP_HIGHBIT_DW_S): Likewise.
45127         (FP_FMA_S): Likewise.
45128         (_FP_FRAC_HIGH_DW_S): Likewise.
45129         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45130         (_FP_WFRACBITS_DW_D): Likewise.
45131         (_FP_WFRACXBITS_DW_D): Likewise.
45132         (_FP_HIGHBIT_DW_D): Likewise.
45133         (FP_FMA_D): Likewise.
45134         (_FP_FRAC_HIGH_DW_D): Likewise.
45135         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45136         (_FP_WFRACBITS_DW_E): Likewise.
45137         (_FP_WFRACXBITS_DW_E): Likewise.
45138         (_FP_HIGHBIT_DW_E): Likewise.
45139         (FP_FMA_E): Likewise.
45140         (_FP_FRAC_HIGH_DW_E): Likewise.
45141         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45142         (_FP_WFRACBITS_DW_Q): Likewise.
45143         (_FP_WFRACXBITS_DW_Q): Likewise.
45144         (_FP_HIGHBIT_DW_Q): Likewise.
45145         (FP_FMA_Q): Likewise.
45146         (_FP_FRAC_HIGH_DW_Q): Likewise.
45147         * soft-fp/fmasf4.c: New file.
45148         * soft-fp/fmadf4.c: Likewise.
45149         * soft-fp/fmatf4.c: Likewise.
45150
45151 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45152
45153         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45154         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45155         Silvermont.
45156         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45157         macro.
45158         (index_Slow_SSE4_2): Likewise.
45159         (index_Prefer_PMINUB_for_stringop): Likewise.
45160         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45161         bit_Slow_SSE4_2 is set.
45162         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45163         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45164
45165 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45166
45167         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45168         rtld_global._dl_hwcap2.
45169         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45170         POWER8.
45171         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45172         POWER8 feature descriptions defined in _dl_hwcap2.
45173         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45174         string handling for POWER8 feature bits.
45175         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45176         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45177         _dl_powerpc_cap_flags.
45178         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45179         * sysdeps/powerpc/rtld-global-offsets.sym
45180         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45181         _dl_hwcap2 in the rtld_global_ro structure.
45182
45183 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45184
45185         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45186         hardware capabilities in support of AT_HWCAP2.
45187         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45188         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45189         GLRO(dl_hwcap2).
45190         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45191         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45192         explicitly the unknown a_type display mechanism is used.
45193         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45194         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45195         struct member.
45196         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45197         to macro prototype for AT_HWCAP2 support.
45198         * sysdeps/i386/dl-procinfo.h: Likewise.
45199         * sysdeps/s390/dl-procinfo.h: Likewise.
45200         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45201         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45202         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45203         return -1 for unknown a_type display fallback.
45204         * sysdeps/sparc/dl-procinfo.h: Likewise.
45205         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45206         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45207
45208 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45209
45210         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45211         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45212
45213 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45214
45215         [BZ #12492]
45216         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45217         mprotect making __stack_prot writable.
45218
45219 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45220             Joseph Myers  <joseph@codesourcery.com>
45221
45222         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45223         as being properly aligned.
45224
45225 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45226
45227         * dlfcn/modstatic5.c: New file.
45228         * dlfcn/tststatic5.c: New file.
45229         * dlfcn/Makefile (tests): Add tststatic5.
45230         (tests-static): Likewise.
45231         (modules-names): Add modstatic5.
45232         (tststatic5-ENV): New variable.
45233         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45234
45235         [BZ #15022]
45236         * elf/dl-support.c (_dl_main_map): New variable.
45237         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45238         (_dl_nns, _dl_load_adds): Set to 1.
45239         (_dl_initial_searchlist): Refer to _dl_main_map.
45240         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45241         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45242         call to _dl_get_origin.
45243         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45244         around call_map.
45245         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45246         * dlfcn/modstatic3.c: New file.
45247         * dlfcn/tststatic3.c: New file.
45248         * dlfcn/tststatic4.c: New file.
45249         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45250         (tests-static): Likewise.
45251         (modules-names): Add modstatic3.
45252         (tststatic3-ENV, tststatic4-ENV): New variables.
45253         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45254         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45255
45256 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45257
45258         * configure.in (CC): Require GCC version 4.4 or later.
45259         * configure: Regenerated.
45260         * manual/install.texi (Tools for Compilation): Update GCC version
45261         requirement.
45262         * INSTALL: Regenerated.
45263
45264 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45265
45266         [BZ #15674]
45267         * string/test-memcmp.c (check2): New.
45268         (main): Call check2.
45269
45270         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45271
45272 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45273
45274         [BZ #15022]
45275         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45276         over to...
45277         (dl_open_worker) [!SHARED]: ... here.
45278
45279 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45280
45281         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45282
45283 2013-06-25  Richard Henderson  <rth@redhat.com>
45284
45285         * locale/programs/locarchive.c: Include <libc-internal.h>
45286
45287 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45288
45289         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45290         trailing whitespace removed.
45291
45292 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45293
45294         [BZ #10283]
45295         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45296         * locale/programs/locarchive.c: Include libc-mmap.h.
45297         (prepare_address_space): Take two new outputs (the mmap base and len).
45298         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45299         values.
45300         (create_archive): Declare new mmap base and len values for
45301         prepare_address_space, and store the result in ah.
45302         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45303         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45304         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45305         Declare new mmap base and len values for
45306         prepare_address_space, and store the result in new_ah.
45307         (open_archive): Declare new mmap base and len values for
45308         prepare_address_space, and store the result in ah.
45309         (close_archive): If ah->mmap_base is not NULL, use that and
45310         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45311         * sysdeps/generic/libc-mmap.h: New file.
45312
45313 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45314
45315         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45316         (ALIGN_UP): Likewise.
45317         (PTR_ALIGN_DOWN): Likewise.
45318         (PTR_ALIGN_UP): Likewise.
45319
45320 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45321
45322         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45323         entry mapped to PPC_PLATFORM_POWER8.
45324         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45325         POWER8.
45326         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45327         (_dl_string_platform): Add case for exporting platform position for
45328         POWER8.
45329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45330         search path to sysdeps/powerpc/powerpc32/power8 directory.
45331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45332         search path to sysdeps/powerpc/powerpc64/power8 directory.
45333         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45334         power7 directories.
45335         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45336         power7 directories.
45337
45338 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45339
45340         * INSTALL: Regenerate.
45341
45342         * nscd/connections.c (nscd_init): Fix comment.
45343
45344 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45345
45346         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45347
45348         [BZ #15667]
45349         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45350         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45351
45352 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45353
45354         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45355         DL_DST_REQ_STATIC.
45356         (DL_DST_REQ_STATIC): Remove macro.
45357
45358 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45359
45360         [BZ #7006]
45361         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45362         with a shift of 0 bits.
45363
45364 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45365
45366         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45367         $(tststatic-ENV).
45368
45369 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45370
45371         [BZ #15655]
45372         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45373
45374 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45375
45376         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45377         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45378         accepts -fno-tree-loop-distribute-patterns.
45379         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45380         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45381         recursive call.
45382         * string/memset.c (memset): Likewise.
45383         * string/test-memmove.c (simple_memmove): Disable loop transformation
45384         to library calls.
45385         * string/test-memset.c (simple_memset): Likewise.
45386         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45387         * benchtests/bench-memset.c (simple_memset): Likewise.
45388         * configure: Regenerated.
45389
45390 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45391
45392         * math/test-misc.c (main): Ignore fesetround failure when failures
45393         of subsequent rounding tests would be ignored.
45394
45395         [BZ #15654]
45396         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45397         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45398         * math/fegetenv.c (__fegetenv): Return 0.
45399         * math/fegetexcept.c (fegetexcept): Return 0.
45400         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45401         FE_TONEAREST.
45402         * math/feholdexcpt.c (feholdexcept): Return 0.
45403         * math/fesetenv.c (__fesetenv): Return 0.
45404         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45405         argument FE_TONEAREST.
45406         * math/feupdateenv.c (__feupdateenv): Return 0.
45407         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45408
45409 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45410
45411         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45412         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45413         ($(objpfx)rtld-%.os rules): Use them.
45414
45415 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45416
45417         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45418         fields.
45419
45420 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45421
45422         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45423         length of target pattern, then descending length of dependency pattern.
45424         * configure.in (AWK): Require gawk 3.1.2 or newer.
45425         * manual/install.texi (Tools for Compilation): Say that we do.
45426         * configure: Regenerated.
45427
45428         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45429         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45430         * scripts/sysd-rules.awk: ... this new script.
45431         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45432         than a glob-style pattern.
45433
45434 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45435
45436         * math/test-misc.c (main): Do not treat incorrectly rounded
45437         conversions as failure unless ROUNDING_TESTS passes.
45438
45439 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45440
45441         [BZ #15631]
45442         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45443         restore exception state around main square root computation, then
45444         check for inexactness explicitly.
45445
45446         * math/libm-test.inc (fma_test_data): Add another test.
45447
45448 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45449
45450         * manual/threads.texi (Non-POSIX Extensions): New document
45451         node.  Document pthread_getattr_default_np and
45452         pthread_setattr_default_np.
45453
45454         * Versions.def (libpthread): Add GLIBC_2.18.
45455         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45457         Likewise.
45458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45459         Likewise.
45460         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45461         Likewise.
45462         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45463         Likewise.
45464         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45465         Likewise.
45466         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45467         Likewise.
45468         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45469         Likewise.
45470         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45471         Likewise.
45472         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45473         Likewise.
45474
45475 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45476
45477         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45478         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45479
45480 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45481             H.J. Lu  <hjl.tools@gmail.com>
45482
45483         [BZ #15627]
45484         * sysdeps/x86_64/rtld-memset.c: Remove file.
45485         * sysdeps/x86_64/rtld-memset.S: New file.
45486
45487 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45488
45489         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45490         (test_in_one_mode): Take arguments for whether the rounding mode
45491         is supported for each floating-point type.
45492         (do_test): Pass new arguments to test_in_one_mode using
45493         ROUNDING_TESTS.
45494
45495 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45496
45497         * posix/tst-waitid.c (do_test): Distinguish different instances of
45498         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45499         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45500         before entering the kernel for waitpid.
45501
45502 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45503
45504         * NEWS: Fix note on clock function precision.  Text by Roland
45505         McGrath.
45506
45507 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45508
45509         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45510         it into place only when and if the sanity check passes.
45511
45512 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45513
45514         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45515         output for whether conversion result is exact.  Take argument
45516         indicating whether type is IBM long double.
45517         (round_for_all): Change need_exact field to ibm_ld.
45518         * stdlib/tst-strtod-round.c (struct exactness): New type.
45519         (struct test): Change bool ld_ok field to struct exactness exact.
45520         (TEST): Update all definitions for change to field.
45521         (tests): Regenerate array contents.
45522         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45523         field value.  Check for IBM long double here.
45524         (do_test): Update calls to test_in_one_mode.
45525
45526 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45527
45528         [BZ #12515]
45529         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45530         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45531
45532 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45533
45534         [BZ #15605]
45535         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45536         generated by the compiler on loop optimizations.
45537         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45538         general definitions.
45539
45540 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45541
45542         * math/bug-nextafter.c: Include <math-tests.h>.
45543         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45544         the relevant type.
45545         * math/bug-nexttoward.c: Include <math-tests.h>.
45546         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45547         the relevant type.
45548         * math/test-misc.c: Include <math-tests.h>.
45549         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45550         the relevant type.
45551
45552 2013-06-12  Andreas Jaeger  <aj@suse.de>
45553
45554         * po/ia.po: Update Interlingua translation from translation
45555         project.
45556
45557 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45558
45559         * include/fenv.h: Include stdbool.h.
45560         (struct rm_ctx): New structure.
45561         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45562         Define macro.
45563         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45564         (SET_RESTORE_ROUNDF): Likewise.
45565         (SET_RESTORE_ROUNDL): Likewise.
45566         (SET_RESTORE_ROUND_NOEX): Likewise.
45567         (SET_RESTORE_ROUND_NOEXF): Likewise.
45568         (SET_RESTORE_ROUND_NOEXL): Likewise.
45569         (SET_RESTORE_ROUND_53BIT): Likewise.
45570         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45571         (libc_feresetround_noexf_ctx): Likewise.
45572         (libc_feresetround_noexl_ctx): Likewise.
45573         (libc_feholdsetround_53bit_ctx): Likewise.
45574         (libc_feresetround_53bit_ctx): Likewise.
45575         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45576         (libc_feholdexcept_setround_sse_ctx): New function.
45577         (libc_fesetenv_sse_ctx): Likewise.
45578         (libc_feupdateenv_sse_ctx): Likewise.
45579         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45580         (libc_feholdexcept_setround_387_ctx): Likewise.
45581         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45582         (libc_feholdsetround_387_prec_ctx): Likewise.
45583         (libc_feholdsetround_387_ctx): Likewise.
45584         (libc_feholdsetround_387_53bit_ctx): Likewise.
45585         (libc_feholdsetround_sse_ctx): Likewise.
45586         (libc_feresetround_sse_ctx): Likewise.
45587         (libc_feresetround_387_ctx): Likewise.
45588         (libc_feupdateenv_387_ctx): Likewise.
45589         (libc_feholdexcept_setroundf_ctx): Define macro.
45590         (libc_fesetenvf_ctx): Likewise.
45591         (libc_feupdateenvf_ctx): Likewise.
45592         (libc_feholdsetroundf_ctx): Likewise.
45593         (libc_feresetroundf_ctx): Likewise.
45594         (libc_feholdexcept_setround_ctx): Likewise.
45595         (libc_fesetenv_ctx): Likewise.
45596         (libc_feupdateenv_ctx): Likewise.
45597         (libc_feholdsetround_ctx): Likewise.
45598         (libc_feresetround_ctx): Likewise.
45599         (libc_feholdexcept_setroundl_ctx): Likewise.
45600         (libc_feupdateenvl_ctx): Likewise.
45601         (libc_feholdsetroundl_ctx): Likewise.
45602         (libc_feresetroundl_ctx): Likewise.
45603         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45604         (libc_feresetround_53bit_ctx): Likewise.
45605
45606 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45607
45608         * locale/iso-639.def: Convert to UTF-8.
45609
45610 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45611
45612         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45613         (EXCEPTION_TESTS_double): Likewise.
45614         (EXCEPTION_TESTS_long_double): Likewise.
45615         (EXCEPTION_TESTS): Likewise.
45616         * math/libm-test.inc (test_exceptions): Only test exceptions if
45617         EXCEPTION_TESTS (FLOAT).
45618
45619 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45620
45621         * benchtests/Makefile (string-bench): Add strcpy_chk and
45622         stpcpy_chk.
45623         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45624         * benchtests/bench-stpcpy_chk.c: New file.
45625         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45626         * benchtests/bench-strcpy_chk.c: New file.
45627         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45628         code.
45629         (do_test): Likewise.
45630
45631 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45632
45633         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45634         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45635         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45636         with tabs where appropriate.
45637         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45638         dl-procinfo.h.
45639         [PPC_PLATFORM_PPC440]: Likewise.
45640         [PPC_PLATFORM_PPC464]: Likewise.
45641         [PPC_PLATFORM_PPC476]: Likewise.
45642         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45643         ppc464, and ppc476 platform strings merging from ports/
45644         dl-procinfo.h.
45645
45646 2013-06-11  Andreas Schwab  <schwab@suse.de>
45647
45648         [BZ #14991]
45649         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45650         (from_ucs4_idx): Regenerate.
45651         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45652         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45653         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45654         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45655         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45656         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45657         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45658         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45659         from FROM_LOOP and TO_LOOP specific macros.
45660         (BODY): Handle combining characters.
45661         * iconvdata/BIG5HKSCS.irreversible: Update.
45662         * iconvdata/BIG5HKSCS.precomposed: New file.
45663         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45664         characters.
45665         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45666
45667 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45668
45669         * include/sys/time.h: Fix indentation and add copyright header.
45670
45671         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45672         (do_test): Likewise.
45673         * string/test-memchr.c (do_one_test): Likewise.
45674         (do_test): Likewise.
45675         * string/test-memcmp.c (do_one_test): Likewise.
45676         (do_test): Likewise.
45677         * string/test-memcpy.c (do_one_test): Likewise.
45678         (do_test): Likewise.
45679         * string/test-memmem.c (do_one_test): Likewise.
45680         (do_test): Likewise.
45681         (do_random_tests): Likewise.
45682         * string/test-memmove.c (do_one_test): Likewise.
45683         (do_test): Likewise.
45684         * string/test-memset.c (do_one_test): Likewise.
45685         (do_test): Likewise.
45686         * string/test-rawmemchr.c (do_one_test): Likewise.
45687         (do_test): Likewise.
45688         * string/test-strcasecmp.c (do_one_test): Likewise.
45689         (do_test): Likewise.
45690         * string/test-strcasestr.c (do_one_test): Likewise.
45691         (do_test): Likewise.
45692         * string/test-strcat.c (do_one_test): Likewise.
45693         (do_test): Likewise.
45694         * string/test-strchr.c (do_one_test): Likewise.
45695         (do_test): Likewise.
45696         * string/test-strcmp.c (do_one_test): Likewise.
45697         (do_test): Likewise.
45698         * string/test-strcpy.c (do_one_test): Likewise.
45699         (do_test): Likewise.
45700         * string/test-string.h: Likewise.
45701         (test_init): Likewise.
45702         * string/test-strlen.c (do_one_test): Likewise.
45703         (do_test): Likewise.
45704         * string/test-strncasecmp.c (do_one_test): Likewise.
45705         (do_test): Likewise.
45706         * string/test-strncat.c (do_one_test): Likewise.
45707         (do_test): Likewise.
45708         * string/test-strncmp.c (do_one_test): Likewise.
45709         (do_test_limit): Likewise.
45710         (do_test): Likewise.
45711         * string/test-strncpy.c (do_one_test): Likewise.
45712         (do_test): Likewise.
45713         * string/test-strnlen.c (do_one_test): Likewise.
45714         (do_test): Likewise.
45715         * string/test-strpbrk.c (do_one_test): Likewise.
45716         (do_test): Likewise.
45717         * string/test-strrchr.c (do_one_test): Likewise.
45718         (do_test): Likewise.
45719         * string/test-strspn.c (do_one_test): Likewise.
45720         (do_test): Likewise.
45721         * string/test-strstr.c (do_one_test): Likewise.
45722         (do_test): Likewise.
45723
45724         * benchtests/Makefile (string-bench): Add string benchmarks.
45725         * benchtests/bench-bcopy-ifunc.c: New file.
45726         * benchtests/bench-bcopy.c: New file.
45727         * benchtests/bench-bzero-ifunc.c: New file.
45728         * benchtests/bench-bzero.c: New file.
45729         * benchtests/bench-memccpy-ifunc.c: New file.
45730         * benchtests/bench-memccpy.c: New file.
45731         * benchtests/bench-memchr-ifunc.c: New file.
45732         * benchtests/bench-memchr.c: New file.
45733         * benchtests/bench-memcmp-ifunc.c: New file.
45734         * benchtests/bench-memcmp.c: New file.
45735         * benchtests/bench-memmem-ifunc.c: New file.
45736         * benchtests/bench-memmem.c: New file.
45737         * benchtests/bench-memmove-ifunc.c: New file.
45738         * benchtests/bench-memmove.c: New file.
45739         * benchtests/bench-mempcpy-ifunc.c: New file.
45740         * benchtests/bench-mempcpy.c: New file.
45741         * benchtests/bench-memset-ifunc.c: New file.
45742         * benchtests/bench-memset.c: New file.
45743         * benchtests/bench-rawmemchr-ifunc.c: New file.
45744         * benchtests/bench-rawmemchr.c: New file.
45745         * benchtests/bench-stpcpy-ifunc.c: New file.
45746         * benchtests/bench-stpcpy.c: New file.
45747         * benchtests/bench-stpncpy-ifunc.c: New file.
45748         * benchtests/bench-stpncpy.c: New file.
45749         * benchtests/bench-strcasecmp-ifunc.c: New file.
45750         * benchtests/bench-strcasecmp.c: New file.
45751         * benchtests/bench-strcasestr-ifunc.c: New file.
45752         * benchtests/bench-strcasestr.c: New file.
45753         * benchtests/bench-strcat-ifunc.c: New file.
45754         * benchtests/bench-strcat.c: New file.
45755         * benchtests/bench-strchr-ifunc.c: New file.
45756         * benchtests/bench-strchr.c: New file.
45757         * benchtests/bench-strchrnul-ifunc.c: New file.
45758         * benchtests/bench-strchrnul.c: New file.
45759         * benchtests/bench-strcmp-ifunc.c: New file.
45760         * benchtests/bench-strcmp.c: New file.
45761         * benchtests/bench-strcpy-ifunc.c: New file.
45762         * benchtests/bench-strcpy.c: New file.
45763         * benchtests/bench-strcspn-ifunc.c: New file.
45764         * benchtests/bench-strcspn.c: New file.
45765         * benchtests/bench-strlen-ifunc.c: New file.
45766         * benchtests/bench-strlen.c: New file.
45767         * benchtests/bench-strncasecmp-ifunc.c: New file.
45768         * benchtests/bench-strncasecmp.c: New file.
45769         * benchtests/bench-strncat-ifunc.c: New file.
45770         * benchtests/bench-strncat.c: New file.
45771         * benchtests/bench-strncmp-ifunc.c: New file.
45772         * benchtests/bench-strncmp.c: New file.
45773         * benchtests/bench-strncpy-ifunc.c: New file.
45774         * benchtests/bench-strncpy.c: New file.
45775         * benchtests/bench-strnlen-ifunc.c: New file.
45776         * benchtests/bench-strnlen.c: New file.
45777         * benchtests/bench-strpbrk-ifunc.c: New file.
45778         * benchtests/bench-strpbrk.c: New file.
45779         * benchtests/bench-strrchr-ifunc.c: New file.
45780         * benchtests/bench-strrchr.c: New file.
45781         * benchtests/bench-strspn-ifunc.c: New file.
45782         * benchtests/bench-strspn.c: New file.
45783         * benchtests/bench-strstr-ifunc.c: New file.
45784         * benchtests/bench-strstr.c: New file.
45785
45786         * benchtests/Makefile: Disable parallel execution of targets.
45787         (string-bench): Add memcpy.
45788         (benchset): New variable to store a list of benchmark sets.
45789         (bench-func): Renamed from bench.
45790         (bench-set): New target.
45791         (bench): Depend on bench-func and bench-set.
45792         * benchtests/README: Add section on benchmark sets.
45793         * benchtests/bench-memcpy-ifunc.c: New file.
45794         * benchtests/bench-memcpy.c: New file.
45795         * benchtests/bench-string.h: New file.
45796
45797 2013-06-11  Andreas Schwab  <schwab@suse.de>
45798
45799         [BZ #15577]
45800         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45801         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45802         values in the triple.
45803         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45804         terminator in the group key.
45805
45806 2013-06-11  Andreas Jaeger  <aj@suse.de>
45807
45808         * po/zh_TW.po: Update Chinese (traditional) translation from
45809         translation project.
45810
45811 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45812
45813         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45814         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45815         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45816         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45817         (clock_getcpuclockid): Likewise.
45818         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45819         Add weak_alias and libc_hidden_def.
45820         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45821         * rt/clock_gettime.c (clock_gettime): Rename to
45822         __clock_gettime.  Add weak_alias and libc_hidden_def.
45823         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45824         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45825         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45826         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45827         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45828         Likewise.
45829         * rt/clock_settime.c (clock_settime): Rename to
45830         __clock_settime.  Add weak_alias and libc_hidden_def.
45831         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45832
45833 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45834
45835         * mach/err_boot.sub: Remove trailing whitespace.
45836         * mach/err_ipc.sub: Likewise.
45837         * mach/err_mach.sub: Likewise.
45838
45839         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45840         (ROUNDING_TESTS_double): Likewise.
45841         (ROUNDING_TESTS_long_double): Likewise.
45842         (ROUNDING_TESTS): Likewise.
45843         * math/libm-test.inc: Include <math-tests.h>.
45844         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45845         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45846         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45847         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45848
45849 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45850
45851         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45852         of assigning.
45853
45854 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45855
45856         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45857         otherwise empty TRANS lines.
45858         * sysdeps/gnu/errlist.c: Regenerated.
45859
45860         * catgets/gencat.c (error_print): Use (void) in function
45861         definition.
45862         * crypt/crypt_util.c (__init_des): Likewise.
45863         * crypt/speeds.c (Stop): Likewise.
45864         (main): Likewise.
45865         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45866         * inet/ruserpass.c (token): Likewise.
45867         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45868         * intl/localealias.c (extend_alias_table): Likewise.
45869         * intl/plural-exp.c (init_germanic_plural): Likewise.
45870         * libio/fcloseall.c (__fcloseall): Likewise.
45871         * libio/genops.c (_IO_flush_all): Likewise.
45872         (_IO_flush_all_linebuffered): Likewise.
45873         (_IO_cleanup): Likewise.
45874         (_IO_iter_begin): Likewise.
45875         (_IO_iter_end): Likewise.
45876         (_IO_list_lock): Likewise.
45877         (_IO_list_unlock): Likewise.
45878         (_IO_list_resetlock): Likewise.
45879         * libio/getchar.c (getchar): Likewise.
45880         * libio/getchar_u.c (getchar_unlocked): Likewise.
45881         * libio/getwchar.c (getwchar): Likewise.
45882         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45883         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45884         * login/getpt.c (__getpt): Likewise.
45885         * login/tst-utmp.c (main): Likewise.
45886         * malloc/hooks.c (__malloc_check_init): Likewise.
45887         * malloc/malloc.c (__malloc_stats): Likewise.
45888         * malloc/mtrace.c (tr_break): Likewise.
45889         (mtrace): Likewise.
45890         (muntrace): Likewise.
45891         * misc/fstab.c (endfsent): Likewise.
45892         * misc/getclktck.c (__getclktck): Likewise.
45893         * misc/getdtsz.c (__getdtablesize): Likewise.
45894         * misc/gethostid.c (gethostid): Likewise.
45895         * misc/getpagesize.c (__getpagesize): Likewise.
45896         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45897         (__get_nprocs): Likewise.
45898         (__get_phys_pages): Likewise.
45899         (__get_avphys_pages): Likewise.
45900         * misc/getttyent.c (getttyent): Likewise.
45901         (setttyent): Likewise.
45902         (endttyent): Likewise.
45903         * misc/getusershell.c (getusershell): Likewise.
45904         (endusershell): Likewise.
45905         (setusershell): Likewise.
45906         (initshells): Likewise.
45907         * misc/hsearch.c (__hdestroy): Likewise.
45908         * misc/sync.c (sync): Likewise.
45909         * misc/syslog.c (closelog_internal): Likewise.
45910         (closelog): Likewise.
45911         * misc/ttyslot.c (ttyslot): Likewise.
45912         * misc/vhangup.c (vhangup): Likewise.
45913         * posix/fork.c (__fork): Likewise.
45914         * posix/getegid.c (__getegid): Likewise.
45915         * posix/geteuid.c (__geteuid): Likewise.
45916         * posix/getgid.c (__getgid): Likewise.
45917         * posix/getpid.c (__getpid): Likewise.
45918         * posix/getppid.c (__getppid): Likewise.
45919         * posix/getuid.c (__getuid): Likewise.
45920         * posix/pause.c (pause): Likewise.
45921         * posix/setpgrp.c (setpgrp): Likewise.
45922         * posix/setsid.c (__setsid): Likewise.
45923         * posix/test-vfork.c (noop): Likewise.
45924         * resolv/gethnamaddr.c (_endhtent): Likewise.
45925         (_gethtent): Likewise.
45926         (ht_endhostent): Likewise.
45927         (gethostent): Likewise.
45928         (dns_service): Likewise.
45929         * stdlib/drand48.c (drand48): Likewise.
45930         * stdlib/lrand48.c (lrand48): Likewise.
45931         * stdlib/mrand48.c (mrand48): Likewise.
45932         * stdlib/rand.c (rand): Likewise.
45933         * stdlib/random.c (__random): Likewise.
45934         * stdlib/setenv.c (clearenv): Likewise.
45935         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45936         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45937         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45938         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45939         (__get_nprocs): Likewise.
45940         (__get_phys_pages): Likewise.
45941         (__get_avphys_pages): Likewise.
45942         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45943         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45944         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45945         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45946         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45947         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45948         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45949         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45950         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45951         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45952         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45953         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45954         * sysdeps/posix/clock.c (clock): Likewise.
45955         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45956         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45957         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45958         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45959         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45960         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45961         (__get_nprocs_conf): Likewise.
45962         (__get_phys_pages): Likewise.
45963         (__get_avphys_pages): Likewise.
45964         * time/clock.c (clock): Likewise.
45965         * time/tzset.c (__tzname_max): Likewise.
45966
45967 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45968
45969         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45970         (__bswap_32): Do not use "register".
45971         * crypt/crypt.c (_ufc_doit_r): Likewise.
45972         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45973         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45974         * gmon/gmon.c (__monstartup): Likewise.
45975         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45976         * hurd/hurdmalloc.c (more_memory): Likewise.
45977         (malloc): Likewise.
45978         (free): Likewise.
45979         (realloc): Likewise.
45980         (malloc_fork_prepare): Likewise.
45981         (malloc_fork_parent): Likewise.
45982         (malloc_fork_child): Likewise.
45983         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45984         (_svcauth_des): Likewise.
45985         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45986         * inet/inet_net.c (inet_network): Likewise.
45987         * inet/inet_netof.c (inet_netof): Likewise.
45988         * inet/rcmd.c (__validuser2_sa): Likewise.
45989         * io/fts.c (fts_open): Likewise.
45990         (fts_load): Likewise.
45991         (fts_close): Likewise.
45992         (fts_read): Likewise.
45993         (fts_children): Likewise.
45994         (fts_build): Likewise.
45995         (fts_stat): Likewise.
45996         (fts_sort): Likewise.
45997         (fts_alloc): Likewise.
45998         (fts_lfree): Likewise.
45999         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46000         (_IO_file_xsgetn): Likewise.
46001         (_IO_file_xsgetn_mmap): Likewise.
46002         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46003         (_IO_cookie_write): Likewise.
46004         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46005         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46006         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46007         * malloc/obstack.c (_obstack_begin): Likewise.
46008         (_obstack_begin_1): Likewise.
46009         (_obstack_newchunk): Likewise.
46010         (_obstack_allocated_p): Likewise.
46011         (obstack_free): Likewise.
46012         (_obstack_memory_used): Likewise.
46013         * misc/getttyent.c (getttynam): Likewise.
46014         (getttyent): Likewise.
46015         (skip): Likewise.
46016         (value): Likewise.
46017         * misc/getusershell.c (initshells): Likewise.
46018         * misc/syslog.c (__vsyslog_chk): Likewise.
46019         * misc/ttyslot.c (ttyslot): Likewise.
46020         * nis/nis_hash.c (__nis_hash): Likewise.
46021         * posix/fnmatch_loop.c (FCT): Likewise.
46022         * posix/getconf.c (print_all): Likewise.
46023         (main): Likewise.
46024         * posix/getopt.c (exchange): Likewise.
46025         * posix/glob.c (globfree): Likewise.
46026         (prefix_array): Likewise.
46027         (__glob_pattern_type): Likewise.
46028         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46029         (NS_GET32): Likewise.
46030         (NS_PUT16): Likewise.
46031         (NS_PUT32): Likewise.
46032         * resolv/gethnamaddr.c (getanswer): Likewise.
46033         (gethostbyname2): Likewise.
46034         (gethostbyaddr): Likewise.
46035         (_gethtent): Likewise.
46036         (_gethtbyname2): Likewise.
46037         (_gethtbyaddr): Likewise.
46038         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46039         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46040         * resolv/res_init.c (__res_vinit): Likewise.
46041         (net_mask): Likewise.
46042         * resolv/res_mkquery.c (outchar): Likewise.
46043         (PRINT): Likewise.
46044         * stdio-common/printf_fp.c (outchar): Likewise.
46045         (PRINT): Likewise.
46046         * stdio-common/printf_fphex.c (outchar): Likewise.
46047         (PRINT): Likewise.
46048         * stdio-common/printf_size.c (outchar): Likewise.
46049         (PRINT): Likewise.
46050         * stdio-common/test_rdwr.c (main): Likewise.
46051         * stdio-common/tfformat.c (matches): Likewise.
46052         * stdio-common/vfprintf.c (outchar): Likewise.
46053         (printf_unknown): Likewise.
46054         (buffered_vfprintf): Likewise.
46055         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46056         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46057         (ReadFile): Likewise.
46058         * stdlib/qsort.c (SWAP): Likewise.
46059         (_quicksort): Likewise.
46060         * stdlib/setenv.c (__add_to_environ): Likewise.
46061         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46062         * stdlib/strtol_l.c (__strtol_l): Likewise.
46063         * stdlib/tst-strtod.c (main): Likewise.
46064         * stdlib/tst-strtol.c (main): Likewise.
46065         * stdlib/tst-strtoll.c (main): Likewise.
46066         * string/bits/string2.h (__strcmp_cc): Likewise.
46067         (__strcmp_cg): Likewise.
46068         (__strcspn_c1): Likewise.
46069         (__strcspn_c2): Likewise.
46070         (__strcspn_c3): Likewise.
46071         (__strspn_c1): Likewise.
46072         (__strspn_c2): Likewise.
46073         (__strspn_c3): Likewise.
46074         (__strsep_1c): Likewise.
46075         (__strsep_2c): Likewise.
46076         (__strsep_3c): Likewise.
46077         * string/memccpy.c (__memccpy): Likewise.
46078         * string/stpcpy.c (__stpcpy): Likewise.
46079         * string/strcmp.c (strcmp): Likewise.
46080         * string/strrchr.c (strrchr): Likewise.
46081         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46082         Likewise.
46083         * sysdeps/mach/hurd/getcwd.c
46084         (_hurd_canonicalize_directory_name_internal): Likewise.
46085         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46086         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46087         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46088         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46089         Likewise, in both definitions.
46090         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46091         definitions.
46092         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46093         64] (__bswap_64): Likewise.
46094         * time/test_time.c (main): Likewise.
46095         * time/tzfile.c (__tzfile_read): Likewise.
46096         (__tzfile_compute): Likewise.
46097         * time/tzset.c (__tzset_parse_tz): Likewise.
46098         (tzset_internal): Likewise.
46099         (compute_change): Likewise.
46100         * wcsmbs/wcscat.c (__wcscat): Likewise.
46101         * wcsmbs/wcschr.c (wcschr): Likewise.
46102         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46103         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46104         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46105         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46106         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46107         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46108         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46109         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46110         * wcsmbs/wmemset.c (wmemset): Likewise.
46111
46112 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46113
46114         * scripts/config.guess: Update to version 2013-05-16.
46115         * scripts/config.sub: Update to version 2013-04-24.
46116         * scripts/install-sh: Update to version 2011-11-20.07.
46117         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46118         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46119
46120 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46121
46122         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46123         * elf/sln.c: Likewise.
46124         * hurd/hurd/ioctl.h: Likewise.
46125         * hurd/hurdmalloc.c: Likewise.
46126         * hurd/xattr.c: Likewise.
46127         * include/shlib-compat.h: Likewise.
46128         * inet/ruserpass.c: Likewise.
46129         * libio/iofgets_u.c: Likewise.
46130         * libio/iofgetws_u.c: Likewise.
46131         * locale/programs/ld-identification.c: Likewise.
46132         * locale/programs/ld-time.c: Likewise.
46133         * mach/msg-destroy.c: Likewise.
46134         * nss/nss_files/files-netgrp.c: Likewise.
46135         * resolv/res_data.c: Likewise.
46136         * soft-fp/op-1.h: Likewise.
46137         * soft-fp/op-2.h: Likewise.
46138         * soft-fp/op-4.h: Likewise.
46139         * soft-fp/op-common.h: Likewise.
46140         * stdio-common/printf_fphex.c: Likewise.
46141         * stdlib/strtod_l.c: Likewise.
46142         * sunrpc/rpc/clnt.h: Likewise.
46143         * sysdeps/generic/framestate.c: Likewise.
46144         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46145         * sysdeps/i386/bsd-setjmp.S: Likewise.
46146         * sysdeps/i386/__longjmp.S: Likewise.
46147         * sysdeps/i386/setjmp.S: Likewise.
46148         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46149         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46150         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46151         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46152         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46153         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46154         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46155         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46156         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46157         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46158         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46159         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46160         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46161         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46162         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46163         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46164         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46165         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46166         * sysdeps/ieee754/support.c: Likewise.
46167         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46168         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46169         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46170         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46171         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46172         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46173         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46174         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46175         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46176         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46177         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46178         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46179         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46180         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46181         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46182         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46183         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46185
46186 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46187
46188         * posix/transbug.c: Remove executable mode.
46189
46190 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46191
46192         * crypt/speeds.c: Remove trailing whitespace.
46193         * dlfcn/default.c: Likewise.
46194         * elf/ifuncdep2.c: Likewise.
46195         * elf/ifuncmain1.c: Likewise.
46196         * elf/ifuncmain1vis.c: Likewise.
46197         * elf/testobj.h: Likewise.
46198         * elf/tst-stackguard1.c: Likewise.
46199         * gmon/sys/gmon.h: Likewise.
46200         * hurd/hurdmsg.c: Likewise.
46201         * hurd/new-fd.c: Likewise.
46202         * hurd/ports-get.c: Likewise.
46203         * iconvdata/ibm1008_420.c: Likewise.
46204         * inet/tst-getni1.c: Likewise.
46205         * inet/tst-getni2.c: Likewise.
46206         * libio/ioungetc.c: Likewise.
46207         * libio/wfiledoalloc.c: Likewise.
46208         * manual/libm-err-tab.pl: Likewise.
46209         * math/w_dremf.c: Likewise.
46210         * misc/ftruncate.c: Likewise.
46211         * posix/bug-glob2.c: Likewise.
46212         * posix/tst-pcre.c: Likewise.
46213         * posix/wait4.c: Likewise.
46214         * resolv/README: Likewise.
46215         * resolv/res_debug.h: Likewise.
46216         * resolv/tst-inet_ntop.c: Likewise.
46217         * setjmp/bug269-setjmp.c: Likewise.
46218         * soft-fp/extended.h: Likewise.
46219         * soft-fp/op-1.h: Likewise.
46220         * soft-fp/op-2.h: Likewise.
46221         * soft-fp/op-4.h: Likewise.
46222         * soft-fp/op-8.h: Likewise.
46223         * soft-fp/testit.c: Likewise.
46224         * stdio-common/bug16.c: Likewise.
46225         * stdlib/random.c: Likewise.
46226         * sunrpc/rpcsvc/rquota.x: Likewise.
46227         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46228         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46229         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46230         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46231         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46232         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46233         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46234         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46235         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46236         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46237         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46238         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46239         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46240         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46241         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46242         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46243         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46244         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46245         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46246         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46247         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46248         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46249         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46250         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46251         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46252         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46253         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46254         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46255         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46256         * sysdeps/ieee754/s_lib_version.c: Likewise.
46257         * sysdeps/mach/hurd/check_fds.c: Likewise.
46258         * sysdeps/mach/hurd/getsockname.c: Likewise.
46259         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46260         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46261         * sysdeps/powerpc/bits/link.h: Likewise.
46262         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46263         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46264         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46265         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46266         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46267         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46268         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46269         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46270         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46271         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46272         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46273         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46274         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46275         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46276         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46277         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46278         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46279         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46280         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46281         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46282         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46283         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46284         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46285         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46286         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46287         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46288         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46289         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46290         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46291         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46292         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46293         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46294         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46295         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46296         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46297         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46298         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46299         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46300         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46301         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46302         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46303         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46304         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46305         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46306         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46307         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46308         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46309         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46310         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46311         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46312         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46313         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46314         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46315         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46316         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46317         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46318         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46319         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46320         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46321         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46322         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46323         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46324         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46325         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46326         * sysdeps/powerpc/sysdep.h: Likewise.
46327         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46328         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46329         * sysdeps/sh/dl-trampoline.S: Likewise.
46330         * sysdeps/sh/memset.S: Likewise.
46331         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46332         * sysdeps/sh/strlen.S: Likewise.
46333         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46334         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46335         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46336         * sysdeps/sparc/sparc32/rem.S: Likewise.
46337         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46338         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46339         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46340         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46341         * sysdeps/sparc/sparc32/urem.S: Likewise.
46342         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46343         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46344         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46345         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46346         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46347         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46348         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46349         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46350         * sysdeps/unix/bsd/times.c: Likewise.
46351         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46352         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46356         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46357         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46358         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46359         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46360         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46361         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46362         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46363         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46364         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46365         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46366         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46367         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46368         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46369         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46370         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46371         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46372         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46373         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46374         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46375         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46376         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46377         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46378         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46379         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46380         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46381         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46382         * sysdeps/x86_64/strcspn.S: Likewise.
46383
46384 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46385
46386         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46387         generated file.  Regenerate properly from gen-translit.pl.
46388         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46389         locale/C-translit.h.
46390
46391 2013-06-05  Andreas Schwab  <schwab@suse.de>
46392
46393         [BZ #15100]
46394         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46395         week as 6 instead of -1.
46396         * time/tst-strptime.c (day_tests): Add test case.
46397
46398 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46399
46400         * sysdeps/generic/math_private.h
46401         (libc_feholdexcept_setround_53bit): Replace with
46402         libc_feholdsetround_53bit.
46403         (libc_feupdateenv_53bit): Replace with
46404         libc_feresetround_53bit.
46405         (SET_RESTORE_ROUND_53BIT): Adjust.
46406
46407 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46408
46409         * string/test-strchrnul.c: Add copyright header.
46410
46411         * posix/tst-getaddrinfo4.c: Increase test timeout.
46412
46413 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46414
46415         [BZ #15536]
46416         * math/libm-test.inc (MAX_EXP): Remove
46417         (MIN_EXP): Define.
46418         (ulp): Use MIN_EXP - MANT_DIG.
46419         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46420
46421 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46422
46423         * po/be.po: Revert last change.
46424         * po/zh_CN.po: Likewise.
46425         * po/header.pot: Likewise.
46426
46427 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46428
46429         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46430         link-libc-deps to empty as target-specific variable.
46431         * Makerules (link-libc-args): New variable.
46432         (libc-for-link): Likewise.
46433         (link-libc-deps): Likewise.
46434         (lib%.so): Depend on $(link-libc-deps).  Link with
46435         $(link-libc-args).
46436         (build-module): Link with $(link-libc-args).
46437         (build-module-asneeded): Likewise.
46438         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46439         list of objects.
46440         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46441         target-specific variable.
46442         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46443         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46444         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46445         libc.
46446         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46447         libc and ld.so.
46448         ($(objpfx)libpcprofile.so): Likewise.
46449         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46450         libc_nonshared.a.
46451         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46452         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46453         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46454         $(link-libc-deps).
46455         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46456         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46457         * login/Makefile ($(objpfx)libutil.so): Likewise.
46458         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46459         * math/Makefile ($(objpfx)libm.so): Likewise.
46460         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46461         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46462         variable instead of depending directly on libc.
46463         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46464         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46465         $(link-libc-deps).
46466         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46467         libc.
46468         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46469         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46470         ($(objpfx)libanl.so): Likewise.
46471         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46472         ld.so.
46473         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46474         $(link-libc-deps).
46475         * sysdeps/i386/fpu/Makefile: Remove file.
46476         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46477         ($(objpfx)libm.so): Remove dependency on ld.so.
46478
46479 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46480
46481         [BZ # 15553]
46482         * nis/yp_xdr.c (XDRMAXNAME): Define.
46483         (XDRMAXRECORD): Define.
46484         (xdr_domainname): Use XDRMAXNAME.
46485         (xdr_mapname): Likewise.
46486         (xdr_peername): Likewise.
46487         (xdr_keydat): Use XDRMAXRECORD.
46488         (xdr_valdat): Likewise.
46489
46490 2013-05-30  Jeff Law  <law@redhat.com>
46491
46492         [BZ #14256]
46493         * manual/errno.texi (ESTALE): Update to account for more than
46494         just NFS file systems.
46495         * sysdeps/gnu/errlist.c: Regenerated.
46496
46497 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46498
46499         [BZ #15465]
46500         * elf/Makefile (tests): Add tst-null-argv.
46501         (modules-names):  Add tst-null-argv-lib.
46502         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46503         (tst-null-argv-ENV): Set environment for tst-null-argv.
46504         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46505         (RTLD_PROGNAME): New macro.
46506         * elf/tst-null-argv.c: New test case.
46507         * elf/tst-null-argv-lib.c: Library for test case.
46508         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46509         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46510         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46511         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46512         * elf/dl-init.c (call_init): Likewise.
46513         (_dl_init): Likewise.
46514         * elf/dl-load.c (print_search_path): Likewise.
46515         (_dl_map_object): Likewise.
46516         * elf/dl-lookup.c (do_lookup_x): Likewise.
46517         (add_dependency): Likewise.
46518         (_dl_lookup_symbol_x): Likewise.
46519         (_dl_debug_bindings): Likewise.
46520         * elf/dl-open.c (_dl_show_scope): Likewise.
46521         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46522         * elf/dl-version.c (match_symbol): Likewise.
46523         (_dl_check_map_versions): Likewise.
46524         * elf/rtld.c (dl_main): Likewise.
46525         (print_unresolved): Use RTLD_PROGNAME.
46526         (print_missing_version): Likewise.
46527         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46528         (elf_machine_rela): Likewise.
46529         * sysdeps/powerpc/powerpc32/dl-machine.c
46530         (__process_machine_rela): Likewise.
46531         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46532         Likewise.
46533         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46534         Likewise.
46535         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46536         Likewise.
46537         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46538         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46539         Likewise.
46540         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46541         Likewise.
46542         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46543
46544 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46545
46546         * po/be.po: Add descriptive title.
46547         * po/zh_CN.po: Likewise.
46548         * po/header.pot: Likewise.
46549
46550 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46551
46552         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46553         error message.
46554         (enlarge_archive): Likewise.
46555
46556 2013-05-28  Ben North  <ben@redfrontdoor.org>
46557
46558         * manual/arith.texi (frexp): It is the magnitude of the return
46559         value which lies in [0.5, 1), not the return value itself.
46560
46561 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46562
46563         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46564
46565 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46566
46567         * stdio-common/bug26.c (main): Correct fscanf template.
46568
46569         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46570         declare _dl_skip_args.
46571
46572         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46573         Don't declare.
46574
46575         * manual/platform.texi: Add missing @end deftypefun.
46576
46577 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46578
46579         [BZ #15529]
46580         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46581         bit of mantissa of 2^16382.
46582         * math/libm-test.inc (hypot_test_data): Add more tests.
46583
46584         * math/libm-test.inc: Add drem and pow10 to list of tested
46585         functions.
46586         (pow10_test): New function.
46587         (drem_test): Likewise.
46588         (drem_test_tonearest): Likewise.
46589         (drem_test_towardzero): Likewise.
46590         (drem_test_downward): Likewise.
46591         (drem_test_upward): Likewise.
46592         (main): Call the new functions.
46593
46594         * math/libm-test.inc (finite_test_data): Remove.
46595         (finite_test): Run tests from isfinite_test_data.
46596         (gamma_test_data): Remove.
46597         (gamma_test): Run tests from lgamma_test_data.
46598         * sysdeps/i386/fpu/libm-test-ulps: Update.
46599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46600
46601 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46602
46603         * manual/platform.texi: Add PowerPC PPR function set documentation.
46604         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46605         implementation.
46606
46607 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46608
46609         * math/libm-test.inc (MAX_EXP): Define.
46610         (ULPDIFF): Define.
46611         (ulp): New function.
46612         (check_float_internal): Use ULPDIFF.
46613         (cpow_test): Disable failing test.
46614         (check_ulp): Test ulp() implemetnation.
46615         (main): Call check_ulp before starting tests.
46616
46617 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46618
46619         * math/gen-libm-test.pl (generate_testfile): Do not handle
46620         START_DATA and END_DATA.
46621         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46622         END_DATA.
46623         (acos_tonearest_test_data): Likewise.
46624         (acos_towardzero_test_data): Likewise.
46625         (acos_downward_test_data): Likewise.
46626         (acos_upward_test_data): Likewise.
46627         (acosh_test_data): Likewise.
46628         (asin_test_data): Likewise.
46629         (asin_tonearest_test_data): Likewise.
46630         (asin_towardzero_test_data): Likewise.
46631         (asin_downward_test_data): Likewise.
46632         (asin_upward_test_data): Likewise.
46633         (asinh_test_data): Likewise.
46634         (atan_test_data): Likewise.
46635         (atanh_test_data): Likewise.
46636         (atan2_test_data): Likewise.
46637         (cabs_test_data): Likewise.
46638         (cacos_test_data): Likewise.
46639         (cacosh_test_data): Likewise.
46640         (carg_test_data): Likewise.
46641         (casin_test_data): Likewise.
46642         (casinh_test_data): Likewise.
46643         (catan_test_data): Likewise.
46644         (catanh_test_data): Likewise.
46645         (cbrt_test_data): Likewise.
46646         (ccos_test_data): Likewise.
46647         (ccosh_test_data): Likewise.
46648         (ceil_test_data): Likewise.
46649         (cexp_test_data): Likewise.
46650         (cimag_test_data): Likewise.
46651         (clog_test_data): Likewise.
46652         (clog10_test_data): Likewise.
46653         (conj_test_data): Likewise.
46654         (copysign_test_data): Likewise.
46655         (cos_test_data): Likewise.
46656         (cos_tonearest_test_data): Likewise.
46657         (cos_towardzero_test_data): Likewise.
46658         (cos_downward_test_data): Likewise.
46659         (cos_upward_test_data): Likewise.
46660         (cosh_test_data): Likewise.
46661         (cosh_tonearest_test_data): Likewise.
46662         (cosh_towardzero_test_data): Likewise.
46663         (cosh_downward_test_data): Likewise.
46664         (cosh_upward_test_data): Likewise.
46665         (cpow_test_data): Likewise.
46666         (cproj_test_data): Likewise.
46667         (creal_test_data): Likewise.
46668         (csin_test_data): Likewise.
46669         (csinh_test_data): Likewise.
46670         (csqrt_test_data): Likewise.
46671         (ctan_test_data): Likewise.
46672         (ctan_tonearest_test_data): Likewise.
46673         (ctan_towardzero_test_data): Likewise.
46674         (ctan_downward_test_data): Likewise.
46675         (ctan_upward_test_data): Likewise.
46676         (ctanh_test_data): Likewise.
46677         (ctanh_tonearest_test_data): Likewise.
46678         (ctanh_towardzero_test_data): Likewise.
46679         (ctanh_downward_test_data): Likewise.
46680         (ctanh_upward_test_data): Likewise.
46681         (erf_test_data): Likewise.
46682         (erfc_test_data): Likewise.
46683         (exp_test_data): Likewise.
46684         (exp_tonearest_test_data): Likewise.
46685         (exp_towardzero_test_data): Likewise.
46686         (exp_downward_test_data): Likewise.
46687         (exp_upward_test_data): Likewise.
46688         (exp10_test_data): Likewise.
46689         (exp2_test_data): Likewise.
46690         (expm1_test_data): Likewise.
46691         (fabs_test_data): Likewise.
46692         (fdim_test_data): Likewise.
46693         (finite_test_data): Likewise.
46694         (floor_test_data): Likewise.
46695         (fma_test_data): Likewise.
46696         (fma_towardzero_test_data): Likewise.
46697         (fma_downward_test_data): Likewise.
46698         (fma_upward_test_data): Likewise.
46699         (fmax_test_data): Likewise.
46700         (fmin_test_data): Likewise.
46701         (fmod_test_data): Likewise.
46702         (fpclassify_test_data): Likewise.
46703         (frexp_test_data): Likewise.
46704         (gamma_test_data): Likewise.
46705         (hypot_test_data): Likewise.
46706         (ilogb_test_data): Likewise.
46707         (isfinite_test_data): Likewise.
46708         (isgreater_test_data): Likewise.
46709         (isgreaterequal_test_data): Likewise.
46710         (isinf_test_data): Likewise.
46711         (isless_test_data): Likewise.
46712         (islessequal_test_data): Likewise.
46713         (islessgreater_test_data): Likewise.
46714         (isnan_test_data): Likewise.
46715         (isnormal_test_data): Likewise.
46716         (issignaling_test_data): Likewise.
46717         (isunordered_test_data): Likewise.
46718         (j0_test_data): Likewise.
46719         (j1_test_data): Likewise.
46720         (jn_test_data): Likewise.
46721         (ldexp_test_data): Likewise.
46722         (lgamma_test_data): Likewise.
46723         (lrint_test_data): Likewise.
46724         (lrint_tonearest_test_data): Likewise.
46725         (lrint_towardzero_test_data): Likewise.
46726         (lrint_downward_test_data): Likewise.
46727         (lrint_upward_test_data): Likewise.
46728         (llrint_test_data): Likewise.
46729         (llrint_tonearest_test_data): Likewise.
46730         (llrint_towardzero_test_data): Likewise.
46731         (llrint_downward_test_data): Likewise.
46732         (llrint_upward_test_data): Likewise.
46733         (log_test_data): Likewise.
46734         (log10_test_data): Likewise.
46735         (log1p_test_data): Likewise.
46736         (log2_test_data): Likewise.
46737         (logb_test_data): Likewise.
46738         (logb_downward_test_data): Likewise.
46739         (lround_test_data): Likewise.
46740         (llround_test_data): Likewise.
46741         (modf_test_data): Likewise.
46742         (nearbyint_test_data): Likewise.
46743         (nextafter_test_data): Likewise.
46744         (nexttoward_test_data): Likewise.
46745         (pow_test_data): Likewise.
46746         (pow_tonearest_test_data): Likewise.
46747         (pow_towardzero_test_data): Likewise.
46748         (pow_downward_test_data): Likewise.
46749         (pow_upward_test_data): Likewise.
46750         (remainder_test_data): Likewise.
46751         (remainder_tonearest_test_data): Likewise.
46752         (remainder_towardzero_test_data): Likewise.
46753         (remainder_downward_test_data): Likewise.
46754         (remainder_upward_test_data): Likewise.
46755         (remquo_test_data): Likewise.
46756         (rint_test_data): Likewise.
46757         (rint_tonearest_test_data): Likewise.
46758         (rint_towardzero_test_data): Likewise.
46759         (rint_downward_test_data): Likewise.
46760         (rint_upward_test_data): Likewise.
46761         (round_test_data): Likewise.
46762         (scalb_test_data): Likewise.
46763         (scalbn_test_data): Likewise.
46764         (scalbln_test_data): Likewise.
46765         (signbit_test_data): Likewise.
46766         (sin_test_data): Likewise.
46767         (sin_tonearest_test_data): Likewise.
46768         (sin_towardzero_test_data): Likewise.
46769         (sin_downward_test_data): Likewise.
46770         (sin_upward_test_data): Likewise.
46771         (sincos_test_data): Likewise.
46772         (sinh_test_data): Likewise.
46773         (sinh_tonearest_test_data): Likewise.
46774         (sinh_towardzero_test_data): Likewise.
46775         (sinh_downward_test_data): Likewise.
46776         (sinh_upward_test_data): Likewise.
46777         (sqrt_test_data): Likewise.
46778         (tan_test_data): Likewise.
46779         (tan_tonearest_test_data): Likewise.
46780         (tan_towardzero_test_data): Likewise.
46781         (tan_downward_test_data): Likewise.
46782         (tan_upward_test_data): Likewise.
46783         (tanh_test_data): Likewise.
46784         (tgamma_test_data): Likewise.
46785         (trunc_test_data): Likewise.
46786         (y0_test_data): Likewise.
46787         (y1_test_data): Likewise.
46788         (yn_test_data): Likewise.
46789         (significand_test_data): Likewise.
46790
46791         * math/gen-libm-test.pl (@functions): Remove variable.
46792         (generate_testfile): Don't handle START and END lines.
46793         * math/libm-test.inc (START): New macro.
46794         (END): Likewise.
46795         (END_COMPLEX): Likewise.
46796         (acos_test): Use END macro without arguments.
46797         (acos_test_tonearest): Likewise.
46798         (acos_test_towardzero): Likewise.
46799         (acos_test_downward): Likewise.
46800         (acos_test_upward): Likewise.
46801         (acosh_test): Likewise.
46802         (asin_test): Likewise.
46803         (asin_test_tonearest): Likewise.
46804         (asin_test_towardzero): Likewise.
46805         (asin_test_downward): Likewise.
46806         (asin_test_upward): Likewise.
46807         (asinh_test): Likewise.
46808         (atan_test): Likewise.
46809         (atanh_test): Likewise.
46810         (atan2_test): Likewise.
46811         (cabs_test): Likewise.
46812         (cacos_test): Use END_COMPLEX macro without arguments.
46813         (cacosh_test): Likewise.
46814         (carg_test): Use END macro without arguments.
46815         (casin_test): Use END_COMPLEX macro without arguments.
46816         (casinh_test): Likewise.
46817         (catan_test): Likewise.
46818         (catanh_test): Likewise.
46819         (cbrt_test): Use END macro without arguments.
46820         (ccos_test): Use END_COMPLEX macro without arguments.
46821         (ccosh_test): Likewise.
46822         (ceil_test): Use END macro without arguments.
46823         (cexp_test): Use END_COMPLEX macro without arguments.
46824         (cimag_test): Use END macro without arguments.
46825         (clog_test): Use END_COMPLEX macro without arguments.
46826         (clog10_test): Likewise.
46827         (conj_test): Likewise.
46828         (copysign_test): Use END macro without arguments.
46829         (cos_test): Likewise.
46830         (cos_test_tonearest): Likewise.
46831         (cos_test_towardzero): Likewise.
46832         (cos_test_downward): Likewise.
46833         (cos_test_upward): Likewise.
46834         (cosh_test): Likewise.
46835         (cosh_test_tonearest): Likewise.
46836         (cosh_test_towardzero): Likewise.
46837         (cosh_test_downward): Likewise.
46838         (cosh_test_upward): Likewise.
46839         (cpow_test): Use END_COMPLEX macro without arguments.
46840         (cproj_test): Likewise.
46841         (creal_test): Use END macro without arguments.
46842         (csin_test): Use END_COMPLEX macro without arguments.
46843         (csinh_test): Likewise.
46844         (csqrt_test): Likewise.
46845         (ctan_test): Likewise.
46846         (ctan_test_tonearest): Likewise.
46847         (ctan_test_towardzero): Likewise.
46848         (ctan_test_downward): Likewise.
46849         (ctan_test_upward): Likewise.
46850         (ctanh_test): Likewise.
46851         (ctanh_test_tonearest): Likewise.
46852         (ctanh_test_towardzero): Likewise.
46853         (ctanh_test_downward): Likewise.
46854         (ctanh_test_upward): Likewise.
46855         (erf_test): Use END macro without arguments.
46856         (erfc_test): Likewise.
46857         (exp_test): Likewise.
46858         (exp_test_tonearest): Likewise.
46859         (exp_test_towardzero): Likewise.
46860         (exp_test_downward): Likewise.
46861         (exp_test_upward): Likewise.
46862         (exp10_test): Likewise.
46863         (exp2_test): Likewise.
46864         (expm1_test): Likewise.
46865         (fabs_test): Likewise.
46866         (fdim_test): Likewise.
46867         (finite_test): Likewise.
46868         (floor_test): Likewise.
46869         (fma_test): Likewise.
46870         (fma_test_towardzero): Likewise.
46871         (fma_test_downward): Likewise.
46872         (fma_test_upward): Likewise.
46873         (fmax_test): Likewise.
46874         (fmin_test): Likewise.
46875         (fmod_test): Likewise.
46876         (fpclassify_test): Likewise.
46877         (frexp_test): Likewise.
46878         (gamma_test): Likewise.
46879         (hypot_test): Likewise.
46880         (ilogb_test): Likewise.
46881         (isfinite_test): Likewise.
46882         (isgreater_test): Likewise.
46883         (isgreaterequal_test): Likewise.
46884         (isinf_test): Likewise.
46885         (isless_test): Likewise.
46886         (islessequal_test): Likewise.
46887         (islessgreater_test): Likewise.
46888         (isnan_test): Likewise.
46889         (isnormal_test): Likewise.
46890         (issignaling_test): Likewise.
46891         (isunordered_test): Likewise.
46892         (j0_test): Likewise.
46893         (j1_test): Likewise.
46894         (jn_test): Likewise.
46895         (ldexp_test): Likewise.
46896         (lgamma_test): Likewise.
46897         (lrint_test): Likewise.
46898         (lrint_test_tonearest): Likewise.
46899         (lrint_test_towardzero): Likewise.
46900         (lrint_test_downward): Likewise.
46901         (lrint_test_upward): Likewise.
46902         (llrint_test): Likewise.
46903         (llrint_test_tonearest): Likewise.
46904         (llrint_test_towardzero): Likewise.
46905         (llrint_test_downward): Likewise.
46906         (llrint_test_upward): Likewise.
46907         (log_test): Likewise.
46908         (log10_test): Likewise.
46909         (log1p_test): Likewise.
46910         (log2_test): Likewise.
46911         (logb_test): Likewise.
46912         (logb_test_downward): Likewise.
46913         (lround_test): Likewise.
46914         (llround_test): Likewise.
46915         (modf_test): Likewise.
46916         (nearbyint_test): Likewise.
46917         (nextafter_test): Likewise.
46918         (nexttoward_test): Likewise.
46919         (pow_test): Likewise.
46920         (pow_test_tonearest): Likewise.
46921         (pow_test_towardzero): Likewise.
46922         (pow_test_downward): Likewise.
46923         (pow_test_upward): Likewise.
46924         (remainder_test): Likewise.
46925         (remainder_test_tonearest): Likewise.
46926         (remainder_test_towardzero): Likewise.
46927         (remainder_test_downward): Likewise.
46928         (remainder_test_upward): Likewise.
46929         (remquo_test): Likewise.
46930         (rint_test): Likewise.
46931         (rint_test_tonearest): Likewise.
46932         (rint_test_towardzero): Likewise.
46933         (rint_test_downward): Likewise.
46934         (rint_test_upward): Likewise.
46935         (round_test): Likewise.
46936         (scalb_test): Likewise.
46937         (scalbn_test): Likewise.
46938         (scalbln_test): Likewise.
46939         (signbit_test): Likewise.
46940         (sin_test): Likewise.
46941         (sin_test_tonearest): Likewise.
46942         (sin_test_towardzero): Likewise.
46943         (sin_test_downward): Likewise.
46944         (sin_test_upward): Likewise.
46945         (sincos_test): Likewise.
46946         (sinh_test): Likewise.
46947         (sinh_test_tonearest): Likewise.
46948         (sinh_test_towardzero): Likewise.
46949         (sinh_test_downward): Likewise.
46950         (sinh_test_upward): Likewise.
46951         (sqrt_test): Likewise.
46952         (tan_test): Likewise.
46953         (tan_test_tonearest): Likewise.
46954         (tan_test_towardzero): Likewise.
46955         (tan_test_downward): Likewise.
46956         (tan_test_upward): Likewise.
46957         (tanh_test): Likewise.
46958         (tgamma_test): Likewise.
46959         (trunc_test): Likewise.
46960         (y0_test): Likewise.
46961         (y1_test): Likewise.
46962         (yn_test): Likewise.
46963         (significand_test): Likewise.
46964
46965 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46966
46967         [BZ #15381]
46968         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46969
46970 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46971
46972         [BZ #14894]
46973         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46974         __ppc_mdoio and __ppc_mdoom.
46975         * manual/platform.texi: Document new functions __ppc_yield,
46976         __ppc_mdoio and __ppc_mdoom.
46977
46978 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46979
46980         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46981         (main): Mention "tls" pseudo-hwcap is legacy.
46982         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46983
46984 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46985
46986         * math/gen-libm-test.pl (parse_args): Output only string of
46987         arguments as text for test name, not full call or descriptions of
46988         tests for extra outputs.
46989         (generate_testfile): Do not pass function name to parse_args.
46990         Generate this_func variable from START.
46991         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46992         field to arg_str.
46993         (struct test_ff_f_data): Likewise.
46994         (test_ff_f_data_nexttoward): Likewise.
46995         (struct test_fi_f_data): Likewise.
46996         (struct test_fl_f_data): Likewise.
46997         (struct test_if_f_data): Likewise.
46998         (struct test_fff_f_data): Likewise.
46999         (struct test_c_f_data): Likewise.
47000         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47001         (struct test_fF_f1_data): Likewise.
47002         (struct test_ffI_f1_data): Likewise.
47003         (struct test_c_c_data): Rename test_name field to arg_str.
47004         (struct test_cc_c_data): Likewise.
47005         (struct test_f_i_data): Likewise.
47006         (struct test_ff_i_data): Likewise.
47007         (struct test_f_l_data): Likewise.
47008         (struct test_f_L_data): Likewise.
47009         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47010         and extra2_name.
47011         (COMMON_TEST_SETUP): New macro.
47012         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47013         (COMMON_TEST_CLEANUP): Likewise.
47014         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47015         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47016         macros.
47017         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47018         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47019         macros.
47020         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47021         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47022         cleanup macros.
47023         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47024         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47025         macros.
47026         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47027         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47028         macros.
47029         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47030         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47031         cleanup macros.
47032         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47033         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47034         cleanup macros.
47035         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47036         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47037         cleanup macros.
47038         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47039         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47040         macros.
47041         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47042         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47043         macros.
47044         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47045         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47046         macros.
47047         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47048         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47049         cleanup macros.
47050         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47051         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47052         cleanup macros.
47053         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47054         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47055         macros.
47056         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47057         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47058         cleanup macros.
47059         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47060         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47061         macros.
47062         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47063         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47064         macros.
47065         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47066         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47067         cleanup macros.
47068         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47069
47070 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47071
47072         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47073         to _sifields.sigfault.
47074         (si_addr_lsb): Define new macro.
47075         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47076         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47077         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47078
47079 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47080
47081         [BZ #15441]
47082         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47083         returns -1.
47084         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47085         null return -1.
47086         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47087         loading the domain.
47088
47089 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47090
47091         * math/gen-libm-test.pl (parse_args): Do not include expected
47092         result in test name.
47093         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47094         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47095         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47096         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47097         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47099
47100 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47101
47102         * benchtests/Makefile: Sort function entries.
47103
47104         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47105         tanh, asinh, acosh, atanh.
47106         * benchtests/acos-inputs: New file.
47107         * benchtests/acosh-inputs: New file.
47108         * benchtests/asin-inputs: New file.
47109         * benchtests/asinh-inputs: New file.
47110         * benchtests/atanh-inputs: New file.
47111         * benchtests/cosh-inputs: New file.
47112         * benchtests/log-inputs: New file.
47113         * benchtests/sinh-inputs: New file.
47114         * benchtests/tanh-inputs: New file.
47115
47116 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47117
47118         [BZ #15339]
47119         * posix/tst-getaddrinfo4.c: New test.
47120         * posix/Makefile (tests): Add it.
47121
47122 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47123
47124         [BZ #15339]
47125         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47126         when no services were used.
47127         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47128         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47129
47130 2013-05-21  Andreas Schwab  <schwab@suse.de>
47131
47132         [BZ #15014]
47133         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47134         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47135         successful.
47136         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47137         redundant variable declarations and reallocation of buffer when
47138         parsing as IPv6 address.  Always set NSS status when called from
47139         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47140         buffer too small.  Correct computation of needed size.
47141         * nss/Makefile (tests): Add test-digits-dots.
47142         * nss/test-digits-dots.c: New test.
47143
47144 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47145
47146         * benchtests/Makefile: Remove instructions for adding
47147         benchmark tests.
47148         * benchtests/README: New file to explain how to execute and
47149         enhance the benchmark tests.
47150
47151 2013-05-21  Andreas Schwab  <schwab@suse.de>
47152
47153         [BZ #15493]
47154         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47155         * setjmp/tst-sigsetjmp.c: New test.
47156
47157 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47158
47159         * sysdeps/x86_64/memset.S (memset): New implementation.
47160         (__bzero): Likewise.
47161         (__memset_tail): New function.
47162
47163 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47164
47165         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47166         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47167         __memcpy_sse2_unaligned ifunc selection.
47168         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47169         Add memcpy-sse2-unaligned.S.
47170         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47171         Add: __memcpy_sse2_unaligned.
47172
47173 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47174
47175         [BZ #15490]
47176         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47177         math_force_eval before restoring floating-point envrionment.
47178         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47179         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47180         Likewise.
47181         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47182         <math_private.h>.
47183         (__nearbyintl): Use math_force_eval before restoring
47184         floating-point environment.
47185         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47186
47187         * math/gen-libm-test.pl (special_functions): Remove.
47188         (parse_args): Don't handle TEST_extra.  Handle functions with no
47189         return value.
47190         * math/libm-test.inc (struct test_sincos_data): Replace with
47191         struct test_fFF_11_data.
47192         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47193         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47194         (sincos_test_data): Change element type to struct
47195         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47196         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47197         RUN_TEST_LOOP_sincos.
47198         * math/README.libm-test: Don't mention special handling of
47199         individual functions.
47200         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47201         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47202         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47203         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47204         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47206
47207         * math/gen-libm-test.pl (get_variable): Remove function.
47208         (parse_args): Don't show pointer parameters to call in test
47209         names.  Use "extra output N" in test names for extra outputs
47210         rather than naming variables.
47211
47212 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47213
47214         [BZ #15488]
47215         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47216         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47217         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47218         double tests.
47219         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47220         disable.
47221         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47222         check_long_double.
47223
47224         * math/gen-libm-test.pl (@tests): Remove variable.
47225         ($count): Likewise.
47226         (new_test): Remove function.
47227         (show_exceptions): New function.
47228         (special_functions): Use show_exceptions instead of new_test.
47229         (parse_args): Likewise.
47230         (generate_testfile): Pass only function name in generated call to
47231         print_max_error or print_complex_max_error.
47232         (get_ulps): Do not handle complex tests specially.
47233         (output_test): Rename to ...
47234         (get_all_ulps_for_test): ... this.  Return a string rather than
47235         printing to a file.  Require ulps to be present.
47236         (output_ulps): Generate arrays rather than #defines.
47237         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47238         (struct ulp_data): New type.
47239         (BUILD_COMPLEX_ULP): Remove macro.
47240         (compare_ulp_data): New function.
47241         (find_ulps): Likewise.
47242         (find_test_ulps): Likewise.
47243         (find_function_ulps): Likewise.
47244         (find_complex_function_ulps): Likewise.
47245         (print_max_error): Determine allowed ulps using
47246         find_function_ulps.
47247         (print_complex_max_error): Determine allowed ulps using
47248         find_complex_function_ulps.
47249         (check_float_internal): Determine max ulps using find_test_ulps.
47250         (check_float): Do not take max_ulp parameter.  Update call to
47251         check_float_internal.
47252         (check_complex): Likewise.
47253         (check_int): Do not take max_ulp parameter.
47254         (check_long): Likewise.
47255         (check_bool): Likewise.
47256         (check_longlong): Likewise.
47257         (struct test_f_f_data): Remove max_ulp field.
47258         (struct test_ff_f_data): Likewise.
47259         (struct test_ff_f_data_nexttoward): Likewise.
47260         (struct test_fi_f_data): Likewise.
47261         (struct test_fl_f_data): Likewise.
47262         (struct test_if_f_data): Likewise.
47263         (struct test_fff_f_data): Likewise.
47264         (struct test_c_f_data): Likewise.
47265         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47266         (struct test_fF_f1_data): Likewise.
47267         (struct test_ffI_f1_data): Likewise.
47268         (struct test_c_c_data): Remove max_ulp field.
47269         (struct test_cc_c_data): Likewise.
47270         (struct test_f_i_data): Likewise.
47271         (struct test_ff_i_data): Likewise.
47272         (struct test_f_l_data): Likewise.
47273         (struct test_f_L_data): Likewise.
47274         (struct test_sincos_data): Likewise.
47275         (RUN_TEST_f_f): Do not handle ulps.
47276         (RUN_TEST_LOOP_f_f): Likewise.
47277         (RUN_TEST_2_f): Likewise.
47278         (RUN_TEST_LOOP_2_f): Likewise.
47279         (RUN_TEST_fff_f): Likewise.
47280         (RUN_TEST_LOOP_fff_f): Likewise.
47281         (RUN_TEST_c_f): Likewise.
47282         (RUN_TEST_LOOP_c_f): Likewise.
47283         (RUN_TEST_f_f1): Likewise.
47284         (RUN_TEST_LOOP_f_f1): Likewise.
47285         (RUN_TEST_fF_f1): Likewise.
47286         (RUN_TEST_LOOP_fF_f1): Likewise.
47287         (RUN_TEST_fI_f1): Likewise.
47288         (RUN_TEST_LOOP_fI_f1): Likewise.
47289         (RUN_TEST_ffI_f1): Likewise.
47290         (RUN_TEST_LOOP_ffI_f1): Likewise.
47291         (RUN_TEST_c_c): Likewise.
47292         (RUN_TEST_LOOP_c_c): Likewise.
47293         (RUN_TEST_cc_c): Likewise.
47294         (RUN_TEST_LOOP_cc_c): Likewise.
47295         (RUN_TEST_f_i): Likewise.
47296         (RUN_TEST_LOOP_f_i): Likewise.
47297         (RUN_TEST_f_i_tg): Likewise.
47298         (RUN_TEST_LOOP_f_i_tg): Likewise.
47299         (RUN_TEST_ff_i_tg): Likewise.
47300         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47301         (RUN_TEST_f_b): Likewise.
47302         (RUN_TEST_LOOP_f_b): Likewise.
47303         (RUN_TEST_f_b_tg): Likewise.
47304         (RUN_TEST_LOOP_f_b_tg): Likewise.
47305         (RUN_TEST_f_l): Likewise.
47306         (RUN_TEST_LOOP_f_l): Likewise.
47307         (RUN_TEST_f_L): Likewise.
47308         (RUN_TEST_LOOP_f_L): Likewise.
47309         (RUN_TEST_sincos): Likewise.
47310         (RUN_TEST_LOOP_sincos): Likewise.
47311
47312 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47313
47314         [BZ #15480]
47315         [BZ #15485]
47316         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47317         main case of finite arguments, set rounding mode to FE_TONEAREST
47318         and discard exceptions.
47319         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47320         exceptions.
47321         (remainder_tonearest_test_data): New variable.
47322         (remainder_test_tonearest): New function.
47323         (remainder_towardzero_test_data): New variable.
47324         (remainder_test_towardzero): New function.
47325         (remainder_downward_test_data): New variable.
47326         (remainder_test_downward): New function.
47327         (remainder_upward_test_data): New variable.
47328         (remainder_test_upward): New function.
47329         (main): Call the new test functions.
47330
47331         * math/libm-test.inc (struct test_f_f1_data): Remove field
47332         extra_init.
47333         (struct test_fF_f1_data): Likewise.
47334         (struct test_ffI_f1_data): Likewise.
47335         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47336         based on value of EXTRA_EXPECTED.
47337         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47338         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47339         EXTRA_VAR based on value of EXTRA_EXPECTED.
47340         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47341         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47342         EXTRA_VAR based on value of EXTRA_EXPECTED.
47343         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47344         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47345         EXTRA_VAR based on value of EXTRA_EXPECTED.
47346         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47347         * math/gen-libm-test.pl (parse_args): Don't output initializers
47348         for extra output values.
47349
47350         * math/libm-test.inc (check_int): Expect result to be exactly
47351         equal to expected value and do not handle ulps.
47352         (check_long): Likewise.
47353         (check_longlong): Likewise.
47354
47355         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47356         exceptions.
47357         (cimag_test_data): Likewise.
47358         (conj_test_data): Likewise.
47359         (copysign_test_data): Likewise.
47360         (cproj_test_data): Likewise.
47361         (creal_test_data): Likewise.
47362         (fabs_test_data): Likewise.
47363         (fdim_test_data): Likewise.
47364         (finite_test_data): Likewise.
47365         (floor_test_data): Likewise.
47366         (fmax_test_data): Likewise.
47367         (fmin_test_data): Likewise.
47368         (fmod_test_data): Likewise.
47369         (fpclassify_test_data): Likewise.
47370         (frexp_test_data): Likewise.
47371         (ilogb_test_data): Likewise.
47372         (isfinite_test_data): Likewise.
47373         (isgreater_test_data): Likewise.
47374         (isgreaterequal_test_data): Likewise.
47375         (isinf_test_data): Likewise.
47376         (isless_test_data): Likewise.
47377         (islessequal_test_data): Likewise.
47378         (islessgreater_test_data): Likewise.
47379         (isnan_test_data): Likewise.
47380         (isnormal_test_data): Likewise.
47381         (issignaling_test_data): Likewise.
47382         (isunordered_test_data): Likewise.
47383         (ldexp_test_data): Likewise.
47384         (lrint_test_data): Likewise.
47385         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47386         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47387         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47388         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47389         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47390         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47391         test input.
47392         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47393         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47394         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47395         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47396         that test input.
47397         (lrint_downward_test_data): Test for "inexact" exceptions.
47398         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47399         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47400         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47401         test input.
47402         (lrint_upward_test_data): Test for "inexact" exceptions.
47403         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47404         test input.
47405         (llrint_test_data): Test for "inexact" exceptions.
47406         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47407         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47408         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47409         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47410         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47411         (llrint_downward_test_data): Test for "inexact" exceptions.
47412         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47413         (llrint_upward_test_data): Test for "inexact" exceptions.
47414         (logb_test_data): Likewise.
47415         (logb_downward_test_data): Likewise.
47416         (nextafter_test_data): Likewise.
47417         (nexttoward_test_data): Likewise.
47418         (remainder_test_data): Likewise.
47419         (remquo_test_data): Likewise.
47420         (scalbn_test_data): Likewise.
47421         (scalbln_test_data): Likewise.
47422         (signbit_test_data): Likewise.
47423         (sqrt_test_data): Likewise.
47424         (significand_test_data): Likewise.
47425
47426 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47427
47428         [BZ #15424]
47429         * benchtests/bench-modf.c (struct args): Mark arg0 as
47430         volatile.
47431         * scripts/bench.pl: Mark members of struct args as volatile.
47432
47433 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47434
47435         [BZ # 15497]
47436         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47437         negative infinity on POWER6 or lower.
47438         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47439
47440 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47441
47442         [BZ #15442]
47443         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47444         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47445         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47446         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47447         (_FP_SETQNAN): New macro.
47448         (_FP_SETQNAN_SEMIRAW): Likewise.
47449         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47450         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47451         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47452         (FP_EXTEND): Use _FP_FRAC_SNANP.
47453         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47454         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47455         into account.
47456         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47457         New macro.
47458         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47459         Likewise.
47460
47461 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47462
47463         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47464         with DIVIDE_BY_ZERO_EXCEPTION.
47465         (gamma_test_data): Likewise.
47466         (lgamma_test_data): Likewise.
47467         (log_test_data): Likewise.
47468         (log10_test_data): Likewise.
47469         (log2_test_data): Likewise.
47470         (tgamma_test_data): Likewise.
47471
47472         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47473         (acos_test_tonearest): Likewise.
47474         (acos_test_towardzero): Likewise.
47475         (acos_test_downward): Likewise.
47476         (acos_test_upward): Likewise.
47477         (acosh_test): Likewise.
47478         (asin_test): Likewise.
47479         (asin_test_tonearest): Likewise.
47480         (asin_test_towardzero): Likewise.
47481         (asin_test_downward): Likewise.
47482         (asin_test_upward): Likewise.
47483         (asinh_test): Likewise.
47484         (atan_test): Likewise.
47485         (atanh_test): Likewise.
47486         (atan2_test): Likewise.
47487         (cabs_test): Likewise.
47488         (cacos_test): Likewise.
47489         (cacosh_test): Likewise.
47490         (casin_test): Likewise.
47491         (casinh_test): Likewise.
47492         (catan_test): Likewise.
47493         (catanh_test): Likewise.
47494         (cbrt_test): Likewise.
47495         (ccos_test): Likewise.
47496         (ccosh_test): Likewise.
47497         (cexp_test): Likewise.
47498         (clog_test): Likewise.
47499         (clog10_test): Likewise.
47500         (cos_test): Likewise.
47501         (cos_test_tonearest): Likewise.
47502         (cos_test_towardzero): Likewise.
47503         (cos_test_downward): Likewise.
47504         (cos_test_upward): Likewise.
47505         (cosh_test): Likewise.
47506         (cosh_test_tonearest): Likewise.
47507         (cosh_test_towardzero): Likewise.
47508         (cosh_test_downward): Likewise.
47509         (cosh_test_upward): Likewise.
47510         (cpow_test): Likewise.
47511         (csin_test): Likewise.
47512         (csinh_test): Likewise.
47513         (csqrt_test): Likewise.
47514         (ctan_test): Likewise.
47515         (ctan_test_tonearest): Likewise.
47516         (ctan_test_towardzero): Likewise.
47517         (ctan_test_downward): Likewise.
47518         (ctan_test_upward): Likewise.
47519         (ctanh_test): Likewise.
47520         (ctanh_test_tonearest): Likewise.
47521         (ctanh_test_towardzero): Likewise.
47522         (ctanh_test_downward): Likewise.
47523         (ctanh_test_upward): Likewise.
47524         (erf_test): Likewise.
47525         (erfc_test): Likewise.
47526         (exp_test): Likewise.
47527         (exp_test_tonearest): Likewise.
47528         (exp_test_towardzero): Likewise.
47529         (exp_test_downward): Likewise.
47530         (exp_test_upward): Likewise.
47531         (exp10_test): Likewise.
47532         (exp2_test): Likewise.
47533         (expm1_test): Likewise.
47534         (fmod_test): Likewise.
47535         (gamma_test): Likewise.
47536         (hypot_test): Likewise.
47537         (j0_test): Likewise.
47538         (j1_test): Likewise.
47539         (jn_test): Likewise.
47540         (lgamma_test): Likewise.
47541         (log_test): Likewise.
47542         (log10_test): Likewise.
47543         (log1p_test): Likewise.
47544         (log2_test): Likewise.
47545         (logb_test_downward): Likewise.
47546         (pow_test): Likewise.
47547         (pow_test_tonearest): Likewise.
47548         (pow_test_towardzero): Likewise.
47549         (pow_test_downward): Likewise.
47550         (pow_test_upward): Likewise.
47551         (remainder_test): Likewise.
47552         (remquo_test): Likewise.
47553         (sin_test): Likewise.
47554         (sin_test_tonearest): Likewise.
47555         (sin_test_towardzero): Likewise.
47556         (sin_test_downward): Likewise.
47557         (sin_test_upward): Likewise.
47558         (sincos_test): Likewise.
47559         (sinh_test): Likewise.
47560         (sinh_test_tonearest): Likewise.
47561         (sinh_test_towardzero): Likewise.
47562         (sinh_test_downward): Likewise.
47563         (sinh_test_upward): Likewise.
47564         (sqrt_test): Likewise.
47565         (tan_test): Likewise.
47566         (tan_test_tonearest): Likewise.
47567         (tan_test_towardzero): Likewise.
47568         (tan_test_downward): Likewise.
47569         (tan_test_upward): Likewise.
47570         (tanh_test): Likewise.
47571         (tgamma_test): Likewise.
47572         (y0_test): Likewise.
47573         (y1_test): Likewise.
47574         (yn_test): Likewise.
47575
47576         * math/gen-libm-test.pl (adjust_arg): Remove function.
47577         (special_function): Remove argument $in_func.  Only handle
47578         generating output for tables of tests, not inside functions.
47579         (parse_args): Likewise.
47580         (generate_testfile): Remove variable $in_func.  Update call to
47581         parse_args.
47582         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47583         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47584         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47585         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47586         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47587         (MAX_VALUE_INIT): Rename macro to max_value.
47588         (MIN_VALUE_INIT): Rename macro to min_value.
47589         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47590         (plus_zero): Remove variable.
47591         (minus_zero): Likewise.
47592         (plus_infty): Likewise.
47593         (minus_infty): Likewise.
47594         (qnan_value): Likewise.
47595         (max_value): Likewise.
47596         (min_value): Likewise.
47597         (min_subnorm_value): Likewise.
47598
47599 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47600
47601         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47602         uint64_t or uint32_t usage.
47603         * crypt/sha256-block.c: Likewise.
47604         * crypt/sha256-crypt.c: Likewise.
47605         * crypt/sha256.c: Likewise.
47606         * crypt/sha512-block.c: Likewise.
47607         * crypt/sha512-crypt.c: Likewise.
47608         * crypt/sha512.c: Likewise.
47609         * debug/backtrace-tst.c: Likewise.
47610         * debug/pcprofiledump.c: Likewise.
47611         * elf/cache.c: Likewise.
47612         * elf/dl-cache.c: Likewise.
47613         * elf/dl-misc.c: Likewise.
47614         * elf/dl-profile.c: Likewise.
47615         * elf/dl-support.c: Likewise.
47616         * elf/ldconfig.c: Likewise.
47617         * elf/sprof.c: Likewise.
47618         * iconv/dummy-repertoire.c: Likewise.
47619         * iconv/iconv_charmap.c: Likewise.
47620         * iconv/skeleton.c: Likewise.
47621         * iconvdata/8bit-generic.c: Likewise.
47622         * iconvdata/cp737.h: Likewise.
47623         * iconvdata/cp775.h: Likewise.
47624         * iconvdata/ibm1008.h: Likewise.
47625         * iconvdata/ibm1025.h: Likewise.
47626         * iconvdata/ibm1046.h: Likewise.
47627         * iconvdata/ibm1097.h: Likewise.
47628         * iconvdata/ibm1112.h: Likewise.
47629         * iconvdata/ibm1122.h: Likewise.
47630         * iconvdata/ibm1123.h: Likewise.
47631         * iconvdata/ibm1124.h: Likewise.
47632         * iconvdata/ibm1129.h: Likewise.
47633         * iconvdata/ibm1130.h: Likewise.
47634         * iconvdata/ibm1132.h: Likewise.
47635         * iconvdata/ibm1133.h: Likewise.
47636         * iconvdata/ibm1137.h: Likewise.
47637         * iconvdata/ibm1140.h: Likewise.
47638         * iconvdata/ibm1141.h: Likewise.
47639         * iconvdata/ibm1142.h: Likewise.
47640         * iconvdata/ibm1143.h: Likewise.
47641         * iconvdata/ibm1144.h: Likewise.
47642         * iconvdata/ibm1145.h: Likewise.
47643         * iconvdata/ibm1146.h: Likewise.
47644         * iconvdata/ibm1147.h: Likewise.
47645         * iconvdata/ibm1148.h: Likewise.
47646         * iconvdata/ibm1149.h: Likewise.
47647         * iconvdata/ibm1153.h: Likewise.
47648         * iconvdata/ibm1154.h: Likewise.
47649         * iconvdata/ibm1155.h: Likewise.
47650         * iconvdata/ibm1156.h: Likewise.
47651         * iconvdata/ibm1157.h: Likewise.
47652         * iconvdata/ibm1158.h: Likewise.
47653         * iconvdata/ibm1160.h: Likewise.
47654         * iconvdata/ibm1161.h: Likewise.
47655         * iconvdata/ibm1162.h: Likewise.
47656         * iconvdata/ibm1163.h: Likewise.
47657         * iconvdata/ibm1164.h: Likewise.
47658         * iconvdata/ibm1166.h: Likewise.
47659         * iconvdata/ibm1167.h: Likewise.
47660         * iconvdata/ibm12712.h: Likewise.
47661         * iconvdata/ibm1390.h: Likewise.
47662         * iconvdata/ibm1399.h: Likewise.
47663         * iconvdata/ibm16804.h: Likewise.
47664         * iconvdata/ibm4517.h: Likewise.
47665         * iconvdata/ibm4899.h: Likewise.
47666         * iconvdata/ibm4909.h: Likewise.
47667         * iconvdata/ibm4971.h: Likewise.
47668         * iconvdata/ibm5347.h: Likewise.
47669         * iconvdata/ibm803.h: Likewise.
47670         * iconvdata/ibm856.h: Likewise.
47671         * iconvdata/ibm901.h: Likewise.
47672         * iconvdata/ibm902.h: Likewise.
47673         * iconvdata/ibm9030.h: Likewise.
47674         * iconvdata/ibm9066.h: Likewise.
47675         * iconvdata/ibm921.h: Likewise.
47676         * iconvdata/ibm922.h: Likewise.
47677         * iconvdata/ibm9448.h: Likewise.
47678         * iconvdata/isiri-3342.h: Likewise.
47679         * iconvdata/jis0201.h: Likewise.
47680         * include/link.h: Likewise.
47681         * include/netdb.h: Likewise.
47682         * inet/check_native.c: Likewise.
47683         * inet/check_pf.c: Likewise.
47684         * inet/getipv4sourcefilter.c: Likewise.
47685         * inet/getnameinfo.c: Likewise.
47686         * inet/getsourcefilter.c: Likewise.
47687         * inet/htonl.c: Likewise.
47688         * inet/setipv4sourcefilter.c: Likewise.
47689         * inet/setsourcefilter.c: Likewise.
47690         * inet/test-inet6_opt.c: Likewise.
47691         * inet/tst-network.c: Likewise.
47692         * locale/C-collate.c: Likewise.
47693         * locale/C-ctype.c: Likewise.
47694         * locale/C-time.c: Likewise.
47695         * locale/C-translit.h: Likewise.
47696         * locale/loadarchive.c: Likewise.
47697         * locale/programs/3level.h: Likewise.
47698         * locale/programs/charmap.c: Likewise.
47699         * locale/programs/charmap.h: Likewise.
47700         * locale/programs/ld-address.c: Likewise.
47701         * locale/programs/ld-collate.c: Likewise.
47702         * locale/programs/ld-ctype.c: Likewise.
47703         * locale/programs/ld-identification.c: Likewise.
47704         * locale/programs/ld-measurement.c: Likewise.
47705         * locale/programs/ld-messages.c: Likewise.
47706         * locale/programs/ld-monetary.c: Likewise.
47707         * locale/programs/ld-name.c: Likewise.
47708         * locale/programs/ld-numeric.c: Likewise.
47709         * locale/programs/ld-paper.c: Likewise.
47710         * locale/programs/ld-telephone.c: Likewise.
47711         * locale/programs/ld-time.c: Likewise.
47712         * locale/programs/linereader.c: Likewise.
47713         * locale/programs/locale.c: Likewise.
47714         * locale/programs/locarchive.c: Likewise.
47715         * locale/programs/locfile.h: Likewise.
47716         * locale/programs/repertoire.c: Likewise.
47717         * locale/programs/simple-hash.c: Likewise.
47718         * locale/programs/simple-hash.h: Likewise.
47719         * malloc/memusage.c: Likewise.
47720         * malloc/memusagestat.c: Likewise.
47721         * nis/nis_defaults.c: Likewise.
47722         * nis/nis_hash.c: Likewise.
47723         * nis/nis_print.c: Likewise.
47724         * nis/nis_xdr.c: Likewise.
47725         * nscd/connections.c: Likewise.
47726         * nscd/hstcache.c: Likewise.
47727         * nscd/nscd_gethst_r.c: Likewise.
47728         * nscd/nscd_getserv_r.c: Likewise.
47729         * nscd/nscd_helper.c: Likewise.
47730         * nscd/servicescache.c: Likewise.
47731         * nss/makedb.c: Likewise.
47732         * nss/nss_db/db-XXX.c: Likewise.
47733         * nss/nss_db/db-initgroups.c: Likewise.
47734         * nss/nss_db/db-netgrp.c: Likewise.
47735         * nss/nss_files/files-network.c: Likewise.
47736         * nss/nss_files/files-parse.c: Likewise.
47737         * posix/bug-regex5.c: Likewise.
47738         * posix/fnmatch_loop.c: Likewise.
47739         * posix/regcomp.c: Likewise.
47740         * posix/regexec.c: Likewise.
47741         * posix/tst-rfc3484-2.c: Likewise.
47742         * posix/tst-rfc3484-3.c: Likewise.
47743         * posix/tst-rfc3484.c: Likewise.
47744         * resolv/nss_dns/dns-canon.c: Likewise.
47745         * resolv/nss_dns/dns-network.c: Likewise.
47746         * resolv/res_init.c: Likewise.
47747         * resolv/res_mkquery.c: Likewise.
47748         * resolv/tst-aton.c: Likewise.
47749         * stdlib/cxa_atexit.c: Likewise.
47750         * stdlib/cxa_finalize.c: Likewise.
47751         * stdlib/gen-fpioconst.c: Likewise.
47752         * stdlib/strtol_l.c: Likewise.
47753         * string/tst-endian.c: Likewise.
47754         * sunrpc/auth_des.c: Likewise.
47755         * sunrpc/clnt_udp.c: Likewise.
47756         * sunrpc/rtime.c: Likewise.
47757         * sunrpc/svcauth_des.c: Likewise.
47758         * sunrpc/xdr.c: Likewise.
47759         * sunrpc/xdr_intXX_t.c: Likewise.
47760         * sunrpc/xdr_rec.c: Likewise.
47761         * sysdeps/generic/ldconfig.h: Likewise.
47762         * sysdeps/generic/ldsodefs.h: Likewise.
47763         * sysdeps/generic/memusage.h: Likewise.
47764         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47765         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47766         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47767         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47768         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47769         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47770         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47771         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47772         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47773         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47774         * sysdeps/posix/getaddrinfo.c: Likewise.
47775         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47776         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47777         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47778         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47779         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47780         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47781         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47782         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47783         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47784         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47785         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47786         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47787         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47788         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47789         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47790         * sysdeps/x86_64/dl-tls.h: Likewise.
47791         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47792         * time/alt_digit.c: Likewise.
47793         * time/era.c: Likewise.
47794         * wcsmbs/tst-c16c32-1.c: Likewise.
47795
47796 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47797
47798         * math/libm-test.inc (struct test_sincos_data): New type.
47799         (RUN_TEST_LOOP_sincos): New macro.
47800         (sincos_test_data): New variable.
47801         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47802
47803 2013-05-16  Richard Henderson  <rth@redhat.com>
47804
47805         * math/atest-exp2.c (LIMB64): New macro.
47806         (CONSTSZ): New macro.
47807         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47808         (hexdig): Move ...
47809         (print_mpn_fp): ... to function scope.
47810         (read_mpn_hex): Remove.
47811         (get_log2): Remove.
47812         (exp2_mpn): Use mp_log2.
47813         (main): Use mp_exp1.
47814
47815 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47816
47817         * math/libm-test.inc: Remove comment about not testing "inexact"
47818         exceptions.
47819         (INEXACT_EXCEPTION): New macro.
47820         (NO_INEXACT_EXCEPTION): Likewise.
47821         (INVALID_EXCEPTION_OK): Update value.
47822         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47823         (OVERFLOW_EXCEPTION_OK): Likewise.
47824         (UNDERFLOW_EXCEPTION_OK): Likewise.
47825         (IGNORE_ZERO_INF_SIGN): Likewise.
47826         (ERRNO_UNCHANGED): Likewise.
47827         (ERRNO_EDOM): Likewise.
47828         (ERRNO_ERANGE): Likewise.
47829         (test_exceptions): Handle testing "inexact" exceptions.
47830         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47831         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47832         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47833         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47834         INEXACT_EXCEPTION.
47835         (rint_towardzero_test_data): Likewise.
47836         (rint_downward_test_data): Likewise.
47837         (rint_upward_test_data): Likewise.
47838
47839         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47840         with OVERFLOW_EXCEPTION.
47841         (exp10_test_data): Likewise.
47842         (exp2_test_data): Likewise.
47843         (expm1_test_data): Likewise.
47844         (lgamma_test_data): Likewise.
47845         (pow_test_data): Likewise.
47846         (tgamma_test_data): Likewise.
47847         (yn_test_data): Remove duplicate test of overflow.
47848
47849         * math/libm-test.inc (struct test_cc_c_data): New type.
47850         (RUN_TEST_LOOP_cc_c): New macro.
47851         (cpow_test_data): New variable.
47852         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47853
47854         * math/libm-test.inc (struct test_f_L_data): New type.
47855         (RUN_TEST_LOOP_f_L): New macro.
47856         (llrint_test_data): New variable.
47857         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47858         (llrint_tonearest_test_data): New variable.
47859         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47860         (llrint_towardzero_test_data): New variable.
47861         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47862         (llrint_downward_test_data): New variable.
47863         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47864         (llrint_upward_test_data): New variable.
47865         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47866         (llround_test_data): New variable.
47867         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47868
47869 2013-05-13  Peter Collingbourne  <pcc@google.com>
47870
47871         * math/atest-exp2.c (get_log2): Remove const attribute.
47872
47873 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47874
47875         * math/libm-test.inc (struct test_f_l_data): New type.
47876         (RUN_TEST_LOOP_f_l): New macro.
47877         (lrint_test_data): New variable.
47878         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47879         (lrint_tonearest_test_data): New variable.
47880         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47881         (lrint_towardzero_test_data): New variable.
47882         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47883         (lrint_downward_test_data): New variable.
47884         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47885         (lrint_upward_test_data): New variable.
47886         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47887         (lround_test_data): New variable.
47888         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47889
47890 2013-05-15  Peter Collingbourne  <pcc@google.com>
47891
47892         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47893         (EXTRACT_WORDS64) Use where appropriate.
47894         (INSERT_WORDS64) Likewise.
47895
47896         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47897         constraints with x constraints.
47898         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47899
47900         * malloc/obstack.c (_obstack_compat): Add initializer.
47901
47902 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47903
47904         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47905         si_trapno and add si_addr_lsb to _sifields.sigfault.
47906         (si_trapno): Remove macro.
47907         (si_addr_lsb): Define new macro.
47908         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47909
47910 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47911
47912         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47913         instead of TEST_f_l.
47914         (llrint_test_tonearest): Likewise.
47915         (llrint_test_towardzero): Likewise.
47916         (llrint_test_downward): Likewise.
47917         (llrint_test_upward): Likewise.
47918         (llround_test): Likewise.
47919
47920         * math/libm-test.inc (struct test_f_i_data): Add comment.
47921         (RUN_TEST_LOOP_f_b): New macro.
47922         (RUN_TEST_LOOP_f_b_tg): Likewise.
47923         (finite_test_data): New variable.
47924         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47925         (isfinite_test_data): New variable.
47926         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47927         (isinf_test_data): New variable.
47928         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47929         (isnan_test_data): New variable.
47930         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47931         (isnormal_test_data): New variable.
47932         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47933         (issignaling_test_data): New variable.
47934         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47935         (signbit_test_data): New variable.
47936         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47937
47938         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47939         with INVALID_EXCEPTION.
47940         (acosh_test_data): Likewise.
47941         (asin_test_data): Likewise.
47942         (atanh_test_data): Likewise.
47943         (fmod_test_data): Likewise.
47944         (log_test_data): Likewise.
47945         (log10_test_data): Likewise.
47946         (log2_test_data): Likewise.
47947         (pow_test_data): Likewise.
47948         (sqrt_test_data): Likewise.
47949         (y0_test_data): Likewise.
47950         (y1_test_data): Likewise.
47951         (yn_test_data): Likewise.
47952
47953         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47954         function contents.
47955
47956         * math/libm-test.inc (struct test_ff_i_data): New type.
47957         (RUN_TEST_LOOP_ff_i_tg): New macro.
47958         (isgreater_test_data): New variable.
47959         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47960         (isgreaterequal_test_data): New variable.
47961         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47962         (isless_test_data): New variable.
47963         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47964         (islessequal_test_data): New variable.
47965         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47966         (islessgreater_test_data): New variable.
47967         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47968         (isunordered_test_data): New variable.
47969         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47970
47971 2013-05-14  David S. Miller  <davem@davemloft.net>
47972
47973         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47974
47975 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47976
47977         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47978
47979         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47980         extra_test to int.
47981         (struct test_f_i_data): Change type of max_ulp to int.
47982
47983         * math/libm-test.inc (test_ffI_f1_data): New type.
47984         (RUN_TEST_LOOP_ffI_f1): New macro.
47985         (remquo_test_data): New variable.
47986         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47987
47988         * setjmp/tst-setjmp-fp.c: New file.
47989         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47990         (link-libm): New variable.
47991         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47992
47993         * math/libm-test.inc (struct test_f_i_data): New type.
47994         (RUN_TEST_LOOP_f_i): New macro.
47995         (RUN_TEST_LOOP_f_i_tg): Likewise.
47996         (fpclassify_test_data): New variable.
47997         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47998         (ilogb_test_data): New variable.
47999         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48000
48001         * math/libm-test.inc (scalbln_test): Correct function name in END
48002         call.
48003
48004         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48005         (RUN_TEST_LOOP_fI_f1): New macro.
48006         (frexp_test_data): New variable.
48007         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48008
48009         * math/libm-test.inc (struct test_fF_f1_data): New type.
48010         (RUN_TEST_LOOP_fF_f1): New macro.
48011         (modf_test_data): New variable.
48012         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48013
48014         * math/libm-test.inc (struct test_f_f1_data): New type.
48015         (RUN_TEST_LOOP_f_f1): New macro.
48016         (gamma_test_data): New variable.
48017         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48018         (lgamma_test_data): New variable.
48019         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48020
48021 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48022
48023         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48024         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48025         (main): Comment "tls" pseudo-hwcap.
48026
48027 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48028
48029         * math/libm-test.inc (struct test_fl_f_data): New type.
48030         (RUN_TEST_LOOP_fl_f): New variable.
48031         (scalbln_test_data): New variable.
48032         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48033
48034         * math/libm-test.inc (struct test_fi_f_data): New type.
48035         (RUN_TEST_LOOP_fi_f): New macro.
48036         (ldexp_test_data): New variable.
48037         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48038         (scalbn_test_data): New variable.
48039         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48040
48041         * math/libm-test.inc (struct test_c_f_data): New type.
48042         (RUN_TEST_LOOP_c_f): New macro.
48043         (cabs_test_data): New variable.
48044         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48045         (carg_test_data): New variable.
48046         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48047         (cimag_test_data): New variable.
48048         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48049         (creal_test_data): New variable.
48050         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48051
48052         * math/libm-test.inc (struct test_if_f_data): New type.
48053         (RUN_TEST_LOOP_if_f): New macro.
48054         (jn_test_data): New variable.
48055         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48056         (yn_test_data): New variable.
48057         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48058
48059         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48060
48061 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48062
48063         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48064         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48065
48066 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48067
48068         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48069         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48070         (bench-deps): Add bench-timing.h.
48071         * benchtests-bench-skeleton.c: Include bench-timing.h.
48072         (main): Use TIMING_* macros instead of clock_gettime.
48073         * benchtests/bench-timing.h: New file.
48074
48075         [BZ #14582]
48076         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48077         Renamed from _LIB_VERSION.
48078         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48079
48080 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48081
48082         * math/libm-test.inc (struct test_fff_f_data): New type.
48083         (RUN_TEST_LOOP_fff_f): New macro.
48084         (fma_test_data): New variable.
48085         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48086         (fma_towardzero_test_data): New variable.
48087         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48088         (fma_downward_test_data): New variable.
48089         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48090         (fma_upward_test_data): New variable.
48091         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48092
48093         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48094         (struct test_c_c_data): New type.
48095         (RUN_TEST_LOOP_c_c): New macro.
48096         (cacos_test_data): New variable.
48097         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48098         (cacosh_test_data): New variable.
48099         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48100         (casin_test_data): New variable.
48101         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48102         (casinh_test_data): New variable.
48103         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48104         (catan_test_data): New variable.
48105         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48106         (catanh_test_data): New variable.
48107         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48108         (ccos_test_data): New variable.
48109         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48110         (ccosh_test_data): New variable.
48111         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48112         (cexp_test_data): New variable.
48113         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48114         (clog_test_data): New variable.
48115         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48116         (clog10_test_data): New variable.
48117         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48118         (conj_test_data): New variable.
48119         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48120         (cproj_test_data): New variable.
48121         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48122         (csin_test_data): New variable.
48123         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48124         (csinh_test_data): New variable.
48125         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48126         (csqrt_test_data): New variable.
48127         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48128         (ctan_test_data): New variable.
48129         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48130         (ctan_tonearest_test_data): New variable.
48131         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48132         (ctan_towardzero_test_data): New variable.
48133         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48134         (ctan_downward_test_data): New variable.
48135         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48136         (ctan_upward_test_data): New variable.
48137         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48138         (ctanh_test_data): New variable.
48139         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48140         (ctanh_tonearest_test_data): New variable.
48141         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48142         (ctanh_towardzero_test_data): New variable.
48143         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48144         (ctanh_downward_test_data): New variable.
48145         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48146         (ctanh_upward_test_data): New variable.
48147         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48148         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48149         of BUILD_COMPLEX.
48150
48151         * math/libm-test.inc (struct test_ff_f_data): New type.
48152         (struct test_ff_f_data_nexttoward): Likewise.
48153         (RUN_TEST_LOOP_2_f): New macro.
48154         (RUN_TEST_LOOP_ff_f): Likewise.
48155         (atan2_test_data): New variable.
48156         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48157         (copysign_test_data): New variable.
48158         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48159         (fdim_test_data): New variable.
48160         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48161         (fmax_test_data): New variable.
48162         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48163         (fmin_test_data): New variable.
48164         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48165         (fmod_test_data): New variable.
48166         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48167         (hypot_test_data): New variable.
48168         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48169         (nextafter_test_data): New variable.
48170         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48171         (nexttoward_test_data): New variable.
48172         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48173         (pow_test_data): New variable.
48174         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48175         (pow_tonearest_test_data): New variable.
48176         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48177         (pow_towardzero_test_data): New variable.
48178         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48179         (pow_downward_test_data): New variable.
48180         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48181         (pow_upward_test_data): New variable.
48182         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48183         (remainder_test_data): New variable.
48184         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48185         (scalb_test_data): New variable.
48186         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48187         * sysdeps/i386/fpu/libm-test-ulps: Update.
48188
48189 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48190
48191         * math/libm-test.inc (fma_test): Use max_value instead of local
48192         variable fltmax.
48193         (nextafter_test): Likewise.
48194
48195         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48196         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48197         (acos_downward_test_data): New variable.
48198         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48199         (acos_upward_test_data): New variable.
48200         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48201         (acosh_test_data): New variable.
48202         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48203         (asin_test_data): New variable.
48204         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48205         (asin_tonearest_test_data): New variable.
48206         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48207         (asin_towardzero_test_data): New variable.
48208         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48209         (asin_downward_test_data): New variable.
48210         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48211         (asin_upward_test_data): New variable.
48212         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48213         (asinh_test_data): New variable.
48214         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48215         (atan_test_data): New variable.
48216         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48217         (atanh_test_data): New variable.
48218         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48219         (cbrt_test_data): New variable.
48220         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48221         (ceil_test_data): New variable.
48222         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48223         (cos_test_data): New variable.
48224         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48225         (cos_tonearest_test_data): New variable.
48226         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48227         (cos_towardzero_test_data): New variable.
48228         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48229         (cos_downward_test_data): New variable.
48230         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48231         (cos_upward_test_data): New variable.
48232         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48233         (cosh_test_data): New variable.
48234         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48235         (cosh_tonearest_test_data): New variable.
48236         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48237         (cosh_towardzero_test_data): New variable.
48238         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48239         (cosh_downward_test_data): New variable.
48240         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48241         (cosh_upward_test_data): New variable.
48242         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48243         (erf_test_data): New variable.
48244         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48245         (erfc_test_data): New variable.
48246         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48247         (exp_test_data): New variable.
48248         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48249         (exp_tonearest_test_data): New variable.
48250         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48251         (exp_towardzero_test_data): New variable.
48252         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48253         (exp_downward_test_data): New variable.
48254         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48255         (exp_upward_test_data): New variable.
48256         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48257         (exp10_test_data): New variable.
48258         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48259         (exp2_test_data): New variable.
48260         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48261         (expm1_test_data): New variable.
48262         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48263         (fabs_test_data): New variable.
48264         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48265         (floor_test_data): New variable.
48266         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48267         (j0_test_data): New variable.
48268         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48269         (j1_test_data): New variable.
48270         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48271         (log_test_data): New variable.
48272         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48273         (log10_test_data): New variable.
48274         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48275         (log1p_test_data): New variable.
48276         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48277         (log2_test_data): New variable.
48278         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48279         (logb_test_data): New variable.
48280         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48281         (logb_downward_test_data): New variable.
48282         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48283         (nearbyint_test_data): New variable.
48284         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48285         (rint_test_data): New variable.
48286         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48287         (rint_tonearest_test_data): New variable.
48288         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48289         (rint_towardzero_test_data): New variable.
48290         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48291         (rint_downward_test_data): New variable.
48292         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48293         (rint_upward_test_data): New variable.
48294         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48295         (round_test_data): New variable.
48296         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48297         (sin_test_data): New variable.
48298         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48299         (sin_tonearest_test_data): New variable.
48300         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48301         (sin_towardzero_test_data): New variable.
48302         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48303         (sin_downward_test_data): New variable.
48304         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48305         (sin_upward_test_data): New variable.
48306         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48307         (sinh_test_data): New variable.
48308         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48309         (sinh_tonearest_test_data): New variable.
48310         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48311         (sinh_towardzero_test_data): New variable.
48312         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48313         (sinh_downward_test_data): New variable.
48314         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48315         (sinh_upward_test_data): New variable.
48316         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48317         (sqrt_test_data): New variable.
48318         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48319         (tan_test_data): New variable.
48320         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48321         (tan_tonearest_test_data): New variable.
48322         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48323         (tan_towardzero_test_data): New variable.
48324         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48325         (tan_downward_test_data): New variable.
48326         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48327         (tan_upward_test_data): New variable.
48328         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48329         (tanh_test_data): New variable.
48330         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48331         (tgamma_test_data): New variable.
48332         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48333         (trunc_test_data): New variable.
48334         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48335         (y0_test_data): New variable.
48336         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48337         (y1_test_data): New variable.
48338         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48339         (significand_test_data): New variable.
48340         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48341
48342 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48343
48344         [BZ #12387]
48345         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48346
48347 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48348
48349         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48350
48351 2013-05-10  Andreas Jaeger  <aj@suse.de>
48352
48353         [BZ #15448]
48354         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48355         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48356
48357 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48358
48359         * math/gen-libm-test.pl (adjust_arg): New function.
48360         (special_functions): Handle generating output in both functions
48361         and arrays.
48362         (parse_args): Likewise.
48363         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48364         $in_func argument to parse_args.
48365         * math/libm-test.inc (struct test_f_f_data): New type.
48366         (IF_ROUND_INIT_): New macro.
48367         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48368         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48369         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48370         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48371         (ROUND_RESTORE_): Likewise.
48372         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48373         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48374         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48375         (ROUND_RESTORE_FE_UPWARD): Likewise.
48376         (RUN_TEST_LOOP_f_f): New macro.
48377         (acos_test_data): New variable.
48378         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48379         (acos_tonearest_test_data): New variable.
48380         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48381
48382 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48383
48384         * benchtests/bench-skeleton.c (startup): Fix coding style.
48385
48386 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48387
48388         [BZ #6809]
48389         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48390         negative infinity argument.
48391         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48392         negative infinity argument.
48393         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48394         negative infinity argument.
48395         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48396         domain errors.
48397
48398 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48399
48400         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48401         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48402         * iconv/iconv_prog.c (main): Likewise.
48403         * locale/programs/charmap-dir.c (charmap_readdir)
48404         (fopen_uncompressed): Likewise.
48405         * locale/programs/locfile.c (siblings_uncached)
48406         (write_locale_data): Use lstat64 instead of lstat.
48407         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48408         stat.
48409
48410 2013-05-10  Andreas Jaeger  <aj@suse.de>
48411
48412         [BZ #15395]
48413         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48414         localization.
48415         Include <locale.h>.
48416
48417 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48418
48419         * elf/dl-close.c (_dl_close_worker): Add comments.
48420
48421 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48422
48423         [BZ #15359]
48424         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48425         high part of pi/2.
48426         (__ieee754_rem_pio2l): Update comments.
48427
48428         [BZ #15429]
48429         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48430         high part of pi/2.
48431         (__ieee754_rem_pio2l): Update comments.
48432
48433         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48434         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48435
48436         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48437         M_PI_4l.
48438
48439         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48440         (M_PI_34_LOG10El): Likewise.
48441         (M_PI2_LOG10El): Likewise.
48442         (M_PI4_LOG10El): Likewise.
48443         (M_PI_LOG10El): Likewise.
48444
48445 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48446
48447         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48448
48449 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48450
48451         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48452         (MINUS_ZERO_INIT): Likewise.
48453         (PLUS_INFTY_INIT): Likewise.
48454         (MINUS_INFTY_INIT): Likewise.
48455         (QNAN_VALUE_INIT): Likewise.
48456         (MAX_VALUE_INIT): Likewise.
48457         (MIN_VALUE_INIT): Likewise.
48458         (MIN_SUBNORM_VALUE_INIT): Likewise.
48459         (plus_zero): Initialize with PLUS_ZERO_INIT.
48460         (minus_zero): Initialize with MINUS_ZERO_INIT.
48461         (plus_infty): Initialize with PLUS_INFTY_INIT.
48462         (minus_infty): Initialize with MINUS_INFTY_INIT.
48463         (qnan_value): Initialize with QNAN_VALUE_INIT.
48464         (max_value): Initialize with MAX_VALUE_INIT.
48465         (min_value): Initialize with MIN_VALUE_INIT.
48466         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48467
48468         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48469         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48470         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48471         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48472
48473         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48474         (RUN_TEST_2_f): Likewise.
48475         (RUN_TEST_ff_f): Likewise.
48476         (RUN_TEST_fi_f): Likewise.
48477         (RUN_TEST_fl_f): Likewise.
48478         (RUN_TEST_fff_f): Likewise.
48479         (RUN_TEST_c_f): Likewise.
48480         (RUN_TEST_f_f1): Likewise.
48481         (RUN_TEST_fF_f1): Likewise.
48482         (RUN_TEST_fI_f1): Likewise.
48483         (RUN_TEST_ffI_f1): Likewise.
48484         (RUN_TEST_c_c): Likewise.
48485         (RUN_TEST_cc_c): Likewise.
48486         (RUN_TEST_f_i): Likewise.
48487         (RUN_TEST_f_i_tg): Likewise.
48488         (RUN_TEST_ff_i_tg): Likewise.
48489         (RUN_TEST_f_b): Likewise.
48490         (RUN_TEST_f_b_tg): Likewise.
48491         (RUN_TEST_f_l): Likewise.
48492         (RUN_TEST_f_L): Likewise.
48493         (RUN_TEST_sincos): Likewise.
48494         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48495         whether to show exceptions.  Do not include ");\n" in return
48496         value.
48497         (special_functions): Output call to RUN_TEST_sincos instead of
48498         check_float calls.  Update calls to new_test.
48499         (parse_args): Output call to single RUN_TEST_* macro instead of
48500         check_* calls and other assignments.  Update calls to new_test.
48501
48502         [BZ #2546]
48503         [BZ #2560]
48504         [BZ #5159]
48505         [BZ #15426]
48506         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48507         input to result for tgamma overflow.
48508         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48509         (gamma_coeff): New variable.
48510         (NCOEFF): New macro.
48511         (gamma_positive): New function.
48512         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48513         underflow here.  Use gamma_positive instead of exp (lgamma) for
48514         other arguments.
48515         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48516         (gamma_coeff): New variable.
48517         (NCOEFF): New macro.
48518         (gammaf_positive): New function.
48519         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48520         underflow here.  Use gamma_positive instead of exp (lgamma) for
48521         other arguments.
48522         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48523         (gamma_coeff): New variable.
48524         (NCOEFF): New macro.
48525         (gammal_positive): New function.
48526         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48527         underflow here.  Use gamma_positive instead of exp (lgamma) for
48528         other arguments.
48529         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48530         (gamma_coeff): New variable.
48531         (NCOEFF): New macro.
48532         (gammal_positive): New function.
48533         (__ieee754_gammal_r): Handle positive infinity, overflow and
48534         underflow here.  Handle NaN the same as positive infinity.  Remove
48535         check x < 0xffffffff for negative integers.  Use gamma_positive
48536         instead of exp (lgamma) for other arguments.
48537         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48538         (gamma_coeff): New variable.
48539         (NCOEFF): New macro.
48540         (gammal_positive): New function.
48541         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48542         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48543         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48544         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48545         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48546         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48547         * sysdeps/generic/math_private.h (__gamma_productf): New
48548         prototype.
48549         (__gamma_product): Likewise.
48550         (__gamma_productl): Likewise.
48551         * math/Makefile (libm-calls): Add gamma_product.
48552         * math/libm-test.inc (tgamma_test): Add more tests.
48553         * sysdeps/i386/fpu/libm-test-ulps: Update.
48554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48555
48556 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48557
48558         * benchtests/bench-skeleton.c (main): Preheat CPU.
48559
48560 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48561
48562         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48563
48564 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48565
48566         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48567         and _dl_skip_args_internal.
48568
48569 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48570
48571         * manual/message.texi (Message Translation): Talk about users.
48572         Message to key mapping impacts design.
48573
48574 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48575
48576         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48577
48578         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48579
48580         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48581         * sysdeps/wordsize-64/glob64.c: ... here.
48582
48583         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48584         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48585         New macros.
48586
48587         * debug/getlogin_r_chk.c: Moved to ...
48588         * login/getlogin_r_chk.c: ... here.
48589         * debug/Makefile (routines): Move getlogin_r_chk to ...
48590         * login/Makefile (routines): ... here.
48591         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48592         * login/Versions (libc: GLIBC_2.4): ... here.
48593
48594         * io/poll.c (__poll): Renamed from poll.
48595         Add libc_hidden_def.
48596         (poll): Define as weak alias.
48597
48598         * debug/ptsname_r_chk.c: Moved to ...
48599         * login/ptsname_r_chk.c: ... here.
48600         * debug/Makefile (routines): Move ptsname_r_chk to ...
48601         * login/Makefile (routines): ... here.
48602         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48603         * login/Versions (libc: GLIBC_2.4): ... here.
48604
48605         * posix/getlogin.c: Moved to ...
48606         * login/getlogin.c: ... here.
48607         * posix/getlogin_r.c: Moved to ...
48608         * login/getlogin_r.c: ... here.
48609         * posix/getlogin_r.c: Moved to ...
48610         * login/getlogin_r.c: ... here.
48611         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48612         * login/Makefile (routines): ... here.
48613         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48614         * login/Versions (libc: GLIBC_2.0): ... here.
48615
48616         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48617         (setrlimit): Define as weak alias.
48618
48619         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48620         Call __ names for open, ftruncate, and close.
48621         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48622         (truncate): Define as weak alias.
48623
48624 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48625
48626         * math/gen-libm-test.pl (parse_args): Initialize x before each
48627         test of frexp, modf and remquo.
48628
48629         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48630         test signgam value.
48631
48632 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48633
48634         [BZ #15418]
48635         [BZ #15419]
48636         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48637         internal tests.
48638         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48639
48640 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48641
48642         * elf/dl-writev.h: New file.
48643         * elf/dl-misc.c: Include it.
48644         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48645         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48646
48647 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48648
48649         * math/libm-test.inc (noXFails): Remove variable.
48650         (noXPasses): Likewise.
48651         (BUILD_COMPLEX_INT): Remove macro.
48652         (print_screen): Remove xfail argument.
48653         (print_screen_max_error): Likewise.
48654         (update_stats): Likewise.
48655         (print_max_error): Likewise.  Update calls to other affected
48656         functions.
48657         (print_complex_max_error): Likewise.
48658         (test_single_exception): Update calls to print_screen.
48659         (test_single_errno): Likewise.
48660         (check_float_internal): Remove xfail argument.  Update calls to
48661         other affected functions.
48662         (check_float): Likewise.
48663         (check_complex): Likewise.
48664         (check_int): Likewise.
48665         (check_long): Likewise.
48666         (check_bool): Likewise.
48667         (check_longlong): Likewise.
48668         (main): Don't print noXFails and noXPasses.
48669         * math/gen-libm-test.pl (top level): Don't mention expected
48670         failure handling in comment.
48671         (new_test): Don't handle expected failures.
48672         (parse_args): Don't mention expected failure handling in comment.
48673         (generate_testfile): Don't handle expected failures.
48674         (parse_ulps): Likewise.
48675         (print_ulps_file): Likewise.
48676         (get_failure): Remove function.
48677         (output_test): Don't handle expected failures.
48678         * make/README.libm-test: Don't mention expected failure handling.
48679
48680         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48681         (minus_zero): Likewise.
48682         (plus_infty): Likewise.
48683         (minus_infty): Likewise.
48684         (qnan_value): Likewise.
48685         (max_value): Likewise.
48686         (min_value): Likewise.
48687         (min_subnorm_value): Likewise.
48688         (initialize): Do not initialize those variables dynamically.
48689
48690 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48691
48692         * io/open.c (__open_2): Moved to ...
48693         * io/open_2.c: ... this new file.
48694         * io/open64.c (__open64_2): Moved to ...
48695         * io/open64_2.c: ... this new file.
48696         * io/openat.c (__openat_2): Moved to ...
48697         * io/openat_2.c: ... this new file.
48698         * io/openat64.c (__openat64_2): Moved to ...
48699         * io/openat64_2.c: ... this new file.
48700         * io/Makefile (routines): Add them.
48701         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48702         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48703         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48704         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48705         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48706         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48707         (__openat64): Add hidden_ver.
48708         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48709         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48710
48711         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48712         Separately conditionalize setting of GLRO(dl_sysinfo) so
48713         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48714         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48715
48716 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48717
48718         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48719         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48720         definition.
48721         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48722         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48723         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48724         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48725         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48726
48727 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48728
48729         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48730         test signgam value.
48731
48732         * math/libm-test.inc (hypot_test): Do not use
48733         IGNORE_ZERO_INF_SIGN.
48734
48735 2013-05-03  Andreas Jaeger  <aj@suse.de>
48736
48737         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48738         Linux 3.9.
48739         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48740         (PF_MAX): Adjust for VSOCK change.
48741
48742 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48743
48744         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48745
48746 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48747
48748         [BZ #15264]
48749         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48750         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48751         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48752
48753 2013-05-02  David S. Miller  <davem@davemloft.net>
48754
48755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48756
48757 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48758
48759         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48760
48761 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48762
48763         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48764
48765 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48766
48767         [BZ #14952]
48768         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48769         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48770         Use __attribute__ ((__gnu_inline__)).
48771         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48772         Don't use __attribute__ ((__gnu_inline__)).
48773
48774 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48775
48776         [BZ #15423]
48777         * math/s_catan.c (__catan): Handle small real or imaginary part of
48778         input specially to avoid spurious underflow.
48779         * math/s_catanf.c (__catanf): Likewise.
48780         * math/s_catanh.c (__catanh): Likewise.
48781         * math/s_catanhf.c (__catanhf): Likewise.
48782         * math/s_catanhl.c (__catanhl): Likewise.
48783         * math/s_catanl.c (__catanl): Likewise.
48784         * math/libm-test.inc (catan_test): Add more tests.
48785         (catanh_test): Likewise.
48786         * sysdeps/i386/fpu/libm-test-ulps: Update.
48787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48788
48789 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48790
48791         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48792
48793 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48794
48795         [BZ #15416]
48796         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48797         accurately for denominator in atan2.
48798         * math/s_catanf.c (__catanf): Likewise.
48799         * math/s_catanh.c (__catanh): Likewise.
48800         * math/s_catanhf.c (__catanhf): Likewise.
48801         * math/s_catanhl.c (__catanhl): Likewise.
48802         * math/s_catanl.c (__catanl): Likewise.
48803         * math/libm-test.inc (catan_test): Add more tests.
48804         (catanh_test): Likewise.
48805         * sysdeps/i386/fpu/libm-test-ulps: Update.
48806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48807
48808 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48809
48810         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48811
48812         * benchtests/Makefile (bench): Remove slow benchmarks.
48813         * benchtests/atan-inputs: Add slow benchmark inputs.
48814         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48815         (BENCH_FUNC): Accept variant offset.
48816         (VARIANT): Define.
48817         * benchtests/bench-skeleton.c (main): Run benchmark for each
48818         variant.
48819         * benchtests/cos-inputs: Add slow benchmark inputs.
48820         * benchtests/exp-inputs: Likewise.
48821         * benchtests/pow-inputs: Likewise.
48822         * benchtests/sin-inputs: Likewise.
48823         * benchtests/slowatan-inputs: Remove.
48824         * benchtests/slowatan.c: Remove.
48825         * benchtests/slowcos-inputs: Remove.
48826         * benchtests/slowcos.c: Remove.
48827         * benchtests/slowexp-inputs: Remove.
48828         * benchtests/slowexp.c: Remove.
48829         * benchtests/slowpow-inputs: Remove.
48830         * benchtests/slowpow.c: Remove.
48831         * benchtests/slowsin-inputs: Remove.
48832         * benchtests/slowsin.c: Remove.
48833         * benchtests/slowtan-inputs: Remove.
48834         * benchtests/slowtan.c: Remove.
48835         * benchtests/tan-inputs: Add slow benchmark inputs.
48836         * scripts/bench.pl: Parse comments and directives.
48837
48838         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48839         in CPPFLAGS.
48840         ($(objpfx)bench-%.c): Remove *-ITER.
48841         * benchtests/bench-modf.c: Remove definition of ITER.
48842         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48843         (main): Loop for DURATION seconds instead of fixed number of
48844         iterations.
48845         * scripts/bench.pl: Don't expect iterations in parameters.
48846
48847 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48848
48849         * io/fchdir.c (__fchdir): Renamed from fchdir.
48850         (fchdir): Define as weak alias.
48851
48852 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48853
48854         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48855         (ERRNO_EDOM): Likewise.
48856         (ERRNO_ERANGE): Likewise.
48857         (noErrnoTests): New variable.
48858         (init_max_error): Set errno to 0.
48859         (test_single_errno): New function.
48860         (test_errno): Likewise.
48861         (check_float_internal): Call test_errno.  Set errno to 0.
48862         (check_complex): Refer to errno tests in comment.
48863         (check_int): Call test_errno.  Set errno to 0.
48864         (check_long): Likewise.
48865         (check_bool): Likewise.
48866         (check_longlong): Likewise.
48867         (cos_test): Use ERRNO_* flags for errno tests instead of
48868         check_int.
48869         (expm1_test): Likewise.
48870         (fmod_test): Likewise.
48871         (ilogb_test): Likewise.
48872         (lgamma_test): Likewise.
48873         (pow_test): Likewise.
48874         (remainder_test): Likewise.
48875         (sin_test): Likewise.
48876         (tan_test): Likewise.
48877         (yn_test): Likewise.
48878         (initialize): Set errno to 0.
48879         (main): Print number of errno tests.
48880         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48881
48882 2013-04-29  Andreas Jaeger  <aj@suse.de>
48883
48884         [BZ #15084]
48885         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48886         and RES_USEVC.
48887
48888         [BZ #15085]
48889         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48890         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48891         unimplemented.
48892
48893         [BZ #15380]
48894         * stdlib/random.c (__initstate): Return NULL if
48895         __initstate fails.
48896
48897         [BZ #15086]
48898         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48899         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48900         RES_SNGLKUPREOP.
48901
48902 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48903
48904         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48905
48906 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48907
48908         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48909         of individual tests.
48910         (casin_test): Likewise.
48911         (casinh_test): Likewise.
48912
48913 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48914
48915         [BZ #15409]
48916         * math/s_catan.c (__catan): Handle arguments with large real or
48917         imaginary part separately without squaring.
48918         * math/s_catanf.c (__catanf): Likewise.
48919         * math/s_catanh.c (__catanh): Likewise.
48920         * math/s_catanhf.c (__catanhf): Likewise.
48921         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48922         and redefine.
48923         (__catanhl): Handle arguments with large real or imaginary part
48924         separately without squaring.
48925         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48926         and redefine.
48927         (__catanl): Handle arguments with large real or imaginary part
48928         separately without squaring.
48929         * math/libm-test.inc (catan_test): Add more tests.
48930         (catanh_test): Likewise.
48931         * sysdeps/i386/fpu/libm-test-ulps: Update.
48932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48933
48934 2013-04-27  Andreas Jaeger  <aj@suse.de>
48935
48936         [BZ #15007]
48937         * stdlib/stdlib.h: Update guards for qecvt.
48938         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48939         <stdlib.h>.
48940
48941 2013-04-27  Allan McRae  <allan@archlinux.org>
48942
48943         * sysdeps/i386/fpu/libm-test-ulps: Update.
48944
48945 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48946
48947         [BZ #15406]
48948         * math/s_catan.c: Include <float.h>.
48949         (__catan): Ensure underflow exception occurs for underflowed
48950         result.
48951         * math/s_catanf.c: Include <float.h>.
48952         (__catanf): Ensure underflow exception occurs for underflowed
48953         result.
48954         * math/s_catanh.c: Include <float.h>.
48955         (__catanh): Ensure underflow exception occurs for underflowed
48956         result.
48957         * math/s_catanhf.c: Include <float.h>.
48958         (__catanhf): Ensure underflow exception occurs for underflowed
48959         result.
48960         * math/s_catanhl.c: Include <float.h>.
48961         (__catanhl): Ensure underflow exception occurs for underflowed
48962         result.
48963         * math/s_catanl.c: Include <float.h>.
48964         (__catanl): Ensure underflow exception occurs for underflowed
48965         result.
48966         * math/libm-test.inc (catan_test): Add more tests.
48967         (catanh_test): Likewise.
48968
48969         [BZ #15405]
48970         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48971         underflowed result.
48972         * math/s_ccoshf.c (__ccoshf): Likewise.
48973         * math/s_ccoshl.c (__ccoshl): Likewise.
48974         * math/s_csin.c (__csin): Likewise.
48975         * math/s_csinf.c (__csinf): Likewise.
48976         * math/s_csinh.c (__csinh): Likewise.
48977         * math/s_csinhf.c (__csinhf): Likewise.
48978         * math/s_csinhl.c (__csinhl): Likewise.
48979         * math/s_csinl.c (__csinl): Likewise.
48980         * math/libm-test.inc (ccos_test): Add more tests.
48981         (ccosh_test): Likewise.
48982         (csin_test): Likewise.
48983         (csinh_test): Likewise.
48984
48985 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48986
48987         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48988         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48989         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48990         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48991         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48992         powerpc/power5+/fpu folders.
48993         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48994
48995
48996 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48997
48998         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48999
49000 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49001
49002         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49003         additions to variable.
49004         [$(config-machine) = x86_64] (modules-names): Likewise.
49005         ($(objpfx)tst-audit3): Remove dependency.
49006         ($(objpfx)tst-audit3.out): Likewise.
49007         ($(objpfx)tst-audit4): Likewise.
49008         ($(objpfx)tst-audit4.out): Likewise.
49009         ($(objpfx)tst-audit5): Likewise.
49010         ($(objpfx)tst-audit5.out): Likewise.
49011         ($(objpfx)tst-audit6): Likewise.
49012         ($(objpfx)tst-audit6.out): Likewise.
49013         ($(objpfx)tst-audit7): Likewise.
49014         ($(objpfx)tst-audit7.out): Likewise.
49015         (tst-audit3-ENV): Remove variable.
49016         (tst-audit4-ENV): Likewise.
49017         (tst-audit5-ENV): Likewise.
49018         (tst-audit6-ENV): Likewise.
49019         (tst-audit7-ENV): Likewise.
49020         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49021         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49022         addition to variable.
49023         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49024         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49025         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49026         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49027         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49028         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49029         tst-audit3, tst-audit4 and tst-audit5.
49030         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49031         tst-audit6 and tst-audit7.
49032         [$(subdir) = elf] (modules-names): Add audit modules for those
49033         tests.
49034         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49035         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49036         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49037         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49038         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49039         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49040         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49041         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49042         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49043         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49044         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49045         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49046         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49047         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49048         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49049         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49050         Likewise.
49051         [$(subdir) = elf && $(config-cflags-avx) = yes]
49052         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49053         [$(subdir) = elf && $(config-cflags-avx) = yes]
49054         (CFLAGS-tst-auditmod4a.c): Likewise.
49055         [$(subdir) = elf && $(config-cflags-avx) = yes]
49056         (CFLAGS-tst-auditmod4b.c): Likewise.
49057         [$(subdir) = elf && $(config-cflags-avx) = yes]
49058         (CFLAGS-tst-auditmod6b.c): Likewise.
49059         [$(subdir) = elf && $(config-cflags-avx) = yes]
49060         (CFLAGS-tst-auditmod6c.c): Likewise.
49061         [$(subdir) = elf && $(config-cflags-avx) = yes]
49062         (CFLAGS-tst-auditmod7b.c): Likewise.
49063         * elf/tst-audit3.c: Move to ...
49064         * sysdeps/x86_64/tst-audit3.c: ... here.
49065         * elf/tst-audit4.c: Move to ...
49066         * sysdeps/x86_64/tst-audit4.c: ... here.
49067         * elf/tst-audit5.c: Move to ...
49068         * sysdeps/x86_64/tst-audit5.c: ... here.
49069         * elf/tst-audit6.c: Move to ...
49070         * sysdeps/x86_64/tst-audit6.c: ... here.
49071         * elf/tst-audit7.c: Move to ...
49072         * sysdeps/x86_64/tst-audit7.c: ... here.
49073         * elf/tst-auditmod3a.c: Move to ...
49074         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49075         * elf/tst-auditmod3b.c: Move to ...
49076         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49077         * elf/tst-auditmod4a.c: Move to ...
49078         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49079         * elf/tst-auditmod4b.c: Move to ...
49080         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49081         * elf/tst-auditmod5a.c: Move to ...
49082         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49083         * elf/tst-auditmod5b.c: Move to ...
49084         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49085         * elf/tst-auditmod6a.c: Move to ...
49086         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49087         * elf/tst-auditmod6b.c: Move to ...
49088         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49089         * elf/tst-auditmod6c.c: Move to ...
49090         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49091         * elf/tst-auditmod7a.c: Move to ...
49092         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49093         * elf/tst-auditmod7b.c: Move to ...
49094         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49095
49096 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49097
49098         [BZ #15366]
49099         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49100         define unconditionally.
49101         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49102         define unconditionally.
49103         (INT8_C, INT16_C, etc.): Likewise.
49104
49105 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49106
49107         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49108         __ehdr_start with hidden visibility.
49109
49110         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49111
49112 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49113
49114         * math/libm-test.inc (cos_test): Use accurate hex constants.
49115         (sincost_test): Likewise.
49116
49117 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49118
49119         * math/libm-test.inc (catan_test): Add more tests.
49120         (catanh_test): Likewise.
49121
49122         * math/s_catanf.c (__catanf): Use suffixed floating-point
49123         constants.
49124         * math/s_catanhf.c (__catanhf): Likewise.
49125         * math/s_catanhl.c (__catanhl): Likewise.
49126         * math/s_catanl.c (__catanl): Likewise.
49127
49128         [BZ #15394]
49129         * math/s_catan.c (__catan): Calculate imaginary part of result
49130         with log1p not log unless computing log of number close to 0.
49131         * math/s_catanf.c (__catanf): Likewise.
49132         * math/s_catanl.c (__catanl): Likewise.
49133         * math/s_catanh.c (__catanh): Calculate real part of result with
49134         log1p not log unless computing log of number close to 0.
49135         * math/s_catanhf.c (__catanhf): Likewise.
49136         * math/s_catanhl.c (__catanhl): Likewise.
49137         * math/libm-test.inc (catan_test): Add more tests.
49138         (catanh_test): Likewise.
49139         * sysdeps/i386/fpu/libm-test-ulps: Update.
49140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49141
49142 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49143
49144         * benchtests/Makefile: Mention files in which fast and slow
49145         paths of math functions are implemented.
49146
49147 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49148
49149         * sysdeps/posix/timespec_get.c: New file.
49150
49151 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49152
49153         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49154         POWER.
49155         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49156         for POWER.
49157         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49158         powerpc/power5/fpu folders.
49159         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49160         * benchtests/Makefile: Add modf testcase.
49161         * benchtests/bench-modf.c: New file: Benchmark test for mo
49162
49163 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49164
49165         [BZ #14888]
49166         * time/Makefile (tests): Add tst-strptime-whitespace.
49167         * time/strptime_l.c (get_number): Use ISSPACE.
49168         (__strptime_internal): Likewise.
49169         * time/tst-strptime-whitespace.c: New test case.
49170
49171 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49172
49173         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49174         member.
49175         (_nss_files_init): Set it here.
49176
49177 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49178
49179         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49180         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49181         unsigned.
49182
49183 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49184
49185         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49186
49187 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49188
49189         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49190         size just once.
49191
49192 2013-04-21  David S. Miller  <davem@davemloft.net>
49193
49194         * po/ru.po: Update Russion translation from translation project.
49195
49196 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49197
49198         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49199         and setfsgid.
49200
49201 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49202
49203         * configure.in: Remove i386 configure warning. Remove i386 case.
49204         * configure: Regenerate.
49205         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49206         Add example to error message.
49207         * sysdeps/i386/configure: Regenerate.
49208
49209 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49210
49211         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49212         slowtan.
49213         * benchtests/cos-inputs: New file.
49214         * benchtests/slowcos-inputs: New file.
49215         * benchtests/slowcos.c: New file.
49216         * benchtests/slowtan-inputs: New file.
49217         * benchtests/slowtan.c: New file.
49218         * benchtests/tan-inputs: New file.
49219
49220 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49221
49222         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49223         considered kosher.
49224
49225 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49226
49227         * benchtests/Makefile: Include cppflags-iterator.mk to add
49228         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49229
49230         * Makefile.in (bench-clean): New target.
49231         * benchtests/Makefile (bench-clean): Likewise.
49232
49233 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49234
49235         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49236
49237 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49238
49239         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49240
49241 2013-04-15  Andreas Schwab  <schwab@suse.de>
49242
49243         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49244         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49245         * nscd/pwdcache.c (cache_addpw): Likewise.
49246         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49247         more than recsize.
49248
49249 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49250
49251         * benchtests/Makefile (bench): Write all output to
49252         bench-out.tmp together.
49253
49254 2013-04-15  Andreas Schwab  <schwab@suse.de>
49255
49256         * nscd/nscd.c (main): Don't fork again after closing files.
49257
49258 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49259
49260         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49261
49262         * benchtests/Rules (bench-deps): Collect dependencies into a
49263         single variable.  Add Makefile to dependencies.
49264         ($(objpfx)bench-%.c): Depend on bench-deps.
49265
49266 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49267             Xavier Roche  <roche+kml2@exalead.com>
49268
49269         [BZ #15361]
49270         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49271         just that it's a file descriptor.
49272         * manual/llio.texi (Synchronizing AIO Operations): Update description
49273         for EBADF error from aio_fsync.
49274
49275 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49276
49277         * Rules (bench): Move target definition...
49278         * benchtests/Makefile: ... here.
49279
49280 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49281
49282         * math/libm-test.inc (cos_test): Fix PI/2 test.
49283         (sincos_test): Likewise.
49284         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49285         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49286
49287 2013-04-11  Andreas Schwab  <schwab@suse.de>
49288
49289         [BZ #13988]
49290         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49291         accept exponent character only when digits were seen.
49292         * stdio-common/Makefile (tests): Add bug26.
49293         * stdio-common/bug26.c: New file.
49294
49295         [BZ #14293]
49296         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49297         non-freeable.
49298
49299 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49300
49301         * Makeconfig (rtld-prefix): Define built linker prefix.
49302         * Rules (run-bench): Use it.
49303         * math/Makefile (run-regen-ulps): Likewise.
49304
49305         * Rules (bench): Remove eval.
49306
49307 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49308             Roland McGrath  <roland@hack.frob.com>
49309             Ondrej Bilka  <neleai@seznam.cz>
49310
49311         [BZ #15346]
49312         * time/getdate.c: Include ctype.h and alloca.h.
49313         (__getdate_r): Trim leading and trailing spaces of input.
49314         * time/tst-getdate.c (tests): Add tests with leading and
49315         trailing spaces.
49316
49317 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49318
49319         [BZ #14280]
49320         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49321         when computing value.
49322
49323 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49324
49325         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49326         Use testrun.sh to run libm tests.
49327
49328         [BZ #15309]
49329         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49330
49331 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49332
49333         [BZ #15264]
49334         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49335
49336 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49337
49338         * Makefile.in (regen-ulps): New target.
49339         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49340         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49341         [ifneq (no,$(PERL)] (regen-ulps): New target.
49342         [ifeq (no,$(PERL)] (regen-ulps): New target.
49343         * math/libm-test.inc (ulps_file_name): Define.
49344         (output_dir): New variable.
49345         (options): Add "output-dir" option.
49346         (parse_opt): Handle 'o' case.
49347         (main): If output_dir is non-NULL use it as a prefix
49348         otherwise use "".
49349         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49350
49351 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49352
49353         [BZ #10060, #10062]
49354         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49355         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49356         fail configure if __sync_val_compare_and_swap is not inlined.
49357         * sysdeps/i386/configure: Regenerate.
49358         * configure.in: Build for i686 when configured for i386.
49359         * configure: Regenerate.
49360         * README: Remove i386 reference.
49361
49362 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49363
49364         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49365         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49366
49367 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49368
49369         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49370         (lmsnanval): New variables.
49371         (F): Add conversion tests.
49372         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49373         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49374
49375         * stdio-common/tstdiomisc.c (F): Properly collect individual
49376         tests' results.
49377
49378         [BZ #14686, #15336]
49379         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49380         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49381         Instead, use input NaN values or generate a qNaN by arithmetic
49382         operation.  Also fix bugs to comply with the standard.
49383         * math/libm-test.inc (remainder_test): Add more tests.
49384
49385         [BZ #15335, #15342]
49386         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49387         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49388         input NaN values or generate a qNaN by arithmetic operation.
49389
49390         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49391         unreachable code.
49392
49393         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49394         definitions.
49395
49396 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49397
49398         [BZ #14478]
49399         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49400         underflowed result.
49401         * math/s_cexpf.c (__cexpf): Likewise.
49402         * math/s_cexpl.c (__cexpl): Likewise.
49403         * math/libm-test.inc (cexp_test): Add more tests.
49404
49405 2013-04-03  Andreas Schwab  <schwab@suse.de>
49406
49407         [BZ #15330]
49408         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49409         order arrays from heap if bigger than alloca cutoff.
49410
49411 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49412
49413         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49414         (SNAN_TESTS_double): Refer to GCC PR56831.
49415         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49416         GCC PR56828.
49417
49418 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49419
49420         * Rules (bench): Move bench.out after the run is complete.
49421
49422         * Rules (bench): Echo currently running benchmark.
49423
49424         * benchtests/Makefile (bench): Add atan and slowatan.
49425         * benchtests/atan-inputs: New file.
49426         * benchtests/slowatan-inputs: New file.
49427         * benchtests/slowatan.c: New file.
49428
49429         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49430         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49431         its value.
49432
49433         [BZ #15305]
49434         * sysdeps/unix/sysv/linux/kernel-features.h
49435         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49436         __ASSUME_XFS_RESTRICTED_CHOWN.
49437         * sysdeps/unix/sysv/linux/pathconf.c
49438         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49439         Save and restore errno.
49440
49441 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49442
49443         [BZ #15327]
49444         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49445         arguments using __kernel_casinh.
49446         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49447         arguments using __kernel_casinhf.
49448         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49449         arguments using __kernel_casinhl.
49450         * math/libm-test.inc (cacosh_test): Add more tests.
49451         * sysdeps/i386/fpu/libm-test-ulps: Update.
49452         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49453
49454 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49455
49456         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49457         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49458
49459         * bench/Makefile (bench): Add sin and slowsin.
49460         * benchtests/sin-inputs: New file.
49461         * benchtests/slowsin-inputs: New file.
49462         * benchtests/slowsin.c: New file.
49463
49464         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49465         (bench): Add slowexp and slowpow.
49466         (exp-ITER): Increase iterations.
49467         (pow-ITER): Likewise.
49468         * benchtests/exp-inputs: Change input.
49469         * benchtests/pow-inputs: Likewise.
49470         * benchtests/slowexp-inputs: New file.
49471         * benchtests/slowexp.c: New file.
49472         * benchtests/slowpow-inputs: New file.
49473         * benchtests/slowpow.c: New file.
49474
49475 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49476
49477         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49478         instructions.
49479         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49480         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49481         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49482         * benchtests/Makefile: Add rint benchtest.
49483         * benchtests/rint-inputs: Input for rint benchtest.
49484
49485 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49486
49487         * Versions.def (libm): Add GLIBC_2.18.
49488         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49489         hidden libm prototypes.
49490         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49491         * math/Makefile (libm-calls): Add s_issignaling.
49492         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49493         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49494         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49495         declaration.
49496         * math/math.h [__USE_GNU] (issignaling): New macro.
49497         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49498         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49499         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49500         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49501         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49502         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49503         * manual/arith.texi (issignaling): New section.
49504         * manual/libm-err-tab.pl (@all_functions): Update comment.
49505         * math/gen-libm-test.pl (parse_args): Apply special handling for
49506         issignaling.
49507         * math/libm-test.inc (print_float, issignaling_test): New
49508         functions.
49509         (check_float_internal): Add issignaling checks.
49510         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49511         default definition.
49512         * sysdeps/powerpc/math-tests.h: New file.
49513         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49514         tests.
49515         * math/test-snan.c (TEST_FUNC): Likewise.
49516
49517 2013-03-30  David S. Miller  <davem@davemloft.net>
49518
49519         * po/de.po: Update from translation team.
49520
49521 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49522
49523         [BZ #10357]
49524         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49525         imaginary part less than 1.0 and real part less than 0.5
49526         specially.
49527         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49528         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49529         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49530         (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-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49537
49538         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49539         ONE with its value.
49540
49541         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49542         (__pow_mp): Replace ONE and MONE with their values.
49543         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49544         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49545         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49546         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49547         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49548         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49549
49550         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49551
49552         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49553         (__pow_mp): Replace ZERO and MZERO with their values.
49554         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49555         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49556         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49557         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49558         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49559         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49560         (__sqr): Likewise.
49561
49562         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49563
49564         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49565
49566 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49567
49568         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49569         Declare with __attribute__ ((weak)).
49570         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49571         Call __call_tls_dtors only if it's not NULL.
49572
49573 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49574
49575         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49576         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49577         magic __ehdr_start linker symbol if it's defined.
49578         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49579         them up here if it was already done.
49580
49581         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49582         (_dl_aux_init): Use const in cast when setting it.
49583         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49584         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49585         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49586
49587         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49588         Declare them here.
49589         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49590         * csu/libc-tls.c: Nor here.
49591         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49592
49593         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49594         (__libc_message): Never call vsyslog.
49595
49596 2013-03-28  Alan Modra  <amodra@gmail.com>
49597
49598         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49599         Define as empty.
49600         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49601         Likewise.
49602
49603 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49604
49605         [BZ #15214]
49606         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49607         underflow.
49608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49609
49610 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49611
49612         [BZ #15304]
49613         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49614         Don't add gid passed as argument.
49615
49616         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49617
49618 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49619
49620         [BZ #15307]
49621         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49622         imaginary part between 1.0 and 1.5 and real part less than 0.5
49623         specially.
49624         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49625         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49626         * math/libm-test.inc (cacos_test): Add more tests.
49627         (casin_test): Likewise.
49628         (casinh_test): Likewise.
49629         * sysdeps/i386/fpu/libm-test-ulps: Update.
49630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49631
49632 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49633
49634         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49635         constants.
49636         (norm): Likewise.
49637         (denorm): Likewise.
49638         (__dbl_mp): Likewise.
49639         (add_magnitudes): Likewise.
49640         (sub_magnitudes): Likewise.
49641         (__add): Likewise.
49642         (__sub): Likewise.
49643         (__mul): Likewise.
49644         (__sqr): Likewise.
49645         (__inv): Likewise.
49646         (__dvd): Likewise.
49647
49648         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49649         commented code.
49650         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49651         (__dubcos): Likewise.
49652         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49653         (__ieee754_acos): Likewise.
49654         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49655         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49656         (__exp1): Likewise.
49657         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49658         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49659         (log1): Likewise.
49660         (my_log2): Likewise.
49661         (checkint): Likewise.
49662         * sysdeps/ieee754/dbl-64/e_remainder.c
49663         (__ieee754_remainder): Likewise.
49664         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49665         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49666         (bsloww): Likewise.
49667         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49668
49669         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49670         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49671         MANTISSA_STORE_T to store computations on mantissa.  Use
49672         macros for rounding and division.
49673         (denorm): Likewise.
49674         (__dbl_mp): Likewise.
49675         (add_magnitudes): Likewise.
49676         (sub_magnitudes): Likewise.
49677         (__mul): Likewise.
49678         (__sqr): Likewise.
49679         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49680         powers of two in terms of TWOPOW macro.
49681         (mp_no): Make type of mantissa as MANTISSA_T.
49682         [!RADIXI]: Define RADIXI.
49683         [!TWO52]: Define TWO52.
49684         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49685
49686 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49687
49688         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49689         llroundl symbol when building for PPC32.
49690
49691 2013-03-24  Mark H Weaver  <mhw@netris.org>
49692
49693         * manual/arith.texi (Normalization Functions): Fix prototypes for
49694         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49695
49696 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49697
49698         [BZ #13889]
49699         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49700         high value to check if expl overflow.
49701         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49702         to check for underflow and overflow.
49703         * math/libm-test.inc: Add exp test.
49704
49705 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49706
49707         [BZ #11120]
49708         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49709         with NOT_IN_libc.
49710
49711 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49712
49713         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49714         symbol.
49715
49716 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49717
49718         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49719         wrap blocks consisting of several statements.
49720
49721         * sysdeps/generic/math-tests.h: New file.
49722         * sysdeps/i386/fpu/math-tests.h: Likewise.
49723         * math/test-snan.c: Include it.
49724         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49725
49726 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49727
49728         [BZ #15285]
49729         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49730         (__ieee754_j0l): Do not improve calculations using cos of twice
49731         input for inputs above LDBL_MAX / 2.0L.
49732         (__ieee754_y0l): Likewise.
49733         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49734         (__ieee754_j1l): Do not improve calculations using cos of twice
49735         input for inputs above LDBL_MAX / 2.0L.
49736         (__ieee754_y1l): Likewise.
49737         * math/libm-test.inc (j0_test): Add another test.
49738         (j1_test): Likewise.
49739         (y0_test): Likewise.
49740         (y1_test): Likewise.
49741         * sysdeps/i386/fpu/libm-test-ulps: Update.
49742
49743 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49744
49745         * Rules ($(objpfx)bench-%.c): Include code from a C source
49746         file.
49747
49748 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49749
49750         [BZ #15287]
49751         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49752         imaginary part 1.0 and real part less than 0.5 specially.
49753         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49754         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49755         * math/libm-test.inc (cacos_test): Add more tests.
49756         (casin_test): Likewise.
49757         (casinh_test): Likewise.
49758         * sysdeps/i386/fpu/libm-test-ulps: Update.
49759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49760
49761 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49762
49763         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49764         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49765
49766 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49767
49768         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49769         * config.make.in (config-cflags-sse4): Remove variable.
49770         (config-cflags-avx): Likewise.
49771         (config-cflags-sse2avx): Likewise.
49772         (config-cflags-novzeroupper): Likewise.
49773         (config-asflags-i686): Likewise.
49774         (have-mfma4): Likewise.
49775         (have-as-vis3): Likewise.
49776         (MIG): Likewise.
49777         * configure.in (MIG): Do not AC_SUBST.
49778         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49779         (libc_cv_cc_sse4): Do not AC_SUBST.
49780         (libc_cv_cc_avx): Likewise.
49781         (libc_cv_cc_sse2avx): Likewise.
49782         (libc_cv_cc_novzeroupper): Likewise.
49783         (libc_cv_cc_fma4): Likewise.
49784         (libc_cv_as_i686): Likewise.
49785         (libc_cv_sparc_as_vis3): Likewise.
49786         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49787         LIBC_CONFIG_VAR.
49788         (config-asflags-i686): Likewise.
49789         (config-cflags-avx): Likewise.
49790         (config-cflags-sse2avx): Likewise.
49791         (have-mfma4): Likewise.
49792         (config-cflags-novzeroupper): Likewise.
49793         * sysdeps/mach/configure.in (MIG): Likewise.
49794         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49795         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49796         LIBC_CONFIG_VAR.
49797         (config-cflags-avx): Likewise.
49798         (config-cflags-sse2avx): Likewise.
49799         (have-mfma4): Likewise.
49800         (config-cflags-novzeroupper): Likewise.
49801         * configure: Regenerated.
49802         * sysdeps/i386/configure: Likewise.
49803         * sysdeps/mach/configure: Likewise.
49804         * sysdeps/sparc/configure: Likewise.
49805         * sysdeps/x86_64/configure: Likewise.
49806
49807 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49808
49809         [BZ #14812]
49810         * locale/programs/localedef.c (options): Put N_ translation marker
49811         on argument names, not just descriptions.
49812
49813 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49814
49815         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49816
49817 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49818
49819         [BZ #14176]
49820         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49821
49822 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49823
49824         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49825         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49826         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49827         [!BEFORE_ABORT] (before_abort): New function.
49828         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49829         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49830         (writev_for_fatal): New function.
49831         (WRITEV_FOR_FATAL): New macro; call that.
49832         (backtrace_and_maps): New function.
49833         (BEFORE_ABORT): New macro; call that.
49834         (struct str_list): Type removed.
49835         (__libc_message, __libc_fatal): Functions removed.
49836         Include <sysdeps/posix/libc_fatal.c> instead.
49837
49838 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49839
49840         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49841         constants.
49842         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49843         double constants.
49844
49845 2013-03-19  Andreas Schwab  <schwab@suse.de>
49846
49847         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49848         * sysdeps/gnu/configure: Regenerate.
49849
49850         * configure.in: Substitute libc_cv_rtlddir.
49851         * configure: Regenerate.
49852         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49853         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49854         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49855         * elf/Makefile (install-others, CFLAGS-interp.c)
49856         (ldso_install, common-ldd-rewrite): Likewise.
49857         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49858         $(inst_slibdir)/$(rtld-installed-name).
49859         * scripts/rellns-sh: Add -p option.
49860         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49861         for source.
49862
49863 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49864
49865         * manual/nptl.texi: Renamed to ...
49866         * manual/threads.texi: ... this.
49867         * manual/Makefile (chapters): Update.
49868
49869 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49870
49871         [BZ #14812]
49872         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49873         on argument names, not just descriptions.
49874         * malloc/memusagestat.c (options): Likewise.
49875         * nss/getent.c (options): Likewise.
49876
49877 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49878
49879         [BZ #14812]
49880         * iconv/iconv_prog.c (options): Put N_ translation marker
49881         on argument names, not just descriptions.
49882         * iconv/iconvconfig.c (options): Likewise.
49883
49884 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49885
49886         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49887         implementation which is faster on all x86_64 architectures.
49888         Tested on AMD, Intel Nehalem, SNB, IVB.
49889         * sysdeps/x86_64/strnlen.S: Likewise.
49890
49891         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49892         Remove all multiarch strlen and strnlen versions.
49893         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49894         Remove strlen and strnlen related parts.
49895
49896         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49897         Inline strlen part.
49898         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49899
49900         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49901         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49902         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49903         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49904         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49905         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49906
49907 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49908
49909         * manual/memory.texi (Malloc Tunable Parameters):
49910         Sort parameters alphabetically. Add comments for missing entries.
49911
49912 2013-03-17  David S. Miller  <davem@davemloft.net>
49913
49914         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49915
49916 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49917
49918         [BZ #15283]
49919         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49920         for arguments at most half maximum finite value.
49921         * math/libm-test.inc (j0_test): Add more tests.
49922         (j1_test): Likewise.
49923         (y0_test): Likewise.
49924         (y1_test): Likewise.
49925         * sysdeps/i386/fpu/libm-test-ulps: Update.
49926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49927
49928         [BZ #14155]
49929         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49930         1 / x and functions P and Q for arguments above 0x1p256L.
49931         (__ieee754_y0l): Likewise.
49932         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49933         (__ieee754_y1l): Likewise.
49934         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49935         (j1_test): Likewise.
49936         (y0_test): Likewise.
49937         (y1_test): Likewise.
49938
49939 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49940
49941         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49942         variable.
49943
49944 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49945
49946         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49947         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49948         zero since it's initialized to EXEC_PAGESIZE.
49949
49950         * sysdeps/unix/sysv/linux/ldsodefs.h
49951         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49952         * sysdeps/generic/ldsodefs.h: ... here.
49953
49954 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49955
49956         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49957
49958         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49959         math/test-snan.c.
49960         * math/test-snan.c: Renamed from
49961         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49962         * math/Makefile (tests): Add test-snan.
49963         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49964         test-powerpc-snan.
49965
49966         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49967         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49968         functions.
49969         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49970         __builtin_nan family of functions.
49971         * math/libm-test.inc (initialize): Initialize qnan_value with
49972         __builtin_nan family of functions.
49973         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49974         Remove variables.
49975         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49976         Remove functions.
49977         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49978         storage class.  Initialize qNaN_var and sNaN_var with
49979         __builtin_nan and __builtin_nans families of functions,
49980         respectively.
49981
49982         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49983         (sqrt_test): Remove duplicate test with qNaN input.
49984         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49985         (round_test, signbit_test, significand_test): Note missing +/-Inf
49986         as well as qNaN tests.
49987
49988         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49989         qNaN_var.  Fix a few strings, too.
49990         * math/libm-test.inc (nan_value): Rename to qnan_value.
49991         * math/gen-libm-test.pl (%beautify): Adjust to that.
49992         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49993         * math/test-misc.c (main): Likewise.
49994         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49995         to __qnan_bytes, and __qnan_union, respectively.
49996         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49997         Likewise.
49998         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49999         and lqnanval, respectively.
50000         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50001         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50002         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50003         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50004
50005         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50006         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50007         doubles.
50008
50009         * math/test-misc.c (main): Fix copy'n'pastos.
50010         * misc/tst-efgcvt.c (special): Likewise.
50011
50012         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50013         Remove declarations.
50014
50015 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50016
50017         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50018         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50019         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50020         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50021
50022 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50023
50024         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50025         macro to return vdso values correctly in IFUNC implementations.
50026         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50027         Optimization by using IFUNC.
50028
50029 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50030             Richard Henderson  <rth@redhat.com>
50031             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50032
50033         * Makefile.in (bench): New target.
50034         * NEWS: Mention the benchmark framework.
50035         * Rules (bench): Likewise.
50036         (binaries-bench): Generate binaries for functions to
50037         benchmark.
50038         * benchtests/Makefile: New makefile for benchmark tests.
50039         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50040         programs.
50041         * benchtests/exp-inputs: New input file for EXP function.
50042         * benchtests/pow-inputs: New input file for POW function.
50043         * scripts/bench.pl: New script to generate source files for
50044         benchmark programs.
50045
50046 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50047
50048         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50049         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50050         computations on mantissa.  Use macros for rounding and
50051         division.
50052         (denorm): Likewise.
50053         (__dbl_mp): Likewise.
50054         (add_magnitudes): Likewise.
50055         (sub_magnitudes): Likewise.
50056         (__mul): Likewise.
50057         (__sqr): Likewise.
50058         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50059         powers of two in terms of TWOPOW macro.
50060         (mp_no): Make type of mantissa as MANTISSA_T.
50061         [!RADIXI]: Define RADIXI.
50062         [!TWO52]: Define TWO52.
50063         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50064
50065         * manual/nptl.texi (cindex): Modify threads to pthreads.
50066
50067 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50068
50069         * sysdeps/x86_64/preconfigure: Regenerated.
50070
50071 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50072
50073         [BZ #14155]
50074         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50075         0x1p28 and above.
50076         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50077         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50078         0x1p28 and above.
50079         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50080         * math/libm-test.inc (j0_test): Do not allow one spurious
50081         underflow exception.
50082         (y1_test): Likewise.
50083
50084 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50085
50086         * manual/Makefile (chapters): Add nptl.
50087         * manual/debug.texi (Debugging Support): Add link to Threads
50088         chapter.
50089         * manual/nptl.texi: New file.
50090
50091         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50092
50093 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50094
50095         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50096         for non-NULL pointer before the memory validity test. Pointed
50097         out by Holger Brunck <holger.brunck@keymile.com>.
50098
50099 2013-03-13  Andreas Schwab  <schwab@suse.de>
50100
50101         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50102         instead of .os.
50103
50104 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50105
50106         * timezone/zic.c: Update from tzcode 2013b.
50107
50108 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50109
50110         * manual/install.texi (Configuring and compiling):
50111         Mention i686 and i586.
50112         * INSTALL: Regenerate.
50113
50114 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50115
50116         * sysdeps/init_array/elf-init.c: New file.
50117         * csu/elf-init.c
50118         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50119         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50120
50121         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50122         __gmon_start__ as global, but as static with a .preinit_array pointer.
50123         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50124         * sysdeps/init_array/crti.S: New file, empty except for comments.
50125         * sysdeps/init_array/crtn.S: Likewise.
50126
50127 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50128
50129         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50130         definining bcopy.
50131         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50132         Remove Prefer_SSE_for_memop.
50133         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50134         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50135         HAS_PREFER_SSE_FOR_MEMOP.
50136         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50137         memset-x86-64.
50138         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50139         Remove bzero, memset ifunc support.
50140         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50141         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50142         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50143         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50144
50145 2013-03-11  Andreas Schwab  <schwab@suse.de>
50146
50147         [BZ #15234]
50148         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50149         by SHLIB_COMPAT.
50150         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50151         (GLIBC_2.16): Remove pthread_atfork.
50152
50153 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50154
50155         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50156         (ptestcases.h): Likewise.
50157
50158 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50159
50160         * Makeconfig ($(common-objpfx)config.status): Depend on
50161         sysdeps/*/preconfigure{,.in} too.
50162
50163 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50164
50165         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50166         (__free_hook): Use void * instead of __malloc_ptr_t.
50167         (__malloc_hook): Likewise.
50168         (__realloc_hook): Likewise.
50169         (__memalign_hook): Likewise.
50170         (__after_morecore_hook): Likewise.
50171         * malloc/arena.c (save_malloc_hook): Likewise.
50172         (save_free_hook): Likewise.
50173         * malloc/hooks.c (malloc_hook_ini): Likewise.
50174         (realloc_hook_ini): Likewise.
50175         (memalign_hook_ini): Likewise.
50176         * malloc/malloc.c (malloc_hook_ini): Likewise.
50177         (realloc_hook_ini): Likewise.
50178         (memalign_hook_ini): Likewise.
50179         (__free_hook): Likewise.
50180         (__malloc_hook): Likewise.
50181         (__realloc_hook): Likewise.
50182         (__memalign_hook): Likewise.
50183         (__libc_malloc): Likewise.
50184         (__libc_free): Likewise.
50185         (__libc_realloc): Likewise.
50186         (__libc_memalign): Likewise.
50187         (__libc_valloc): Likewise.
50188         (__libc_pvalloc): Likewise.
50189         (__libc_calloc): Likewise.
50190         (__posix_memalign): Likewise.
50191         * malloc/morecore.c (__sbrk): Likewise.
50192         (__default_morecore): Likewise.
50193
50194         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50195
50196         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50197         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50198         __malloc_ptrdiff_t.
50199
50200         * malloc/malloc.h (__malloc_size_t): Remove macro.
50201         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50202         __malloc_size_t.
50203         (old_memalign_hook): Likewise.
50204         (old_realloc_hook): Likewise.
50205         (struct hdr): Likewise.
50206         (flood): Likewise.
50207         (mallochook): Likewise.
50208         (memalignhook): Likewise.
50209         (reallochook): Likewise.
50210         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50211         (tr_old_realloc_hook): Likewise.
50212         (tr_old_memalign_hook): Likewise.
50213         (tr_mallochook): Likewise.
50214         (tr_reallochook): Likewise.
50215         (tr_memalignhook): Likewise.
50216
50217 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50218
50219         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50220         default_ldbl_pack and using as default implementation.
50221         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50222         implementation.
50223         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50224         redundant definition.
50225         (ldbl_insert_mantissa): Likewise.
50226         (ldbl_canonicalize): Likewise.
50227         (ldbl_nearbyint): Likewise.
50228         (ldbl_pack): Rename to ldbl_pack_ppc.
50229         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50230         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50231         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50232
50233 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50234
50235         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50236         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50237         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50238         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50239         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50240         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50241         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50242         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50243
50244 2013-03-07  Andreas Jaeger  <aj@suse.de>
50245
50246         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50247         bits/mman-linux.h.
50248
50249 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50250
50251         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50252         Include mpa.h and declare __MPEXP.
50253         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50254         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50255         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50256         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50257         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50258         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50259         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50260
50261         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50262         (__slowpow): Use long double EXPL and LOGL functions to
50263         compute POW.
50264         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50265         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50266         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50267         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50268         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50269         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50270
50271         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50272         intermediate variable to calculate exponent.
50273         (__sqr): Likewise.
50274         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50275         Likewise.
50276         (__sqr): Likewise.
50277
50278         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50279         [!NO__SQR]: Define __sqr.
50280         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50281         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50282         sysdeps/ieee754/dbl-64/mpa.c.
50283         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50284
50285         [BZ #12723]
50286         * posix/Makefile (tests): Add tst-pathconf.
50287         * posix/tst-pathconf.c: New test case.
50288         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50289         _PC_PIPE_BUF.
50290         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50291
50292 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50293
50294         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50295
50296 2013-03-06  Andreas Jaeger  <aj@suse.de>
50297
50298         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50299         definition via __MAP_ANONYMOUS.
50300
50301         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50302         it's not part of Linux headers.
50303
50304         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50305         (MAP_HUGE_MASK): Define.
50306
50307         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50308         Define.
50309         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50310         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50311         Define.
50312         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50313         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50314         Define.
50315         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50316         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50317         Define.
50318         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50319
50320         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50321         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50322         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50323         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50324         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50325         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50326
50327         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50328         Handle f2fs.
50329
50330         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50331         Handle f2fs and efivarfs.
50332
50333         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50334         f2fs.
50335
50336         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50337         (EFIVARFS_MAGIC): Add.
50338         (F2FS_LINK_MAX): Add.
50339
50340 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50341
50342         * stdio-common/vfprintf.c: Replace __builtin_expect with
50343         __glibc_unlikely.
50344
50345 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50346
50347         [BZ #13550]
50348         * sysdeps/generic/bp-sym.h: Remove file.
50349         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50350         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50351         <bp-sym.h> and <bp-asm.h>.
50352         (__longjmp): Don't use BP_SYM.
50353         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50354         and <bp-asm.h>.
50355         (memcpy): Don't use BP_SYM.
50356         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50357         <bp-sym.h> and <bp-asm.h>.
50358         (memcpy): Don't use BP_SYM.
50359         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50360         <bp-asm.h>.
50361         (memcpy): Don't use BP_SYM.
50362         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50363         <bp-asm.h>.
50364         (memset): Don't use BP_SYM.
50365         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50366         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50367         (__bzero): Don't use BP_SYM.
50368         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50369         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50370         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50371         <bp-sym.h> and <bp-asm.h>.
50372         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50373         pointers.
50374         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50375         <bp-sym.h> and <bp-asm.h>.
50376         (memcpy): Don't use BP_SYM.
50377         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50378         <bp-sym.h> and <bp-asm.h>.
50379         (memset): Don't use BP_SYM.
50380         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50381         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50382         (__bzero): Don't use BP_SYM.
50383         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50384         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50385         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50386         <bp-sym.h> and <bp-asm.h>.
50387         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50388         pointers.
50389         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50390         <bp-sym.h> and <bp-asm.h>.
50391         (memcpy): Don't use BP_SYM.
50392         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50393         <bp-sym.h> and <bp-asm.h>.
50394         (memset): Don't use BP_SYM.
50395         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50396         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50397         (__bzero): Don't use BP_SYM.
50398         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50399         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50400         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50401         <bp-sym.h> and <bp-asm.h>.
50402         (__memchr): Don't use BP_SYM.
50403         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50404         <bp-sym.h> and <bp-asm.h>.
50405         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50406         pointers.
50407         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50408         <bp-sym.h> and <bp-asm.h>.
50409         (memcpy): Don't use BP_SYM.
50410         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50411         <bp-sym.h> and <bp-asm.h>.
50412         (__mempcpy): Don't use BP_SYM.
50413         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50414         <bp-sym.h> and <bp-asm.h>.
50415         (__memrchr): Don't use BP_SYM.
50416         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50417         <bp-sym.h> and <bp-asm.h>.
50418         (memset): Don't use BP_SYM.
50419         (__bzero): Likewise.
50420         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50421         <bp-sym.h> and <bp-asm.h>.
50422         (__rawmemchr): Don't use BP_SYM.
50423         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50424         <bp-sym.h> and <bp-asm.h>.
50425         (__STRCMP): Don't use BP_SYM.
50426         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50427         <bp-sym.h> and <bp-asm.h>.
50428         (strchr): Don't use BP_SYM.
50429         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50430         <bp-sym.h> and <bp-asm.h>.
50431         (__strchrnul): Don't use BP_SYM.
50432         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50433         <bp-sym.h> and <bp-asm.h>.
50434         (strlen): Don't use BP_SYM.
50435         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50436         <bp-sym.h> and <bp-asm.h>.
50437         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50438         pointers.
50439         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50440         <bp-sym.h> and <bp-asm.h>.
50441         (__strnlen): Don't use BP_SYM.
50442         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50443         <bp-sym.h> and <bp-asm.h>.
50444         (__GI__setjmp): Don't use BP_SYM.
50445         (_setjmp): Likewise.
50446         (__sigsetjmp): Likewise.
50447         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50448         (L(start_addresses)): Don't use BP_SYM.
50449         (_start): Likewise.
50450         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50451         <bp-asm.h>.
50452         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50453         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50454         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50455         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50456         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50457         <bp-asm.h>.
50458         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50459         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50460         about bounded pointers.
50461         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50462         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50463         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50464         <bp-asm.h>.
50465         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50466         about bounded pointers.  Remove GKM FIXME comments.
50467         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50468         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50469         <bp-asm.h>.
50470         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50471         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50472         Remove GKM FIXME comments.
50473         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50474         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50475         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50476         <bp-asm.h>.
50477         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50478         about bounded pointers.  Remove GKM FIXME comment.
50479         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50480         and <bp-asm.h>.
50481         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50482         pointers.
50483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50484         <bp-sym.h> and <bp-asm.h>.
50485         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50487         <bp-sym.h> and <bp-asm.h>.
50488         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50489         comment.
50490
50491 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50492
50493         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50494         call free(NULL).
50495
50496 2013-03-05  David S. Miller  <davem@davemloft.net>
50497
50498         * po/es.po: Update from translation team.
50499
50500 2013-03-05  Andreas Jaeger  <aj@suse.de>
50501
50502         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50503         <bits/mman-linux.h>.
50504         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50505         is fine.
50506         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50507         <bits/mman-linux.h> to end of file.
50508         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50509         is fine.
50510         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50511         <bits/mman-linux.h> to end of file.
50512         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50513         is fine.
50514         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50515         <bits/mman-linux.h> to end of file.
50516
50517         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50518         (MCL_CURRENT, MCL_FUTURE): Define here.
50519
50520 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50521
50522         [BZ #15232]
50523         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50524         attribute_hidden.
50525         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50526
50527 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50528
50529         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50530         fourth parameter needed for rt_sigprocmask syscall.
50531         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50532         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50533         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50534         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50535         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50536         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50537
50538 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50539
50540         [BZ #13550]
50541         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50542         comment about bounded pointers.
50543         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50544         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50545
50546 2013-03-04  Andreas Jaeger  <aj@suse.de>
50547
50548         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50549         common definitions.
50550
50551         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50552         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50553         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50554         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50555         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50556         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50557
50558 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50559
50560         [BZ #15055]
50561         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50562         __ieee754_sqrl instead of __sqrl.
50563
50564 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50565
50566         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50567         * sysdeps/powerpc/fpu_control.h: ... here.
50568         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50569         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50570         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50571         * sysdeps/powerpc/bits/mathinline.h: ... here.
50572
50573 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50574
50575         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50576         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50577         to just [NEED_DL_SYSINFO_DSO].
50578         * elf/dl-support.c: Likewise.
50579         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50580         * elf/rtld.c (dl_main): Likewise.
50581         * elf/setup-vdso.h (setup_vdso): Likewise.
50582         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50583         * sysdeps/unix/sysv/linux/dl-sysdep.c
50584         (_dl_discover_osversion): Likewise.
50585
50586 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50587
50588         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50589         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50590
50591 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50592
50593         * NEWS: Mention libm performance improvements and non-x86 PI
50594         futex support.
50595
50596         * csu/libc-start.c (__pthread_initialize_minimal): Change
50597         function arguments.
50598         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50599
50600 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50601
50602         [BZ #13550]
50603         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50604         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50605         <bp-sym.h> and <bp-asm.h>.
50606         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50607         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50608         and <bp-asm.h>.
50609         (memcpy): Don't use BP_SYM.
50610         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50611         <bp-asm.h>.
50612         (__mpn_add_n): Don't use BP_SYM.
50613         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50614         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50615         and <bp-asm.h>.
50616         (__mpn_addmul_1): Don't use BP_SYM.
50617         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50618         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50619         <bp-sym.h>.
50620         (_setjmp): Don't use BP_SYM.
50621         (__novmx_setjmp): Likewise.
50622         (__GI__setjmp): Likewise.
50623         (__vmx_setjmp): Likewise.
50624         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50625         <bp-sym.h>.
50626         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50627         (__bzero): Don't use BP_SYM.
50628         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50629         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50630         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50631         <bp-sym.h> and <bp-asm.h>.
50632         (memcpy): Don't use BP_SYM.
50633         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50634         <bp-sym.h> and <bp-asm.h>.
50635         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50636         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50637         <bp-sym.h> and <bp-asm.h>.
50638         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50639         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50640         <bp-asm.h>.
50641         (__mpn_lshift): Don't use BP_SYM.
50642         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50643         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50644         <bp-asm.h>.
50645         (memset): Don't use BP_SYM.
50646         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50647         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50648         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50649         <bp-asm.h>.
50650         (__mpn_mul_1): Don't use BP_SYM.
50651         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50652         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50653         <bp-sym.h> and <bp-asm.h>.
50654         (memcmp): Don't use BP_SYM.
50655         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50656         <bp-sym.h> and <bp-asm.h>.
50657         (memcpy): Don't use BP_SYM.
50658         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50659         <bp-sym.h> and <bp-asm.h>.
50660         (memset): Don't use BP_SYM.
50661         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50662         <bp-sym.h> and <bp-asm.h>.
50663         (strncmp): Don't use BP_SYM.
50664         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50665         <bp-sym.h> and <bp-asm.h>.
50666         (memcpy): Don't use BP_SYM.
50667         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50668         <bp-sym.h> and <bp-asm.h>.
50669         (memset): Don't use BP_SYM.
50670         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50671         <bp-sym.h> and <bp-asm.h>.
50672         (__memchr): Don't use BP_SYM.
50673         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50674         <bp-sym.h> and <bp-asm.h>.
50675         (memcmp): Don't use BP_SYM.
50676         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50677         <bp-sym.h> and <bp-asm.h>.
50678         (memcpy): Don't use BP_SYM.
50679         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50680         <bp-sym.h> and <bp-asm.h>.
50681         (__mempcpy): Don't use BP_SYM.
50682         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50683         <bp-sym.h> and <bp-asm.h>.
50684         (__memrchr): Don't use BP_SYM.
50685         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50686         <bp-sym.h> and <bp-asm.h>.
50687         (memset): Don't use BP_SYM.
50688         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50689         <bp-sym.h> and <bp-asm.h>.
50690         (__rawmemchr): Don't use BP_SYM.
50691         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50692         <bp-sym.h> and <bp-asm.h>.
50693         (__STRCMP): Don't use BP_SYM.
50694         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50695         <bp-sym.h> and <bp-asm.h>.
50696         (strchr): Don't use BP_SYM.
50697         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50698         <bp-sym.h> and <bp-asm.h>.
50699         (__strchrnul): Don't use BP_SYM.
50700         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50701         <bp-sym.h> and <bp-asm.h>.
50702         (strlen): Don't use BP_SYM.
50703         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50704         <bp-sym.h> and <bp-asm.h>.
50705         (strncmp): Don't use BP_SYM.
50706         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50707         <bp-sym.h> and <bp-asm.h>.
50708         (__strnlen): Don't use BP_SYM.
50709         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50710         <bp-asm.h>.
50711         (__mpn_rshift): Don't use BP_SYM.
50712         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50713         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50714         <bp-sym.h> and <bp-asm.h>.
50715         (__sigsetjmp): Don't use BP_SYM.
50716         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50717         (L(start_addresses)): Don't use BP_SYM.
50718         (_start): Likewise.
50719         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50720         <bp-asm.h>.
50721         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50722         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50723         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50724         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50725         <bp-asm.h>.
50726         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50727         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50728         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50729         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50730         <bp-asm.h>.
50731         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50732         comments.
50733         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50734         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50735         <bp-asm.h>.
50736         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50737         FIXME comments.
50738         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50739         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50740         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50741         <bp-asm.h>.
50742         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50743         comment.
50744         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50745         and <bp-asm.h>.
50746         (strncmp): Don't use BP_SYM,
50747         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50748         <bp-asm.h>.
50749         (__mpn_sub_n): Don't use BP_SYM.
50750         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50751         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50752         and <bp-asm.h>.
50753         (__mpn_submul_1): Don't use BP_SYM.
50754         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50756         <bp-sym.h> and <bp-asm.h>.
50757         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50759         <bp-sym.h> and <bp-asm.h>.
50760         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50761         comment.
50762
50763 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50764
50765         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50766         Use ZK to minimize writes to Z.
50767         (sub_magnitudes): Simplify code a bit.
50768         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50769         Use ZK to minimize writes to Z.
50770         (sub_magnitudes): Simplify code a bit.
50771
50772 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50773
50774         * csu/gmon-start.c: Add special exception to license text.
50775
50776 2013-02-27  Richard Henderson  <rth@redhat.com>
50777
50778         * scripts/config.guess: Update from config.git.
50779         * scripts/config.sub: Likewise.
50780
50781 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50782
50783         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50784
50785         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50786
50787         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50788
50789         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50790
50791         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50792
50793 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50794
50795         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50796         [$(build-shared = yes].
50797
50798 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50799
50800         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50801         (__mul): Reduce iterations for calculating mantissa.
50802
50803         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50804         MPTWO.
50805         (__mpranred): Likewise.
50806
50807         [BZ #15160]
50808         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50809         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50810
50811 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50812
50813         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50814         Define __attribute__.
50815
50816 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50817
50818         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50819         unused.
50820         * posix/regex_internal.h (__attribute): Remove.
50821         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50822         (re_string_context_at): Likewise.
50823         (bitset_not): Use __attribute__ and mark function as possibly
50824         unused.
50825         (bitset_merge): Likewise.
50826         (bitset_mask): Likewise.
50827         (re_string_char_size_at): Likewise.
50828         (re_string_wchar_at): Likewise.
50829         (re_string_elem_size_at): Likewise.
50830
50831 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50832
50833         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50834         code.
50835         (cc32): Likewise.
50836
50837         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50838         (__acr): Likewise.
50839         (__cpy): Likewise.
50840         (norm): Likewise.
50841         (denorm): Likewise.
50842         (__dbl_mp): Likewise.
50843         (add_magnitudes): Likewise.
50844         (sub_magnitudes): Likewise.
50845         (__mul): Likewise.
50846         (__inv): Likewise.
50847
50848         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50849         style.
50850
50851         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50852         style.
50853
50854         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50855         code.
50856
50857         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50858         up changes with default code.
50859         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50860         Likewise.
50861
50862 2013-02-24  Allan McRae  <allan@archlinux.org>
50863
50864         * manual/socket.texi (The Internet Namespace): Order menu items
50865         to match that in the file.
50866
50867         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50868         node listing of the info page menu.
50869
50870 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50871
50872         [BZ #13550]
50873         * sysdeps/i386/bp-asm.h: Remove file.
50874         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50875         (PARMS): Do not use macros from bp-asm.h.
50876         (S1): Likewise.
50877         (S2): Likewise.
50878         (SIZE): Likewise.
50879         (__mpn_add_n): Do not use BP_SYM
50880         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50881         "bp-asm.h".
50882         (PARMS): Do not use macros from bp-asm.h.
50883         (S1): Likewise.
50884         (SIZE): Likewise.
50885         (__mpn_addmul_1): Do not use BP_SYM
50886         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50887         "bp-asm.h".
50888         (PARMS): Do not use macros from bp-asm.h.
50889         (SIGMSK): Likewise.
50890         (_setjmp): Likewise.  Do not use BP_SYM.
50891         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50892         "bp-asm.h".
50893         (PARMS): Do not use macros from bp-asm.h.
50894         (SIGMSK): Likewise.
50895         (setjmp): Likewise.  Do not use BP_SYM.
50896         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50897         "bp-asm.h".
50898         (PARMS): Do not use macros from bp-asm.h.
50899         (__frexp): Do not use BP_SYM.
50900         (frexp): Likewise.
50901         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50902         "bp-asm.h".
50903         (PARMS): Do not use macros from bp-asm.h.
50904         (__frexpf): Do not use BP_SYM.
50905         (frexpf): Likewise.
50906         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50907         "bp-asm.h".
50908         (PARMS): Do not use macros from bp-asm.h.
50909         (__frexpl): Do not use BP_SYM.
50910         (frexpl): Likewise.
50911         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50912         "bp-asm.h".
50913         (PARMS): Do not use macros from bp-asm.h.
50914         (__remquo): Do not use BP_SYM.
50915         (remquo): Likewise.
50916         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50917         "bp-asm.h".
50918         (PARMS): Do not use macros from bp-asm.h.
50919         (__remquof): Do not use BP_SYM.
50920         (remquof): Likewise.
50921         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50922         "bp-asm.h".
50923         (PARMS): Do not use macros from bp-asm.h.
50924         (__remquol): Do not use BP_SYM.
50925         (remquol): Likewise.
50926         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50927         "bp-asm.h".
50928         (PARMS): Do not use macros from bp-asm.h.
50929         (DEST): Likewise.
50930         (SRC): Likewise.
50931         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50932         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50933         "bp-asm.h".
50934         (PARMS): Do not use macros from bp-asm.h.
50935         (strlen): Do not use BP_SYM.
50936         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50937         "bp-asm.h".
50938         (PARMS): Do not use macros from bp-asm.h.
50939         (S1): Likewise.
50940         (S2): Likewise.
50941         (SIZE): Likewise.
50942         (__mpn_add_n): Do not use BP_SYM.
50943         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50944         "bp-asm.h".
50945         (PARMS): Do not use macros from bp-asm.h.
50946         (S1): Likewise.
50947         (SIZE): Likewise.
50948         (__mpn_addmul_1): Do not use BP_SYM.
50949         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50950         weak_alias.
50951         (bzero): Likewise.
50952         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50953         "bp-asm.h".
50954         (PARMS): Do not use macros from bp-asm.h.
50955         (S): Likewise.
50956         (SIZE): Likewise.
50957         (__mpn_lshift): Do not use BP_SYM.
50958         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50959         "bp-asm.h".
50960         (PARMS): Do not use macros from bp-asm.h.
50961         (DEST): Likewise.
50962         (SRC): Likewise.
50963         (LEN): Likewise.
50964         (memcpy): Likewise.  Do not use BP_SYM.
50965         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50966         libc_hidden_def and weak_alias.
50967         (mempcpy): Do not use BP_SYM in weak_alias.
50968         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50969         "bp-asm.h".
50970         (PARMS): Do not use macros from bp-asm.h.
50971         (DEST): Likewise.
50972         (LEN): Likewise.
50973         [!BZERO_P] (CHR): Likewise.
50974         (memset): Likewise.  Do not use BP_SYM.
50975         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50976         "bp-asm.h".
50977         (PARMS): Do not use macros from bp-asm.h.
50978         (S1): Likewise.
50979         (SIZE): Likewise.
50980         (__mpn_mul_1): Do not use BP_SYM.
50981         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50982         "bp-asm.h".
50983         (PARMS): Do not use macros from bp-asm.h.
50984         (S): Likewise.
50985         (SIZE): Likewise.
50986         (__mpn_rshift): Do not use BP_SYM.
50987         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50988         "bp-asm.h".
50989         (PARMS): Do not use macros from bp-asm.h.
50990         (STR): Likewise.
50991         (CHR): Likewise.
50992         (strchr): Likewise.  Do not use BP_SYM.
50993         (index): Do not use BP_SYM in weak_alias.
50994         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50995         "bp-asm.h".
50996         (PARMS): Do not use macros from bp-asm.h.
50997         (DEST): Likewise.
50998         (SRC): Likewise.
50999         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51000         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51001         "bp-asm.h".
51002         (PARMS): Do not use macros from bp-asm.h.
51003         (strlen): Do not use BP_SYM.
51004         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51005         "bp-asm.h".
51006         (PARMS): Do not use macros from bp-asm.h.
51007         (S1): Likewise.
51008         (S2): Likewise.
51009         (SIZE): Likewise.
51010         (__mpn_sub_n): Do not use BP_SYM.
51011         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51012         "bp-asm.h".
51013         (PARMS): Do not use macros from bp-asm.h.
51014         (S1): Likewise.
51015         (SIZE): Likewise.
51016         (__mpn_submul_1): Do not use BP_SYM.
51017         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51018         "bp-asm.h".
51019         (PARMS): Do not use macros from bp-asm.h.
51020         (S1): Likewise.
51021         (S2): Likewise.
51022         (SIZE): Likewise.
51023         (__mpn_add_n): Do not use BP_SYM.
51024         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51025         weak_alias.
51026         (bzero): Likewise.
51027         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51028         "bp-asm.h".
51029         (PARMS): Do not use macros from bp-asm.h.
51030         (BLK2): Likewise.
51031         (LEN): Likewise.
51032         (memcmp): Do not use BP_SYM.
51033         (bcmp): Do not use BP_SYM in weak_alias.
51034         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51035         "bp-asm.h".
51036         (PARMS): Do not use macros from bp-asm.h.
51037         (DEST): Likewise.
51038         (SRC): Likewise.
51039         (LEN): Likewise.
51040         (memcpy): Likewise.  Do not use BP_SYM.
51041         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51042         "bp-asm.h".
51043         (PARMS): Do not use macros from bp-asm.h.
51044         (DEST): Likewise.
51045         (SRC): Likewise.
51046         (LEN): Likewise.
51047         (memmove): Likewise.  Do not use BP_SYM.
51048         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51049         "bp-asm.h".
51050         (PARMS): Do not use macros from bp-asm.h.
51051         (DEST): Likewise.
51052         (SRC): Likewise.
51053         (LEN): Likewise.
51054         (__mempcpy): Likewise.  Do not use BP_SYM.
51055         (mempcpy): Do not use BP_SYM in weak_alias.
51056         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51057         "bp-asm.h".
51058         (PARMS): Do not use macros from bp-asm.h.
51059         (DEST): Likewise.
51060         (LEN): Likewise.
51061         [!BZERO_P] (CHR): Likewise.
51062         (memset): Likewise.  Do not use BP_SYM.
51063         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51064         "bp-asm.h".
51065         (PARMS): Do not use macros from bp-asm.h.
51066         (STR2): Likewise.
51067         (strcmp): Do not use BP_SYM.
51068         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51069         "bp-asm.h".
51070         (PARMS): Do not use macros from bp-asm.h.
51071         (STR): Likewise.
51072         (DELIM): Likewise.
51073         [USE_AS_STRTOK_R] (SAVE): Likewise.
51074         (FUNCTION): Likewise.  Do not use BP_SYM.
51075         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51076         aliases.
51077         (strtok_r): Likewise.
51078         (__GI___strtok_r): Likewise.
51079         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51080         (PARMS): Do not use macros from bp-asm.h.
51081         (S): Likewise.
51082         (SIZE): Likewise.
51083         (__mpn_lshift): Do not use BP_SYM.
51084         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51085         (PARMS): Do not use macros from bp-asm.h.
51086         (STR): Likewise.
51087         (CHR): Likewise.
51088         (__memchr): Do not use BP_SYM.
51089         (memchr): Do not use BP_SYM in weak_alias.
51090         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51091         (PARMS): Do not use macros from bp-asm.h.
51092         (BLK2): Likewise.
51093         (LEN): Likewise.
51094         (memcmp): Do not use BP_SYM.
51095         (bcmp): Do not use BP_SYM in weak_alias.
51096         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51097         (PARMS): Do not use macros from bp-asm.h.
51098         (S1): Likewise.
51099         (SIZE): Likewise.
51100         (__mpn_mul_1): Do not use BP_SYM.
51101         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51102         "bp-asm.h".
51103         (PARMS): Do not use macros from bp-asm.h.
51104         (STR): Likewise.
51105         (CHR): Likewise.
51106         (__rawmemchr): Do not use BP_SYM.
51107         (rawmemchr): Do not use BP_SYM in weak_alias.
51108         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51109         (PARMS): Do not use macros from bp-asm.h.
51110         (S): Likewise.
51111         (SIZE): Likewise.
51112         (__mpn_rshift): Do not use BP_SYM.
51113         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51114         (PARMS): Do not use macros from bp-asm.h.
51115         (SIGMSK): Likewise.
51116         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51117         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51118         (_start): Do not use BP_SYM.
51119         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51120         (PARMS): Do not use macros from bp-asm.h.
51121         (DEST): Likewise.
51122         (SRC): Likewise.
51123         (__stpcpy): Likewise.  Do not use BP_SYM.
51124         (stpcpy): Do not use BP_SYM in weak_alias.
51125         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51126         "bp-asm.h".
51127         (PARMS): Do not use macros from bp-asm.h.
51128         (DEST): Likewise.
51129         (SRC): Likewise.
51130         (LEN): Likewise.
51131         (__stpncpy): Likewise.  Do not use BP_SYM.
51132         (stpncpy): Do not use BP_SYM in weak_alias.
51133         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51134         (PARMS): Do not use macros from bp-asm.h.
51135         (STR): Likewise.
51136         (CHR): Likewise.
51137         (strchr): Likewise.  Do not use BP_SYM.
51138         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51139         "bp-asm.h".
51140         (PARMS): Do not use macros from bp-asm.h.
51141         (STR): Likewise.
51142         (CHR): Likewise.
51143         (__strchrnul): Likewise.  Do not use BP_SYM.
51144         (strchrnul): Do not use BP_SYM in weak_alias.
51145         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51146         "bp-asm.h".
51147         (PARMS): Do not use macros from bp-asm.h.
51148         (STOP): Likewise.
51149         (strcspn): Do not use BP_SYM.
51150         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51151         "bp-asm.h".
51152         (PARMS): Do not use macros from bp-asm.h.
51153         (STR): Likewise.
51154         (STOP): Likewise.
51155         (strpbrk): Likewise.  Do not use BP_SYM.
51156         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51157         "bp-asm.h".
51158         (PARMS): Do not use macros from bp-asm.h.
51159         (STR): Likewise.
51160         (CHR): Likewise.
51161         (strrchr): Likewise.  Do not use BP_SYM.
51162         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51163         (PARMS): Do not use macros from bp-asm.h.
51164         (SKIP): Likewise.
51165         (strspn): Do not use BP_SYM.
51166         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51167         (PARMS): Do not use macros from bp-asm.h.
51168         (STR): Likewise.
51169         (DELIM): Likewise.
51170         (SAVE): Likewise.
51171         (FUNCTION): Likewise.  Do not use BP_SYM.
51172         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51173         aliases.
51174         (strtok_r): Likewise.
51175         (__GI___strtok_r): Likewise.
51176         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51177         (PARMS): Do not use macros from bp-asm.h.
51178         (S1): Likewise.
51179         (S2): Likewise.
51180         (SIZE): Likewise.
51181         (__mpn_sub_n): Do not use BP_SYM.
51182         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51183         "bp-asm.h".
51184         (PARMS): Do not use macros from bp-asm.h.
51185         (S1): Likewise.
51186         (SIZE): Likewise.
51187         (__mpn_submul_1): Do not use BP_SYM.
51188         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51189         <bp-sym.h>.
51190         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51191         and <bp-asm.h>.
51192         (PARMS): Do not use macros from bp-asm.h.
51193         (FLAGS): Likewise.
51194         (PTID): Likewise.
51195         (TLS): Likewise.
51196         (CTID): Likewise.
51197         (__clone): Do not use BP_SYM.
51198         (clone): Do not use BP_SYM in weak_alias.
51199         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51200         and <bp-asm.h>.
51201         (PARMS): Do not use macros from bp-asm.h.
51202         (LEN): Likewise.
51203         (__mmap64): Do not use BP_SYM.
51204         (mmap64): Do not use BP_SYM in weak_alias.
51205         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51206         <bp-sym.h> and <bp-asm.h>.
51207         (PARMS): Do not use macros from bp-asm.h.
51208         (__posix_fadvise64_l64): Do not use BP_SYM.
51209         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51210         (PARMS): Do not use macros from bp-asm.h.
51211         (NSOPS): Likewise.
51212         (semtimedop): Do not use BP_SYM.
51213         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51214         and <bp-asm.h>.
51215
51216 2013-02-21  Allan McRae  <allan@archlinux.org>
51217
51218         * manual/message.texi (Charset conversion in gettext):
51219         Move @end statement to beginning of line.
51220
51221 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51222
51223         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51224         static.
51225         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51226         Likewise.
51227
51228         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51229         (denorm): Likewise.
51230         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51231         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51232
51233 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51234
51235         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51236         tail-call to the resolved function if pltexit isn't needed.
51237
51238 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51239
51240         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51241         or Y being zero as being unlikely.
51242         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51243         Likewise.
51244
51245 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51246
51247         * manual/nss.texi (System Databases and Name Service Switch):
51248         Remove frobnicate @pxref.
51249
51250 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51251
51252         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51253         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51254
51255 2013-02-20  Petr Machata  <pmachata@redhat.com>
51256
51257         * elf/elf.h (R_ARM_TARGET1): New macro.
51258         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51259         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51260         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51261         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51262         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51263         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51264         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51265         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51266         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51267         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51268         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51269         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51270         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51271         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51272         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51273         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51274         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51275         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51276         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51277         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51278         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51279         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51280         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51281         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51282         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51283         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51284         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51285         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51286         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51287         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51288         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51289         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51290         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51291         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51292         (R_ARM_THM_GOT_BREL12): Likewise.
51293         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51294         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51295         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51296         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51297         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51298         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51299         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51300         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51301         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51302
51303 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51304
51305         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51306         __attribute_used__ to __attribute__ ((unused)).
51307
51308 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51309
51310         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51311         powerpc mpa.c.
51312         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51313         comment formatting.
51314         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51315
51316 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51317
51318         [BZ #13550]
51319         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51320         Remove macro.
51321         (ENTER): Remove both macro definitions.
51322         (LEAVE): Likewise.
51323         (CHECK_BOUNDS_LOW): Likewise.
51324         (CHECK_BOUNDS_HIGH): Likewise.
51325         (CHECK_BOUNDS_BOTH): Likewise.
51326         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51327         (RETURN_BOUNDED_POINTER): Likewise.
51328         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51329         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51330         (POP_ERRNO_LOCATION_RETURN): Likewise.
51331         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51332         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51333         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51334         macros.
51335         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51336         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51337         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51338         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51339         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51340         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51341         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51342         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51343         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51344         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51345         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51346         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51347         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51348         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51349         removed macros.
51350         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51351         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51352         macros.
51353         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51354         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51355         * sysdeps/i386/i586/memset.S (memset): Likewise.
51356         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51357         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51358         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51359         macros.
51360         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51361         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51362         Change uses of L(2) to L(out).
51363         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51364         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51365         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51366         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51367         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51368         removed macros.
51369         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51370         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51371         macros.
51372         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51373         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51374         (RETURN): Do not use macro LEAVE.
51375         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51376         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51377         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51378         * sysdeps/i386/i686/memset.S (memset): Likewise.
51379         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51380         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51381         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51382         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51383         Likewise.
51384         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51385         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51386         L(1_2) and L(1_3) into L(1).
51387         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51388         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51389         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51390         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51391         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51392         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51393         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51394         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51395         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51396         macros.
51397         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51398         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51399         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51400         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51401         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51402         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51403         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51404         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51405         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51406         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51407         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51408         * sysdeps/i386/strspn.S (strspn): Likewise.
51409         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51410         conditional code.
51411         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51412         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51413         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51414         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51415         L(1_3) into L(1_1).
51416         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51417         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51418         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51419         macros.
51420         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51421
51422 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51423
51424         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51425         macro.
51426
51427 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51428
51429         * math/atest-exp.c (exp_mpn): Remove ROUND.
51430         * math/atest-exp2.c (exp_mpn): Likewise.
51431         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51432
51433         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51434         * stdlib/tst-tls-atexit-lib.c: Likewise.
51435         * stdlib/tst-tls-atexit.c: Likewise.
51436
51437 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51438
51439         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51440         and __attribute_alloc_size__.
51441
51442 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51443
51444         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51445         __attribute_alloc_size__.
51446         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51447         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51448
51449 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51450
51451         * include/programs/xmalloc.h: New file.
51452         * catgets/gencat.c: Include it.
51453         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51454         * elf/pldd.c: Likewise.
51455         * iconv/iconv_charmap.c: Likewise.
51456         * iconv/iconvconfig.c: Likewise.
51457         * iconv/strtab.c: Likewise.
51458         * locale/programs/locale.c: Likewise.
51459         * locale/programs/localedef.h: Likewise.
51460         * locale/programs/simple-hash.c: Likewise.
51461         * nscd/nscd.h: Likewise.
51462         * nss/makedb.c: Likewise.
51463         * sysdeps/generic/ldconfig.h: Likewise.
51464
51465 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51466
51467         * Versions.def: Add GLIBC_2.18.
51468         * include/link.h (struct link_map): New member l_tls_dtor_count.
51469         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51470         (__call_tls_dtors): Likewise.
51471         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51472         __cxa_thread_atexit_impl.
51473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51474         Likewise.
51475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51476         Likewise.
51477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51478         Likewise.
51479         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51480         Likewise.
51481         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51483         Likewise.
51484         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51485         Likewise.
51486         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51487         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51488         Likewise.
51489         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51490         (tests): Add test case tst-tls-atexit.
51491         (modules-names): Add shared library for tst-tls-atexit.
51492         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51493         (GLIBC_PRIVATE): Add __call_tls_dtors.
51494         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51495         for libstdc++.
51496         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51497         * stdlib/tst-tls-atexit.c: New test case.
51498         * stdlib/tst-tls-atexit-lib.c: New test case.
51499
51500         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51501
51502         * elf/Versions (ld): Add _dl_find_dso_for_object.
51503         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51504         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51505         (dl_open_worker): Use _dl_find_dso_for_object.
51506         * elf/dl-sym.c (do_sym): Likewise.
51507         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51508
51509 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51510
51511         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51512         Syntactic changes only.
51513         (_dl_runtime_profile): Do a tail-call to the resolved function.
51514
51515 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51516
51517         [BZ #13550]
51518         * sysdeps/x86_64/bp-asm.h: Remove file.
51519         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51520         <bp-sym.h> and <bp-asm.h>.
51521         (__clone): Do not use BP_SYM.
51522         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51523         <bp-sym.h> and <bp-asm.h>.
51524         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51525         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51526         "bp-asm.h".
51527         (_setjmp): Do not use BP_SYM.
51528         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51529         "bp-asm.h".
51530         (setjmp): Do not use BP_SYM.
51531         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51532         libc_hidden_def.
51533         (mempcpy): Do not use BP_SYM in weak_alias.
51534         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51535         "bp-asm.h".
51536         (strchr): Do not use BP_SYM.
51537         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51538         "bp-asm.h".
51539         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51540         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51541         (_start): Do not use BP_SYM.
51542         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51543         "bp-asm.h".
51544         (strcat): Do not use BP_SYM.
51545         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51546         "bp-asm.h".
51547         (STRCMP): Do not use BP_SYM.
51548         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51549         "bp-asm.h".
51550         (STRCPY): Do not use BP_SYM.
51551         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51552         "bp-asm.h".
51553         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51554         "bp-asm.h".
51555         (FUNCTION): Do not use BP_SYM.
51556         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51557         weak_alias.
51558         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51559
51560 2013-02-17  Andreas Jaeger  <aj@suse.de>
51561
51562         * time/Versions: Sort entries.
51563         * string/Versions: Likewise.
51564         * resolv/Versions: Likewise.
51565         * posix/Versions: Likewise.
51566         * iconv/Versions: Likewise.
51567         * elf/Versions: Likewise.
51568         * wcsmbs/Versions: Likewise.
51569
51570 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51571
51572         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51573         loop termination condition.
51574
51575         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51576         variable to calculate EZ.
51577         (__sqr): Likewise.
51578
51579         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51580         the lower precision input.
51581
51582 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51583
51584         [BZ #13550]
51585         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51586         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51587         (run-via-rtld-prefix): Do not handle %-bp tests.
51588         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51589         (all-object-suffixes): Remove .ob.
51590         (bppfx): Remove variable.
51591         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51592         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51593         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51594         [$(build-bounded) = yes] (libtype.ob): Likewise.
51595         * Makerules (elide-routines.ob): Remove variable.
51596         (do-tests-clean): Do not handle *-bp.out.
51597         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51598         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51599         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51600         (tests): Do not include $(tests-bp.out).
51601         (xtests): Do not include $(xtests-bp.out).
51602         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51603         [$(build-bounded) = yes] ($(addprefix
51604         $(objpfx),$(binaries-bounded))): Remove rule.
51605         ($(objpfx)%-bp.out): Remove rule.
51606         * config.make.in (build-bounded): Remove variable.
51607         * crypt/Makefile [$(build-bounded) = yes]
51608         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51609         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51610         append to variable.
51611         [$(build-bounded) = yes] (install-lib): Likewise.
51612         [$(build-bounded) = yes] (generated): Likewise.
51613         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51614         Remove rule.
51615         * intl/Makefile [$(build-bounded) = yes]
51616         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51617         * math/Makefile [$(build-bounded) = yes]
51618         ($(tests:%=$(objpfx)%-bp): Likewise.
51619         * misc/Makefile [$(build-bounded) = yes]
51620         ($(objpfx)tst-tsearch-bp): Likewise.
51621         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51622         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51623         Remove dependency.
51624         * string/Makefile (o-objects.ob): Remove variable.
51625         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51626         (CFLAGS-.ob): Remove variable.
51627         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51628         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51629         both definitions of variable.
51630         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51631         (ASFLAGS-.ob): Remove variable.
51632
51633 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51634
51635         [BZ #13550]
51636         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51637         Remove __BOUNDED_POINTERS__ from condition.
51638         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51639         * string/bits/string2.h [!__NO_STRING_INLINES &&
51640         !__BOUNDED_POINTERS__]: Likewise.
51641         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51642         Likewise.
51643         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51644         Remove conditional code.
51645         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51646         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51647         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51648         condition.
51649
51650         [BZ #13550]
51651         * csu/libc-start.c: Do not include <bp-sym.h>.
51652         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51653         * elf/dl-open.c: Do not include <bp-sym.h>.
51654         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51655         * math/fegetenv.c: Do not include <bp-sym.h>.
51656         (fegetenv): Do not use BP_SYM in versioned symbols.
51657         * nptl/sysdeps/pthread/bits/libc-lockP.h
51658         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51659         <bp-sym.h>.
51660         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51661         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51662         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51663         (__pthread_mutex_destroy): Likewise.
51664         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51665         (__pthread_mutex_lock): Likewise.
51666         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51667         (__pthread_mutex_trylock): Likewise.
51668         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51669         (__pthread_mutex_unlock): Likewise.
51670         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51671         (__pthread_mutexattr_init): Likewise.
51672         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51673         (__pthread_mutexattr_destroy): Likewise.
51674         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51675         (__pthread_mutexattr_settype): Likewise.
51676         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51677         (__pthread_rwlock_init): Likewise.
51678         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51679         (__pthread_rwlock_destroy): Likewise.
51680         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51681         (__pthread_rwlock_rdlock): Likewise.
51682         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51683         (__pthread_rwlock_tryrdlock): Likewise.
51684         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51685         (__pthread_rwlock_wrlock): Likewise.
51686         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51687         (__pthread_rwlock_trywrlock): Likewise.
51688         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51689         (__pthread_rwlock_unlock): Likewise.
51690         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51691         (__pthread_key_create): Likewise.
51692         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51693         (__pthread_setspecific): Likewise.
51694         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51695         (__pthread_getspecific): Likewise.
51696         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51697         Likewise.
51698         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51699         (_pthread_cleanup_push_defer): Likewise.
51700         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51701         (_pthread_cleanup_pop_restore): Likewise.
51702         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51703         (pthread_setcancelstate): Likewise.
51704         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51705         <bp-sym.h>.
51706         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51707         (memchr): Do not use BP_SYM in weak_alias.
51708         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51709         (fegetenv): Do not use BP_SYM in versioned symbols.
51710         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51711         (fesetenv): Do not use BP_SYM in versioned symbols.
51712         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51713         (feupdateenv): Do not use BP_SYM in versioned symbols.
51714         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51715         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51716         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51717         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51718         (open64): Do not use BP_SYM in weak_alias.
51719         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51720         (fegetenv): Do not use BP_SYM in versioned symbols.
51721         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51722         (fesetenv): Do not use BP_SYM in versioned symbols.
51723         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51724         (feupdateenv): Do not use BP_SYM in versioned symbols.
51725         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51726         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51727         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51728         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51729         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51730         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51731         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51732         <bp-sym.h>.
51733         (__libc_start_main): Do not use BP_SYM.
51734
51735 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51736
51737         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51738         redundant return line.
51739         (norm): Likewise.
51740         (denorm): Likewise.
51741         (dbl_mp): Likewise.
51742         (sub_magnitudes): Likewise.
51743         (__add): Likewise.
51744         (__sub): Likewise.
51745         (__mul): Likewise.
51746         (__inv): Likewise.
51747         (__dvd): Likewise.
51748         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51749         (norm): Likewise.
51750         (denorm): Likewise.
51751         (dbl_mp): Likewise.
51752         (sub_magnitudes): Likewise.
51753         (__add): Likewise.
51754         (__sub): Likewise.
51755         (__mul): Likewise.
51756         (__inv): Likewise.
51757         (__dvd): Likewise.
51758
51759         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51760         instead of __mul.
51761         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51762         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51763         (cc32): Likewise.
51764
51765         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51766         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51767         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51768         of __mul for squares.
51769         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51770         function
51771         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51772         Likewise.
51773         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51774         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51775
51776 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51777
51778         [BZ #13550]
51779         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51780         code.
51781         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51782         prototype or function definition.  Rename ubp_* variables and
51783         parameters.  Remove argv definitions conditional on
51784         [__BOUNDED_POINTERS__].
51785         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51786         * elf/dl-runtime.c (_dl_fixup): Likewise.
51787         * include/set-hooks.h (RUN_HOOK): Likewise.
51788         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51789         definition.
51790         * string/strcpy.c (strcpy): Do not use __unbounded.
51791         * sysdeps/generic/frame.h (struct layout): Likewise.
51792         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51793         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51794         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51795         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51796         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51797         (__backtrace): Likewise.
51798         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51799         use __ptrvalue.
51800         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51801         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51802         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51803         Likewise.
51804         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51805         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51806         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51807         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51808         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51809         Do not use __unbounded.
51810         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51811         Rename __unboundedrlimits parameter to rlimits in prototype.
51812         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51813         Do not use __unbounded.
51814         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51815         not use __ptrvalue.
51816         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51817         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51818         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51819         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51820         __ptrvalue or __unbounded.
51821         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51822         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51823         use __unbounded.
51824         (__new_msgctl): Do not use __ptrvalue.
51825         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51826         __unbounded.
51827         (__libc_msgrcv): Do not use __ptrvalue.
51828         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51829         startup_info): Do not use __unbounded.
51830         (__libc_start_main): Likewise.  Rename ubp_* variables and
51831         parameters.  Remove argv definitions conditional on
51832         [__BOUNDED_POINTERS__].
51833         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51834         __ptrvalue.
51835         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51836         use __unbounded.
51837         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51838         or __ptrvalue.
51839         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51840         use __unbounded.
51841         (__new_shmctl): Do not use __ptrvalue.
51842         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51843         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51844         Likewise.
51845         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51846         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51847         (__libc_sigaction): Likewise.
51848         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51849         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51850         Likewise.
51851         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51852
51853 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51854
51855         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51856
51857         * string/mempcpy.c: Implement by calling memcpy.
51858
51859 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51860
51861         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51862
51863         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51864         evaluation.
51865
51866         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51867         values in the mantissa.
51868
51869         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51870         minimize writes to Z.
51871         (sub_magnitudes): Simplify code a bit.
51872
51873 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51874
51875         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51876         from the message.  The linker prefixes all warnings with that already.
51877
51878 2013-02-12  Andreas Schwab  <schwab@suse.de>
51879
51880         [BZ #15078]
51881         * posix/regexec.c (extend_buffers): Add parameter min_len.
51882         (check_matching): Pass minimum needed length.
51883         (clean_state_log_if_needed): Likewise.
51884         (get_subexp): Likewise.
51885         * posix/Makefile (tests): Add bug-regex34.
51886         (bug-regex34-ENV): Define.
51887         * posix/bug-regex34.c: New file.
51888
51889         [BZ #11561]
51890         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51891         elements compare against the byte sequence of it, not its name.
51892         * posix/Makefile (tests): Add bug-regex35.
51893         (bug-regex35-ENV): Define.
51894         * posix/bug-regex35.c: New file.
51895
51896 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51897
51898         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51899         comment.
51900         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51901         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51902         (CHECK_EOL): Add undef.
51903
51904 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51905
51906         * bits/stdlib-bsearch.h: New file.
51907         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51908         * stdlib/stdlib.h: Likewise.
51909
51910 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51911
51912         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51913         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51914         declaration.
51915         * manual/search.texi (Array Search Function): Add missing const in
51916         lfind prototype.
51917         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51918         declaration to use rlim_t.
51919         (Basic Scheduling Functions): Remove erroneous const from
51920         sched_getparam prototype.  Remove erroneous * from
51921         sched_get_priority_max and sched_get_priority_min prototypes.
51922         (Resource Usage): Fix summary @comment on vtimes to refer to
51923         sys/vtimes.h rather than vtimes.h.
51924         Add missing *s in vtimes prototype.
51925         (Limits on Resources): Fix ulimit prototype to return long int.
51926         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51927         prototypes to use long int rather than double.
51928         (BSD Random): Fix initstate and setstate to use char *, not void *.
51929         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51930         prototype to make second argument 'struct aiocb64 *const[]'.
51931         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51932         (Status of AIO Operations): Remove erroneous const in aio_return and
51933         aio_return64 prototypes.
51934         (Synchronizing I/O): Fix sync prototype to return void.
51935         * manual/startup.texi (Suboptions): Remove an erroneous const in
51936         getsubopt prototype.
51937         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51938         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51939         use size_t rather than int.
51940         (Scanning All Users): Likewise for getpwent_r.
51941         (Setting Groups): Add missing const to setgroups prototype.
51942         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51943         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51944         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51945         'const void *' rather than 'const char *'.
51946         (Host Address Functions): Likewise for inet_ntop.
51947         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51948         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51949         ssize_t for return value.
51950         (Sending Data): Likewise for send, sendto, sendmsg.
51951         (Socket Option Functions): Add a missing const in setsockopt prototype.
51952         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51953         use wchar_t for the argument.
51954         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51955         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51956         take no arguments.
51957         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51958         double/float/long double for second argument.
51959         Fix return types of significand, significandf, significandl.
51960         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51961         argument in fchmod prototype.
51962         (File Owner): Use uid_t and gid_t in fchown prototype.
51963         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51964         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51965         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51966         use 'const struct dirent **' as argument types to CMP function pointer
51967         argument.
51968         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51969         (File Times): Fix summary magic @comment for struct utimbuf and utime
51970         to refer to utime.h, not time.h.
51971         * manual/string.texi (Argz Functions): Add missing const in
51972         argz_extract and argz_next prototypes.
51973         (Finding Tokens in a String): Likewise for basename.
51974         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51975         (Copying and Concatenation): Fix typo in wmemmove prototype.
51976         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51977         (Signal Stack): Remove erroneous const in sigstack prototype.
51978         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51979         prototype.
51980         (Simple Calendar Time): Likewise for stime.
51981         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51982         prototype.
51983         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51984         say sys/sysctl.h instead.
51985         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51986         and vsyslog prototypes.
51987
51988 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51989
51990         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51991         Remove.
51992
51993 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51994
51995         * misc/sys/mman.h: Fix typo in mremap comment.
51996
51997 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51998
51999         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52000         the '\0' terminator.
52001
52002 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52003
52004         [BZ #13550]
52005         * debug/segfault.c: Don't include <bp-checks.h>.
52006         * sysdeps/generic/bp-checks.h: Remove file.
52007         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52008         (__GETDENTS): Don't use CHECK_N.
52009         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52010         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52011         (__getgroups): Don't use CHECK_N.
52012         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52013         (setgroups): Don't use CHECK_N.
52014         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52015         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52016         (__libc_msgrcv): Don't use CHECK_N.
52017         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52018         (__libc_msgsnd): Don't use CHECK_N.
52019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52020         <bp-checks.h>.
52021         (__libc_pread): Don't use CHECK_N.
52022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52023         include <bp-checks.h>.
52024         (__libc_pread64): Don't use CHECK_N.
52025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52026         include <bp-checks.h>.
52027         (__libc_pwrite): Don't use CHECK_N.
52028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52029         include <bp-checks.h>.
52030         (__libc_pwrite64): Don't use CHECK_N.
52031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52032         <bp-checks.h>.
52033         (__libc_pread): Don't use CHECK_N.
52034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52035         include <bp-checks.h>.
52036         (__libc_pread64): Don't use CHECK_N.
52037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52038         include <bp-checks.h>.
52039         (__libc_pwrite): Don't use CHECK_N.
52040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52041         include <bp-checks.h>.
52042         (__libc_pwrite64): Don't use CHECK_N.
52043         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52044         (do_pread): Don't use CHECK_N.
52045         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52046         (do_pread64): Don't use CHECK_N.
52047         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52048         (do_pwrite): Don't use CHECK_N.
52049         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52050         (do_pwrite64): Don't use CHECK_N.
52051         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52052         (__libc_readv): Don't use CHECK_N.
52053         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52054         (semop): Don't use CHECK_N.
52055         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52056         <bp-checks.h>.
52057         (semtimedop): Don't use CHECK_N.
52058         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52059         (__libc_pread): Don't use CHECK_N.
52060         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52061         <bp-checks.h>.
52062         (__libc_pread64): Don't use CHECK_N.
52063         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52064         <bp-checks.h>.
52065         (__libc_pwrite): Don't use CHECK_N.
52066         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52067         <bp-checks.h>.
52068         (__libc_pwrite64): Don't use CHECK_N.
52069         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52070         <bp-checks.h>.
52071         (__libc_msgrcv): Don't use CHECK_N.
52072         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52073         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52074         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52075         (__libc_writev): Don't use CHECK_N.
52076
52077 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52078
52079         * string/strcpy.c: Removed unused variable.
52080
52081         * Makeconfig (+sysdep-includes): Define with := rather than =.
52082         Use an existing include/ subdir of each sysdeps dir before it.
52083
52084 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52085
52086         * nscd/connection.c (register_traced_file): Comment function.
52087         [HAVE_INOTIFY] (union __inev): Define.
52088         [HAVE_INOTIFY] (inotify_check_files): New function.
52089         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52090         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52091         clear_db_cache.
52092         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52093
52094 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52095
52096         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52097         loaded if not already and that a failure is permanent.
52098
52099 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52100
52101         [BZ #15006]
52102         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52103         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52104
52105 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52106
52107         [BZ #13550]
52108         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52109         (CHECK_1_NULL_OK): Likewise.
52110         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52111         (__fxstat): Do not use CHECK_1.
52112         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52113         <bp-checks.h>.
52114         (___fxstat64): Do not use CHECK_1.
52115         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52116         <bp-checks.h>.
52117         (__fxstatat): Do not use CHECK_1.
52118         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52119         <bp-checks.h>.
52120         (__fxstatat64): Do not use CHECK_1.
52121         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52122         <bp-checks.h>.
52123         (__fxstat): Do not use CHECK_1.
52124         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52125         <bp-checks.h>.
52126         (__fxstatat): Do not use CHECK_1.
52127         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52128         <bp-checks.h>.
52129         (__getresgid): Do not use CHECK_1.
52130         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52131         <bp-checks.h>.
52132         (__getresuid): Do not use CHECK_1.
52133         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52134         <bp-checks.h>.
52135         (__lxstat): Do not use CHECK_1.
52136         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52137         <bp-checks.h>.
52138         (__old_msgctl): Do not use CHECK_1.
52139         (__new_msgctl): Likewise.
52140         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52141         <bp-checks.h>.
52142         (__new_setrlimit): Do not use CHECK_1.
52143         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52144         <bp-checks.h>.
52145         (__old_shmctl): Do not use CHECK_1.
52146         (__new_shmctl): Likewise.
52147         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52148         <bp-checks.h>.
52149         (__xstat): Do not use CHECK_1.
52150         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52151         (__lxstat): Do not use CHECK_1.
52152         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52153         <bp-checks.h>.
52154         (___lxstat64): Do not use CHECK_1.
52155         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52156         (__old_msgctl): Do not use CHECK_1.
52157         (__new_msgctl): Likewise.
52158         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52159         <bp-checks.h>.
52160         (__gettimeofday): Do not use CHECK_1.
52161         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52162         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52163         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52164         <bp-checks.h>.
52165         (__gettimeofday): Do not use CHECK_1.
52166         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52167         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52168         (__new_shmctl): Do not use CHECK_1.
52169         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52170         <bp-checks.h>.
52171         (do_sigtimedwait): Do not use CHECK_1.
52172         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52173         <bp-checks.h>.
52174         (do_sigwaitinfo): Do not use CHECK_1.
52175         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52176         <bp-checks.h>.
52177         (msgctl): Do not use CHECK_1.
52178         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52179         <bp-checks.h>.
52180         (shmctl): Do not use CHECK_1.
52181         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52182         (ustat): Do not use CHECK_1.
52183         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52184         <bp-checks.h>.
52185         (__fxstat): Do not use CHECK_1.
52186         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52187         <bp-checks.h>.
52188         (__fxstatat): Do not use CHECK_1.
52189         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52190         <bp-checks.h>.
52191         (__lxstat): Do not use CHECK_1.
52192         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52193         <bp-checks.h>.
52194         (__xstat): Do not use CHECK_1.
52195         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52196         (__xstat): Do not use CHECK_1.
52197         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52198         (___xstat64): Do not use CHECK_1.
52199
52200         [BZ #13550]
52201         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52202         definitions.
52203         (CHECK_BOUNDS_HIGH): Likewise.
52204         * string/strcpy.c: Do not include <bp-checks.h>.
52205         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52206
52207 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52208
52209         * nscd/nscd-client.h (__nscd_drop_map_ref):
52210         Add __attribute__ ((unused)).
52211         * nis/nss-nisplus.h (niserr2nss): Likewise.
52212
52213         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52214         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52215
52216         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52217         Remove inline keyword.
52218         * include/rounding-mode.h (round_away): Likewise.
52219         * libio/wfileops.c (adjust_wide_data): Likewise.
52220         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52221         (__m128i_strloadu_tolower): Likewise.
52222         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52223         (__m128i_strloadu_tolower): Likewise.
52224         * time/mktime.c (ydhms_diff): Likewise.
52225         * locale/elem-hash.h (elem_hash): Likewise.
52226         * locale/setlocale.c (setdata): Likewise.
52227         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52228         (re_string_wchar_at): Likewise.
52229         (bitset_not, bitset_merge, bitset_mask): Likewise.
52230         [!(__GNUC__ > 3)] (inline): Remove macro.
52231         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52232         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52233         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52234         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52235         * string/memcmp.c (memcmp_bytes): Likewise.
52236         * locale/programs/locarchive.c (compute_hashval): Likewise.
52237         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52238         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52239         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52240         * nss/getent.c (print_rpc, print_protocols): Likewise.
52241         (print_passwd, print_group, print_aliases): Likewise.
52242         * nis/nss-nisplus.h (niserr2nss): Likewise.
52243         * nscd/connections.c (restart_p): Likewise.
52244         Change return type to bool.
52245
52246 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52247
52248         * Makeconfig (all-Depend-files): Add existing
52249         $(sorted-subdirs:=/Depend) files.
52250         (all-subdirs): Remove nss.
52251         * sysdeps/unix/inet/Subdirs: Add it here instead.
52252         * hesiod/Depend: New file.
52253
52254         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52255         instead of calling alloca.
52256
52257         * io/lseek.c (__lseek): Rename to __libc_lseek.
52258         Define __lseek as an alias.
52259
52260         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52261
52262 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52263
52264         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52265         else clause and remove check for non-standard endianness.
52266
52267 2013-02-04  David S. Miller  <davem@davemloft.net>
52268
52269         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52270
52271 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52272
52273         [BZ #13550]
52274         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52275         (__ubp_memchr): Remove prototype.
52276         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52277         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52278         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52279         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52280         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52281         Remove alias.
52282         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52283         (__ubp_memchr): Likewise.
52284         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52285         (__ubp_memchr): Likewise.
52286         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52287         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52288         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52289         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52290         CHECK_STRING.
52291         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52292         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52293         (__getcwd): Do not use CHECK_STRING.
52294         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52295         <bp-checks.h>.
52296         (__real_chown): Do not use CHECK_STRING.
52297         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52298         <bp-checks.h>.
52299         (fchownat): Do not use CHECK_STRING.
52300         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52301         CHECK_STRING.
52302         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52303         <bp-checks.h>.
52304         (__lchown): Do not use CHECK_STRING.
52305         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52306         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52307         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52308         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52310         include <bp-checks.h>.
52311         (truncate64): Do not use CHECK_STRING.
52312         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52313         <bp-checks.h>.
52314         (__real_chown): Do not use CHECK_STRING.
52315         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52316         <bp-checks.h>.
52317         (__lchown): Do not use CHECK_STRING.
52318         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52319         <bp-checks.h>.
52320         (__chown): Do not use CHECK_STRING.
52321         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52322         <bp-checks.h>.
52323         (truncate64): Do not use CHECK_STRING.
52324         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52325         Likewise.
52326         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52327         (__xmknod): Do not use CHECK_STRING.
52328         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52329         <bp-checks.h>.
52330         (__xmknodat): Do not use CHECK_STRING.
52331         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52332         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52333
52334 2013-02-04  Andreas Schwab  <schwab@suse.de>
52335
52336         [BZ #14142]
52337         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52338         * include/netdb.h: Likewise for h_errno.
52339         * elf/tst-stackguard1.c: Include <tls.h>.
52340
52341 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52342
52343         * elf/link.h (struct link_map): Extend the l_addr comment.
52344         * include/link.h (struct link_map): Likewise.
52345
52346 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52347
52348         [BZ #13550]
52349         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52350         (BOUNDED_1): Remove macro.
52351         * debug/backtrace.c: Don't include <bp-checks.h>.
52352         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52353         (__backtrace): Likewise.
52354         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52355         <bp-checks.h>.
52356         (__backtrace): Don't use BOUNDED_1.
52357         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52358         <bp-checks.h>.
52359         (__backtrace): Don't use BOUNDED_1.
52360         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52361         (__backtrace): Don't use BOUNDED_1.
52362         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52363         (shmat): Don't use BOUNDED_N.
52364
52365 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52366
52367         [BZ #13550]
52368         * sysdeps/generic/bp-start.h: Remove file.
52369         * csu/libc-start.c: Don't include <bp-start.h>.
52370         (LIBC_START_MAIN): Set up __environ directly instead of using
52371         INIT_ARGV_and_ENVIRON.
52372         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52373         <bp-start.h>.
52374
52375         [BZ #13550]
52376         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52377         definitions.
52378         (CHECK_FCNTL): Likewise.
52379         (CHECK_N_PAGES): Likewise.
52380
52381         [BZ #13550]
52382         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52383         definitions.
52384         (CHECK_SIGSET_NULL_OK): Likewise.
52385         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52386         <bp-checks.h>.
52387         (sigpending): Don't use CHECK_SIGSET.
52388         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52389         <bp-checks.h>.
52390         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52391         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52392         <bp-checks.h>.
52393         (do_sigsuspend): Don't use CHECK_SIGSET.
52394         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52395         use CHECK_SIGSET.
52396         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52397         (do_sigwait): Don't use CHECK_SIGSET.
52398         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52399         use CHECK_SIGSET.
52400         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52401         include <bp-checks.h>.
52402         (sigpending): Don't use CHECK_SIGSET.
52403         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52404         include <bp-checks.h>.
52405         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52406         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52407         <bp-checks.h>.
52408         (sigpending): Don't use CHECK_SIGSET.
52409         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52410         <bp-checks.h>.
52411         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52412
52413         [BZ #13550]
52414         * sysdeps/generic/bp-semctl.h: Remove file.
52415         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52416         <bp-checks.h> and <bp-semctl.h>.
52417         (__old_semctl): Don't use CHECK_SEMCTL.
52418         (__new_semctl): Likewise.
52419         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52420         and <bp-semctl.h>.
52421         (__old_semctl): Don't use CHECK_SEMCTL.
52422         (__new_semctl): Likewise.
52423         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52424         <bp-checks.h> and <bp-semctl.h>.
52425         (__old_semctl): Don't use CHECK_SEMCTL.
52426         (__new_semctl): Likewise.
52427         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52428         <bp-checks.h> and <bp-semctl.h>.
52429         (semctl): Don't use CHECK_SEMCTL.
52430
52431         [BZ #13550]
52432         * Makerules (elide-bp-thunks): Remove variable.
52433         (elide-routines.oS): Don't use $(elide-bp-thunks).
52434         (elide-routines.os): Likewise.
52435         (elide-routines.o): Likewise.
52436         (elide-routines.op): Likewise.
52437         (elide-routines.og): Likewise.
52438         (objects): Don't use $(bp-thunks).
52439         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52440         include.
52441         (common-generated): Do not add s-proto-bp.d.
52442         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52443         (int): Likewise.
52444         (typ): Likewise.
52445         Do not generate makefile rules for bounded-pointer thunks.
52446         * sysdeps/generic/bp-thunks.h: Remove file.
52447         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52448         * sysdeps/unix/s-proto-bp.S: Likewise.
52449
52450         [BZ #15062]
52451         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52452         parts of result separately when argument is not close to line from
52453         -i to i and one part of argument is small.
52454         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52455         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52456         * math/libm-test.inc (cacos_test): Add more tests.
52457         (casin_test): Likewise.
52458         (casinh_test): Likewise.
52459         * sysdeps/i386/fpu/libm-test-ulps: Update.
52460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52461
52462 2013-01-31  David S. Miller  <davem@davemloft.net>
52463
52464         * po/de.po: Update from translation team.
52465
52466 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52467
52468         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52469
52470 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52471
52472         * configure.in (_AC_PROG_CC_C89): New definition.
52473         * configure: Regenerate.
52474
52475         * configure.in (AC_PROG_CPP): New definition.
52476         * configure: Regenerate.
52477
52478 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52479
52480         * debug/tst-backtrace.h: New file.
52481         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52482         (ret): Remove variable.
52483         (x): Likewise.
52484         (FAIL): Remove macro.
52485         (NO_INLINE): Likewise.
52486         (fn1): Use match function instead of strstr.
52487         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52488         (ret): Remove variable.
52489         (x): Likewise.
52490         (FAIL): Remove macro.
52491         (NO_INLINE): Likewise.
52492         (fn): Use match function instead of strstr.
52493         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52494         (ret): Remove variable.
52495         (x): Likewise.
52496         (FAIL): Remove macro.
52497         (NO_INLINE): Likewise.
52498         (handle_signal): Use match function instead of strstr.
52499         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52500         (ret): Remove variable.
52501         (x): Likewise.
52502         (FAIL): Remove macro.
52503         (NO_INLINE): Likewise.
52504         (handle_signal): Use match function instead of strstr.
52505
52506 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52507
52508         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52509
52510 2013-01-23  David S. Miller  <davem@davemloft.net>
52511
52512         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52513         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52514         argument of CAS if possible.
52515         * sysdeps/sparc/sparc64/bits/atomic.h
52516         (__arch_compare_and_exchange_val_32_acq): Likewise.
52517         (__arch_compare_and_exchange_val_64_acq): Likewise.
52518
52519 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52520
52521         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52522         * sysdeps/posix/ulimit.c: ... this.
52523         Include <limits.h>.
52524         * sysdeps/unix/bsd/ulimit.c: Remove file.
52525
52526 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52527
52528         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52529         (LDFLAGS-tst-array5): Likewise.
52530
52531 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52532
52533         [BZ #15036]
52534         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52535         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52536         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52537         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52538
52539 2013-01-21  David S. Miller  <davem@davemloft.net>
52540
52541         * sysdeps/sparc/backtrace.c: New file.
52542         * sysdeps/sparc/sparc32/backtrace.h: New file.
52543         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52544         * sysdeps/sparc/sparc64/backtrace.h: New file.
52545         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52546         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52547         -funwind-tables.
52548
52549 2013-01-21  Andreas Schwab  <schwab@suse.de>
52550
52551         [BZ #15020]
52552         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52553         closed its stdout.
52554
52555 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52556
52557         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52558         "mpa2.h".
52559         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52560
52561 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52562             Mark Mitchell  <mark@codesourcery.com>
52563             Tom de Vries  <tom@codesourcery.com>
52564             Paul Pluzhnikov  <ppluzhnikov@google.com>
52565
52566         * debug/tst-backtrace2.c: New file.
52567         * debug/tst-backtrace3.c: Likewise.
52568         * debug/tst-backtrace4.c: Likewise.
52569         * debug/tst-backtrace5.c: Likewise.
52570         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52571         (CFLAGS-tst-backtrace3.c): Likewise.
52572         (CFLAGS-tst-backtrace4.c): Likewise.
52573         (CFLAGS-tst-backtrace5.c): Likewise.
52574         (LDFLAGS-tst-backtrace2): Likewise.
52575         (LDFLAGS-tst-backtrace3): Likewise.
52576         (LDFLAGS-tst-backtrace4): Likewise.
52577         (LDFLAGS-tst-backtrace5): Likewise.
52578         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52579         tst-backtrace4 and tst-backtrace5.
52580
52581 2013-01-18  Anton Blanchard  <anton@samba.org>
52582             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52583
52584         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52585         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52586         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52587         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52589         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52590         "+r" and remove output regs list as redundant.  Add explicit inline
52591         asm to specify register of return val to work around compiler codegen
52592         bug.  Remove (int) cast on return value.  Add return type parameter to
52593         use in macro so that this macro does not truncate return value for
52594         64-bit values.
52595         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52596         pass to INTERNAL_VSYSCALL_NCS.
52597         (INLINE_VSYSCALL): Add 'long int' as return type to
52598         INTERNAL_VSYSCALL_NCS macro invocation.
52599         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52600         INTERNAL_VSYSCALL_NCS macro invocation.
52601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52602
52603 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52604
52605         [BZ #14496]
52606         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52607         Fix application of SIMD FP exception mask.
52608
52609         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52610         mp_no from a power of two.
52611         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52612         __mpexp_twomm1.  Use __pow_mp.
52613
52614         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52615         multiplication.
52616
52617 2013-01-17  David S. Miller  <davem@davemloft.net>
52618
52619         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52620
52621 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52622
52623         [BZ #15023]
52624         * include/complex.h: Condition contents on [!_COMPLEX_H].
52625         (__kernel_casinhf): New prototype.
52626         (__kernel_casinh): Likewise.
52627         (__kernel_casinhl): Likewise.
52628         * math/Makefile (libm_calls): Add k_casinh.
52629         * math/k_casinh.c: New file.
52630         * math/k_casinhf.c: Likewise.
52631         * math/k_casinhl.c: Likewise.
52632         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52633         finite nonzero arguments.
52634         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52635         finite nonzero arguments.
52636         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52637         finite nonzero arguments.
52638         * math/s_casinh.c: Do not include <float.h>.
52639         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52640         * math/s_casinhf.c: Do not include <float.h>.
52641         (__casinhf): Move code for finite nonzero arguments to
52642         k_casinhf.c.
52643         * math/s_casinhl.c: Do not include <float.h>.
52644         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52645         redefine.
52646         (__casinhl): Move code for finite nonzero arguments to
52647         k_casinhl.c.
52648         * math/libm-test.inc (cacos_test): Add more tests.
52649         * sysdeps/i386/fpu/libm-test-ulps: Update.
52650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52651
52652 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52653
52654         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52655         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52656         [!HAVE_MREMAP]: Remove [defined linux] case.
52657         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52658
52659 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52660
52661         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52662
52663 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52664
52665         * elf/elf.h (R_386_SIZE32): New relocation.
52666         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52667         R_386_SIZE32.
52668         (elf_machine_rela): Likewise.
52669         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52670         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52671
52672 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52673
52674         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52675         (FP_FAST_FMA): Do not define.
52676         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52677         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52678         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52679         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52680         !_SOFT_FLOAT]: Likewise.
52681         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52682         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52683         value.
52684         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52685         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52686         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52687         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52688         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52689         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52690         file.
52691
52692 2013-01-16  Andreas Schwab  <schwab@suse.de>
52693
52694         [BZ #14327]
52695         * include/stdlib.h (__mktemp): Add declaration.
52696         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52697         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52698
52699 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52700
52701         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52702         definitions.
52703         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52704         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52705         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52706         definitions here.
52707         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52708         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52709         definitions.
52710         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52711         and ONE.
52712         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52713         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52714         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52715         definitions.
52716         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52717         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52718         definitions.
52719         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52720
52721         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52722
52723 2013-01-15  David S. Miller  <davem@davemloft.net>
52724
52725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52726         trunc{,f} to libm-sysdep_routes.
52727         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52729         file.
52730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52732         file.
52733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52734         file.
52735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52736         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52737         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52738         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52739         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52740         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52741         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52742         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52743
52744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52745         nearbyint{,f} to libm-sysdep_routes.
52746         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52748         New file.
52749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52750         file.
52751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52752         New file.
52753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52754         file.
52755         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52756         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52757         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52758         file.
52759         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52760         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52761         file.
52762         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52763         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52764         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52765
52766         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52767         libc_feholdexcept and libc_fesetenv.
52768
52769 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52770
52771         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52772
52773 2013-01-14  David S. Miller  <davem@davemloft.net>
52774
52775         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52776         (SPARC_ASM_VIS2_IFUNC): Likewise.
52777         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52779         use of 'siam' instruction.
52780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52781         Likewise.
52782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52783         Likewise.
52784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52785         Likewise.
52786         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52787         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52788         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52789         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52791         file.
52792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52793         file.
52794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52795         file.
52796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52797         file.
52798         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52799         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52800         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52801         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52803         new VIS2 routines.
52804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52807         Likewise.
52808         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52809         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52810         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52811         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52813         routines to libm-sysdep_routines.
52814         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52815
52816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52817         fdim/fdimf to libm-sysdep_routines.
52818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52819         file.
52820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52822         file.
52823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52824         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52825         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52826         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52827         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52828         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52829         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52830
52831 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52832
52833         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52834         to optimize copies.
52835
52836         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52837         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52838         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52839
52840         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52841         local variable MPTWO.
52842         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52843         Likewise.
52844
52845 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52846
52847         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52848         GLOB_NOESCAPE.
52849
52850 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52851
52852         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52853
52854 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52855
52856         * manual/pattern.texi (glob_t): Document gl_flags.
52857         (glob64_t): Likewise.
52858
52859 2013-01-11  David S. Miller  <davem@davemloft.net>
52860
52861         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52862         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52863         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52864         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52865         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52866         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52867         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52868         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52869         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52870         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52871         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52872         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52873         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52874
52875         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52876         sparc V9 rather than using V8 code.
52877         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52878         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52879
52880         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52881         Move to...
52882         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52883         Here.
52884
52885 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52886
52887         [BZ #14941]
52888         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52889         not in the main loop.
52890         * configure: Regenerated.
52891
52892 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52893
52894         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52895         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52896         to just #else.
52897         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52898         [!__GLIBC_HAVE_LONG_LONG] case.
52899         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52900         condition to just #else.
52901         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52902         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52903         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52904         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52905         unconditional.
52906         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52907         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52908         #elif condition to just #else.
52909         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52910         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52911         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52912         #elif condition to just #else.
52913
52914 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52915
52916         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52917         (EF_MIPS_ARCH_64): Fix value.
52918         (EF_MIPS_ARCH_32R2): New.
52919         (EF_MIPS_ARCH_64R2): New.
52920
52921 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52922
52923         * Makeconfig (+link-pie-before-libc): New.
52924         (+link-pie-after-libc): Likewise.
52925         (+link-pie-tests): Likewise.
52926         (+link-pie): Rewritten.
52927         (link-before-libc): Remove $(config-LDFLAGS).
52928         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52929         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52930         (config-LDFLAGS): Renamed to ...
52931         (rtld-LDFLAGS): This.
52932         (rtld-tests-LDFLAGS): New macro.
52933         (link-libc-rpath-link): Likewise.
52934         (link-libc-tests-rpath-link): Likewise.
52935         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52936         (link-libc): Prepand $(link-libc-rpath-link).
52937         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52938         (test-program-prefix): New macro.
52939         (test-via-rtld-prefix): Likewise.
52940         (test-program-cmd): Likewise.
52941         (host-test-program-cmd): Likewise.
52942         * Makefile ($(common-objpfx)testrun.sh): Replace
52943         $(run-program-prefix) with $(test-program-prefix).
52944         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52945         $(rtld-LDFLAGS).
52946         ($(common-objpfx)shlib.lds): Likewise.
52947         (build-module-helper): Likewise.
52948         ($(common-objpfx)format.lds): Likewise.
52949         * Rules (binaries-pie-tests): New.
52950         (binaries-pie-notests): Likewise.
52951         (binaries-pie): Rewritten.
52952         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52953         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52954         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52955         (make-test-out): Replace $(host-built-program-cmd) with
52956         $(host-test-program-cmd).
52957         * config.make.in (build-hardcoded-path-in-tests): New variable.
52958         * configure.in (--enable-hardcoded-path-in-tests): New configure
52959         option.
52960         (hardcoded_path_in_tests): New AC_SUBST.
52961         * configure: Regenerated.
52962         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52963         $(built-program-cmd) with $(test-program-cmd).
52964         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52965         (test_program_cmd): This.
52966         * elf/Makefile ($(objpfx)order.out): Run test with
52967         $(test-program-prefix).
52968         ($(objpfx)order2.out): Likewise.
52969         ($(objpfx)tst-initorder.out): Likewise.
52970         ($(objpfx)tst-initorder2.out): Likewise.
52971         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52972         $(test-program-cmd).
52973         ($(objpfx)tst-array1-static.out): Likewise.
52974         ($(objpfx)tst-array2.out): Likewise.
52975         ($(objpfx)tst-array3.out): Likewise.
52976         ($(objpfx)tst-array4.out): Likewise.
52977         ($(objpfx)tst-array5.out): Likewise.
52978         ($(objpfx)tst-array5-static.out): Likewise.
52979         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52980         $(test-program-cmd).
52981         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52982         $(run-program-prefix) with $(test-program-prefix).
52983         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52984         (test_program_prefix): This.
52985         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52986         $(run-program-prefix) with $(test-program-prefix).
52987         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52988         (test_program_prefix): This.
52989         * iconvdata/tst-tables.sh: Likewise.
52990         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52991         $(run-program-prefix) with $(test-program-prefix).
52992         ($(objpfx)tst-translit.out): Likewise.
52993         ($(objpfx)tst-gettext2.out): Likewise.
52994         ($(objpfx)tst-gettext4.out): Likewise.
52995         ($(objpfx)tst-gettext6.out): Likewise.
52996         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52997         (test_program_prefix): This.
52998         * intl/tst-gettext2.sh: Likewise.
52999         * intl/tst-gettext4.sh  Likewise.
53000         * intl/tst-gettext6.sh: Likewise.
53001         * intl/tst-translit.sh: Likewise.
53002         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53003         with $(test-program-cmd).
53004         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53005         $(run-program-prefix) with $(test-program-prefix).
53006         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53007         (test_program_prefix): This.
53008         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53009         $(run-program-prefix) with $(test-program-prefix).
53010         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53011         (test_program_prefix): This.
53012         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53013         * posix/Makefile ($(objpfx)globtest.out): Replace
53014         $(run-via-rtld-prefix) and $(test-wrapper) with
53015         $(test-program-prefix) and $(test-via-rtld-prefix).
53016         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53017         $(test-program-prefix).
53018         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53019         $(host-test-program-cmd).
53020         (tst-spawn-ARGS): Likewise.
53021         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53022         $(test-program-prefix).
53023         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53024         (test_via_rtld_prefix): This.
53025         (test_wrapper): Renamed to ...
53026         (test_program_prefix): This.
53027         (run_program_prefix): Replaced by test_program_prefix.
53028         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53029         (test_program_prefix): This.
53030         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53031         with $(host-test-program-cmd).
53032         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53033         $(run-program-prefix) with $(test-program-prefix).
53034         ($(objpfx)tst-printf.out): Likewise.
53035         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53036         $(test-program-cmd).
53037         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53038         (test_program_prefix): This.
53039         * stdio-common/tst-unbputc.sh: Likewise.
53040         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53041         $(run-program-prefix) with $(test-program-prefix).
53042         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53043         (test_program_prefix): This.
53044         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53045         $(built-program-cmd) with $(test-program-cmd).
53046
53047 2013-01-11  Andreas Jaeger  <aj@suse.de>
53048
53049         [BZ #15003]
53050         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53051         value. Sync with Linux 3.7.
53052
53053 2013-01-10  David S. Miller  <davem@davemloft.net>
53054
53055         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53056         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53057         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53058
53059 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53060
53061         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53062         never set.
53063         * configure: Regenerated.
53064
53065 2013-01-10  David S. Miller  <davem@davemloft.net>
53066
53067         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53068         sparc V9 rather than using V8 code.
53069         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53070         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53071
53072 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53073
53074         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53075         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53076         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53077         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53078         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53079         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53080         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53081         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53082         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53083         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53084         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53085         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53086         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53087         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53088         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53089         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53090         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53091         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53092         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53093         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53094         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53095         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53096         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53097         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53098         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53099         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53100         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53101
53102 2013-01-10  David S. Miller  <davem@davemloft.net>
53103
53104         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53105
53106 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53107
53108         * posix/Makefile (tests-static): New variable.
53109         (tests): Add $(tests-static).
53110         (tst-exec-static-ARGS): New variable.
53111         (tst-spawn-static-ARGS): Likewise.
53112         * posix/tst-exec-static.c: New file.
53113         * posix/tst-spawn-static.c: Likewise.
53114         * posix/tst-exec.c: Support run directly.
53115         * posix/tst-spawn.c: Likewise.
53116
53117 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53118
53119         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53120         long.
53121         * math/bits/mathcalls.h (llrint): Likewise.
53122         (llround): Likewise.
53123         * stdlib/stdlib.h (struct drand48_data): Likewise.
53124         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53125         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53126         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53127         Likewise.
53128         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53129         Likewise.
53130         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53131         (elf_greg_t): Likewise.
53132         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53133         (__jmp_buf): Likewise.
53134         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53135         definitions.
53136         (llrint): Likewise, for all definitions.
53137         (llrintl): Likewise.
53138
53139         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53140         Remove [__GNUC__] condition.
53141         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53142         condition to just [__USE_ISOC99].
53143         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53144
53145 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53146
53147         [BZ #14200]
53148         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53149         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53150         defined.
53151         (_POSIX_V6_ILP32_OFF32): Likewise.
53152         (_XBS5_ILP32_OFF32): Likewise.
53153         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53154         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53155
53156 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53157
53158         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53159
53160         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53161         doubles __mpexp_twomm1.  Adjust usage.
53162         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53163         Remove.
53164
53165 2013-01-10  Andreas Schwab  <schwab@suse.de>
53166
53167         [BZ #14964]
53168         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53169         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53170
53171 2013-01-09  David S. Miller  <davem@davemloft.net>
53172
53173         [BZ #15003]
53174         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53175         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53176         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53177         (TCP_FASTOPEN): Define.
53178         (tcp_repair_opt): New structure.
53179         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53180         enum values.
53181         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53182         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53183         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53184         (tcp_cookie_transactions): New structure.
53185
53186 2013-01-09  Anton Blanchard  <anton@samba.org>
53187
53188         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53189         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53190         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53191         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53192
53193 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53194
53195         * include/features.h (__USE_ANSI): Remove.
53196
53197 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53198
53199         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53200
53201         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53202
53203 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53204
53205         * sysdeps/s390/fpu/libm-test-ulps: Update.
53206
53207         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53208
53209         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53210         (__acr): Likewise.
53211         (__cpy): Likewise.
53212         (norm): Likewise.
53213         (denorm): Likewise.
53214         (__mp_dbl): Likewise.
53215         (__dbl_mp): Likewise.
53216         (add_magnitudes): Likewise.
53217         (sub_magnitudes): Likewise.
53218         (__add): Likewise.
53219         (__sub): Likewise.
53220         (__mul): Likewise.
53221         (__inv): Likewise.
53222         (__dvd): Likewise.
53223         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53224         (__acr): Likewise.
53225         (__cpy): Likewise.
53226         (norm): Likewise.
53227         (denorm): Likewise.
53228         (__mp_dbl): Likewise.
53229         (__dbl_mp): Likewise.
53230         (add_magnitudes): Likewise.
53231         (sub_magnitudes): Likewise.
53232         (__add): Likewise.
53233         (__sub): Likewise.
53234         (__mul): Likewise.
53235         (__inv): Likewise.
53236         (__dvd): Likewise.
53237         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53238         (__acr): Likewise.
53239         (__cpy): Likewise.
53240         (norm): Likewise.
53241         (denorm): Likewise.
53242         (__mp_dbl): Likewise.
53243         (__dbl_mp): Likewise.
53244         (add_magnitudes): Likewise.
53245         (sub_magnitudes): Likewise.
53246         (__add): Likewise.
53247         (__sub): Likewise.
53248         (__mul): Likewise.
53249         (__inv): Likewise.
53250         (__dvd): Likewise.
53251
53252 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53253
53254         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53255         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53256         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53257         2 && __USE_EXTERN_INLINES]: Likewise.
53258
53259 2013-01-08  Andreas Jaeger  <aj@suse.de>
53260
53261         [BZ# 14985]
53262         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53263         Remove.
53264         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53265         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53266
53267 2013-01-07  Anton Blanchard  <anton@samba.org>
53268
53269         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53270         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53271         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53272         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53273         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53274         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53275         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53276         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53277         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53278         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53279         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53280         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53281         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53282         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53283         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53284         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53285         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53286         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53287         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53288         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53289         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53290         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53291         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53292         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53293         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53294         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53295         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53296         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53297         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53298         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53299         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53300         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53301         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53302         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53303         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53304         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53305         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53306         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53307         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53308         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53309         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53310         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53311         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53312
53313 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53314
53315         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53316         (__MALLOC_PMT): Likewise.
53317         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53318         [__GNUC__], only on [_LIBC].
53319         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53320         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53321         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53322         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53323         forward declaration.
53324         (realloc_hook_ini): Likewise.
53325         (memalign_hook_ini): Likewise.
53326         (__libc_memalign): Do not use __MALLOC_PMT in variable
53327         declaration.
53328         (__libc_valloc): Likewise.
53329         (__libc_pvalloc): Likewise.
53330         (__libc_calloc): Likewise.
53331         (__posix_memalign): Likewise.
53332
53333         [BZ #14996]
53334         * math/s_casinh.c: Include <float.h>.
53335         (__casinh): Do not do computation with squaring and square root
53336         for large arguments.
53337         * math/s_casinhf.c: Include <float.h>.
53338         (__casinhf): Do not do computation with squaring and square root
53339         for large arguments.
53340         * math/s_casinhl.c: Include <float.h>.
53341         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53342         (__casinhl): Do not do computation with squaring and square root
53343         for large arguments.
53344         * math/libm-test.inc (casin_test): Add more tests.
53345         (casinh_test): Likewise.
53346         * sysdeps/i386/fpu/libm-test-ulps: Update.
53347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53348
53349 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53350
53351         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53352         (__x86_64_raw_data_cache_size): Likewise.
53353         (__x86_64_data_cache_size_half): Likewise.
53354         (__x86_64_raw_data_cache_size_half): Likewise.
53355         (__x86_64_shared_cache_size): Likewise.
53356         (__x86_64_raw_shared_cache_size): Likewise.
53357         (__x86_64_shared_cache_size_half): Likewise.
53358         (__x86_64_raw_shared_cache_size_half): Likewise.
53359         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53360         to ...
53361         (__x86_data_cache_size): This.
53362         (__x86_64_raw_data_cache_size): Renamed to ...
53363         (__x86_raw_data_cache_size): This.
53364         (__x86_64_data_cache_size_half): Renamed to ...
53365         (__x86_data_cache_size_half): This.
53366         (__x86_64_raw_data_cache_size_half): Renamed to ...
53367         (__x86_raw_data_cache_size_half): This.
53368         (__x86_64_shared_cache_size): Renamed to ...
53369         (__x86_shared_cache_size): This.
53370         (__x86_64_raw_shared_cache_size): Renamed to ...
53371         (__x86_raw_shared_cache_size): This.
53372         (__x86_64_shared_cache_size_half): Renamed to ...
53373         (__x86_shared_cache_size_half): This.
53374         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53375         (__x86_raw_shared_cache_size_half): This.
53376         * sysdeps/x86_64/memcpy.S: Updated.
53377         * sysdeps/x86_64/memset.S: Likewise.
53378         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53379         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53380         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53381
53382 2013-01-04  David S. Miller  <davem@davemloft.net>
53383
53384         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53385
53386 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53387
53388         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53389         1 to avoid redefinition warning.
53390         (__USE_GNU): Don't define.
53391         (init_signaling_nan): Protoize.
53392
53393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53394
53395 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53396
53397         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53398         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53399         (__cpymn): Likewise.
53400         (norm): Remove commented code.
53401         (denorm): Likewise.
53402         (__mp_dbl): Likewise.
53403         (__inv): Likewise.
53404         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53405         (__cpymn): Likewise.
53406         (norm): Remove commented code.
53407         (denorm): Likewise.
53408         (__mp_dbl): Likewise.
53409         (__inv): Likewise.
53410
53411         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53412         mp_no value for 1.0 and 2.0.
53413         (norm): Use RADIXI instead of radixi.d.
53414         (denorm): Likewise.
53415         (__mul): Use 0.0 instead of zero.d.
53416         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53417         mp_no value for 1.0 and 2.0.
53418         (norm): Use RADIXI instead of radixi.d.
53419         (denorm): Likewise.
53420         (__mul): Use 0.0 instead of zero.d.
53421
53422 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53423
53424         [BZ #14994]
53425         * math/s_casinh.c (__casinh): Reduce finite argument to first
53426         quadrant then set signs of results at the end.
53427         * math/s_casinhf.c (__casinhf): Likewise.
53428         * math/s_casinhl.c (__casinhl): Likewise.
53429         * math/libm-test.inc (casin_test): Add more tests.
53430         (casinh_test): Likewise.
53431         * sysdeps/i386/fpu/libm-test-ulps: Update.
53432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53433
53434 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53435
53436         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53437
53438         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53439
53440         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53441         declarations.
53442         (denorm): Likewise.
53443         (__mp_dbl): Likewise.
53444         (__inv): Likewise.
53445
53446         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53447         and adjust the header comment.
53448
53449         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53450         variable name from declaration.
53451
53452 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53453
53454         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53455         Initialize COMMON_CPUID_INDEX_7 element.
53456         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53457         (CPUID_RTM): Likewise.
53458         (HAS_RTM): Likewise.
53459         (COMMON_CPUID_INDEX_7): New enum.
53460
53461 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53462
53463         [BZ #14981]
53464         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53465         size is zero, record memory as freed.
53466
53467 2013-01-03  Andreas Jaeger  <aj@suse.de>
53468
53469         * po/ia.po: Add new Interlingua translation.
53470
53471 2012-01-03  Allan McRae  <allan@archlinux.org>
53472
53473         * locale/programs/localedef.c: Fix description of '--posix' flag.
53474
53475 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53476
53477         * NEWS: Update dates in second copyright notice.
53478         * README: Update copyright dates in example.
53479         * manual/libc.texinfo: Update copyright dates.
53480         * scripts/test-installation.pl: Update copyright date in --version
53481         output.
53482
53483         * hurd/ctty-input.c: Fix copyright notice formatting.
53484         * hurd/ctty-output.c: Likewise.
53485         * hurd/dtable.c: Likewise.
53486         * hurd/hurd-raise.c: Likewise.
53487         * hurd/hurdprio.c: Likewise.
53488         * hurd/msgportdemux.c: Likewise.
53489         * misc/sys/file.h: Likewise.
53490         * misc/sys/ioctl.h: Likewise.
53491         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53492         * sysdeps/mach/hurd/chdir.c: Likewise.
53493         * sysdeps/mach/hurd/fchdir.c: Likewise.
53494         * sysdeps/mach/hurd/rename.c: Likewise.
53495         * sysdeps/mach/hurd/rmdir.c: Likewise.
53496         * sysdeps/mach/hurd/seekdir.c: Likewise.
53497         * sysdeps/mach/hurd/setsid.c: Likewise.
53498         * sysdeps/posix/wait3.c: Likewise.
53499
53500         * All files with FSF copyright notices: Update copyright dates
53501         using scripts/update-copyrights.
53502         * intl/plural.c: Regenerated.
53503         * locale/programs/charmap-kw.h: Likewise.
53504         * locale/programs/locfile-kw.h: Likewise.
53505
53506 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53507
53508         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53509         four values.
53510
53511         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53512         calculation loop and add branch prediction.
53513
53514         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53515         check access beyond bounds of m1np.
53516
53517         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53518         MPTWO.
53519         (__inv): Remove local variable MPTWO to use the global
53520         constant.
53521         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53522         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53523         variable MPTWO.
53524         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53525         MP3HALFS static const.
53526
53527 2013-01-01  David S. Miller  <davem@davemloft.net>
53528
53529         * po/ca.po: Update from translation team.
53530
53531 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53532
53533         * scripts/update-copyrights: New file.
53534         * Makeconfig: Reformat copyright notice.
53535         * ctype/ctype.h: Likewise.
53536         * debug/swprintf_chk.c: Likewise.
53537         * elf/dl-cache.c: Likewise.
53538         * elf/dl-debug.c: Likewise.
53539         * elf/dl-object.c: Likewise.
53540         * grp/initgroups.c: Likewise.
53541         * hurd/Makefile: Likewise.
53542         * hurd/hurd/signal.h: Likewise.
53543         * hurd/hurdfault.c: Likewise.
53544         * hurd/hurdioctl.c: Likewise.
53545         * hurd/hurdlookup.c: Likewise.
53546         * hurd/intr-msg.c: Likewise.
53547         * iconv/gconv_open.c: Likewise.
53548         * libio/swprintf.c: Likewise.
53549         * locale/lc-ctype.c: Likewise.
53550         * locale/nl_langinfo.c: Likewise.
53551         * mach/Machrules: Likewise.
53552         * mach/Makefile: Likewise.
53553         * malloc/obstack.h: Likewise.
53554         * manual/Makefile: Likewise.
53555         * manual/tsort.awk: Likewise.
53556         * misc/bits/stab.def: Likewise.
53557         * nis/nis_print_group_entry.c: Likewise.
53558         * nis/nis_table.c: Likewise.
53559         * nis/nss_compat/compat-pwd.c: Likewise.
53560         * nis/nss_compat/compat-spwd.c: Likewise.
53561         * po/Makefile: Likewise.
53562         * posix/fnmatch.c: Likewise.
53563         * posix/regex.h: Likewise.
53564         * resolv/Makefile: Likewise.
53565         * resolv/nss_dns/dns-network.c: Likewise.
53566         * resolv/res_hconf.c: Likewise.
53567         * scripts/gen-sorted.awk: Likewise.
53568         * soft-fp/soft-fp.h: Likewise.
53569         * stdio-common/printf.h: Likewise.
53570         * stdlib/monetary.h: Likewise.
53571         * stdlib/random.c: Likewise.
53572         * stdlib/random_r.c: Likewise.
53573         * sysdeps/generic/Makefile: Likewise.
53574         * sysdeps/gnu/Makefile: Likewise.
53575         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53576         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53577         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53578         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53579         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53580         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53581         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53582         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53583         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53584         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53585         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53586         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53587         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53588         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53589         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53590         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53591         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53592         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53593         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53594         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53595         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53596         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53597         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53598         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53599         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53600         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53601         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53602         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53603         * sysdeps/mach/hurd/errnos.awk: Likewise.
53604         * sysdeps/mach/hurd/fork.c: Likewise.
53605         * sysdeps/mach/hurd/getcwd.c: Likewise.
53606         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53607         * sysdeps/mach/hurd/mmap.c: Likewise.
53608         * sysdeps/mach/hurd/utimes.c: Likewise.
53609         * sysdeps/mach/hurd/xmknod.c: Likewise.
53610         * sysdeps/posix/profil.c: Likewise.
53611         * sysdeps/posix/readdir_r.c: Likewise.
53612         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53613         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53614         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53615         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53616         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53617         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53618         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53619         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53620         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53621         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53622         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53623         * sysdeps/pthread/lio_listio.c: Likewise.
53624         * sysdeps/sparc/dl-procinfo.h: Likewise.
53625         * sysdeps/unix/i386/sysdep.S: Likewise.
53626         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53627         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53628         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53629         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53631         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53632         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53633         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53634         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53635         * sysdeps/wordsize-32/divdi3.c: Likewise.
53636         * time/sys/time.h: Likewise.
53637         * wcsmbs/Makefile: Likewise.
53638
53639 2013-01-01  David S. Miller  <davem@davemloft.net>
53640
53641         * po/fr.po: Update from translation team.
53642
53643         * catgets/gencat.c: Update copyright year.
53644         * csu/version.c: Likewise.
53645         * debug/catchsegv.sh: Likewise.
53646         * debug/pcprofiledump.c: Likewise.
53647         * debug/xtrace.sh: Likewise.
53648         * elf/ldconfig.c: Likewise.
53649         * elf/ldd.bash.in: Likewise.
53650         * elf/pldd.c: Likewise.
53651         * elf/sotruss.ksh: Likewise.
53652         * elf/sprof.c: Likewise.
53653         * iconv/iconv_prog.c: Likewise.
53654         * iconv/iconvconfig.c: Likewise.
53655         * locale/programs/locale.c: Likewise.
53656         * locale/programs/localedef.c: Likewise.
53657         * login/programs/pt_chown.c: Likewise.
53658         * malloc/memusage.sh: Likewise.
53659         * malloc/memusagestat.c: Likewise.
53660         * malloc/mtrace.pl: Likewise.
53661         * nscd/nscd.c: Likewise.
53662         * nss/getent.c: Likewise.
53663         * nss/makedb.c: Likewise.
53664         * posix/getconf.c: Likewise.
53665
53666 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53667
53668         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53669         numbers.
53670
53671 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53672
53673         * math/bits/mathcalls.h (modf): Use __nonnull.
53674
53675 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53676
53677         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53678         (split): Use macro CN instead of the bare value.
53679         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53680         could be used.
53681         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53682         instead of the bare value.
53683         (power1): Likewise.
53684
53685 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53686
53687         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53688         __ATAN_TWOM.
53689         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53690
53691         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53692         their values.
53693         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53694         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53695         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53696         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53697
53698 2012-12-28  Andreas Jaeger  <aj@suse.de>
53699
53700         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53701         values are from Linux 3.7.
53702
53703         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53704         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53705
53706 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53707
53708         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53709         TRUE case.
53710
53711         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53712         (norm): Likewise.
53713         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53714         variables with preprocessor constants.
53715         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53716         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53717         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53718
53719 2012-12-27  Bruno Haible  <bruno@clisp.org>
53720
53721         [BZ #14317]
53722         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53723         only if needed.
53724
53725 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53726
53727         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53728         and use variable directly.
53729         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53730
53731         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53732         MPONE.
53733         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53734         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53735         variable MPONE.
53736         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53737         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53738         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53739         include directive.  Remove local variable MPONE.
53740         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53741         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53742         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53743
53744 2012-12-25  David S. Miller  <davem@davemloft.net>
53745
53746         * version.h (RELEASE): Set to "development".
53747         (VERSION): Set to "2.17.90".
53748         * NEWS: Add 2.18 section.
53749
53750 2012-12-21  David S. Miller  <davem@davemloft.net>
53751
53752         * po/hr.po: Update from translation team.
53753
53754 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53755
53756         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53757
53758 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53759
53760         * NEWS:  Mention new memcpy for MIPS.
53761
53762 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53763
53764         * manual/contrib.texi (Contributors): Spelling correction.
53765
53766 2012-12-15  David S. Miller  <davem@davemloft.net>
53767
53768         * po/ru.po: Update from translation team.
53769
53770 2012-12-13  David S. Miller  <davem@davemloft.net>
53771
53772         * NEWS: Mention IFUNC testsuite enhancements.
53773
53774         * po/pl.po: Update from translation team.
53775         * po/bg.po: Likewise.
53776
53777         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53778         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53779
53780 2012-12-11  David S. Miller  <davem@davemloft.net>
53781
53782         * po/sv.po: Update from translation team.
53783
53784         * po/vi.po: Update from translation team.
53785
53786         * po/cs.po: Update from translation team.
53787
53788         * po/de.po: Update from translation team.
53789         * po/eo.po: Likewise.
53790         * po/nl.po: Likewise.
53791
53792 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53793
53794         [BZ #14246]
53795         * manual/argp.texi (Argp Helper Functions): Move node to follow
53796         Argp Parsing State.
53797
53798         [BZ #14872]
53799         * manual/conf.texi (Limits on File System Capacity): Mention if
53800         terminating null is included in the max size.
53801
53802 2012-12-10  Andreas Jaeger  <aj@suse.de>
53803
53804         * po/cs.po: Update from translation team.
53805
53806 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53807
53808         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53809         void pointer and cast to uintptr_t.
53810         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53811         path.
53812         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53813         * sysdeps/s390/s390-64/memset.S: Likewise.
53814
53815 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53816
53817         [BZ #14833]
53818         * menual/message.texi (Message Translation): Fix typos.
53819         (Helper programs for gettext): Likewise.
53820
53821 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53822
53823         [BZ #14898]
53824         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53825         Change to -1.
53826
53827 2012-12-07  David S. Miller  <davem@davemloft.net>
53828
53829         * po/libc.pot: Update.
53830
53831 2012-12-07  Richard Henderson  <rth@redhat.com>
53832
53833         [BZ #10114]
53834         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53835         normal/normal case to before the switch.
53836         (_FP_DIV): Likewise.
53837
53838 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53839             Mike Frysinger  <vapier@gentoo.org>
53840
53841         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53842         check for __NR_fadvise64_64.
53843
53844 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53845
53846         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53847         0, not just to plain "0" as a statement.
53848         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53849         with cw.
53850
53851 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53852
53853         * NEWS: Use sourceware.org in Bugzilla URL.
53854
53855 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53856
53857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53858         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53859
53860         * stdio-common/tst-put-error.c (do_test): Add newline to the
53861         padded test to ensure flush.
53862
53863 2012-12-05  Jeff Law  <law@redhat.com>
53864
53865         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53866
53867 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53868
53869         * README: Don't refer to ports add-on as distributed separately.
53870         Mention AArch64 in list of systems supported in the ports add-on.
53871
53872         * LICENSES: Add more non-FSF copyright and license notices.
53873
53874         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53875         ((unused)).
53876
53877         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53878
53879         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53880         10000 as width of padded output.
53881
53882 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53883
53884         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53885
53886         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53887         variable LX with __attribute__ ((unused)).
53888         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53889         Likewise.
53890         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53891         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53892         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53893         with __attribute__ ((unused)).
53894
53895 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53896
53897         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53898
53899 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53900
53901         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53902         (CFLAGS-nldbl-acos.c): New variable.
53903         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53904         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53905         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53906         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53907         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53908         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53909         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53910         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53911         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53912         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53913         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53914         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53915         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53916         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53917         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53918         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53919         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53920         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53921         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53922         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53923         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53924         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53925         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53926         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53927         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53928         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53929         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53930         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53931         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53932         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53933         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53934         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53935         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53936         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53937         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53938         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53939         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53940         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53941         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53942         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53943         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53944         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53945         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53946         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53947         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53948         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53949         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53950         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53951         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53952         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53953         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53954         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53955         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53956         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53957         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53958         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53959         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53960         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53961         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53962         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53963         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53964         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53965         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53966         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53967         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53968         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53969         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53970         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53971         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53972         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53973         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53974         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53975         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53976         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53977         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53978         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53979         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53980         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53981         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53982         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53983         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53984         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53985         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53986         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53987         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53988         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53989         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53990         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53991         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53992         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53993         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53994         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53995         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53996         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53997         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53998         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53999         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54000
54001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54002         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54003
54004         [BZ #14914]
54005         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54006         whole low double instead of just low 47 bits when splitting values
54007         into two parts.
54008
54009 2012-12-03  Allan McRae  <allan@archlinux.org>
54010
54011         * manual/stdio.texi (Predefined Printf Handlers): Remove
54012         @hsep and @vsep usage.
54013
54014 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54015
54016         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54017         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54018
54019 2012-12-03  Jeff Law  <law@redhat.com>
54020
54021         * time/sys/time.h (settimeofday): Do not mark TV argument
54022         as __nonnull.
54023
54024 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54025
54026         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54027         when currently writing and seek to current position when not.
54028         * libio/Makefile (tests): Remove bug-fclose1.
54029         * libio/bug-fclose1.c: Delete.
54030
54031 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54032
54033         * manual/arith.texi (feenableexcept): Fix typo.
54034         (fedisableexcept): Likewise.
54035
54036 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54037
54038         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54039         second, differently-typed declaration, rather than a cast.
54040
54041 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54042
54043         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54044         * include/rpc/svc.h: ... here.
54045
54046 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54047
54048         [BZ #13013]
54049         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54050         depending n and resplen2 to catch cases where answer
54051         equals answerp2.
54052
54053 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54054
54055         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54056         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54057
54058 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54059
54060         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54061
54062 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54063
54064         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54065
54066 2012-11-28  Jeff Law  <law@redhat.com>
54067
54068         [BZ #13761]
54069         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54070         dataset_temporary.  Track alloca usage into alloca_used.
54071         If dataset is large allocate and release it via malloc/free.
54072
54073 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54074
54075         [BZ #14197]
54076         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54077
54078 2012-11-28  David S. Miller  <davem@davemloft.net>
54079
54080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54081
54082 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54083
54084         [BZ #14803]
54085         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54086         of pi/2 rounded to nearest to 64 bits.
54087         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54088         nearest to 64 bits.
54089         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54090         bits.
54091
54092 2012-11-28  Jeff Law <law@redhat.com>
54093             Martin Osvald <mosvald@redhat.com>
54094
54095         [BZ #14889]
54096         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54097         * sunrpc/svc.c: Include time.h.
54098         (__svc_accept_failed): New function.
54099         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54100         any reason other than EINTR, call __svc_accept_failed.
54101         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54102         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54103
54104 2012-11-28  Andreas Schwab  <schwab@suse.de>
54105
54106         * scripts/abilist.awk: Also handle indirect functions in .opd
54107         section.
54108
54109 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54110
54111         [BZ #13881]
54112         * sysdeps/x86/fpu/powl_helper.c: New file.
54113         * sysdeps/x86/fpu/Makefile: Likewise.
54114         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54115         (p3): New object.
54116         (__ieee754_powl): Use __powl_helper for finite arguments except
54117         integer exponents below 8.
54118         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54119         (p3): New object.
54120         (__ieee754_powl): Use __powl_helper for finite arguments except
54121         integer exponents below 8.
54122         * math/libm-test.inc (pow_test): Add more tests and enable some
54123         previously disabled tests.
54124         * sysdeps/i386/fpu/libm-test-ulps: Update.
54125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54126
54127 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54128             Carlos O'Donell  <carlos_odonell@mentor.com>
54129
54130         * nss/makedb.c (is_prime): Assert that input is odd and greater
54131         than 4.  Note that fact in a comment too.
54132         (next_prime): Add 4 to input.
54133
54134 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54135
54136         [BZ #11741]
54137         * libio/Makefile (tests): Add test case tst-fwrite-error.
54138         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54139         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54140         * libio/tst-fwrite-error.c: New test case.
54141
54142 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54143
54144         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54145         before casting to void *.
54146         * include/libc-internal.h (__pointer_type): New macro.
54147         (__integer_if_pointer_type_sub): Likewise.
54148         (__integer_if_pointer_type): Likewise.
54149         (cast_to_integer): Likewise.
54150         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54151         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54152         before casting to atomic64_t.
54153         (atomic_exchange_acq): Likewise.
54154         (__arch_exchange_and_add_body): Likewise.
54155         (__arch_add_body): Likewise.
54156         (atomic_add_negative): Likewise.
54157         (atomic_add_zero): Likewise.
54158
54159 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54160
54161         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54162         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54163         (add_fdes): Likewise.
54164         (linear_search_fdes): Likewise.
54165         (binary_search_unencoded_fdes): Likewise.
54166
54167 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54168
54169         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54170
54171 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54172
54173         * configure.in: Autodetect C++ header directories.
54174         * configure: Regenerated.
54175
54176 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54177
54178         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54179
54180 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54181
54182         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54183
54184 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54185
54186         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54187         LDBL_MANT_DIG == 106]: Disable some tests.
54188         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54189         Likewise.
54190         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54191         Likewise.
54192
54193         [BZ #14871]
54194         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54195         input for small inputs.  Return +/- pi/2 for large inputs.
54196         * math/libm-test.inc (atan_test): Add more tests.
54197
54198         * sysdeps/generic/unwind-dw2-fde-glibc.c
54199         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54200         __attribute__ ((unused)).
54201
54202         [BZ #14645]
54203         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54204         x * y if x and y are nonzero and z is zero.
54205
54206         [BZ #14811]
54207         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54208         nonzero exponents with absolute value below 0x1p-117 to +/-
54209         0x1p-117.
54210
54211         [BZ #14869]
54212         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54213         up arguments below 2**-450, not just those below 2**-500.
54214         * math/libm-test.inc (hypot_test): Add another test.
54215
54216         [BZ #14868]
54217         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54218         Return a+b for ratio over 2**120, not 2**60.
54219         * math/libm-test.inc (hypot_test): Add another test.
54220
54221         * math/libm-test.inc (clog_test): Use
54222         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54223         (clog10_test): Likewise.
54224
54225         [BZ #6778]
54226         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54227
54228 2012-11-22  Andreas Schwab  <schwab@suse.de>
54229
54230         * sysdeps/i386/fpu/libm-test-ulps: Update.
54231
54232 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54233
54234         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54235         printf output with newline.
54236
54237 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54238
54239         [BZ #14865]
54240         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54241         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54242         -z nodlopen, -z initfirst and -z execstack support.
54243         * configure: Regenerated.
54244
54245         * elf/elf.h (DF_1_NODIRECT): New macro.
54246         (DF_1_IGNMULDEF): Likewise.
54247         (DF_1_NOKSYMS): Likewise.
54248         (DF_1_NOHDR): Likewise.
54249         (DF_1_EDITED): Likewise.
54250         (DF_1_NORELOC): Likewise.
54251         (DF_1_SYMINTPOSE): Likewise.
54252         (DF_1_GLOBAUDIT): Likewise.
54253         (DF_1_SINGLETON): Likewise.
54254         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54255         DT_1_SUPPORTED_MASK bits.
54256         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54257
54258 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54259
54260         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54261
54262 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54263
54264         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54265         macro.
54266
54267         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54268         (sendmmsg): Move declarations...
54269         * socket/sys/socket.h: ... here.
54270         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54271         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54272         include it from...
54273         * socket/recvmmsg.c: ... this new file.
54274         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54275         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54276         definition of __sendmmsg hidden.
54277         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54278         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54279         Move ENOSYS stub into and include it from...
54280         * socket/sendmmsg.c: ... this new file.
54281         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54282         (sysdep_routines): Move recvmmsg and sendmmsg...
54283         * socket/Makefile (routines): ... here.
54284         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54285         (GLIBC_PRIVATE): Add __sendmmsg.
54286         * include/sys/socket.h (__sendmmsg): Add declarations.
54287         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54288         sendmmsg.
54289
54290 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54291
54292         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54293         variable I1 with __attribute__ ((unused)).
54294         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54295
54296 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54297
54298         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54299         DUMMY variables with __attribute__ ((unused)).
54300
54301         * bits/byteswap.h: Include <bits/types.h>.
54302         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54303
54304 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54305
54306         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54307         string_t.  Do not manually set errno.
54308         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54309         length with __strnlen.  Make sure to both set errno and return it on
54310         failure.
54311
54312 2012-11-19  David S. Miller  <davem@davemloft.net>
54313
54314         With help from Joseph Myers.
54315         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54316         very large arguments properly.
54317         * math/libm-test.inc (atan_test): New tests.
54318         (atan2_test): New tests.
54319         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54320         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54321
54322 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54323
54324         [BZ #14856]
54325         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54326         Define to 3.
54327
54328         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54329         [POSIX] (EADDRNOTAVAIL): Likewise.
54330         [POSIX] (EAFNOSUPPORT): Likewise.
54331         [POSIX] (EALREADY): Likewise.
54332         [POSIX] (ECONNABORTED): Likewise.
54333         [POSIX] (ECONNREFUSED): Likewise.
54334         [POSIX] (ECONNRESET): Likewise.
54335         [POSIX] (EDESTADDRREQ): Likewise.
54336         [POSIX] (EDQUOT): Likewise.
54337         [POSIX] (EHOSTUNREACH): Likewise.
54338         [POSIX] (EIDRM): Likewise.
54339         [POSIX] (EISCONN): Likewise.
54340         [POSIX] (ELOOP): Likewise.
54341         [POSIX] (EMULTIHOP): Likewise.
54342         [POSIX] (ENETDOWN): Likewise.
54343         [POSIX] (ENETUNREACH): Likewise.
54344         [POSIX] (ENOBUFS): Likewise.
54345         [POSIX] (ENODATA): Likewise.
54346         [POSIX] (ENOLINK): Likewise.
54347         [POSIX] (ENOMSG): Likewise.
54348         [POSIX] (ENOPROTOOPT): Likewise.
54349         [POSIX] (ENOSR): Likewise.
54350         [POSIX] (ENOSTR): Likewise.
54351         [POSIX] (ENOTCONN): Likewise.
54352         [POSIX] (ENOTSOCK): Likewise.
54353         [POSIX] (EOPNOTSUPP): Likewise.
54354         [POSIX] (EOVERFLOW): Likewise.
54355         [POSIX] (EPROTO): Likewise.
54356         [POSIX] (EPROTONOSUPPORT): Likewise.
54357         [POSIX] (EPROTOTYPE): Likewise.
54358         [POSIX] (ESTALE): Likewise.
54359         [POSIX] (ETIME): Likewise.
54360         [POSIX] (ETXTBSY): Likewise.
54361         [POSIX] (EWOULDBLOCK): Likewise.
54362         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54363         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54364         [POSIX] (SEEK_CUR): Likewise.
54365         [POSIX] (SEEK_END): Likewise.
54366         [POSIX || UNIX98] (mode_t): Do not require.
54367         [POSIX] (off_t): Likewise.
54368         [POSIX] (pid_t): Likewise.
54369         [POSIX] (sys/stat.h): Do not allow header.
54370         [POSIX] (unistd.h): Likewise.
54371         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54372         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54373         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54374         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54375         require.
54376         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54377         sigevent): Specify elements.
54378         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54379         entry.
54380         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54381         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54382
54383         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54384         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54385         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54386         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54387         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54388         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54389         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54390         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54391         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54392         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54393         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54394         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54395         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54396         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54397         Likewise.
54398         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54399         Likewise.
54400         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54401         Likewise.
54402         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54403         Likewise.
54404         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54405         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54406         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54407         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54408         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54409         Specify lower bound on value.
54410         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54411         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54412         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54413         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54414         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54415         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54416         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54417         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54418         value.
54419         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54420         as optional.
54421         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54422         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54423         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54424         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54425         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54426         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54427         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54428         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54429         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54430         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54431         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54432         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54433         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54434         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54435         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54436         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54437         entry.
54438         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54439         optional.
54440         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54441         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54442         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54443         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54444         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54445         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54446         Likewise.
54447         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54448         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54449         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54450         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54451         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54452         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54453         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54454         as optional.
54455         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54456         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54457         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54458         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54459         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54460         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54461         specify as optional.
54462         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54463         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54464         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54465         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54466         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54467         [XPG3] (NL_LANGMAX): Likewise.
54468         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54469         [POSIX || XPG3] (NL_NMAX): Likewise.
54470         [POSIX || XPG3] (NL_SETMAX): Likewise.
54471         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54472         [XPG3] (NZERO): Likewise.
54473         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54474         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54475         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54476         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54477         (REG_ERANGE): Expect.
54478         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54479         optional-constant.
54480         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54481         Use (void) in prototype.
54482         [POSIX] (*_t): Allow.
54483         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54484         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54485         (WRDE_BADVAL): Expect.
54486
54487         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54488         expect.
54489         [XPG3 || XPG4] (O_RSYNC): Likewise.
54490         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54491         Likewise.
54492         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54493         [XPG3 || XPG4] (sigqueue): Likewise.
54494         [XPG3 || XPG4] (sigtimedwait): Likewise.
54495         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54496         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54497         [XPG3 || XPG4] (vsnprintf): Likewise.
54498         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54499         Likewise.
54500         [XPG3 || XPG4] (blksize_t): Likewise.
54501         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54502         Likewise.
54503         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54504         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54505         [XPG3 || XPG4] (struct itimerspec): Likewise.
54506         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54507         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54508         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54509         [XPG3 || XPG4] (clockid_t): Likewise.
54510         [XPG3 || XPG4] (timer_t): Likewise.
54511         [XPG3 || XPG4] (clock_getres): Likewise.
54512         [XPG3 || XPG4] (clock_gettime): Likewise.
54513         [XPG3 || XPG4] (clock_settime): Likewise.
54514         [XPG3 || XPG4] (nanosleep): Likewise.
54515         [XPG3 || XPG4] (timer_create): Likewise.
54516         [XPG3 || XPG4] (timer_delete): Likewise.
54517         [XPG3 || XPG4] (timer_gettime): Likewise.
54518         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54519         [XPG3 || XPG4] (timer_settime): Likewise.
54520         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54521         [XPG3 || XPG4] (getlogin_r): Likewise.
54522         [XPG3 || XPG4] (pread): Likewise.
54523         [XPG3 || XPG4] (pthread_atfork): Likewise.
54524         [XPG3 || XPG4] (pwrite): Likewise.
54525
54526         [BZ #14835]
54527         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54528         <bits/siginfo.h>.
54529
54530 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54531
54532         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54533         finalizing MALLSTREAM.
54534
54535         * sysdeps/mach/hurd/syncfs.c: New file.
54536
54537 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54538
54539         [BZ #14719]
54540         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54541         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54542         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54543         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54544         (_nss_dns_gethostbyname4_r): Likewise.
54545         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54546         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54547
54548 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54549
54550         [BZ #13763]
54551         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54552
54553 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54554
54555         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54556         * elf/cache.c (print_entry): Print ",AArch64" for
54557         FLAG_AARCH64_LIB64
54558
54559         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54560         * elf/cache.c (print_entry): Print ",hard-float" for
54561         FLAG_ARM_LIBHF.
54562
54563 2012-11-18  David S. Miller  <davem@davemloft.net>
54564
54565         With help from Joseph Myers.
54566         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54567         cutoff to 2**-13.
54568         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54569         cutoff to 2**-25.
54570         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54571         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54572         small.
54573         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54574         * math/libm-test.inc (y0_test): New tests.
54575         (y1_test): New tests.
54576         * sysdeps/i386/fpu/libm-test-ulps: Update.
54577         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54578         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54579
54580 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54581
54582         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54583         64-bit targets.
54584         * configure: Regenerated.
54585
54586 2012-11-17  David S. Miller  <davem@davemloft.net>
54587
54588         [BZ #14811]
54589         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54590         nonzero exponents with absolute value below 0x1p-128 to +/-
54591         0x1p-128.
54592
54593 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54594
54595         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54596
54597         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54598
54599         * posix/getconf-speclist.c: New file.
54600         * posix/posix-envs.def: Likewise.
54601         * posix/confstr.c (START_ENV_GROUP): New macro.
54602         (END_ENV_GROUP): Likewise.
54603         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54604         (KNOWN_PRESENT_ENV_STRING): Likewise.
54605         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54606         (UNKNOWN_ENVIRONMENT): Likewise.
54607         (confstr): Include posix-envs.def instead of handling
54608         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54609         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54610         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54611         (END_ENV_GROUP): Likewise.
54612         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54613         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54614         (UNKNOWN_ENVIRONMENT): Likewise.
54615         (__sysconf): Include posix-envs.def instead of handling associated
54616         cases directly here.
54617         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54618         preprocessing getconf-speclist.c rather than running getconf or
54619         generating empty file.
54620
54621 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54622
54623         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54624
54625 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54626
54627         [BZ #14672]
54628         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54629
54630 2012-11-16  David S. Miller  <davem@davemloft.net>
54631
54632         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54633         smaller than LDBL_EPSILON/2.0L, just return xm1.
54634
54635 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54636
54637         * elf/tst-array1.c (init): Set constructor priority to 1000.
54638         (fini): Set destructor priority to 1000.
54639         * elf/tst-array2dep.c: Likewise.
54640
54641 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54642
54643         [BZ #11741]
54644         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54645         (_IO_new_file_xsputn): Also return EOF if none of the input
54646         data was written when overflow failed.
54647         * libio/iopadn.c (_IO_padn): Likewise.
54648         * libio/iowpadn.c (_IO_wpadn): Likewise.
54649         * stdio-common/tst-put-error.c: Add copyright notice.
54650         (do_test): Add case for printing padded string.
54651         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54652         _IO_padn returned error.
54653         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54654         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54655         return EOF.
54656
54657 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54658
54659         * libio/libioP.h: Add comment note that the references to C++
54660         bits are now obsolete.
54661
54662 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54663
54664         * math/libm-test.inc (check_complex): Use asprintf.
54665
54666 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54667
54668         * debug/pcprofiledump.c (print_version): Update copyright year.
54669         * malloc/memusagestat.c (print_version): Likewise.
54670
54671 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54672
54673         [BZ #14831]
54674         * elf/Makefile (tests): Add tst-audit8.
54675         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54676         ($(objpfx)tst-audit8.out): New target.
54677         (tst-audit8-ENV): New variable.
54678         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54679         audit if l_reloc_result is NULL.
54680         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54681         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54682         * elf/tst-audit8.c: New file.
54683
54684 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54685
54686         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54687         * misc/Makefile (CFLAGS-select.c): Define.
54688         * posix/Makefile (CFLAGS-pause.c): Define.
54689
54690 2012-11-13  David S. Miller  <davem@davemloft.net>
54691
54692         * crypt/Makefile: Move test targets after toplevel Rules
54693         inclusion.  Grab any necessary sysdep routines when linking.
54694         * crypt/md5.c (md5_process_block): Remove define, we will always
54695         name it __md5_process_block.
54696         (md5_finish_ctx): Update md5_process_block call.
54697         (md5_stream): Likewise.
54698         (md5_process_bytes): Likewise.
54699         (md5_process_block): Rename to __md5_process_block and move to ...
54700         * crypt/md5-block.c: ... here.
54701         * crypt/sha256.c (sha256_process_block): Move to ...
54702         * crypt/sha256-block.c: ... here.
54703         * crypt/sha512.c (sha512_process_block): Move to ...
54704         * crypt/sha512-block.c: ... here.
54705         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54706         path.
54707         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54708         * sysdeps/sparc/sparc64/multiarch/Makefile
54709         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54710         crypt subdir.
54711         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54712         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54713         multiarch changes.
54714         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54715         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54716         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54717         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54718         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54719         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54720         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54721         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54722         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54723         file.
54724         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54725         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54726         file.
54727         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54728
54729 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54730
54731         * timezone/tzselect.ksh: Update from tzcode git revision
54732         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54733         * timezone/zdump.c: Likewise.
54734         * timezone/zic.c: Likewise.
54735         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54736         in TZVERSION setting, not $(PKGVERSION).
54737         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54738         REPORT_BUGS_TO settings.
54739
54740         [BZ #14838]
54741         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54742         macro.
54743
54744 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54745
54746         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54747         detection to immediately after _FP_ROUND().
54748         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54749         bits are 0.
54750
54751 2012-11-11  David S. Miller  <davem@davemloft.net>
54752
54753         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54754         inttypes.h
54755         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54756         __close rather than their public counterparts.
54757
54758 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54759
54760         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54761         file.
54762         [UNIX98] (sem_timedwait): Do not expect.
54763         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54764         [XPG4 || UNIX98] (sockatmark): Do not expect.
54765         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54766         (clock_getcpuclockid): Do not expect.
54767         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54768         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54769         Do not expect.
54770         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54771         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54772         [UNIX98] (vwscanf): Likewise.
54773         [UNIX98] (vswscanf): Likewise.
54774
54775 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54776
54777         * timezone/version.h: Remove file.
54778         * timezone/README: Do not refer to version.h.
54779         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54780         $(objpfx)version.h.
54781         ($(objpfx)zdump.o): Likewise.
54782         ($(objpfx)version.h): New target.
54783
54784         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54785         2012i.
54786         * timezone/README: Don't mention modification to tzselect.ksh.
54787         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54788         work on unmodified tzselect.ksh.  Substitute version numbers in
54789         tzselect.ksh.
54790
54791         * Makefile (format-me): Remove.
54792         (INSTALL): Adjust indentation.  Use commands directly instead of
54793         using $(format-me).
54794
54795         * aclocal.m4 (ACX_PKGVERSION): New macro.
54796         (ACX_BUGURL): Likewise.
54797         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54798         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54799         (REPORT_BUGS_TO): Likewise.
54800         * configure: Regenerated.
54801         * config.h.in (PKGVERSION): New macro.
54802         (REPORT_BUGS_TO): Likewise.
54803         * config.make.in (PKGVERSION): New variable.
54804         (PKGVERSION_TEXI): Likewise.
54805         (REPORT_BUGS_TO): Likewise.
54806         (REPORT_BUGS_TEXI): Likewise.
54807         * Makefile (format-me): Use -I$(common-objpfx)manual.
54808         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54809         ($(common-objpfx)manual/%): New target.
54810         (manual/%): Remove target.
54811         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54812         (print_version): Use PKGVERSION.
54813         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54814         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54815         and REPORT_BUGS_TO.
54816         ($(objpfx)xtrace): Likewise.
54817         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54818         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54819         (print_version): Use PKGVERSION.
54820         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54821         (do_version): Use PKGVERSION.
54822         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54823         REPORT_BUGS_TO.
54824         (common-ldd-rewrite): Likewise.
54825         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54826         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54827         (print_version): Use PKGVERSION.
54828         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54829         * elf/pldd.c (argp_program_bug_address): Remove variable.
54830         (more_help): New function.
54831         (argp): Use more_help.
54832         (print_version): Use PKGVERSION.
54833         * elf/sln.c (main): Use PKGVERSION.
54834         (usage): Use REPORT_BUGS_TO.
54835         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54836         (top level): Use PKGVERSION.
54837         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54838         (print_version): Use PKGVERSION.
54839         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54840         (print_version): Use PKGVERSION.
54841         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54842         (print_version): Use PKGVERSION.
54843         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54844         (print_version): Use PKGVERSION.
54845         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54846         (print_version): Use PKGVERSION.
54847         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54848         (print_version): Use PKGVERSION.
54849         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54850         and BUGURL.
54851         ($(objpfx)memusage): Likewise.
54852         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54853         (do_version): Use PKGVERSION.
54854         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54855         (print_version): Use PKGVERSION.
54856         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54857         ($PKGVERSION): New variable.
54858         ($REPORT_BUGS_TO): Likewise.
54859         (usage): Use $REPORT_BUGS_TO.
54860         (top level): Use $PKGVERSION.
54861         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54862         ($(objpfx)pkgvers.texi): New rule.
54863         ($(objpfx)stamp-pkgvers): Likewise.
54864         * manual/install.texi: Include pkgvers.texi.
54865         (--with-pkgversion): Document new configure option.
54866         (--with-bugurl): Likewise.
54867         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54868         than necessarily for this particular distribution.  Use
54869         REPORT_BUGS_TO for where to report bugs.
54870         * INSTALL: Regenerated.
54871         * manual/libc.texinfo: Include pkgvers.texi.
54872         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54873         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54874         (print_version): Use PKGVERSION.
54875         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54876         (print_version): Use PKGVERSION.
54877         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54878         (print_version): Use PKGVERSION.
54879         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54880         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54881         macro.
54882         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54883         (print_version): Use PKGVERSION.
54884         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54885         (print_version): Use PKGVERSION.
54886         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54887         and PKGVERSION.
54888
54889         * timezone/checktab.awk: Update from tzcode 2012i.
54890         * timezone/ialloc.c: Likewise.
54891         * timezone/private.h: Likewise.
54892         * timezone/scheck.c: Likewise.
54893         * timezone/tzfile.h: Likewise.
54894         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54895         (TZVERSION): Hardcode tzcode version number.
54896         * timezone/zdump.c: Update from tzcode 2012i.
54897         * timezone/zic.c: Likewise.
54898         * timezone/version.h: New file.
54899         * timezone/README: Describe version.h.  Update upstream location.
54900
54901         [BZ #14824]
54902         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54903         (mktemp): Enable declaration.
54904         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54905         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54906         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54907         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54908         Likewise.
54909         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54910         Likewise.
54911         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54912         Likewise.
54913         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54914         Likewise.
54915         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54916         Likewise.
54917         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54918         Likewise.
54919
54920         [BZ #14821]
54921         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54922         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54923         for copies of such integer values.
54924         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54925         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54926
54927 2012-11-09  Andreas Jaeger  <aj@suse.de>
54928
54929         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54930         definitions and declarations that are provided by
54931         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54932
54933 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54934
54935         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54936         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54937         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54938         definition.
54939
54940 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54941
54942         * elf/elf.h: Update comment before AArch64 relocations.
54943
54944 2012-11-07  David S. Miller  <davem@davemloft.net>
54945
54946         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54947         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54948         (__start_context): Declare.
54949         (__makecontext_ret): Delete.
54950         (__makecontext): Hook up __start_context instead of
54951         __makecontext_ret.
54952         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54953         (sysdep_routines): Add __start_context when in stdlib.
54954
54955 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54956
54957         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54958         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54959         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54960         hardcoded "nm".
54961         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54962         (READELF): New variable.  Use it instead of hardcoded "readelf".
54963
54964 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54965
54966         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54967         * sysdeps/x86/Makefile: Here.
54968         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54969         * sysdeps/x86/tst-xmmymm.sh: This.
54970
54971 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54972
54973         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54974         expectations.
54975         [UNIX98] (pthread_barrier_t): Do not expect.
54976         [UNIX98] (pthread_barrierattr_t): Likewise.
54977         [UNIX98] (pthread_spinlock_t): Likewise.
54978         [UNIX98] (pthread_barrier_destroy): Likewise.
54979         [UNIX98] (pthread_barrier_init): Likewise.
54980         [UNIX98] (pthread_barrier_wait): Likewise.
54981         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54982         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54983         [UNIX98] (pthread_barrierattr_init): Likewise.
54984         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54985         [UNIX98] (pthread_getcpuclockid): Likewise.
54986         [UNIX98] (pthread_mutex_timedlock): Likewise.
54987         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54988         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54989         [UNIX98] (pthread_sigmask): Likewise.
54990         [UNIX98] (pthread_spin_destroy): Likewise.
54991         [UNIX98] (pthread_spin_init): Likewise.
54992         [UNIX98] (pthread_spin_lock): Likewise.
54993         [UNIX98] (pthread_spin_trylock): Likewise.
54994         [UNIX98] (pthread_spin_unlock): Likewise.
54995         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54996         Do not expect.
54997         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54998         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54999         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55000         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55001         [XPG3 || XPG4] (pthread_key_t): Likewise.
55002         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55003         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55004         [XPG3 || XPG4] (pthread_once_t): Likewise.
55005         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55006         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55007         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55008         [XPG3 || XPG4] (pthread_t): Likewise.
55009
55010         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55011         not expect.
55012         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55013
55014         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55015         Change function return type to int.
55016
55017         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55018         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55019         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55020         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55021         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55022         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55023         [!POSIX] (posix_madvise): Likewise.
55024         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55025         && !UNIX98].
55026         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55027         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55028         (mode_t): Likewise.
55029         (posix_mem_offset): Likewise.
55030         (posix_typed_mem_get_info): Likewise.
55031         (posix_typed_mem_open): Likewise.
55032
55033         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55034         Change condition to [XOPEN2K8].
55035
55036         * conform/conformtest.pl: Preprocess allow-header data with -x c
55037         instead of from stdin.
55038         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55039         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55040         [C99-based standards] (cerfc): Likewise.
55041         [C99-based standards] (cexp2): Likewise.
55042         [C99-based standards] (cexpm1): Likewise.
55043         [C99-based standards] (clog10): Likewise.
55044         [C99-based standards] (clog1p): Likewise.
55045         [C99-based standards] (clog2): Likewise.
55046         [C99-based standards] (clgamma): Likewise.
55047         [C99-based standards] (ctgamma): Likewise.
55048         [C99-based standards] (cerff): Likewise.
55049         [C99-based standards] (cerfcf): Likewise.
55050         [C99-based standards] (cexp2f): Likewise.
55051         [C99-based standards] (cexpm1f): Likewise.
55052         [C99-based standards] (clog10f): Likewise.
55053         [C99-based standards] (clog1pf): Likewise.
55054         [C99-based standards] (clog2f): Likewise.
55055         [C99-based standards] (clgammaf): Likewise.
55056         [C99-based standards] (ctgammaf): Likewise.
55057         [C99-based standards] (cerfl): Likewise.
55058         [C99-based standards] (cerfcl): Likewise.
55059         [C99-based standards] (cexp2l): Likewise.
55060         [C99-based standards] (cexpm1l): Likewise.
55061         [C99-based standards] (clog10l): Likewise.
55062         [C99-based standards] (clog1pl): Likewise.
55063         [C99-based standards] (clog2l): Likewise.
55064         [C99-based standards] (clgammal): Likewise.
55065         [C99-based standards] (ctgammal): Likewise.
55066         * conform/data/inttypes.h-data [C99-based standards]: Include
55067         stdint.h-data.  Remove all expectations for stdint.h contents.
55068         [C99-based standards] (PRI*): Do not allow.
55069         [C99-based standards] (SCN*): Likewise.
55070         [C99-based standards] (*_t): Likewise.
55071         [C99-based-standards] (PRId8): Expect macro.
55072         [C99-based-standards] (PRIi8): Likewise.
55073         [C99-based-standards] (PRIo8): Likewise.
55074         [C99-based-standards] (PRIu8): Likewise.
55075         [C99-based-standards] (PRIx8): Likewise.
55076         [C99-based-standards] (PRIX8): Likewise.
55077         [C99-based-standards] (SCNd8): Likewise.
55078         [C99-based-standards] (SCNi8): Likewise.
55079         [C99-based-standards] (SCNo8): Likewise.
55080         [C99-based-standards] (SCNu8): Likewise.
55081         [C99-based-standards] (SCNx8): Likewise.
55082         [C99-based-standards] (PRIdLEAST8): Likewise.
55083         [C99-based-standards] (PRIiLEAST8): Likewise.
55084         [C99-based-standards] (PRIoLEAST8): Likewise.
55085         [C99-based-standards] (PRIuLEAST8): Likewise.
55086         [C99-based-standards] (PRIxLEAST8): Likewise.
55087         [C99-based-standards] (PRIXLEAST8): Likewise.
55088         [C99-based-standards] (SCNdLEAST8): Likewise.
55089         [C99-based-standards] (SCNiLEAST8): Likewise.
55090         [C99-based-standards] (SCNoLEAST8): Likewise.
55091         [C99-based-standards] (SCNuLEAST8): Likewise.
55092         [C99-based-standards] (SCNxLEAST8): Likewise.
55093         [C99-based-standards] (PRIdFAST8): Likewise.
55094         [C99-based-standards] (PRIiFAST8): Likewise.
55095         [C99-based-standards] (PRIoFAST8): Likewise.
55096         [C99-based-standards] (PRIuFAST8): Likewise.
55097         [C99-based-standards] (PRIxFAST8): Likewise.
55098         [C99-based-standards] (PRIXFAST8): Likewise.
55099         [C99-based-standards] (SCNdFAST8): Likewise.
55100         [C99-based-standards] (SCNiFAST8): Likewise.
55101         [C99-based-standards] (SCNoFAST8): Likewise.
55102         [C99-based-standards] (SCNuFAST8): Likewise.
55103         [C99-based-standards] (SCNxFAST8): Likewise.
55104         [C99-based-standards] (PRId16): Likewise.
55105         [C99-based-standards] (PRIi16): Likewise.
55106         [C99-based-standards] (PRIo16): Likewise.
55107         [C99-based-standards] (PRIu16): Likewise.
55108         [C99-based-standards] (PRIx16): Likewise.
55109         [C99-based-standards] (PRIX16): Likewise.
55110         [C99-based-standards] (SCNd16): Likewise.
55111         [C99-based-standards] (SCNi16): Likewise.
55112         [C99-based-standards] (SCNo16): Likewise.
55113         [C99-based-standards] (SCNu16): Likewise.
55114         [C99-based-standards] (SCNx16): Likewise.
55115         [C99-based-standards] (PRIdLEAST16): Likewise.
55116         [C99-based-standards] (PRIiLEAST16): Likewise.
55117         [C99-based-standards] (PRIoLEAST16): Likewise.
55118         [C99-based-standards] (PRIuLEAST16): Likewise.
55119         [C99-based-standards] (PRIxLEAST16): Likewise.
55120         [C99-based-standards] (PRIXLEAST16): Likewise.
55121         [C99-based-standards] (SCNdLEAST16): Likewise.
55122         [C99-based-standards] (SCNiLEAST16): Likewise.
55123         [C99-based-standards] (SCNoLEAST16): Likewise.
55124         [C99-based-standards] (SCNuLEAST16): Likewise.
55125         [C99-based-standards] (SCNxLEAST16): Likewise.
55126         [C99-based-standards] (PRIdFAST16): Likewise.
55127         [C99-based-standards] (PRIiFAST16): Likewise.
55128         [C99-based-standards] (PRIoFAST16): Likewise.
55129         [C99-based-standards] (PRIuFAST16): Likewise.
55130         [C99-based-standards] (PRIxFAST16): Likewise.
55131         [C99-based-standards] (PRIXFAST16): Likewise.
55132         [C99-based-standards] (SCNdFAST16): Likewise.
55133         [C99-based-standards] (SCNiFAST16): Likewise.
55134         [C99-based-standards] (SCNoFAST16): Likewise.
55135         [C99-based-standards] (SCNuFAST16): Likewise.
55136         [C99-based-standards] (SCNxFAST16): Likewise.
55137         [C99-based-standards] (PRId32): Likewise.
55138         [C99-based-standards] (PRIi32): Likewise.
55139         [C99-based-standards] (PRIo32): Likewise.
55140         [C99-based-standards] (PRIu32): Likewise.
55141         [C99-based-standards] (PRIx32): Likewise.
55142         [C99-based-standards] (PRIX32): Likewise.
55143         [C99-based-standards] (SCNd32): Likewise.
55144         [C99-based-standards] (SCNi32): Likewise.
55145         [C99-based-standards] (SCNo32): Likewise.
55146         [C99-based-standards] (SCNu32): Likewise.
55147         [C99-based-standards] (SCNx32): Likewise.
55148         [C99-based-standards] (PRIdLEAST32): Likewise.
55149         [C99-based-standards] (PRIiLEAST32): Likewise.
55150         [C99-based-standards] (PRIoLEAST32): Likewise.
55151         [C99-based-standards] (PRIuLEAST32): Likewise.
55152         [C99-based-standards] (PRIxLEAST32): Likewise.
55153         [C99-based-standards] (PRIXLEAST32): Likewise.
55154         [C99-based-standards] (SCNdLEAST32): Likewise.
55155         [C99-based-standards] (SCNiLEAST32): Likewise.
55156         [C99-based-standards] (SCNoLEAST32): Likewise.
55157         [C99-based-standards] (SCNuLEAST32): Likewise.
55158         [C99-based-standards] (SCNxLEAST32): Likewise.
55159         [C99-based-standards] (PRIdFAST32): Likewise.
55160         [C99-based-standards] (PRIiFAST32): Likewise.
55161         [C99-based-standards] (PRIoFAST32): Likewise.
55162         [C99-based-standards] (PRIuFAST32): Likewise.
55163         [C99-based-standards] (PRIxFAST32): Likewise.
55164         [C99-based-standards] (PRIXFAST32): Likewise.
55165         [C99-based-standards] (SCNdFAST32): Likewise.
55166         [C99-based-standards] (SCNiFAST32): Likewise.
55167         [C99-based-standards] (SCNoFAST32): Likewise.
55168         [C99-based-standards] (SCNuFAST32): Likewise.
55169         [C99-based-standards] (SCNxFAST32): Likewise.
55170         [C99-based-standards] (PRId64): Likewise.
55171         [C99-based-standards] (PRIi64): Likewise.
55172         [C99-based-standards] (PRIo64): Likewise.
55173         [C99-based-standards] (PRIu64): Likewise.
55174         [C99-based-standards] (PRIx64): Likewise.
55175         [C99-based-standards] (PRIX64): Likewise.
55176         [C99-based-standards] (SCNd64): Likewise.
55177         [C99-based-standards] (SCNi64): Likewise.
55178         [C99-based-standards] (SCNo64): Likewise.
55179         [C99-based-standards] (SCNu64): Likewise.
55180         [C99-based-standards] (SCNx64): Likewise.
55181         [C99-based-standards] (PRIdLEAST64): Likewise.
55182         [C99-based-standards] (PRIiLEAST64): Likewise.
55183         [C99-based-standards] (PRIoLEAST64): Likewise.
55184         [C99-based-standards] (PRIuLEAST64): Likewise.
55185         [C99-based-standards] (PRIxLEAST64): Likewise.
55186         [C99-based-standards] (PRIXLEAST64): Likewise.
55187         [C99-based-standards] (SCNdLEAST64): Likewise.
55188         [C99-based-standards] (SCNiLEAST64): Likewise.
55189         [C99-based-standards] (SCNoLEAST64): Likewise.
55190         [C99-based-standards] (SCNuLEAST64): Likewise.
55191         [C99-based-standards] (SCNxLEAST64): Likewise.
55192         [C99-based-standards] (PRIdFAST64): Likewise.
55193         [C99-based-standards] (PRIiFAST64): Likewise.
55194         [C99-based-standards] (PRIoFAST64): Likewise.
55195         [C99-based-standards] (PRIuFAST64): Likewise.
55196         [C99-based-standards] (PRIxFAST64): Likewise.
55197         [C99-based-standards] (PRIXFAST64): Likewise.
55198         [C99-based-standards] (SCNdFAST64): Likewise.
55199         [C99-based-standards] (SCNiFAST64): Likewise.
55200         [C99-based-standards] (SCNoFAST64): Likewise.
55201         [C99-based-standards] (SCNuFAST64): Likewise.
55202         [C99-based-standards] (SCNxFAST64): Likewise.
55203         [C99-based-standards] (PRIdMAX): Likewise.
55204         [C99-based-standards] (PRIiMAX): Likewise.
55205         [C99-based-standards] (PRIoMAX): Likewise.
55206         [C99-based-standards] (PRIuMAX): Likewise.
55207         [C99-based-standards] (PRIxMAX): Likewise.
55208         [C99-based-standards] (PRIXMAX): Likewise.
55209         [C99-based-standards] (SCNdMAX): Likewise.
55210         [C99-based-standards] (SCNiMAX): Likewise.
55211         [C99-based-standards] (SCNoMAX): Likewise.
55212         [C99-based-standards] (SCNuMAX): Likewise.
55213         [C99-based-standards] (SCNxMAX): Likewise.
55214         [C99-based-standards] (PRIdPTR): Likewise.
55215         [C99-based-standards] (PRIiPTR): Likewise.
55216         [C99-based-standards] (PRIoPTR): Likewise.
55217         [C99-based-standards] (PRIuPTR): Likewise.
55218         [C99-based-standards] (PRIxPTR): Likewise.
55219         [C99-based-standards] (PRIXPTR): Likewise.
55220         [C99-based-standards] (SCNdPTR): Likewise.
55221         [C99-based-standards] (SCNiPTR): Likewise.
55222         [C99-based-standards] (SCNoPTR): Likewise.
55223         [C99-based-standards] (SCNuPTR): Likewise.
55224         [C99-based-standards] (SCNxPTR): Likewise.
55225         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55226         allow.
55227         * conform/data/stdint.h-data: Update comments to clarify
55228         requirements.
55229         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55230         type.
55231         [C99-based standards] (INT8_MAX): Likewise.
55232         [C99-based standards] (INT16_MIN): Likewise.
55233         [C99-based standards] (INT16_MAX): Likewise.
55234         [C99-based standards] (INT32_MIN): Likewise.
55235         [C99-based standards] (INT32_MAX): Likewise.
55236         [C99-based standards] (INT64_MIN): Likewise.
55237         [C99-based standards] (INT64_MAX): Likewise.
55238         [C99-based standards] (UINT8_MAX): Likewise.
55239         [C99-based standards] (UINT16_MAX): Likewise.
55240         [C99-based standards] (UINT32_MAX): Likewise.
55241         [C99-based standards] (UINT64_MAX): Likewise.
55242         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55243         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55244         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55245         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55246         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55247         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55248         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55249         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55250         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55251         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55252         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55253         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55254         [C99-based standards] (INT_FAST8_MIN): Likewise.
55255         [C99-based standards] (INT_FAST8_MAX): Likewise.
55256         [C99-based standards] (INT_FAST16_MIN): Likewise.
55257         [C99-based standards] (INT_FAST16_MAX): Likewise.
55258         [C99-based standards] (INT_FAST32_MIN): Likewise.
55259         [C99-based standards] (INT_FAST32_MAX): Likewise.
55260         [C99-based standards] (INT_FAST64_MIN): Likewise.
55261         [C99-based standards] (INT_FAST64_MAX): Likewise.
55262         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55263         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55264         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55265         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55266         [C99-based standards] (INTPTR_MIN): Likewise.
55267         [C99-based standards] (INTPTR_MAX): Likewise.
55268         [C99-based standards] (UINTPTR_MAX): Likewise.
55269         [C99-based standards] (INTMAX_MIN): Likewise.
55270         [C99-based standards] (INTMAX_MAX): Likewise.
55271         [C99-based standards] (UINTMAX_MAX): Likewise.
55272         [C99-based standards] (PTRDIFF_MIN): Likewise.
55273         [C99-based standards] (PTRDIFF_MAX): Likewise.
55274         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55275         [C99-based standards] (SIZE_MAX): Likewise.
55276         [C99-based standards] (WCHAR_MAX): Likewise.
55277         [C99-based standards] (WINT_MAX): Likewise.
55278         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55279         constraint on value.
55280         [C99-based standards] (WCHAR_MIN): Likewise.
55281         [C99-based standards] (WINT_MIN): Likewise.
55282         [C99-based standards] (*_t): Allow.
55283         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55284         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55285         Include math.h-data and complex.h-data.  Remove all expectations
55286         of math.h and complex.h contents.
55287         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55288         at end of line.
55289         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55290         (struct tm): Expect tag.
55291         [C99-based-standards] (wcstof): Expect function.
55292         [C99-based-standards] (wcstold): Likewise.
55293         [C99-based-standards] (wcstoll): Likewise.
55294         [C99-based-standards] (wcstoull): Likewise.
55295         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55296         macro-int-constant.  Specify type.
55297         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55298         constraint on value.
55299         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55300         Specify type.
55301         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55302         Specify value.
55303         [ISO C standards]: Do not allow headers.
55304         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55305         wcs[abcdefghijklmnopqrstuvwxyz]*.
55306         [ISO C standards] (*_t): Do not allow.
55307         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55308         Expect function.
55309         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55310         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55311         Specify type.
55312         [ISO C standards]: Do not allow headers.
55313         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55314         is[abcdefghijklmnopqrstuvwxyz]*.
55315         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55316         to[abcdefghijklmnopqrstuvwxyz]*.
55317         [ISO C standards] (*_t): Do not allow.
55318         * conform/data/stdalign.h-data: New file.
55319         * conform/data/stdbool.h-data: Likewise.
55320         * conform/data/stdnoreturn.h-data: Likewise.
55321
55322 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55323
55324         [BZ #14815]
55325         * manual/filesys.texi (Directory Entries): Typo fix.
55326         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55327
55328 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55329
55330         * elf/elf.h (EM_AARCH64): New macro.
55331         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55332         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55333         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55334         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55335         (R_AARCH64_TLSDESC): Likewise.
55336         (NT_ARM_TLS): Likewise.
55337         (NT_ARM_HW_BREAK): Likewise.
55338         (NT_ARM_HW_WATCH): Likewise.
55339
55340 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55341
55342         [BZ #14811]
55343         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55344         (__ieee754_powl): Saturate nonzero exponents with absolute value
55345         below 0x1p-79 to +/- 0x1p-79.
55346         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55347         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55348         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55349         nonzero exponents with absolute value below 0x1p-32 to +/-
55350         0x1p-32.
55351         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55352         (__ieee754_powl): Saturate nonzero exponents with absolute value
55353         below 0x1p-79 to +/- 0x1p-79.
55354         * math/libm-test.inc (pow_test): Add more tests.
55355
55356 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55357
55358         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55359         _dl_s390_cap_flags with kernel. Increase string length.
55360         (_dl_s390_platforms): Add z196 and zEC12.
55361
55362 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55363
55364         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55365         Change XOPEN21K to XOPEN2K.
55366
55367 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55368
55369         * string/memmove.c: Use memcpy when possible.
55370
55371 2012-11-06  Andreas Jaeger  <aj@suse.de>
55372
55373         * po/eo.po: Update from translation team.
55374
55375 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55376
55377         [BZ #14793]
55378         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55379         exponent and small x and y exponents, scale x or y up.  Increase
55380         by 2 the exponent used in scaling up.
55381         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55382         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55383         * math/libm-test.inc (fma_test): Add more tests.
55384         (fma_test_towardzero): Likewise.
55385         (fma_test_downward): Likewise.
55386         (fma_test_upward): Likewise.
55387
55388 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55389
55390         [BZ #14805]
55391         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55392         fenv_t *.
55393
55394         [BZ #14801]
55395         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55396         namespace for names of struct fields.
55397         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55398         fenv_t fields.
55399         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55400         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55401
55402 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55403
55404         [BZ #3665]
55405         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55406
55407 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55408
55409         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55410         PTR_DEMANGLE.
55411
55412         [BZ #5246]
55413         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55414         PTR_DEMANGLE.
55415
55416 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55417
55418         [BZ #14797]
55419         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55420         definitely overflow as x * y not x * y + z.
55421         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55422         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55423         * math/libm-test.inc (fma_test): Add more tests.
55424         (fma_test_towardzero): Likewise.
55425         (fma_test_downward): Likewise.
55426         (fma_test_upward): Likewise.
55427
55428 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55429
55430         [BZ #157]
55431
55432         * include/stub-tag.h: Remove file.
55433         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55434         '#include' of it.
55435         * manual/maint.texi (Porting): Don't reference it.
55436         * Makerules ($(objpfx)stubs): Likewise.
55437         * dirent/closedir.c: Don't include <stub-tag.h>.
55438         * dirent/dirfd.c: Likewise.
55439         * dirent/fdopendir.c: Likewise.
55440         * dirent/getdents.c: Likewise.
55441         * dirent/getdents64.c: Likewise.
55442         * dirent/opendir.c: Likewise.
55443         * dirent/readdir.c: Likewise.
55444         * dirent/readdir64.c: Likewise.
55445         * dirent/readdir64_r.c: Likewise.
55446         * dirent/readdir_r.c: Likewise.
55447         * dirent/rewinddir.c: Likewise.
55448         * dirent/seekdir.c: Likewise.
55449         * dirent/telldir.c: Likewise.
55450         * gmon/profil.c: Likewise.
55451         * grp/setgroups.c: Likewise.
55452         * inet/if_index.c: Likewise.
55453         * io/access.c: Likewise.
55454         * io/chdir.c: Likewise.
55455         * io/chmod.c: Likewise.
55456         * io/chown.c: Likewise.
55457         * io/close.c: Likewise.
55458         * io/dup.c: Likewise.
55459         * io/dup2.c: Likewise.
55460         * io/dup3.c: Likewise.
55461         * io/euidaccess.c: Likewise.
55462         * io/faccessat.c: Likewise.
55463         * io/fchdir.c: Likewise.
55464         * io/fchmod.c: Likewise.
55465         * io/fchmodat.c: Likewise.
55466         * io/fchown.c: Likewise.
55467         * io/fchownat.c: Likewise.
55468         * io/fcntl.c: Likewise.
55469         * io/flock.c: Likewise.
55470         * io/fstatfs.c: Likewise.
55471         * io/fstatfs64.c: Likewise.
55472         * io/fstatvfs.c: Likewise.
55473         * io/fstatvfs64.c: Likewise.
55474         * io/futimens.c: Likewise.
55475         * io/fxstat.c: Likewise.
55476         * io/fxstat64.c: Likewise.
55477         * io/fxstatat.c: Likewise.
55478         * io/fxstatat64.c: Likewise.
55479         * io/getcwd.c: Likewise.
55480         * io/isatty.c: Likewise.
55481         * io/lchmod.c: Likewise.
55482         * io/lchown.c: Likewise.
55483         * io/link.c: Likewise.
55484         * io/linkat.c: Likewise.
55485         * io/lseek.c: Likewise.
55486         * io/lseek64.c: Likewise.
55487         * io/lxstat64.c: Likewise.
55488         * io/mkdir.c: Likewise.
55489         * io/mkdirat.c: Likewise.
55490         * io/mkfifo.c: Likewise.
55491         * io/mkfifoat.c: Likewise.
55492         * io/open.c: Likewise.
55493         * io/open64.c: Likewise.
55494         * io/openat.c: Likewise.
55495         * io/openat64.c: Likewise.
55496         * io/pipe.c: Likewise.
55497         * io/pipe2.c: Likewise.
55498         * io/poll.c: Likewise.
55499         * io/posix_fadvise.c: Likewise.
55500         * io/posix_fadvise64.c: Likewise.
55501         * io/posix_fallocate.c: Likewise.
55502         * io/posix_fallocate64.c: Likewise.
55503         * io/read.c: Likewise.
55504         * io/readlink.c: Likewise.
55505         * io/readlinkat.c: Likewise.
55506         * io/rmdir.c: Likewise.
55507         * io/sendfile.c: Likewise.
55508         * io/sendfile64.c: Likewise.
55509         * io/statfs.c: Likewise.
55510         * io/statfs64.c: Likewise.
55511         * io/statvfs.c: Likewise.
55512         * io/statvfs64.c: Likewise.
55513         * io/symlink.c: Likewise.
55514         * io/symlinkat.c: Likewise.
55515         * io/ttyname.c: Likewise.
55516         * io/ttyname_r.c: Likewise.
55517         * io/umask.c: Likewise.
55518         * io/unlink.c: Likewise.
55519         * io/unlinkat.c: Likewise.
55520         * io/utime.c: Likewise.
55521         * io/utimensat.c: Likewise.
55522         * io/write.c: Likewise.
55523         * io/xmknod.c: Likewise.
55524         * io/xmknodat.c: Likewise.
55525         * io/xstat.c: Likewise.
55526         * io/xstat64.c: Likewise.
55527         * login/getpt.c: Likewise.
55528         * login/grantpt.c: Likewise.
55529         * login/unlockpt.c: Likewise.
55530         * math/e_acoshl.c: Likewise.
55531         * math/e_acosl.c: Likewise.
55532         * math/e_asinl.c: Likewise.
55533         * math/e_atan2l.c: Likewise.
55534         * math/e_atanhl.c: Likewise.
55535         * math/e_coshl.c: Likewise.
55536         * math/e_expl.c: Likewise.
55537         * math/e_fmodl.c: Likewise.
55538         * math/e_gammal_r.c: Likewise.
55539         * math/e_hypotl.c: Likewise.
55540         * math/e_j0l.c: Likewise.
55541         * math/e_j1l.c: Likewise.
55542         * math/e_jnl.c: Likewise.
55543         * math/e_lgammal_r.c: Likewise.
55544         * math/e_log10l.c: Likewise.
55545         * math/e_log2l.c: Likewise.
55546         * math/e_logl.c: Likewise.
55547         * math/e_powl.c: Likewise.
55548         * math/e_rem_pio2l.c: Likewise.
55549         * math/e_sinhl.c: Likewise.
55550         * math/e_sqrtl.c: Likewise.
55551         * math/fclrexcpt.c: Likewise.
55552         * math/fedisblxcpt.c: Likewise.
55553         * math/feenablxcpt.c: Likewise.
55554         * math/fegetenv.c: Likewise.
55555         * math/fegetexcept.c: Likewise.
55556         * math/fegetround.c: Likewise.
55557         * math/feholdexcpt.c: Likewise.
55558         * math/fesetenv.c: Likewise.
55559         * math/fesetround.c: Likewise.
55560         * math/feupdateenv.c: Likewise.
55561         * math/fgetexcptflg.c: Likewise.
55562         * math/fraiseexcpt.c: Likewise.
55563         * math/fsetexcptflg.c: Likewise.
55564         * math/ftestexcept.c: Likewise.
55565         * math/k_cosl.c: Likewise.
55566         * math/k_rem_pio2l.c: Likewise.
55567         * math/k_sinl.c: Likewise.
55568         * math/k_tanl.c: Likewise.
55569         * math/s_asinhl.c: Likewise.
55570         * math/s_atanl.c: Likewise.
55571         * math/s_cbrtl.c: Likewise.
55572         * math/s_erfl.c: Likewise.
55573         * math/s_expm1l.c: Likewise.
55574         * math/s_log1pl.c: Likewise.
55575         * math/s_tanhl.c: Likewise.
55576         * misc/acct.c: Likewise.
55577         * misc/brk.c: Likewise.
55578         * misc/chflags.c: Likewise.
55579         * misc/chroot.c: Likewise.
55580         * misc/fchflags.c: Likewise.
55581         * misc/fgetxattr.c: Likewise.
55582         * misc/flistxattr.c: Likewise.
55583         * misc/fremovexattr.c: Likewise.
55584         * misc/fsetxattr.c: Likewise.
55585         * misc/fsync.c: Likewise.
55586         * misc/ftruncate.c: Likewise.
55587         * misc/futimes.c: Likewise.
55588         * misc/futimesat.c: Likewise.
55589         * misc/getdomain.c: Likewise.
55590         * misc/getdtsz.c: Likewise.
55591         * misc/gethostid.c: Likewise.
55592         * misc/gethostname.c: Likewise.
55593         * misc/getloadavg.c: Likewise.
55594         * misc/getpagesize.c: Likewise.
55595         * misc/getsysstats.c: Likewise.
55596         * misc/getxattr.c: Likewise.
55597         * misc/gtty.c: Likewise.
55598         * misc/ioctl.c: Likewise.
55599         * misc/lgetxattr.c: Likewise.
55600         * misc/listxattr.c: Likewise.
55601         * misc/llistxattr.c: Likewise.
55602         * misc/lremovexattr.c: Likewise.
55603         * misc/lsetxattr.c: Likewise.
55604         * misc/lutimes.c: Likewise.
55605         * misc/madvise.c: Likewise.
55606         * misc/mincore.c: Likewise.
55607         * misc/mlock.c: Likewise.
55608         * misc/mlockall.c: Likewise.
55609         * misc/mmap.c: Likewise.
55610         * misc/mprotect.c: Likewise.
55611         * misc/msync.c: Likewise.
55612         * misc/munlock.c: Likewise.
55613         * misc/munlockall.c: Likewise.
55614         * misc/munmap.c: Likewise.
55615         * misc/preadv.c: Likewise.
55616         * misc/preadv64.c: Likewise.
55617         * misc/ptrace.c: Likewise.
55618         * misc/pwritev.c: Likewise.
55619         * misc/pwritev64.c: Likewise.
55620         * misc/readv.c: Likewise.
55621         * misc/reboot.c: Likewise.
55622         * misc/remap_file_pages.c: Likewise.
55623         * misc/removexattr.c: Likewise.
55624         * misc/revoke.c: Likewise.
55625         * misc/select.c: Likewise.
55626         * misc/setdomain.c: Likewise.
55627         * misc/setegid.c: Likewise.
55628         * misc/seteuid.c: Likewise.
55629         * misc/sethostid.c: Likewise.
55630         * misc/sethostname.c: Likewise.
55631         * misc/setregid.c: Likewise.
55632         * misc/setreuid.c: Likewise.
55633         * misc/setxattr.c: Likewise.
55634         * misc/sstk.c: Likewise.
55635         * misc/stty.c: Likewise.
55636         * misc/swapoff.c: Likewise.
55637         * misc/swapon.c: Likewise.
55638         * misc/sync.c: Likewise.
55639         * misc/syncfs.c: Likewise.
55640         * misc/syscall.c: Likewise.
55641         * misc/truncate.c: Likewise.
55642         * misc/ualarm.c: Likewise.
55643         * misc/usleep.c: Likewise.
55644         * misc/ustat.c: Likewise.
55645         * misc/utimes.c: Likewise.
55646         * misc/vhangup.c: Likewise.
55647         * misc/writev.c: Likewise.
55648         * posix/_exit.c: Likewise.
55649         * posix/alarm.c: Likewise.
55650         * posix/execve.c: Likewise.
55651         * posix/fexecve.c: Likewise.
55652         * posix/fork.c: Likewise.
55653         * posix/fpathconf.c: Likewise.
55654         * posix/getaddrinfo.c: Likewise.
55655         * posix/getegid.c: Likewise.
55656         * posix/geteuid.c: Likewise.
55657         * posix/getgid.c: Likewise.
55658         * posix/getgroups.c: Likewise.
55659         * posix/getlogin.c: Likewise.
55660         * posix/getlogin_r.c: Likewise.
55661         * posix/getpgid.c: Likewise.
55662         * posix/getpid.c: Likewise.
55663         * posix/getppid.c: Likewise.
55664         * posix/getresgid.c: Likewise.
55665         * posix/getresuid.c: Likewise.
55666         * posix/getsid.c: Likewise.
55667         * posix/getuid.c: Likewise.
55668         * posix/glob64.c: Likewise.
55669         * posix/nanosleep.c: Likewise.
55670         * posix/pathconf.c: Likewise.
55671         * posix/pause.c: Likewise.
55672         * posix/posix_madvise.c: Likewise.
55673         * posix/pread.c: Likewise.
55674         * posix/pread64.c: Likewise.
55675         * posix/pwrite.c: Likewise.
55676         * posix/pwrite64.c: Likewise.
55677         * posix/sched_getaffinity.c: Likewise.
55678         * posix/sched_getp.c: Likewise.
55679         * posix/sched_gets.c: Likewise.
55680         * posix/sched_primax.c: Likewise.
55681         * posix/sched_primin.c: Likewise.
55682         * posix/sched_rr_gi.c: Likewise.
55683         * posix/sched_setaffinity.c: Likewise.
55684         * posix/sched_setp.c: Likewise.
55685         * posix/sched_sets.c: Likewise.
55686         * posix/sched_yield.c: Likewise.
55687         * posix/setgid.c: Likewise.
55688         * posix/setlogin.c: Likewise.
55689         * posix/setpgid.c: Likewise.
55690         * posix/setresgid.c: Likewise.
55691         * posix/setresuid.c: Likewise.
55692         * posix/setsid.c: Likewise.
55693         * posix/setuid.c: Likewise.
55694         * posix/sleep.c: Likewise.
55695         * posix/spawni.c: Likewise.
55696         * posix/sysconf.c: Likewise.
55697         * posix/times.c: Likewise.
55698         * posix/wait.c: Likewise.
55699         * posix/wait3.c: Likewise.
55700         * posix/wait4.c: Likewise.
55701         * posix/waitpid.c: Likewise.
55702         * resolv/gai_sigqueue.c: Likewise.
55703         * resource/getpriority.c: Likewise.
55704         * resource/getrlimit.c: Likewise.
55705         * resource/getrusage.c: Likewise.
55706         * resource/nice.c: Likewise.
55707         * resource/setpriority.c: Likewise.
55708         * resource/setrlimit.c: Likewise.
55709         * resource/ulimit.c: Likewise.
55710         * rt/aio_cancel.c: Likewise.
55711         * rt/aio_fsync.c: Likewise.
55712         * rt/aio_read.c: Likewise.
55713         * rt/aio_sigqueue.c: Likewise.
55714         * rt/aio_suspend.c: Likewise.
55715         * rt/aio_write.c: Likewise.
55716         * rt/clock_getres.c: Likewise.
55717         * rt/clock_gettime.c: Likewise.
55718         * rt/clock_nanosleep.c: Likewise.
55719         * rt/clock_settime.c: Likewise.
55720         * rt/lio_listio.c: Likewise.
55721         * rt/mq_close.c: Likewise.
55722         * rt/mq_getattr.c: Likewise.
55723         * rt/mq_notify.c: Likewise.
55724         * rt/mq_open.c: Likewise.
55725         * rt/mq_receive.c: Likewise.
55726         * rt/mq_send.c: Likewise.
55727         * rt/mq_setattr.c: Likewise.
55728         * rt/mq_timedreceive.c: Likewise.
55729         * rt/mq_timedsend.c: Likewise.
55730         * rt/mq_unlink.c: Likewise.
55731         * rt/shm_open.c: Likewise.
55732         * rt/shm_unlink.c: Likewise.
55733         * rt/timer_create.c: Likewise.
55734         * rt/timer_delete.c: Likewise.
55735         * rt/timer_getoverr.c: Likewise.
55736         * rt/timer_gettime.c: Likewise.
55737         * rt/timer_settime.c: Likewise.
55738         * setjmp/__longjmp.c: Likewise.
55739         * setjmp/setjmp.c: Likewise.
55740         * signal/kill.c: Likewise.
55741         * signal/killpg.c: Likewise.
55742         * signal/raise.c: Likewise.
55743         * signal/sigaction.c: Likewise.
55744         * signal/sigaltstack.c: Likewise.
55745         * signal/sigblock.c: Likewise.
55746         * signal/sigignore.c: Likewise.
55747         * signal/sigintr.c: Likewise.
55748         * signal/signal.c: Likewise.
55749         * signal/sigpause.c: Likewise.
55750         * signal/sigpending.c: Likewise.
55751         * signal/sigqueue.c: Likewise.
55752         * signal/sigreturn.c: Likewise.
55753         * signal/sigset.c: Likewise.
55754         * signal/sigsetmask.c: Likewise.
55755         * signal/sigstack.c: Likewise.
55756         * signal/sigsuspend.c: Likewise.
55757         * signal/sigtimedwait.c: Likewise.
55758         * signal/sigvec.c: Likewise.
55759         * signal/sigwait.c: Likewise.
55760         * signal/sigwaitinfo.c: Likewise.
55761         * signal/sysv_signal.c: Likewise.
55762         * socket/accept.c: Likewise.
55763         * socket/accept4.c: Likewise.
55764         * socket/bind.c: Likewise.
55765         * socket/connect.c: Likewise.
55766         * socket/getpeername.c: Likewise.
55767         * socket/getsockname.c: Likewise.
55768         * socket/getsockopt.c: Likewise.
55769         * socket/isfdtype.c: Likewise.
55770         * socket/listen.c: Likewise.
55771         * socket/recv.c: Likewise.
55772         * socket/recvfrom.c: Likewise.
55773         * socket/recvmsg.c: Likewise.
55774         * socket/send.c: Likewise.
55775         * socket/sendmsg.c: Likewise.
55776         * socket/sendto.c: Likewise.
55777         * socket/setsockopt.c: Likewise.
55778         * socket/shutdown.c: Likewise.
55779         * socket/sockatmark.c: Likewise.
55780         * socket/socket.c: Likewise.
55781         * socket/socketpair.c: Likewise.
55782         * stdio-common/ctermid.c: Likewise.
55783         * stdio-common/cuserid.c: Likewise.
55784         * stdio-common/remove.c: Likewise.
55785         * stdio-common/rename.c: Likewise.
55786         * stdio-common/renameat.c: Likewise.
55787         * stdio-common/tempname.c: Likewise.
55788         * stdlib/getcontext.c: Likewise.
55789         * stdlib/makecontext.c: Likewise.
55790         * stdlib/setcontext.c: Likewise.
55791         * stdlib/swapcontext.c: Likewise.
55792         * stdlib/system.c: Likewise.
55793         * streams/fattach.c: Likewise.
55794         * streams/fdetach.c: Likewise.
55795         * streams/getmsg.c: Likewise.
55796         * streams/getpmsg.c: Likewise.
55797         * streams/putmsg.c: Likewise.
55798         * streams/putpmsg.c: Likewise.
55799         * sysdeps/unix/bsd/getpt.c: Likewise.
55800         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55801         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55802         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55804         Likewise.
55805         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55806         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55807         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55808         * sysvipc/msgctl.c: Likewise.
55809         * sysvipc/msgget.c: Likewise.
55810         * sysvipc/msgrcv.c: Likewise.
55811         * sysvipc/msgsnd.c: Likewise.
55812         * sysvipc/semctl.c: Likewise.
55813         * sysvipc/semget.c: Likewise.
55814         * sysvipc/semop.c: Likewise.
55815         * sysvipc/semtimedop.c: Likewise.
55816         * sysvipc/shmat.c: Likewise.
55817         * sysvipc/shmctl.c: Likewise.
55818         * sysvipc/shmdt.c: Likewise.
55819         * sysvipc/shmget.c: Likewise.
55820         * termios/tcdrain.c: Likewise.
55821         * termios/tcflow.c: Likewise.
55822         * termios/tcflush.c: Likewise.
55823         * termios/tcgetattr.c: Likewise.
55824         * termios/tcgetpgrp.c: Likewise.
55825         * termios/tcsendbrk.c: Likewise.
55826         * termios/tcsetattr.c: Likewise.
55827         * termios/tcsetpgrp.c: Likewise.
55828         * time/adjtime.c: Likewise.
55829         * time/clock.c: Likewise.
55830         * time/getitimer.c: Likewise.
55831         * time/gettimeofday.c: Likewise.
55832         * time/setitimer.c: Likewise.
55833         * time/settimeofday.c: Likewise.
55834         * time/stime.c: Likewise.
55835         * time/time.c: Likewise.
55836
55837 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55838
55839         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55840         /usr/old/bin.
55841
55842         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55843         instead of spaces.
55844         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55845
55846 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55847
55848         [BZ #14796]
55849         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55850         FE_TONEAREST before applying Dekker multiplication and Knuth
55851         addition.  Clear inexact exceptions and check for exact zero
55852         results afterwards.
55853         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55854         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55855         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55856         * math/libm-test.inc (fma_test): Add more tests.
55857         (fma_test_towardzero): Likewise.
55858         (fma_test_downward): Likewise.
55859         (fma_test_upward): Likewise.
55860         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55861         function.
55862         (libc_fesetround): New macro.
55863         (libc_fesetroundf): Likewise.
55864         (libc_fesetroundl): Likewise.
55865         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55866         function.
55867         (libc_fesetround_387): Likewise.
55868         (libc_fesetroundf): New macro.
55869         (libc_fesetround): Likewise.
55870         (libc_fesetroundl): Likewise.
55871         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55872         function.
55873         (libc_fesetroundf): New macro.
55874         (libc_fesetround): Likewise.
55875         (libc_fesetroundl): Likewise.
55876         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55877         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55878         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55879         libm_hidden_ver.
55880         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55881         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55882         libm_hidden_def.
55883         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55884         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55885         libm_hidden_ver.
55886         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55887         libm_hidden_def.
55888
55889         [BZ #3439]
55890         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55891         integer constant usable in #if and use that to give value to enum
55892         constant.
55893         (FE_DIVBYZERO): Likewise.
55894         (FE_UNDERFLOW): Likewise.
55895         (FE_OVERFLOW): Likewise.
55896         (FE_INVALID): Likewise.
55897         (FE_INVALID_SNAN): Likewise.
55898         (FE_INVALID_ISI): Likewise.
55899         (FE_INVALID_IDI): Likewise.
55900         (FE_INVALID_ZDZ): Likewise.
55901         (FE_INVALID_IMZ): Likewise.
55902         (FE_INVALID_COMPARE): Likewise.
55903         (FE_INVALID_SOFTWARE): Likewise.
55904         (FE_INVALID_SQRT): Likewise.
55905         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55906         (FE_TONEAREST): Likewise.
55907         (FE_TOWARDZERO): Likewise.
55908         (FE_UPWARD): Likewise.
55909         (FE_DOWNWARD): Likewise.
55910         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55911         (FE_DIVBYZERO): Likewise.
55912         (FE_OVERFLOW): Likewise.
55913         (FE_UNDERFLOW): Likewise.
55914         (FE_INEXACT): Likewise.
55915         (FE_TONEAREST): Likewise.
55916         (FE_DOWNWARD): Likewise.
55917         (FE_UPWARD): Likewise.
55918         (FE_TOWARDZERO): Likewise.
55919         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55920         (FE_UNDERFLOW): Likewise.
55921         (FE_OVERFLOW): Likewise.
55922         (FE_DIVBYZERO): Likewise.
55923         (FE_INVALID): Likewise.
55924         (FE_TONEAREST): Likewise.
55925         (FE_TOWARDZERO): Likewise.
55926         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55927         (FE_OVERFLOW): Likewise.
55928         (FE_UNDERFLOW): Likewise.
55929         (FE_DIVBYZERO): Likewise.
55930         (FE_INEXACT): Likewise.
55931         (FE_TONEAREST): Likewise.
55932         (FE_TOWARDZERO): Likewise.
55933         (FE_UPWARD): Likewise.
55934         (FE_DOWNWARD): Likewise.
55935         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55936         (FE_DIVBYZERO): Likewise.
55937         (FE_OVERFLOW): Likewise.
55938         (FE_UNDERFLOW): Likewise.
55939         (FE_INEXACT): Likewise.
55940         (FE_TONEAREST): Likewise.
55941         (FE_DOWNWARD): Likewise.
55942         (FE_UPWARD): Likewise.
55943         (FE_TOWARDZERO): Likewise.
55944
55945 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55946
55947         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55948
55949 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55950
55951         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55952         commands.  Quote $PWD.
55953         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55954         -x" by "export".
55955         (remove_newlines): Remove.
55956
55957 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55958
55959         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55960         * stdlib/stdlib.h (atof): Moved to ...
55961         * include/bits/stdlib-float.h: Here.  New file.
55962         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55963         * stdlib/bits/stdlib-float.h: New file.
55964         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55965         -mno-sse -mno-mmx.
55966         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55967         <xmmintrin.h>.
55968
55969 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55970
55971         * conform/conformtest.pl (@headers): Add fenv.h.
55972         * conform/data/fenv.h-data: New file.
55973         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55974         include of <math/fenv.h>.
55975
55976         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55977         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55978         && !UNIX98].  Enables tests for XOPEN2K8.
55979         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55980         POSIX2008]: Likewise.
55981
55982         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55983         (struct rusage): Do not expect type or its members.
55984
55985         [BZ #3439]
55986         * math/math.h (FP_NAN): Define macro to integer constant usable in
55987         #if and use that to give value to enum constant.
55988         (FP_INFINITE): Likewise.
55989         (FP_ZERO): Likewise.
55990         (FP_SUBNORMAL): Likewise.
55991         (FP_NORMAL): Likewise.
55992
55993 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55994
55995         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55996         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55997         arguments.
55998
55999 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56000
56001         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56002         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56003         autoconf-time if not.
56004         * configure.in: Remove AC_PREREQ.
56005
56006 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56007
56008         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56009         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56010         of the internal implementation.
56011
56012 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56013
56014         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56015         except include of <misc/sys/syslog.h>.
56016
56017 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56018
56019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56020         function returns with a NULL context exit with zero.
56021
56022 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56023
56024         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56025
56026 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56027
56028         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56029         (run_program_cmd): This.
56030         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56031         (tst_langinfo): New variable.  Use it.
56032
56033 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56034
56035         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56036         floating point opcodes.
56037
56038 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56039
56040         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56041         variable.
56042
56043         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56044
56045         * sysdeps/mach/hurd/powerpc: Remove directory.
56046         * sysdeps/mach/powerpc: Likewise.
56047
56048 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56049
56050         * scripts/check-local-headers.sh: Ignore c++ headers.
56051
56052 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56053
56054         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56055         __libc_cleanup_region_start argument.
56056
56057 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56058
56059         [BZ #14784]
56060         [BZ #14785]
56061         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56062         x * y using scaling, not as x * y + z.
56063         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56064         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56065         * math/libm-test.inc (fma_test): Add more tests.
56066         (fma_test_towardzero): Likewise.
56067         (fma_test_downward): Likewise.
56068         (fma_test_upward): Likewise.
56069
56070 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56071
56072         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56073
56074 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56075
56076         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56077         New variable.
56078
56079 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56080
56081         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56082
56083 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56084
56085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56086         Fix sort order.
56087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56088         Likewise.
56089
56090 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56091
56092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56093         Fix the order of the list for glibc 2.17.
56094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56095         Likewise.
56096
56097 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56098
56099         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56100
56101 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56102
56103         [BZ #14610]
56104         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56105         for low part of x being zero before using __atanl (y).
56106         * math/libm-test.inc (atan2_test): Add another test.
56107
56108         * manual/install.texi (Configuring and compiling): Document
56109         general use of test-wrapper and test-wrapper-env.
56110         * INSTALL: Regenerated.
56111
56112         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56113         (__fma): Do not extract and scale down low bits on after-rounding
56114         systems when result rounded to normal precision would have normal
56115         exponent.
56116         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56117         (__fmal): Do not extract and scale down low bits on after-rounding
56118         systems when result rounded to normal precision would have normal
56119         exponent.
56120         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56121         (__fmal): Do not extract and scale down low bits on after-rounding
56122         systems when result rounded to normal precision would have normal
56123         exponent.
56124         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56125         macro.
56126         (fma_test): Add more tests.
56127         (fma_test_towardzero): Likewise.
56128         (fma_test_downward): Likewise.
56129         (fma_test_upward): Likewise.
56130
56131 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56132
56133         * sysdeps/i386/tininess.h: Renamed to ...
56134         * sysdeps/x86/tininess.h: This.
56135         * sysdeps/x86_64/tininess.h: Removed.
56136
56137 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56138
56139         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56140         input.  Use $(build-program-cmd).
56141         ($(objpfx)tst-array1-static.out): Likewise.
56142         ($(objpfx)tst-array2.out): Likewise.
56143         ($(objpfx)tst-array3.out): Likewise.
56144         ($(objpfx)tst-array4.out): Likewise.
56145         ($(objpfx)tst-array5.out): Likewise.
56146         ($(objpfx)tst-array5-static.out): Likewise.
56147
56148 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56149
56150         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56151         if defined.
56152
56153         * nss/nsswitch.h (nss_interface_function): Provide new
56154         macro for use with NSS functions.
56155         * grp/initgroups.c: Use new macro.
56156         * nss/getXXbyYY.c: Likewise.
56157         * nss/getXXbyYY_r.c: Likewise.
56158         * nss/getXXent.c: Likewise.
56159         * nss/getXXent_r.c: Likewise.
56160         * sysdeps/posix/getaddrinfo.c: Likewise.
56161
56162 2012-10-30  Andreas Jaeger  <aj@suse.de>
56163
56164         * po/ru.po: Update Russion translation from translation project.
56165
56166 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56167
56168         [BZ #14152]
56169         [BZ #14783]
56170         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56171         result and shift together with sticky bit instead of replicating
56172         round-to-nearest rounding.
56173         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56174         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56175         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56176         missing underflow exceptions.
56177         (fma_test_towardzero): Add more tests.
56178         (fma_test_downward): Likewise.
56179         (fma_test_upward): Likewise.
56180
56181         [BZ #14047]
56182         * sysdeps/generic/tininess.h: New file.
56183         * sysdeps/i386/tininess.h: Likewise.
56184         * sysdeps/sh/tininess.h: Likewise.
56185         * sysdeps/x86_64/tininess.h: Likewise.
56186         * stdlib/tst-strtod-underflow.c: Likewise.
56187         * stdlib/tst-tininess.c: Likewise.
56188         * stdlib/strtod_l.c: Include <tininess.h>.
56189         (round_and_return): Do not set errno for exact underflow cases.
56190         Force an underflow exception when setting errno for underflow.
56191         Determine underflow based on rounding to normal precision if
56192         TININESS_AFTER_ROUNDING.
56193         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56194         ERANGE for exact underflow cases.
56195         * stdlib/Makefile (tests): Add tst-tininess and
56196         tst-strtod-underflow.
56197         ($(objpfx)tst-tininess): Use $(link-libm).
56198         ($(objpfx)tst-strtod-underflow): Likewise.
56199
56200 2012-10-30  Andreas Jaeger  <aj@suse.de>
56201
56202         [BZ#14767]
56203         * elf/Makefile (tests): Remove conditional for have-initfini-array
56204         since this is now always required and the variable does not exist
56205         anymore.
56206         (tests-static): Likewise.
56207         (modules-names): Likewise.
56208
56209         * po/eo.po: Add Esperanto translation from translation project.
56210
56211         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56212         merged with constructor/destructor.
56213         (init_array): Likewise.
56214         * elf/tst-array2dep.c (fini_array): Likewise.
56215         (init_array): Likewise.
56216
56217 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56218
56219         * manual/message.texi: Delete @cartouche tags.
56220
56221 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56222
56223         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56224         EOPNOTSUPP.
56225         * sysdeps/mach/hurd/fsync.c: Likewise.
56226
56227         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56228         [_POSIX_REALTIME_SIGNALS]: Change condition to
56229         [_POSIX_REALTIME_SIGNALS > 0].
56230
56231 2012-10-27  Andreas Jaeger  <aj@suse.de>
56232
56233         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56234         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56235         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56236         [__WORDSIZE != 64]: Likewise.
56237
56238 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56239
56240         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56241         *  iconvdata/tst-tables.sh: Likewise.
56242
56243 2012-10-25  David S. Miller  <davem@davemloft.net>
56244
56245         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56246         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56247         of strtoull.
56248
56249         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56250         ifunc-impl-list.c
56251         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56252         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56253         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56254         file.
56255
56256 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56257
56258         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56259         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56260         __getdirentries.
56261
56262 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56263             Jim Blandy  <jimb@codesourcery.com>
56264
56265         * scripts/cross-test-ssh.sh: New file.
56266         * manual/install.texi (Configuring and compiling): Document use of
56267         cross-test-ssh.sh.
56268         * INSTALL: Regenerated.
56269
56270 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56271
56272         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56273         EOPNOTSUPP.
56274
56275 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56276
56277         * Makeconfig (run-program-prefix): Fix comment.
56278
56279 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56280             Jim Blandy  <jimb@codesourcery.com>
56281
56282         * Makeconfig (test-wrapper): New variable,
56283         (test-wrapper-env): Likewise.
56284         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56285         (run-built-tests): Define to yes.
56286         (run-program-prefix): Use $(test-wrapper).
56287         (built-program-cmd): Likewise.
56288         * Rules (make-test-out): Use $(test-wrapper-env) and
56289         $(host-built-program-cmd).
56290         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56291         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56292         tst-pathopt.sh.
56293         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56294         $(test-wrapper-env) to tst-rtld-load-self.sh.
56295         ($(objpfx)order2.out): Use $(test-wrapper).
56296         ($(objpfx)tst-initorder.out): Likewise.
56297         ($(objpfx)tst-initorder2.out): Likewise.
56298         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56299         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56300         (test_wrapper_env): New variable.  Use it to run ld.so.
56301         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56302         Use it to run ld.so.
56303         (test_wrapper_env): Likewise.
56304         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56305         $(test-wrapper) to run-iconv-test.sh.
56306         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56307         (ICONV): Use $test_wrapper.
56308         * posix/Makefile ($(objpfx)globtest.out): Pass
56309         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56310         globtest.sh, not $(run-program-prefix).
56311         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56312         (test_wrapper): Likewise.
56313         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56314         set together with run_via_rtld_prefix.
56315         (run_program_prefix): Define in terms of test_wrapper and
56316         run_via_rtld_prefix.
56317
56318 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56319
56320         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56321         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56322         Targets removed.
56323
56324         [BZ #14743]
56325         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56326         Declare __clock_getres, __clock_gettime, __clock_settime,
56327         __clock_nanosleep, and __clock_getcpuclockid.
56328         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56329         Remove librt_hidden_def (clock_gettime).
56330         * sysdeps/unix/clock_gettime.c: Likewise.
56331         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56332         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56333         * rt/clock_getres.c: Define __clock_getres as an alias.
56334         * sysdeps/posix/clock_getres.c: Likewise.
56335         * rt/clock_settime.c: Define __clock_settime as an alias.
56336         * sysdeps/unix/clock_settime.c: Likewise.
56337         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56338         * sysdeps/unix/clock_nanosleep.c: Likewise.
56339         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56340         * rt/clock-compat.c: New file.
56341         * rt/Makefile (librt-routines): Add clock-compat and move
56342         $(clock-routines) to ...
56343         (routines): ... here, new variable.
56344         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56345         Don't add get_clockfreq here.
56346         * rt/Versions (libc: GLIBC_2.17): New version set.
56347         Add clock_* symbols here.
56348         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56349         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56350         (GLIBC_2.17): Add clock_* symbols.
56351         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56353         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56355         Likewise.
56356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56357         Likewise.
56358         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56359         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56360         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56362         * NEWS: Mention the move.
56363
56364         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56365         Use __open, __read, __close rather than their public counterparts.
56366         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56367         (__get_clockfreq_via_cpuinfo): Likewise.
56368         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56369         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56370
56371         * config.h.in (HAVE_IFUNC): New #undef.
56372         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56373         was successful.
56374         * configure: Regenerated.
56375
56376 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56377
56378         * configure.in: Move READELF check to start of file.
56379         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56380         libc_cv_asm_gnu_indirect_function in the process.
56381         * configure: Regenerated.
56382
56383 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56384
56385         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56386         send the output to /dev/null.
56387         (libc_cv_cc_with_libunwind): Likewise.
56388         (libc_cv_as_noexecstack): Likewise.
56389         * configure: Regenerate.
56390
56391 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56392
56393         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56394
56395         * posix/globtest.sh (TMPDIR): Do not set.
56396         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56397         (testout): Likewise.
56398
56399 2012-10-24  Andreas Jaeger  <aj@suse.de>
56400
56401         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56402         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56403         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56404         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56405         posix_fadvise64, posix_fallocate64.
56406
56407         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56408         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56409         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56410         Likewise.
56411         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56412         Likewise.
56413         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56414
56415         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56416         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56417         <bits/fcntl-linux.h>.
56418         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56419
56420         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56421         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56422         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56423         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56424         [__WORDSIZE != 64]: Likewise.
56425
56426 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56427
56428         * Makeconfig (run-built-tests): New variable.
56429         * Rules [$(cross-compiling) = yes]: Change condition to
56430         [$(run-built-tests) = no].
56431         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56432         to [$(run-built-tests) = yes].
56433         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56434         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56435         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56436         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56437         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56438         * io/Makefile [$(cross-compiling) = no]: Likewise.
56439         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56440         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56441         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56442         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56443         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56444         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56445         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56446         * string/Makefile [$(cross-compiling) = no]: Likewise.
56447
56448         * posix/Makefile ($(objpfx)globtest.out): Pass
56449         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56450         $(rtld-installed-name).
56451         * posix/globtest.sh (elf_objpfx): Remove variable.
56452         (rtld_installed_name): Likewise.
56453         (library_path): Likewise.
56454         (run_program_prefix): New variable.  Use for running globtest
56455         binary.
56456
56457 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56458             Joseph Myers  <joseph@codesourcery.com>
56459
56460         * Makeconfig (host-built-program-cmd): New variable.
56461         * elf/Makefile (tst-stackguard1-ARGS): Use
56462         $(host-built-program-cmd).
56463         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56464         (tst-spawn-ARGS): Likewise.
56465         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56466
56467 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56468             Jim Blandy  <jimb@codesourcery.com>
56469
56470         * Makeconfig (run-via-rtld-prefix): New variable.
56471         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56472         (built-program-cmd): Likewise.
56473
56474 2012-10-22  Andreas Jaeger  <aj@suse.de>
56475
56476         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56477         __O_RSYNC if it exists, otherwise to O_SYNC.
56478
56479 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56480             Joseph Myers  <joseph@codesourcery.com>
56481
56482         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56483         /dev/null.
56484         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56485         from /dev/null
56486         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56487         /dev/null.
56488
56489 2012-10-22  Andreas Jaeger  <aj@suse.de>
56490
56491         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56492         Define always.
56493         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56494
56495         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56496         bits/fcntl-linux.h.
56497
56498         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56499         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56500
56501         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56502         to __O_LARGEFILE.
56503         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56504         to __O_LARGEFILE.
56505
56506 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56507             Joseph Myers  <joseph@codesourcery.com>
56508
56509         * config.make.in (NM): New variable.
56510
56511 2012-10-21  Andreas Jaeger  <aj@suse.de>
56512
56513         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56514         definitions and declarations that are provided by
56515         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56516
56517 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56518
56519         [BZ #14683]
56520         * elf/Makefile (tests-static): Add tst-leaks1-static.
56521         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56522         ($(objpfx)tst-leaks1-static): New rule.
56523         ($(objpfx)tst-leaks1-static-mem): Likewise.
56524         (tst-leaks1-static-ENV): New macro.
56525         * elf/dl-open.c (dl_open_worker): Check the main application
56526         only if SHARED is defined.
56527         * elf/tst-leaks1-static.c: New file.
56528
56529 2012-10-20  Andreas Jaeger  <aj@suse.de>
56530
56531         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56532         generic values for Linux.
56533         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56534         and declarations that are provided by <bits/fcntl-linux.h> and
56535         include <bits/fcntl-linux.h>.
56536         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56537         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56538
56539 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56540
56541         * io/fcntl.h: Move include of <bits/types.h> to the top and
56542         include it unconditionally.
56543
56544 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56545
56546         * wcsmbs/Makefile (tests-ifunc): New variable.
56547         (tests): Add $(tests-ifunc).
56548         * wcsmbs/test-wcschr-ifunc.c: New file.
56549         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56550         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56551         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56552         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56553         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56554
56555         * string/Makefile (tests-ifunc): New variable.
56556         (tests): Add $(tests-ifunc).
56557         * string/test-memccpy.c (TEST_NAME): New macro.
56558         * string/test-memchr.c (TEST_NAME): Likewise.
56559         * string/test-memcmp.c (TEST_NAME): Likewise.
56560         * string/test-memcpy.c (TEST_NAME): Likewise.
56561         * string/test-memmem.c (TEST_NAME): Likewise.
56562         * string/test-memmove.c (TEST_NAME): Likewise.
56563         * string/test-memset.c (TEST_NAME): Likewise.
56564         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56565         * string/test-stpcpy.c (TEST_NAME): Likewise.
56566         * string/test-stpncpy.c (TEST_NAME): Likewise.
56567         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56568         * string/test-strcasestr.c (TEST_NAME): Likewise.
56569         * string/test-strcat.c (TEST_NAME): Likewise.
56570         * string/test-strchr.c (TEST_NAME): Likewise.
56571         * string/test-strcmp.c(TEST_NAME): Likewise.
56572         * string/test-strcpy.c (TEST_NAME): Likewise.
56573         * string/test-strcspn.c (TEST_NAME): Likewise.
56574         * string/test-strlen.c (TEST_NAME): Likewise.
56575         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56576         * string/test-strncmp.c (TEST_NAME): Likewise.
56577         * string/test-strncpy.c (TEST_NAME): Likewise.
56578         * string/test-strnlen.c (TEST_NAME): Likewise.
56579         * string/test-strpbrk.c (TEST_NAME): Likewise.
56580         * string/test-strrchr.c (TEST_NAME): Likewise.
56581         * string/test-strspn.c (TEST_NAME): Likewise.
56582         * string/test-strstr.c (TEST_NAME): Likewise.
56583         * string/test-bcopy-ifunc.c: New file.
56584         * string/test-bzero-ifunc.c: Likewise.
56585         * string/test-memccpy-ifunc.c: Likewise.
56586         * string/test-memchr-ifunc.c: Likewise.
56587         * string/test-memcmp-ifunc.c: Likewise.
56588         * string/test-memcpy-ifunc.c: Likewise.
56589         * string/test-memmem-ifunc.c: Likewise.
56590         * string/test-memmove-ifunc.c: Likewise.
56591         * string/test-mempcpy-ifunc.c: Likewise.
56592         * string/test-memset-ifunc.c: Likewise.
56593         * string/test-rawmemchr-ifunc.c: Likewise.
56594         * string/test-stpcpy-ifunc.c: Likewise.
56595         * string/test-stpncpy-ifunc.c: Likewise.
56596         * string/test-strcasecmp-ifunc.c: Likewise.
56597         * string/test-strcasestr-ifunc.c: Likewise.
56598         * string/test-strcat-ifunc.c: Likewise.
56599         * string/test-strchr-ifunc.c: Likewise.
56600         * string/test-strchrnul-ifunc.c: Likewise.
56601         * string/test-strcmp-ifunc.c: Likewise.
56602         * string/test-strcpy-ifunc.c: Likewise.
56603         * string/test-strcspn-ifunc.c: Likewise.
56604         * string/test-strlen-ifunc.c: Likewise.
56605         * string/test-strncasecmp-ifunc.c: Likewise.
56606         * string/test-strncat-ifunc.c: Likewise.
56607         * string/test-strncmp-ifunc.c: Likewise.
56608         * string/test-strncpy-ifunc.c: Likewise.
56609         * string/test-strnlen-ifunc.c: Likewise.
56610         * string/test-strpbrk-ifunc.c: Likewise.
56611         * string/test-strrchr-ifunc.c: Likewise.
56612         * string/test-strspn-ifunc.c: Likewise.
56613         * string/test-strstr-ifunc.c: Likewise.
56614
56615         * debug/Makefile (tests-ifunc): New variable.
56616         (tests): Add $(tests-ifunc).
56617         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56618         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56619         * debug/test-stpcpy_chk-ifunc.c: New file.
56620         * debug/test-strcpy_chk-ifunc.c: Likewise.
56621
56622 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56623
56624         [BZ #13601]
56625         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56626         header is not read in.
56627
56628 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56629
56630         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56631         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56632         directly.  Pass built executable to script as
56633         $(built-program-cmd).
56634         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56635         $testprogram without using LD_LIBRARY_PATH and $ldso.
56636
56637         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56638         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56639         $(rtld-installed-name).
56640         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56641         (rtld_installed_name): Likewise.
56642         (library_path): Likewise.
56643         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56644         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56645         $(run-program-prefix) to tst-tables.sh.
56646         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56647         it to run tst-table-from and tst-table-to.
56648         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56649         Pass it to tst-table.sh.
56650         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56651         $(run-program-prefix) to tst-gettext.sh.
56652         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56653         tst-translit.sh.
56654         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56655         tst-gettext2.sh.
56656         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56657         to run tst-gettext.
56658         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56659         to run tst-gettext2.
56660         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56661         to run tst-translit.
56662         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56663         $(run-program-prefix) to tst-mtrace.sh.
56664         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56665         to run tst-mtrace.
56666         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56667         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56668         $(rtld-installed-name).
56669         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56670         (rtld_installed_name): Likewise.
56671         (run_program_prefix): New variable.  Use it to run wordexp-test.
56672
56673         * Makeconfig (ARCH): Remove all definitions.
56674         (machine): Likewise.
56675         [ARCH]: Remove conditional code.
56676         [!objdir]: Give error.
56677         [!objdir] (objpfx): Remove.
56678         [!objdir] (common-objpfx): Likewise.
56679         [!objdir] (common-objdir): Likewise.
56680         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56681         AC_CONFIG_FILES call.
56682         * configure: Regenerated.
56683
56684         [BZ #13888]
56685         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56686         or TMPDIR.
56687         (testout): Likewise.
56688
56689         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56690         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56691         $(rtld-installed-name).
56692         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56693         (rtld_installed_name): Likwise.
56694         (runit): Remove function.
56695         (run_getconf): New variable,  Use it for running getconf binary.
56696
56697 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56698
56699         [BZ #14716]
56700         * string/test-memmem.c (check_result): New function.
56701         (do_one_test): Use it.
56702         (check1): New function.
56703         (test_main): Use it.
56704
56705 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56706
56707         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56708
56709 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56710
56711         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56712         (_G_LSEEK64): Likewise.
56713         (_G_MMAP64): Likewise.
56714         (_G_FSTAT64): Likewise.
56715         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56716         (_G_LSEEK64): Likewise.
56717         (_G_MMAP64): Likewise.
56718         (_G_FSTAT64): Likewise.
56719         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56720         unconditional.  Call __mmap64 directly.
56721         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56722         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56723         __lseek64 directly.
56724         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56725         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56726         __mmap64 directly.
56727         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56728         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56729         __lseek64 directly.
56730         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56731         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56732         __lseek64 directly.
56733         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56734         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56735         __lseek64 directly.
56736         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56737         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56738         __fxstat64 directly.
56739         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56740         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56741         unconditional.
56742         (freopen64) [!_G_OPEN64]: Remove conditional code.
56743         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56744         unconditional.
56745         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56746         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56747         unconditional.
56748         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56749         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56750         unconditional.
56751         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56752         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56753         unconditional.
56754         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56755         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56756         unconditional.
56757         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56758         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56759         unconditional.
56760         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56761         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56762         unconditional.
56763         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56764
56765 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56766
56767         [BZ #12140]
56768         * manual/memory.texi (Malloc Tunable Parameters): Add note
56769         about free list pointers overwriting some perturb bytes.
56770         Wording suggested by Roland McGrath.
56771
56772 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56773
56774         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56775         (lgamma_test): Likewise.
56776         (tgamma_test): Likewise.
56777
56778 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56779
56780         [BZ #14700]
56781         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56782         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56783
56784 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56785
56786         * NEWS: Mention BZ #14716.
56787         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56788         when removing AVAILABLE1_USES_J macro.
56789
56790 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56791
56792         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56793         (__bswap_64): __uint64_t for unsigned 64-bit int.
56794
56795 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56796
56797         * include/string.h (memmem): Declare libc hidden alias.
56798         * string/memmem.c (memmem): Define libc hidden alias.
56799         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56800         __read, __close instead of open, read, close.
56801
56802 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56803
56804         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56805         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56806         global and hidden.
56807         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56808         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56809         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56810         Likewise.
56811         (__rawmemchr_sse2): Likewise.
56812         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56813         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56814         (__strchr_sse2): Likewise.
56815         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56816         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56817         (__strcasecmp_sse2): Likewise.
56818         (__strncasecmp_sse2): Likewise.
56819         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56820         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56821         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56822         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56823         (__strrchr_sse2): Likewise.
56824         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56825         ifunc-impl-list.c.
56826         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56827         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56828         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56829         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56830         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56831         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56832         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56833         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56834         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56835         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56836         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56837         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56838         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56839         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56840         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56841         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56842         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56843         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56844         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56845         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56846         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56847         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56848         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56849         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56850         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56851         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56852         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56853         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56854         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56855         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56856
56857         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56858         global and hidden.
56859         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56860         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56861         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56862         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56863         Likewise.
56864         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56865         Likewise.
56866         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56867         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56868         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56869         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56870         ifunc-impl-list.c.
56871         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56872         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56873         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56874         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56875         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56876         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56877         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56878         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56879         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56880         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56881         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56882         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56883         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56884         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56885         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56886         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56887         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56888         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56889         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56890         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56891         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56892         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56893         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56894         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56895         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56896         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56897         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56898         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56899         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56900         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56901         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56902         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56903         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56904         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56905         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56906         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56907         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56908         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56909         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56910         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56911         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56912
56913         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56914         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56915         * include/ifunc-impl-list.h: New file.
56916         * misc/ifunc-impl-list.c: Likewise.
56917         * misc/Makefile (routines): Add ifunc-impl-list.
56918         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56919         * string/test-string.h: Include <ifunc-impl-list.h>.
56920         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56921         TEST_NAME]: New variables.
56922         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56923         are defined.
56924         (test_init): Call __libc_ifunc_impl_list to initialize
56925         func_list if TEST_IFUNC and TEST_NAME are defined.
56926
56927         * string/Makefile (strop-tests): Add bcopy and bzero.
56928         * string/test-bcopy.c: New file.
56929         * string/test-bzero.c: Likewise.
56930         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56931         defined.
56932         * string/test-memset.c: Support bzero test if TEST_BZERO is
56933         defined.
56934         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56935         __libc_memmove.
56936         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56937         __libc_memset.
56938         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56939         of memset.
56940
56941 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56942
56943         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56944         * configure: Regenerated.
56945
56946         * Makeconfig (+link-static-before-libc): Don't include
56947         $(link-static-libc).
56948
56949         * libio/libio.h (_IO_pos_t): Remove.
56950
56951 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56952
56953         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56954         McGrath.
56955
56956 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56957
56958         * crypt/crypt-entry.c: Include fips-private.h.
56959         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56960         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56961         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56962         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56963
56964 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56965
56966         * crypt/crypt-private.h: Include stdbool.h.
56967         (_ufc_setup_salt_r): Return bool.
56968         * crypt/crypt-entry.c: Include errno.h.
56969         (__crypt_r): Return NULL with EINVAL for bad salt.
56970         * crypt/crypt_util.c (bad_for_salt): New.
56971         (_ufc_setup_salt_r): Check that salt is long enough and within
56972         the specified alphabet.
56973         * crypt/badsalttest.c: New file.
56974         * crypt/Makefile (tests): Add it.
56975         ($(objpfx)badsalttest): New.
56976
56977 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56978
56979         * NEWS: Add entry for BZ #14602.
56980
56981 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56982
56983         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56984         type-generic.
56985         * math/libm-test.inc: Update comment listing what functions and
56986         macros are tested.
56987         (isgreater_test): New function.
56988         (isgreaterequal_test): Likewise.
56989         (isless_test): Likewise.
56990         (islessequal_test): Likewise.
56991         (islessgreater_test): Likewise.
56992         (isunordered_test): Likewise.
56993         (main): Call the new functions.
56994
56995 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56996
56997         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56998         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56999         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57000         * sysdeps/i386/configure: Regenerated.
57001         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57002         * sysdeps/mach/configure: Regenerated.
57003         * sysdeps/mach/hurd/configure: Regenerated.
57004         * sysdeps/powerpc/configure: Regenerated.
57005         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57006         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57007         * sysdeps/s390/s390-32/configure: Regenerated.
57008         * sysdeps/s390/s390-64/configure: Regenerated.
57009         * sysdeps/sh/configure: Regenerated.
57010         * sysdeps/sparc/configure: Regenerated.
57011         * sysdeps/unix/sysv/linux/configure: Regenerated.
57012         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57013         * sysdeps/x86_64/configure: Regenerated.
57014
57015         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57016         defined.  Don't check if MAP is NULL.
57017
57018 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57019
57020         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57021         (_G_stat64): Likewise.
57022         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57023         (_G_stat64): Likewise.
57024         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57025         instead of struct _G_stat64.
57026         * libio/fileops.c (mmap_remap_check): Likewise.
57027         (decide_maybe_mmap): Likewise.
57028         (_IO_new_file_seekoff): Likewise.
57029         (_IO_file_stat): Likewise.
57030         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57031         _G_off64_t.
57032         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57033         instead of struct _G_stat64.
57034         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57035
57036 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57037
57038         [BZ #14602]
57039         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57040         Replace with ...
57041         (CHECK_EOL): New macro.
57042         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57043         CHECK_EOL.
57044         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57045         Replace with CHECK_EOL.
57046         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57047         Replace with CHECK_EOL.
57048
57049 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57050
57051         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57052         type-generic.
57053         * math/libm-test.inc: Update comment listing what functions and
57054         macros are tested.
57055         (finite_test): New function.
57056         (isinf_test): Likewise.
57057         (isnan_test): Likewise.
57058         (fpclassify_test): Test subnormal input.
57059         (isfinite_test): Likewise.
57060         (isnormal_test): Likewise.
57061         (main): Call the new functions.
57062
57063 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57064
57065         [BZ #14660]
57066         * Makerules (%.dynsym): Force C locale when running
57067         $(OBJDUMP) --dynamic-syms.
57068
57069 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57070
57071         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57072         <stdint.h>.
57073
57074 2012-10-06  David S. Miller  <davem@davemloft.net>
57075
57076         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57077         upper 32-bits of the length value in %o2 since we use branch-on-register
57078         tests which consider the entire 64-bit register.
57079
57080 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57081
57082         * string/test-strstr.c (check2): Add a test for page boundary.
57083
57084 2012-10-05  David S. Miller  <davem@davemloft.net>
57085
57086         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57087         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57088         file.
57089         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57090         sysdep_routines.
57091         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57092         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57093         and bzero when HWCAP_SPARC_CRYPTO is present.
57094
57095 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57096
57097         [BZ #14602]
57098         * string/test-strstr.c (check2): New function.
57099         (test_main): Call check2.
57100
57101         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57102         and bug-strchr1.
57103         * string/bug-strcasestr1.c (do_test): Moved to ...
57104         * string/test-strcasestr.c (check1): Here.  New function.
57105         (do_one_test): Break out result checking code into ...
57106         (check_result): This.  New function.
57107         (do_one_test): Call check_result.
57108         (test_main): Call check1.
57109         * string/bug-strchr1.c (do_test): Moved to ...
57110         * string/test-strchr.c (check1): Here.  New function.
57111         (do_one_test): Break out result checking code into ...
57112         (check_result): This.  New function.
57113         (do_one_test): Call check_result.
57114         (test_main): Call check1.
57115         * string/bug-strstr1.c (main): Moved to ...
57116         * string/test-strstr.c (check1): Here.  New function.
57117         (do_one_test): Break out result checking code into ...
57118         (check_result): This.  New function.
57119         (do_one_test): Call check_result.
57120         (test_main): Call check1.
57121         * string/bug-strcasestr1.c: Removed.
57122         * string/bug-strchr1.c: Likewise.
57123         * string/bug-strstr1.c: Likewise.
57124
57125         * elf/Makefile (dl-routines): Add hwcaps.
57126         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57127         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57128         (_dl_important_hwcaps): Moved to ...
57129         * elf/dl-hwcaps.c: Here.  New file.
57130         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57131
57132         [BZ #14557]
57133         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57134         if IS_IN_rtld isn't defined.
57135
57136         * elf/dl-support.c (_dl_sysinfo_map): New.
57137         Include "get-dynamic-info.h" and "setup-vdso.h".
57138         (_dl_non_dynamic_init): Call setup_vdso.
57139         * elf/dynamic-link.h: Don't include <assert.h>.
57140         (elf_get_dynamic_info): Moved to ...
57141         * elf/get-dynamic-info.h: Here.  New file.
57142         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57143         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57144         * elf/setup-vdso.h: Here.  New file.
57145         * elf/rtld.c: Include "setup-vdso.h".
57146         (dl_main): Call setup_vdso.
57147
57148 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57149
57150         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57151         creal in comment listing functions tested.  List finite, isinf,
57152         isnan, isless, islessequal, isgreater, isgreaterequal,
57153         islessgreater, isunordered, lgamma_r and pow10 as functions and
57154         macros not tested.  Mention which functions not tested are aliases
57155         for other functions.  Fix typo.  Note that signs of NaNs are not
57156         tested.
57157
57158         * scripts/config.guess: Update from config.git.
57159         * scripts/config.sub: Likewise.
57160
57161 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57162
57163         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57164         * misc/madvise.c (madvise): Renamed to __madvise.
57165         Make madvise a weak alias.
57166         * include/sys/mman.h: Declare __madvise.
57167         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57168         * sysdeps/unix/syscalls.list
57169         (madvise): Make __madvise the strong name, and madvise a weak alias.
57170         * sysdeps/unix/sysv/linux/syscalls.list
57171         (madvise, mmap): Remove redundant entries.
57172         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57173         * malloc/malloc.c (mtrim): Likewise.
57174         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57175
57176 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57177
57178         * sysdeps/mach/hurd/dl-cache.c: File removed.
57179         * config.h.in (USE_LDCONFIG): New #undef.
57180         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57181         * configure: Regenerated.
57182         * elf/Makefile (dl-routines): Add dl-cache only under
57183         [$(use-ldconfig) = yes].
57184         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57185         cache on [USE_LDCONFIG].
57186         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57187         [USE_LDCONFIG].
57188         * elf/rtld.c (dl_main): Likewise.
57189
57190 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57191
57192         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57193         _SC_LEVEL4_CACHE_LINESIZE.
57194
57195 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57196
57197         * sysdeps/unix/bsd/confstr.h: File removed.
57198
57199 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57200
57201         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57202         sys/sdt-config.h.
57203
57204 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57205
57206         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57207         Make 'mapoff' field ElfW(Off) rather than off_t.
57208
57209 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57210
57211         * nscd/Makefile: Remove nscd-cflags and all its users.
57212         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57213         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57214
57215         [BZ #10631]
57216         * malloc.c (malloc_printerr): Clarify error message.
57217
57218 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57219
57220         [BZ #14648]
57221         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57222         Set bit_FMA_Usable if FMA is supported.
57223         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57224         macro.
57225         (bit_FMA4_Usable): Updated.
57226         (index_FMA_Usable): New macro.
57227         (CPUID_FMA): Likewise.
57228         (HAS_FMA): Defined with bit_FMA_Usable.
57229
57230 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57231
57232         * bits/types.h (__swblk_t): Type removed.
57233         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57234         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57235         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57236         (__SWBLK_T_TYPE): Likewise.
57237         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57238         (__SWBLK_T_TYPE): Likewise.
57239         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57240         (__SWBLK_T_TYPE): Likewise.
57241         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57242         (__SWBLK_T_TYPE): Likewise.
57243
57244 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57245             Honza Horak <hhorak@redhat.com>
57246
57247         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57248         (xdr_mapname): Use YPMAXMAP as maxsize.
57249         (xdr_peername): Use YPMAXPEER as maxsize.
57250         (xdr_keydat): Use YPAXRECORD as maxsize.
57251         (xdr_valdat): Use YPMAXRECORD as maxsize.
57252
57253 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57254
57255         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57256
57257         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57258         * csu/init-first.c: ... here.
57259         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57260         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57261         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57262         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57263         * sysdeps/i386/init-first.c: File removed.
57264         * sysdeps/sh/init-first.c: File removed.
57265
57266 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57267
57268         [BZ #14645]
57269         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57270         if x * y might underflow to zero and z is zero.
57271         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57272         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57273         * math/libm-test.inc (min_subnorm_value): New variable.
57274         (fma_test): Add more tests.
57275         (fma_test_towardzero): Likewise.
57276         (fma_test_downward): Likewise.
57277         (fma_test_upward): Likewise.
57278         (initialize): Set min_subnorm_value.
57279
57280 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57281
57282         [BZ #14638]
57283         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57284         0 + 0.
57285         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57286         mode for addition resulting in exact zero.
57287         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57288         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57289         exact 0 + 0.
57290         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57291         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57292         * math/libm-test.inc (fma_test): Add more tests.
57293         (fma_test_towardzero): New function.
57294         (fma_test_downward): Likewise.
57295         (fma_test_upward): Likewise.
57296         (main): Call the new functions.
57297
57298 2012-09-28  David S. Miller  <davem@davemloft.net>
57299
57300         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57301
57302 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57303
57304         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57305         instead of SIGALRM.
57306
57307         * sysdeps/gnu/_G_config.h: Moved to ...
57308         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57309         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57310         * sysdeps/generic/_G_config.h: ... here.
57311
57312         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57313
57314         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57315
57316         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57317         Conditionalize target on [libnss_test1.so-version].
57318
57319         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57320
57321         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57322         (elfobjdir): Move out of conditionals.
57323
57324         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57325         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57326         (__nss_lookup_function): Conditionalize label remove_from_tree on
57327         [!DO_STATIC_NSS || SHARED], matching its only use.
57328
57329 2012-09-28  David S. Miller  <davem@davemloft.net>
57330
57331         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57332         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57333         file.
57334         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57335         sysdep_routines.
57336         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57337         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57338         when HWCAP_SPARC_CRYPTO is present.
57339
57340 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57341
57342         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57343
57344 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57345
57346         [BZ #6530]
57347         * stdio-common/vfprintf.c (process_string_arg): Revert
57348         2000-07-22 change.
57349
57350 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57351
57352         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57353         for testcase.
57354         * stdio-common/tst-sprintf.c: Include <locale.h>
57355         (main): Test sprintf's handling of incomplete multibyte
57356         characters.
57357
57358 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57359
57360         * elf/dl-runtime.c (VERSYMIDX): Removed.
57361         * elf/dl-version.c (VERSYMIDX): Likewise.
57362         * elf/do-rel.h (VERSYMIDX): Likewise.
57363         (VALIDX): Likewise.
57364         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57365         * elf/rtld.c (VALIDX): Likewise.
57366         (ADDRIDX): Likewise.
57367         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57368         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57369         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57370         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57371         (VALIDX): Likewise.
57372         (ADDRIDX): Likewise.
57373
57374 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57375
57376         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57377
57378 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57379
57380         [BZ #11438]
57381         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57382         to global scope.
57383         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57384         addresses are in the same scope as 192.0.2/24.
57385         * posix/gai.conf: Document new scope table defaults.
57386
57387 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57388
57389         [BZ #5298]
57390         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57391         for ftell.  Compute offsets from write pointers instead.
57392         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57393
57394 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57395
57396         [BZ #14543]
57397         * libio/Makefile (tests): New test case tst-fseek.
57398         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57399         combination works in wide mode.
57400         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57401         state when the external buffer state changes.
57402
57403 2012-09-27  David S. Miller  <davem@davemloft.net>
57404
57405         [BZ #14376]
57406         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57407         pass reloc->r_addend in as the 'high' argument to
57408         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57409
57410         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57411
57412 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57413
57414         * rt/tst-aio2.c: Include <pthread.h>.
57415         * rt/tst-aio3.c: Likewise.
57416
57417 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57418
57419         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57420
57421 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57422
57423         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57424         contents on [SHARED].
57425
57426 2012-09-26  Marek Polacek  <polacek@redhat.com>
57427
57428         [BZ #14530]
57429         [BZ #13741]
57430         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57431         for C++ and GCC <4.3 as well as for non GCC compilers.
57432
57433 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57434
57435         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57436
57437 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57438
57439         * Makefile.in (all, install): Declare with .PHONY.
57440         Reported by Michael Hope <michael.hope@linaro.org>.
57441
57442 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57443
57444         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57445         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57446         system header.
57447         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57448         Likewise.
57449         (sydep_routines): Add the new and the internal functions.
57450         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57451         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57453         (GLIBC_2.17): Add the new function.
57454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57455         (GLIBC_2.17): Likewise.
57456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57457         (GLIBC_2.17): Likewise.
57458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57459         (GLIBC_2.17): Likewise.
57460         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57461
57462 2012-09-25  Alan Modra  <amodra@gmail.com>
57463
57464         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57465         Add release barrier before setting once_control to say
57466         initialisation is done.  Add hints on lwarx.  Use macro in
57467         place of isync.
57468         (clear_once_control): Add release barrier.
57469
57470 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57471
57472         [BZ #13629]
57473         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57474         specially.
57475         * math/s_clog10.c (__clog10): Likewise.
57476         * math/s_clog10f.c (__clog10f): Likewise.
57477         * math/s_clog10l.c (__clog10l): Likewise.
57478         * math/s_clogf.c (__clogf): Likewise.
57479         * math/s_clogl.c (__clogl): Likewise.
57480         * math/Makefile (libm-calls): Add x2y2m1.
57481         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57482         (__x2y2m1): Likewise.
57483         (__x2y2m1l): Likewise.
57484         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57485         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57486         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57487         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57488         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57489         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57490         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57491         * sysdeps/i386/fpu/libm-test-ulps: Update.
57492         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57493
57494         [BZ #14621]
57495         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57496         int as type of variable DEPTH.
57497         (glob): Use size_t instead of int as type of variables NEWCOUNT
57498         and OLD_PATHC.
57499
57500 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57501
57502         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57503         Add s_sincosf-sse2.
57504         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57505         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57506         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57507         macros for using routine as __sincosf_ia32.
57508         Use macro for function declaration and weak_alias.
57509         * sysdeps/i386/fpu/libm-test-ulps: Update.
57510
57511         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57512         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57513
57514         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57515         subnormal argument.
57516         * math/s_cexpf.c (__cexpf): Likewise.
57517         * math/s_csinf.c (__csinf): Likewise.
57518         * math/s_csinhf.c (__csinhf): Likewise.
57519         * math/s_ctanf.c (__ctanf): Likewise.
57520         * math/s_ctanhf.c (__ctanhf): Likewise.
57521         * math/s_ccosh.c (__ccoshf): Likewise.
57522         * math/s_cexp.c (__cexpl): Likewise.
57523         * math/s_csin.c (__csin): Likewise.
57524         * math/s_csinh.c (__csinh): Likewise.
57525         * math/s_ctan.c (__ctan): Likewise.
57526         * math/s_ctanh.c (ctanh): Likewise.
57527         * math/s_ccoshl.c (__ccoshl): Likewise.
57528         * math/s_cexpl.c (__cexpl): Likewise.
57529         * math/s_csinl.c (__csinl): Likewise.
57530         * math/s_csinhl.c (__csinhl): Likewise.
57531         * math/s_ctanl.c (__ctanl): Likewise.
57532         * math/s_ctanhl.c (__ctanhl): Likewise.
57533
57534 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57535
57536         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57537         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57538         (_IO_off_t): Define to __off_t, not _G_off_t.
57539         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57540         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57541         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57542         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57543         type of __dummy and __dummy2 fields.
57544         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57545         (_G_ssize_t): Likewise.
57546         (_G_off_t): Likewise.
57547         (_G_pid_t): Likewise.
57548         (_G_uid_t): Likewise.
57549         (_G_wchar_t): Likewise.
57550         (_G_wint_t): Likewise.
57551         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57552         (_G_ssize_t): Likewise.
57553         (_G_off_t): Likewise.
57554         (_G_pid_t): Likewise.
57555         (_G_uid_t): Likewise.
57556         (_G_wchar_t): Likewise.
57557         (_G_wint_t): Likewise.
57558         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57559         (_G_ssize_t): Likewise.
57560         (_G_off_t): Likewise.
57561         (_G_pid_t): Likewise.
57562         (_G_uid_t): Likewise.
57563         (_G_wchar_t): Likewise.
57564         (_G_wint_t): Likewise.
57565
57566 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57567
57568         * malloc/arena.c: Include malloc-sysdep.h.
57569         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57570         is sufficient to shrink the heap or an unmap is needed.
57571         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57572         new function check_may_shrink_heap.
57573         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57574         new function check_may_shrink_heap.
57575
57576 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57577
57578         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57579         comments.
57580
57581 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57582
57583         * catgets/test-gencat.sh: Add "set -e".
57584         * elf/tst-pathopt.sh: Likewise.
57585         * grp/tst_fgetgrent.sh: Likewise.
57586         * iconvdata/run-iconv-test.sh: Likewise.
57587         * intl/tst-gettext.sh: Likewise.
57588         * intl/tst-gettext2.sh: Likewise.
57589         * intl/tst-gettext4.sh: Likewise.
57590         * intl/tst-gettext6.sh: Likewise.
57591         * intl/tst-translit.sh: Likewise.
57592         * io/ftwtest-sh: Likewise.
57593         * libio/test-freopen.sh: Likewise.
57594         * malloc/tst-mtrace.sh: Likewise.
57595         * posix/globtest.sh: Likewise.
57596         * posix/tst-getconf.sh: Likewise.
57597         * posix/wordexp-tst.sh: Likewise.
57598         * stdio-common/tst-printf.sh: Likewise.
57599         * stdio-common/tst-unbputc.sh: Likewise.
57600         * stdlib/tst-fmtmsg.sh: Likewise.
57601         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57602         * catgets/Makefile: Do not specify -e option when running
57603         testsuite shell scripts.
57604         * elf/Makefile: Likewise.
57605         * grp/Makefile: Likewise.
57606         * iconvdata/Makefile: Likewise.
57607         * intl/Makefile: Likewise.
57608         * io/Makefile: Likewise.
57609         * libio/Makefile: Likewise.
57610         * malloc/Makefile: Likewise.
57611         * posix/Makefile: Likewise.
57612         * stdio-common/Makefile: Likewise.
57613         * stdlib/Makefile: Likewise.
57614         * sysdeps/x86_64/Makefile: Likewise.
57615
57616         * io/ftwtest-sh: Add copyright header.
57617         * posix/globtest.sh: Likewise.
57618         * posix/tst-getconf.sh: Likewise.
57619         * posix/wordexp-tst.sh: Likewise.
57620         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57621
57622 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57623
57624         [BZ #13679]
57625         * Makeconfig (+link): Defined as $(+link-static) if
57626         $(build-shared) isn't yes.
57627         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57628         isn't yes.
57629         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57630
57631         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57632
57633         [BZ #14562]
57634         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57635         new chunk size with MALLOC_ALIGN_MASK.
57636
57637 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57638
57639         [BZ #5044]
57640         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57641         <rounding-mode.h>.
57642         (__printf_fphex): Determine rounding using get_rounding_mode and
57643         round_away.
57644         * stdio-common/tst-printf-round.c (struct hex_test): New
57645         structure.
57646         (hex_tests): New variable.
57647         (test_hex_in_one_mode): New function.
57648         (do_test): Also run tests for hex float output.
57649
57650 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57651
57652         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57653         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57654         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57655         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57656         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57657         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57658         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57659         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57660
57661 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57662
57663         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57664         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57665         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57666         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57667
57668 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57669
57670         [BZ #14579]
57671         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57672         mode only.
57673         * elf/tst-rtld-load-self.sh: New test.
57674         * elf/Makefile: Run it.
57675
57676 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57677
57678         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57679         (tst-writev-ENV): Remove.
57680         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57681
57682 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57683
57684         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57685
57686 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57687
57688         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57689         unconditional.
57690         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57691         Likewise.
57692         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57693         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57694         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57695         Likewise.
57696
57697 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57698
57699         [BZ #14587]
57700         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57701         * config.make.in (have-cpp-asm-debuginfo): Removed.
57702         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57703         * configure: Regenerated.
57704
57705 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57706
57707         [BZ #5044]
57708         * stdio-common/printf_fp.c: Include <stdbool.h> and
57709         <rounding-mode.h>.
57710         (___printf_fp): Determine rounding using get_rounding_mode and
57711         round_away.
57712         * stdio-common/tst-printf-round.c: New file.
57713         * stdio-common/Makefile (tests): Add tst-printf-round.
57714         (link-libm): New variable.
57715         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57716
57717 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57718
57719         [BZ #14576]
57720         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57721         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57722         Likewise.
57723         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57724         Likewise.
57725
57726 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57727
57728         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57729         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57730         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57731         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57732
57733 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57734
57735         [BZ #14518]
57736         * include/rounding-mode.h: New file.
57737         * sysdeps/generic/get-rounding-mode.h: Likewise.
57738         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57739         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57740         (MAX_VALUE): New macro.
57741         (MIN_VALUE): Likewise.
57742         (overflow_value): New function.
57743         (underflow_value): Likewise.
57744         (round_and_return): Use overflow_value and underflow_value to
57745         determine return values in overflow and underflow cases.  Use
57746         round_away to determine rounding depending on rounding mode.
57747         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57748         determine return values in overflow and underflow cases.
57749         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57750         (struct test_results): New structure.
57751         (struct test): Use struct test_results to store expected results
57752         for all rounding modes.
57753         (TEST): Include expected results for all rounding modes.
57754         (test_in_one_mode): New function.
57755         (do_test): Use test_in_one_mode to compute and check results.
57756         Check results for all rounding modes.
57757         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57758         $(link-libm).
57759
57760 2012-12-09  Allan McRae  <allan@archlinux.org>
57761
57762         * sysdeps/i386/fpu/libm-test-ulps: Update
57763
57764 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57765
57766         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57767         (_G_int32_t): Likewise.
57768         (_G_uint16_t): Likewise.
57769         (_G_uint32_t): Likewise.
57770         (_G_HAVE_BOOL): Likewise.
57771         (_G_HAVE_ATEXIT): Likewise.
57772         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57773         (_G_HAVE_IO_FILE_OPEN): Likewise.
57774         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57775         (_G_int32_t): Likewise.
57776         (_G_uint16_t): Likewise.
57777         (_G_uint32_t): Likewise.
57778         (_G_HAVE_BOOL): Likewise.
57779         (_G_HAVE_ATEXIT): Likewise.
57780         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57781         (_G_HAVE_IO_FILE_OPEN): Likewise.
57782         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57783         (_G_int32_t): Likewise.
57784         (_G_uint16_t): Likewise.
57785         (_G_uint32_t): Likewise.
57786         (_G_HAVE_BOOL): Likewise.
57787         (_G_HAVE_ATEXIT): Likewise.
57788         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57789         (_G_HAVE_IO_FILE_OPEN): Likewise.
57790
57791 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57792
57793         * csu/libc-tls.c: Update copyright years.
57794
57795 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57796
57797         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57798         [!_G_USING_THUNKS]: Remove conditional code.
57799         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57800         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57801
57802         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57803         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57804         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57805         (_G_VTABLE_LABEL_PREFIX): Likewise.
57806         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57807         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57808         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57809         (_G_VTABLE_LABEL_PREFIX): Likewise.
57810         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57811         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57812         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57813         (_G_VTABLE_LABEL_PREFIX): Likewise.
57814         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57815
57816 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57817
57818         * libio/Makefile: Include ../Makeconfig before tests.
57819         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57820         only if $(build-shared) is yes.
57821
57822         * iconv/gconv_db.c: Update copyright years.
57823
57824 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57825
57826         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57827         unwind info if defined PIC. Fix special cases description.
57828         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57829
57830         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57831         DP_HI_MASK entry.
57832         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57833
57834 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57835
57836         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57837
57838         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57839         is NULL.
57840
57841         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57842         (LDLIBS-tst-chk4): This.
57843         (LDFLAGS-tst-chk5): Renamed to ...
57844         (LDLIBS-tst-chk5): This.
57845         (LDFLAGS-tst-chk6): Renamed to ...
57846         (LDLIBS-tst-chk6): This.
57847         (LDFLAGS-tst-lfschk4): Renamed to ...
57848         (LDLIBS-tst-lfschk4): This.
57849         (LDFLAGS-tst-lfschk5): Renamed to ...
57850         (LDLIBS-tst-lfschk5): This.
57851         (LDFLAGS-tst-lfschk6): Renamed to ...
57852         (LDLIBS-tst-lfschk6): This.
57853
57854         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57855         on $(common-objpfx)soversions.mk.
57856
57857 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57858
57859         [BZ #10014]
57860         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57861         example host name.
57862
57863 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57864
57865         * malloc/arena.c (arena_get_retry): New function that gets
57866         another arena for the caller to try its request on.
57867         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57868         current arena cannot fulfill the request.
57869         (__libc_memalign): Likewise.
57870         (__libc_memalign): Likewise.
57871         (__libc_pvalloc): Likewise.
57872         (__libc_calloc): Likewise.
57873
57874 2012-09-05  John Tobey  <john.tobey@gmail.com>
57875
57876         [BZ #13542]
57877         * manual/arith.texi (Operations on Complex): Fix description
57878         of carg branch cut.
57879
57880 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57881
57882         [BZ #10014]
57883         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57884         host name.
57885
57886         [BZ #10038]
57887         * manual/memory.texi (Memory): Make order of menu items match
57888         order of sections.
57889
57890 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57891
57892         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57893         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57894         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57895
57896 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57897
57898         * csu/libc-tls.c (static_dtv): Renamed to ...
57899         (_dl_static_dtv): This.  Make it global.
57900         (_dl_initial_dtv): Removed.
57901         (__libc_setup_tls): Updated.
57902         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57903         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57904         DL_INITIAL_DTV.
57905
57906 2012-09-06  Petr Machata  <pmachata@redhat.com>
57907
57908         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57909         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57910         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57911         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57912
57913 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57914
57915         [BZ #14545]
57916         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57917         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57918         freeing dtv[-1].
57919
57920 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57921
57922         [BZ #14544]
57923         * Makeconfig (link-static-before-libc): Replace $(+prector)
57924         with $(+prectorT).
57925         (link-static-after-libc): Replace $(+postctor) with
57926         $(+postctorT).
57927         (link-bounded): Replace $(+prector)/$(+postctor) with
57928         $(+prectorT)/$(+postctorT).
57929         (+prectorT): New macro.
57930         (+postctorT): Likewise.
57931
57932 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57933
57934         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57935         (round_str): Handle values above the maximum for IBM long double
57936         as inexact.
57937         * stdlib/tst-strtod-round.c (tests): Regenerated.
57938
57939 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57940
57941         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57942         assembler flag.
57943         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57944         zarch_nohighgprs around the zarch optimized routines.
57945         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57946         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57947         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57948         for zarch.
57949
57950 2012-09-05  David S. Miller  <davem@davemloft.net>
57951
57952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57953
57954         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57955         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57956         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57957         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57958         entries.
57959
57960 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57961
57962         * malloc/arena.c: Fold copyright years.
57963         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57964
57965 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57966
57967         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57968
57969 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57970
57971         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57972
57973 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57974
57975         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57976         change internal state upon failure.
57977
57978 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57979
57980         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57981         * malloc/memusage.c (mmap): Likewise.
57982         (mmap64, mremap): Likewise.  Adjust name in comment.
57983
57984 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57985
57986         * libio/fileops.c: Fix typos in comments.
57987         * libio/oldfileops.c: Likewise.
57988         * libio/wfileops.c: Likewise.
57989
57990 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57991
57992         [BZ #1349]
57993         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57994         (tst-malloc-usable-ENV): Set environment for test case.
57995         * malloc/hooks.c (malloc_check_get_size): New function to get
57996         requested size.
57997         * malloc/malloc.c (musable): Use malloc_check_get_size.
57998         * malloc/tst-malloc-usable.c: New test case.
57999
58000 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58001
58002         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58003
58004 2012-09-05  Allan McRae  <allan@archlinux.org>
58005
58006         [BZ #13966]
58007         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58008         determine header location.
58009         * configure: Regenerated.
58010
58011 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58012
58013         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58014         float format.
58015         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58016         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58017         format.
58018         (test): Regenerate.
58019
58020 2012-09-04  David S. Miller  <davem@davemloft.net>
58021
58022         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58023         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58024         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58025
58026 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58027
58028         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58029         failures.
58030
58031         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58032
58033 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58034
58035         [BZ #9914]
58036         * libio/iogetdelim.c: Include <limits.h>.
58037         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58038         + len + 1 would overflow.
58039
58040 2012-09-03  Andreas Jaeger  <aj@suse.de>
58041
58042         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58043         * sysdeps/i386/fpu/libm-test-ulps: Update.
58044
58045 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58046
58047         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58048         Add s_sinf-sse2, s_conf-sse2.
58049
58050         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58051         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58052         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58053         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58054
58055         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58056         for using routine as __sinf_ia32.
58057         Use macro for function declaration and weak_alias.
58058         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58059         for using routine as __cosf_ia32.
58060         Use macro for function declaration and weak_alias.
58061
58062         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58063         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58064
58065         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58066         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58067         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58068
58069         * math/libm-test.inc (cos_test): Add more test cases.
58070         (sin_test): Likewise.
58071         (sincos_test): Likewise.
58072
58073 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58074
58075         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58076         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58077         hidden.
58078         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58079
58080 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58081
58082         [BZ #14538]
58083         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58084         first element of the GOT.
58085         (elf_machine_load_address): Return the difference between
58086         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58087
58088 2012-09-01  Allan McRae  <allan@archlinux.org>
58089
58090         [BZ #13412]
58091         * configure.in (AWK): Require gawk version 3.0 or later.
58092         * configure: Regenerated.
58093
58094 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58095
58096         * sysdeps/unix/sysv/linux/kernel-features.h
58097         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58098         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58099         [__NR_clock_getres]: Make code unconditional.
58100         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58101         (clock_getcpuclockid): Remove code left unreachable by removal of
58102         conditionals.
58103         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58104         code unconditional.
58105         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58106         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58107         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58108         Make code unconditional.
58109         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58110         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58111         * sysdeps/unix/sysv/linux/clock_settime.c
58112         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58113         conditional code.
58114         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58115         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58116
58117 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58118
58119         [BZ #14476]
58120         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58121         scripts/test-installation.pl.
58122
58123         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58124         and $ld_so_version if it is set.
58125
58126 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58127
58128         [BZ #14516]
58129         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58130         failure if reading from procfs failed.
58131         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58132
58133 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58134
58135         * sysdeps/unix/sysv/linux/kernel-features.h
58136         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58137         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58138         Remove conditional code.
58139         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58140         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58141         Remove conditional code.
58142         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58143         * sysdeps/unix/sysv/linux/i386/fxstat.c
58144         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58145         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58146         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58147         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58148         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58149         * sysdeps/unix/sysv/linux/i386/lxstat.c
58150         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58151         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58152         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58153         Remove conditional code.
58154         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58155         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58156         Remove conditional code.
58157         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58158         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58159         <kernel-features.h>.
58160         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58161         Remove.
58162         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58163         Remove conditional code.
58164         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58165         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58166         Remove conditional.
58167
58168 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58169
58170         [BZ #5400]
58171         * NEWS: Add fixed bug number.
58172
58173 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58174
58175         [BZ #14519]
58176         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58177         underflowing exponent in case of negative sign.
58178         * stdlib/tst-strtod-round-data: Add more tests.
58179         * stdlib/tst-strtod-round.c (tests): Regenerated.
58180
58181         [BZ #3479]
58182         * stdlib/strtod_l.c (NDIG): Remove.
58183         (HEXNDIG): Likewise.
58184         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58185         smallest representable value.
58186         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58187         lie within an exact representation of 1/2 ulp of the result.
58188         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58189         unconditionally.
58190         (TENS_P9_IDX): Define unconditionally.
58191         (TENS_P9_SIZE): Likewise.
58192         (TENS_P10_IDX): Likewise.
58193         (TENS_P10_SIZE): Likewise.
58194         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58195         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58196         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58197         entries for 10^2^13 and 10^2^14.
58198         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58199         (TENS_P13_IDX): Define.
58200         (TENS_P13_SIZE): Likewise.
58201         (TENS_P14_IDX): Likewise.
58202         (TENS_P14_SIZE): Likewise.
58203         (_fpioconst_pow10): Change array size to
58204         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58205         unconditional.
58206         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58207         1024]: Add entries for 10^2^13 and 10^2^14.
58208         [LAST_POW10 > _LAST_POW10]: Remove #error.
58209         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58210         (_fpioconst_pow10): Change array size to
58211         FPIOCONST_POW10_ARRAY_SIZE.
58212         * stdlib/gen-fpioconst.c: New file.
58213         * stdlib/gen-tst-strtod-round.c: Likewise.
58214         * stdlib/tst-strtod-round-data: Likewise.
58215         * stdlib/tst-strtod-round.c: Likewise.
58216         * stdlib/Makefile (tests): Add tst-strtod-round.
58217
58218         [BZ #14459]
58219         * stdlib/strtod_l.c: Include <stdint.h>.
58220         (NDEBUG): Do not define.
58221         (round_and_return): Change EXPONENT parameter to type intmax_t.
58222         Rearrange calculations to avoid internal overflow possibilities.
58223         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58224         Rearrange calculations to avoid internal overflow possibilities.
58225         Assert that number fits inside MPNSIZE limbs.
58226         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58227         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58228         calculations and add assertions to avoid internal overflow
58229         possibilities.  Add casts to avoid signed/unsigned operations.
58230         * stdlib/tst-strtod-overflow.c: New file.
58231         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58232
58233 2012-08-25  Marek Polacek  <polacek@redhat.com>
58234
58235         * time/time.h: Fix some typos in comments.
58236
58237 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58238
58239         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58240         * posix/tst-rfc3484-2.c: Likewise.
58241         * posix/tst-rfc3484-3.c: Likewise.
58242
58243 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58244
58245         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58246         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58247
58248 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58249
58250         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58251         #include of fxstatat64.c.
58252
58253 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58254
58255         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58256         * shadow/getspent_r.c: Likewise.
58257         * shadow/getspnam.c: Likewise.
58258         * shadow/getspnam_r.c: Likewise.
58259         * gshadow/getsgent.c: Likewise.
58260         * gshadow/getsgent_r.c: Likewise.
58261         * gshadow/getsgnam.c: Likewise.
58262         * gshadow/getsgnam_r.c: Likewise.
58263         * inet/getnetbyad.c: Likewise.
58264         * inet/getnetbyad_r.c: Likewise.
58265         * inet/getnetbynm.c: Likewise.
58266         * inet/getnetbynm_r.c: Likewise.
58267         * inet/getnetent.c: Likewise.
58268         * inet/getnetent_r.c: Likewise.
58269         * inet/getproto.c: Likewise.
58270         * inet/getproto_r.c: Likewise.
58271         * inet/getprtent.c: Likewise.
58272         * inet/getprtent_r.c: Likewise.
58273         * inet/getprtname.c: Likewise.
58274         * inet/getprtname_r.c: Likewise.
58275         * inet/getrpcbyname.c: Likewise.
58276         * inet/getrpcbyname_r.c: Likewise.
58277         * inet/getrpcbynumber.c: Likewise.
58278         * inet/getrpcbynumber_r.c: Likewise.
58279         * inet/getrpcent.c: Likewise.
58280         * inet/getrpcent_r.c: Likewise.
58281         * inet/getaliasent.c: Likewise.
58282         * inet/getaliasent_r.c: Likewise.
58283         * inet/getaliasname.c: Likewise.
58284         * inet/getaliasname_r.c: Likewise.
58285         * nscd/getgrgid_r.c: Likewise.
58286         * nscd/getgrnam_r.c: Likewise.
58287         * nscd/gethstbyad_r.c: Likewise.
58288         * nscd/gethstbynm3_r.c: Likewise.
58289         * nscd/getpwnam_r.c: Likewise.
58290         * nscd/getpwuid_r.c: Likewise.
58291         * nscd/getsrvbynm_r.c: Likewise.
58292         * nscd/getsrvbypt_r.c: Likewise.
58293         * nscd/gai.c: Likewise.
58294
58295         * configure.in (build_nscd): New substituted variable, set
58296         by --disable-build-nscd and defaults to $use_nscd.
58297         * configure: Regenerated.
58298         * config.make.in (build-nscd): New substituted variable.
58299         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58300         Change conditional to require [$(build-nscd) = yes] as well.
58301         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58302
58303         [BZ# 13696]
58304         * configure.in (use_nscd): New substituted variable, set by
58305         --disable-nscd.  If enabled, define USE_NSCD.
58306         * configure: Regenerated.
58307         * config.h.in: Add USE_NSCD.
58308         * config.make.in (use-nscd): New substituted variable.
58309         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58310         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58311         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58312         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58313         (CFLAGS-getgrnam_r.c): Likewise.
58314         (CFLAGS-initgroups.c): Likewise.
58315         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58316         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58317         Variables removed.
58318         * inet/getnetgrent_r.c
58319         (nscd_setnetgrent): New function, broken out of ...
58320         (setnetgrent): ... here.  Call it.
58321         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58322         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58323         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58324         * nscd/Makefile (routines, aux): Move definitions after include of
58325         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58326         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58327         Conditionalize on [USE_NSCD].
58328         (is_nscd, nscd_init_cb): Likewise.
58329         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58330         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58331         * nss/nss_db/db-init.c: Likewise.
58332         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58333         [USE_NSCD].
58334         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58335         (make_request): Use it.
58336         (cache_valid_p): New function.
58337         (__check_pf): Use it.
58338         * NEWS: Add item for --disable-nscd.
58339
58340 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58341
58342         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58343         to support sed >= 4.2.1-20-ga9bf076.
58344         * configure: Regenerated.
58345
58346 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58347
58348         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58349         Conditionalize whole body on [IREL].
58350
58351 2012-08-22  Jeff Law <law@redhat.com>
58352
58353         [BZ #14505]
58354         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58355         if the family is PF_UNSPEC.
58356
58357 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58358
58359         * Makerules (lib-version): Rename from V.
58360         (install-lib-nosubdir): Change V to lib-version.
58361
58362 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58363
58364         [BZ #14252]
58365         * powerpc32/power6/wcschr.c: New file.
58366         * powerpc32/power6/wcscpy.c: New file.
58367         * powerpc32/power6/wcsrchr.c: New file.
58368         * powerpc64/power6/wcschr.c: New file.
58369         * powerpc64/power6/wcscpy.c: New file.
58370         * powerpc64/power6/wcsrchr.c: New file.
58371
58372 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58373
58374         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58375         (two_way_short_needle): Use it.
58376         * string/strstr.c (AVAILABLE1_USES_J): Define.
58377         * string/strcasestr.c: Likewise.
58378
58379         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58380         array references.
58381         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58382
58383         [BZ #11607]
58384         * NEWS: Add an entry.
58385         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58386         define their defaults.
58387         (two_way_short_needle): Detect end-of-string on-the-fly.
58388         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58389         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58390         * string/bug-strcasestr1.c: New test.
58391         * string/Makefile: Run it.
58392
58393 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58394
58395         [BZ #11607]
58396         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58397         the first character.
58398
58399 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58400
58401         * csu/elf-init.c (__libc_csu_irel): Function removed.
58402         * csu/libc-start.c (apply_irel): New function.
58403         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58404
58405 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58406
58407         * sysdeps/unix/sysv/linux/kernel-features.h
58408         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58409         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58410         <kernel-features.h>.
58411         [__NR_fadvise64_64]: Make code unconditional.
58412         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58413         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58414         !__NR_fadvise64_64)]: Likewise.
58415         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58416         !__NR_fadvise64_64))]: Likewise.
58417         [__NR_fadvise64]: Make code unconditional.
58418         [!__NR_fadvise64]: Remove conditional code.
58419         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58420         <kernel-features.h>.
58421         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58422         unconditional.
58423         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58424         conditional code.
58425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58426         not include <kernel-features.h>.
58427         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58428         unconditional.
58429         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58430         conditional code.
58431         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58432         include <kernel-features.h>.
58433         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58434         unconditional.
58435         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58436         conditional code.
58437
58438 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58439
58440         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58441         slight instruction rearrangements per scrollpipe analysis.
58442         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58443
58444 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58445
58446         * manual/syslog.texi (syslog; vsyslog, closelog):
58447         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58448         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58449
58450         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58451         DSOCAPS to match condition on defining it.
58452
58453 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58454
58455         * sysdeps/unix/sysv/linux/kernel-features.h
58456         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58458         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58459         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58461         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58462         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58464         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58465         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58466
58467         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58468         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58469
58470         * sysdeps/unix/sysv/linux/kernel-features.h
58471         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58472         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58473         unconditional.
58474         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58475         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58476         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58477         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58478         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58479         Make code unconditional.
58480         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58481         (__mmap64) [!__NR_mmap2]: Likewise.
58482         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58483         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58484         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58485         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58486         [__NR_mmap2]: Make code unconditional.
58487         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58488         (__mmap64) [!__NR_mmap2]: Likewise.
58489
58490 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58491
58492         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58493
58494 2012-08-18  Andreas Jaeger  <aj@suse.de>
58495
58496         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58497
58498 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58499
58500         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58501         * include/unistd.h (__have_sock_cloexec): Likewise.
58502         (__have_pipe2): Likewise.
58503         (__have_dup3): Likewise.
58504
58505 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58506
58507         [BZ #9685]
58508         * include/unistd.h (__have_pipe2): Change define into an extern int.
58509         (__have_dup3): Likewise.
58510         * socket/have_sock_cloexec.c: Include fcntl.h.
58511         (__have_pipe2): New variable.
58512         (__have_dup3): Likewise.
58513
58514 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58515
58516         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58517
58518 2012-08-17  Marek Polacek  <polacek@redhat.com>
58519
58520         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58521         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58522
58523 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58524
58525         * configure.in: Add AC_SUBST for sysheaders.
58526         * configure: Regenerated.
58527         * config.make.in (sysheaders): New substituted variable.
58528
58529         * sysdeps/unix/mkfifo.c: Moved ...
58530         * sysdeps/posix/mkfifo.c: ... here.
58531         * sysdeps/unix/mkfifoat.c: Moved ...
58532         * sysdeps/posix/mkfifoat.c: ... here.
58533
58534         * sysdeps/unix/utime.c: Moved ...
58535         * sysdeps/posix/utime.c: ... here.
58536
58537         * sysdeps/unix/time.c: Moved ...
58538         * sysdeps/posix/time.c: ... here.
58539         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58540         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58541
58542         * sysdeps/unix/nice.c: Moved ...
58543         * sysdeps/posix/nice.c: ... here.
58544
58545         * sysdeps/unix/alarm.c: Moved ...
58546         * sysdeps/posix/alarm.c: ... here.
58547
58548         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58549
58550 2012-08-17  Jeff Law <law@redhat.com>
58551
58552         * intl/Makefile (codeset_mo): New variable.
58553         ($(codeset_mo)): New target.
58554         (tst-codeset.out): Depend on that.  Remove explicit rule.
58555         (tst-gettext3.out, tst-gettext5.out): Likewise.
58556         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58557         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58558         * intl/tst-codeset.sh: Remove.
58559         * intl/tst-gettext3.sh: Likewise.
58560         * intl/tst-gettext5.sh: Likewise.
58561
58562 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58563
58564         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58565         * sysdeps/unix/syscalls.list: ... here.
58566
58567         * sysdeps/posix/getaddrinfo.c
58568         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58569         (gaiconf_init, gaiconf_reload): Use them.
58570         [!_STATBUF_ST_NSEC]
58571         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58572         Define using time_t rather than struct timespec.
58573
58574         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58575         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58576         Macros removed.
58577         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58578         [!NO_THREADS].
58579         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58580         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58581         Likewise.
58582
58583         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58584         __libc_cleanup_push argument.
58585
58586         * bits/param.h: New file.
58587         * misc/sys/param.h: New file.
58588         * include/sys/param.h: New file.
58589         * misc/Makefile (headers): Add bits/param.h.
58590         * sysdeps/generic/sys/param.h: File removed.
58591         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58592         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58593         * sysdeps/mach/hurd/bits/param.h: New file.
58594         * sysdeps/mach/hurd/sys/param.h: File removed.
58595
58596         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58597         last change.
58598
58599         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58600         [_IO_MTSAFE_IO].
58601         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58602         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58603         New macros.
58604
58605         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58606         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58607         rather than -D_IO_MTSAFE_IO conditionally.
58608         * stdio-common/Makefile (CPPFLAGS): Likewise.
58609         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58610         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58611         Use $(libio-mtsafe).
58612         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58613         of -D_IO_MTSAFE_IO.
58614         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58615         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58616         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58617         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58618         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58619         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58620         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58621         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58622         (CFLAGS-fread_u_chk.c): Likewise.
58623         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58624         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58625         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58626         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58627         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58628         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58629         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58630         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58631         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58632
58633         * libio/Makefile: Test [$(libc-reentrant) = yes]
58634         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58635
58636         * Makeconfig
58637         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58638         * sysdeps/pthread/configure: File removed.
58639         * sysdeps/pthread/Makeconfig: New file.
58640         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58641         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58642
58643 2012-08-16  Gary Benson  <gbenson@redhat.com>
58644
58645         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58646         unmapping the first object in a namespace.
58647
58648 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58649
58650         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58651         (__internal_setnetgrent): ... this.  Add internal_function to
58652         definition.  Add libc_hidden_def.
58653         (setnetgrent): Update caller.
58654         (internal_endnetgrent): Renamed to ...
58655         (__internal_endnetgrent): ... this.  Add internal_function to
58656         definition.  Add libc_hidden_def.
58657         (endnetgrent): Update caller.
58658         (internal_getnetgrent_r): Renamed to ...
58659         (__internal_getnetgrent_r): ... this.  Add internal_function to
58660         definition.  Add libc_hidden_def.
58661         (__getnetgrent_r): Update caller.
58662         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58663
58664 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58665
58666         * stdlib/longlong.h: Update from GCC.
58667
58668 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58669
58670         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58671         on _QL, which is set by umul_ppmm but never used.
58672         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58673         variables, which are set by GMP macros but never used.
58674         * stdio-common/_itowa.c (_itowa): Likewise.
58675         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58676         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58677
58678 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58679
58680         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58681         struct La_sh_regs is not constant.
58682         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58683         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58684         and struct La_sparc64_regs are not constant.
58685
58686 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58687
58688         * sysdeps/unix/sysv/linux/kernel-features.h
58689         (__ASSUME_POSIX_TIMERS): Remove.
58690         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58691         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58692         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58693         Make code unconditional.
58694         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58695         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58696         Make code unconditional.
58697         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58698         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58699         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58700         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58701         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58702         Make code unconditional.
58703         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58704         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58705         (__libc_missing_posix_timers): Remove.
58706
58707 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58708
58709         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58710         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58711
58712         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58713
58714         * elf/dl-sym.c: Include <stdlib.h>.
58715
58716         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58717         constants, which avoids warnings in 32-bit builds.
58718
58719         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58720         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58721
58722         * misc/lseek.c: File moved to ...
58723         * io/lseek.c: ... here.
58724
58725         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58726
58727         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58728         shifting LEN more than 31 bits at once.
58729
58730 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58731
58732         [BZ #14195]
58733         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58734         segmentation fault for a case of two empty input strings.
58735         * string/test-strncasecmp.c (check1): Renamed to...
58736         (bz12205): ...this.
58737         (bz14195): Add new testcase for two empty input strings and N > 0.
58738         (test_main): Call new testcase, adapt for renamed function.
58739
58740 2012-08-15  Andreas Jaeger  <aj@suse.de>
58741
58742         [BZ #14090]
58743         * crypt/md5test2.c: New test, based on test supplied by Serge
58744         Belyshev <belyshev@depni.sinp.msu.ru>.
58745         * crypt/Makefile (xtests): Add md5test-giant..
58746         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58747
58748 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58749
58750         [BZ #14090]
58751         * crypt/md5.c (md5_process_block): Don't assume the buffer
58752         length is less than 2**32.
58753         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58754         length is less than 2**64.
58755
58756 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58757
58758         * string/str-two-way.h: Include <sys/param.h>.
58759         (MAX): Macro removed.
58760
58761         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58762         Move #define and #undef of memmove to just before and after
58763         including <string.h>.
58764
58765         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58766         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58767         and after including <string.h>.  Move declarations of
58768         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58769         to before #include "string/memmove.c".
58770
58771         * include/dirent.h: Declare __getdirentries.
58772
58773         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58774         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58775
58776 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58777
58778         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58779         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58780         * sysdeps/i386/configure: Regenerated.
58781         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58782         STABS_CURRENT_FILE, and STABS_FUN.
58783         (END): Remove call to STABS_FUN_END.
58784         (STABS_CURRENT_FILE1): Delete.
58785         (STABS_CURRENT_FILE): Likewise.
58786         (STABS_FUN): Likewise.
58787         (STABS_FUN_END): Likewise.
58788         (STABS_FUN2): Likewise.
58789         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58790         * sysdeps/x86_64/configure: Regenerated.
58791
58792 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58793
58794         * elf/dl-open.c: Include <atomic.h>.
58795         * elf/dl-lookup.c: Likewise.
58796
58797 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58798
58799         * sysdeps/unix/sysv/linux/kernel-features.h
58800         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58801         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58802         unconditionally.
58803         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58804         unconditionally.
58805         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58806         condition on __ASSUME_CLONE_THREAD_FLAGS.
58807
58808 2012-08-14  Andreas Jaeger  <aj@suse.de>
58809
58810         * sysdeps/i386/fpu/libm-test-ulps: Update.
58811
58812 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58813
58814         * include/atomic.h (atomic_exchange_and_add): Split into ...
58815         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58816         New atomic macros.
58817
58818 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58819
58820         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58821
58822 2012-08-13  Jeff Law <law@redhat.com>
58823
58824         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58825         null byte in the output string.
58826
58827 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58828
58829         * sysdeps/unix/sysv/linux/kernel-features.h
58830         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58831         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58832         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58833         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58834         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58835         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58836         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58837
58838 2012-08-09  Jeff Law <law@redhat.com>
58839
58840         [BZ #13939]
58841         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58842         When avoid_arena is set, don't retry in the that arena.  Pick the
58843         next one, whatever it might be.
58844         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58845         (arena_lock): Pass in new parameter to arena_get2.
58846         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58847         arena_get2.
58848         (__libc_malloc): Unify retrying after main arena failure with
58849         __libc_memalign version.
58850         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58851
58852 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58853
58854         [BZ #14166]
58855         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58856         to __redirect_strstr.
58857         (__strstr_sse42): Use typeof __redirect_strstr.
58858         (__strstr_ia32): Likewise.
58859         (__libc_strstr): New prototype.
58860         (strstr): Renamed to ...
58861         (__libc_strstr): This.
58862         (strstr): New strong alias of __libc_strstr.
58863         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58864         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58865         __redirect_time.
58866         Include <time.h>.
58867         (__libc_time): New prototype.
58868         (time_ifunc): Replace time with __libc_time.
58869         (time): New strong alias and hidden definition of __libc_time.
58870         (__GI_time): Remove strong alias.
58871         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58872         Include <stddef.h>.
58873         (memmove): Redefined to __redirect_memmove.
58874         (__memmove_sse2): Use typeof __redirect_memmove.
58875         (__memmove_ssse3): Likewise.
58876         (__memmove_ssse3_back): Likewise.
58877         (__libc_memmove): New prototype.
58878         (memmove): Renamed to ...
58879         (__libc_memmove): This.
58880         (memmove): New strong alias of __libc_memmove.
58881
58882 2012-08-08  Mark Salter  <msalter@redhat.com>
58883
58884         * elf/elf.h
58885         (R_MN10300_TLS_GD): Define.
58886         (R_MN10300_TLS_LD): Likewise.
58887         (R_MN10300_TLS_LDO): Likewise.
58888         (R_MN10300_TLS_GOTIE): Likewise.
58889         (R_MN10300_TLS_IE): Likewise.
58890         (R_MN10300_TLS_LE): Likewise.
58891         (R_MN10300_TLS_DTPMOD): Likewise.
58892         (R_MN10300_TLS_DTPOFF): Likewise.
58893         (R_MN10300_TLS_TPOFF): Likewise.
58894         (R_MN10300_SYM_DIFF): Likewise.
58895         (R_MN10300_ALIGN): Likewise.
58896         (R_MN10300_NUM): Update.
58897
58898 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58899
58900         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58901         Remove.
58902
58903 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58904
58905         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58906
58907         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58908         sysdeps/unix -> sysdeps/posix move.
58909         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58910
58911 2012-08-07      Allan McRae     <allan@archlinux.org>
58912
58913         [BZ #14303]
58914         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58915         (SUNOS_CPP): Likewise.
58916         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58917         not found.
58918         (open_input): Call CPP using execvp.
58919
58920 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58921
58922         * sysdeps/unix/sysv/linux/kernel-features.h
58923         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58924         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58925         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58926         (__ASSUME_WAITID_SYSCALL): Likewise.
58927         * sysdeps/unix/sysv/linux/dl-execstack.c
58928         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58929         code unconditional.
58930         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58931         conditional code.
58932         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58933         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58934         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58935         code.
58936         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58937         unconditional.
58938         [__ASSUME_WAITID_SYSCALL]: Likewise.
58939         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58940
58941 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58942
58943         * sysdeps/unix/closedir.c: Renamed to ...
58944         * sysdeps/posix/closedir.c: ... here.
58945         * sysdeps/unix/dirfd.c: Renamed to ...
58946         * sysdeps/posix/dirfd.c: ... here.
58947         * sysdeps/unix/dirstream.h: Renamed to ...
58948         * sysdeps/posix/dirstream.h: ... here.
58949         * sysdeps/unix/fdopendir.c: Renamed to ...
58950         * sysdeps/posix/fdopendir.c: ... here.
58951         * sysdeps/unix/opendir.c: Renamed to ...
58952         * sysdeps/posix/opendir.c: ... here.
58953         * sysdeps/unix/readdir.c: Renamed to ...
58954         * sysdeps/posix/readdir.c: ... here.
58955         * sysdeps/unix/readdir_r.c: Renamed to ...
58956         * sysdeps/posix/readdir_r.c: ... here.
58957         * sysdeps/unix/rewinddir.c: Renamed to ...
58958         * sysdeps/posix/rewinddir.c: ... here.
58959         * sysdeps/unix/seekdir.c: Renamed to ...
58960         * sysdeps/posix/seekdir.c: ... here.
58961         * sysdeps/unix/telldir.c: Renamed to ...
58962         * sysdeps/posix/telldir.c: ... here.
58963         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58964         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58965         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58966         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58967
58968         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58969         * bits/fcntl.h: ... here.
58970
58971         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58972         not 0.
58973         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58974         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58975         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58976         (struct flock): Move l_start, l_len to the beginning.
58977         Use __pid_t for l_pid.
58978         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58979         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58980         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58981         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58982         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58983         [__USE_LARGEFILE64] (struct flock64): New type.
58984         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58985
58986         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58987         * bits/dirent.h: ... here.
58988
58989         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58990         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58991
58992 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58993
58994         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58995         Change from 2.6.0 to 2.6.16.
58996         * sysdeps/unix/sysv/linux/configure: Regenerated.
58997         * sysdeps/unix/sysv/linux/kernel-features.h
58998         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58999         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59000         version.
59001         (__ASSUME_UTIMES): Likewise.
59002         (__ASSUME_CLONE_STOPPED): Remove.
59003         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59004         architectures, not kernel version.
59005         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59006         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59007         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59008         (__ASSUME_WAITID_SYSCALL): Likewise.
59009         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59010         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59011         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59012         refer to older versions.
59013
59014 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59015
59016         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59017         Define alphasort64 as an alias.
59018         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59019         Define versionsort64 as an alias.
59020         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59021         Define scandir64 as an alias.
59022         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59023         Define scandirat64 as an alias.
59024         * dirent/alphasort64.c (alphasort64):
59025         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59026         * dirent/versionsort64.c: Likewise.
59027         * dirent/scandir64.c: Likewise.
59028         * dirent/scandirat64.c: Likewise.
59029         * sysdeps/wordsize-64/alphasort.c: File removed.
59030         * sysdeps/wordsize-64/alphasort64.c: File removed.
59031         * sysdeps/wordsize-64/scandir.c: File removed.
59032         * sysdeps/wordsize-64/scandir64.c: File removed.
59033         * sysdeps/wordsize-64/scandirat.c: File removed.
59034         * sysdeps/wordsize-64/scandirat64.c: File removed.
59035         * sysdeps/wordsize-64/versionsort.c: File removed.
59036         * sysdeps/wordsize-64/versionsort64.c: File removed.
59037         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59038         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59039         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59040         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59041         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59042         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59043         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59044         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59045
59046         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59047         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59048         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59049         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59050         [defined __arch64__ || defined __sparcv9]
59051         (__INO_T_MATCHES_INO64_T): New macro.
59052         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59053         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59054         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59055         * sysdeps/unix/sysv/linux/bits/dirent.h
59056         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59057         (_DIRENT_MATCHES_DIRENT64): New macro.
59058
59059         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59060         Define lockf64 as an alias.
59061         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59062         Define fseeko64 as an alias.
59063         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59064         Define ftello64 as an alias.
59065         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59066         Define _IO_fgetpos64 and fgetpos64 as aliases.
59067         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59068         Define _IO_fsetpos64 and fsetpos64 as aliases.
59069         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59070         Conditionalize body on this.
59071         * libio/fseeko64.c: Likewise.
59072         * libio/ftello64.c: Likewise.
59073         * libio/iofgetpos64.c: Likewise.
59074         * libio/iofsetpos64.c: Likewise.
59075         * sysdeps/wordsize-64/lockf.c: File removed.
59076         * sysdeps/wordsize-64/lockf64.c: File removed.
59077         * sysdeps/wordsize-64/fseeko.c: File removed.
59078         * sysdeps/wordsize-64/fseeko64.c: File removed.
59079         * sysdeps/wordsize-64/ftello.c: File removed.
59080         * sysdeps/wordsize-64/ftello64.c: File removed.
59081         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59082         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59083         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59084         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59085         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59086         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59087         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59088         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59089         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59090         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59091         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59092         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59093         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59094         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59095
59096         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59097         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59098         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59099         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59100         [defined __arch64__ || defined __sparcv9]
59101         (__OFF_T_MATCHES_OFF64_T): New macro.
59102         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59103         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59104         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59105         (__OFF_T_MATCHES_OFF64_T): New macro.
59106
59107 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59108
59109         * stdlib/secure-getenv.c (__secure_getenv): Replace
59110         GLIBC_2_16 with GLIBC_2_17.
59111
59112 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59113
59114         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59115         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59116
59117 2012-08-03  David S. Miller  <davem@davemloft.net>
59118
59119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59120
59121 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59122
59123         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59124         Remove.
59125         (__ASSUME_CORRECT_SI_PID): Likewise.
59126         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59127         (__ASSUME_TMPFS_NAME): Likewise.
59128         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59129         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59130         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59131         (HAVE_AUX_SECURE): Make definition unconditional.
59132         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59133         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59134
59135 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59136
59137         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59138         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59139         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59140         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59141         __eloop_threshold instead of SYMLOOP_MAX.
59142
59143         * sysdeps/generic/eloop-threshold.h: New file.
59144         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59145         of MAXSYMLINKS.
59146         * elf/chroot_canon.c (chroot_canon): Likewise.
59147
59148 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59149
59150         [BZ #13717]
59151         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59152         Change to 2.6.0 everywhere.
59153         * sysdeps/unix/sysv/linux/configure: Regenerated.
59154         * sysdeps/unix/sysv/linux/kernel-features.h
59155         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59156         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59157         kernel versions.
59158         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59159         (__ASSUME_FUTEX_REQUEUE): Remove.
59160         (__ASSUME_STATFS64): Define unconditionally.
59161         (__ASSUME_AT_SECURE): Likewise.
59162         (__ASSUME_CORRECT_SI_PID): Likewise.
59163         (__ASSUME_TGKILL): Define without depending on kernel version for
59164         i386.
59165         (__ASSUME_UTIMES): Likewise.
59166         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59167         kernel version.
59168         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59169         (__ASSUME_TMPFS_NAME): Likewise.
59170         * README: Update reference to Linux kernel versions.
59171
59172 2012-08-02  Marek Polacek  <polacek@redhat.com>
59173
59174         [BZ# 14150]
59175         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59176         libc_cv_asm_type_prefix with %.
59177         * configure: Regenerated.
59178         * include/libc-symbols.h: Remove comment about
59179         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59180         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59181         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59182         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59183         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59184         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59185         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59186         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59187         * elf/tst-unique2mod1.c: Likewise.
59188         * elf/tst-unique1mod2.c: Likewise.
59189         * elf/tst-unique1mod1.c: Likewise.
59190         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59191         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59192         Replace ASM_TYPE_DIRECTIVE with .type.
59193         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59194         * sysdeps/i386/sysdep.h: Likewise.
59195         * sysdeps/x86_64/sysdep.h: Likewise.
59196         * sysdeps/sh/sysdep.h: Likewise.
59197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59198         Do not define ASM_TYPE_DIRECTIVE.
59199         * sysdeps/powerpc/sysdep.h: Likewise.
59200         * sysdeps/powerpc/powerpc32/sysdep.h:
59201         Replace ASM_TYPE_DIRECTIVE with .type.
59202         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59203         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59204         * sysdeps/i386/fpu/e_powf.S: Likewise.
59205         * sysdeps/i386/fpu/e_expl.S: Likewise.
59206         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59207         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59208         * sysdeps/i386/fpu/e_pow.S: Likewise.
59209         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59210         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59211         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59212         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59213         * sysdeps/i386/fpu/e_log2.S: Likewise.
59214         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59215         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59216         * sysdeps/i386/fpu/e_powl.S: Likewise.
59217         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59218         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59219         * sysdeps/i386/fpu/e_logl.S: Likewise.
59220         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59221         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59222         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59223         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59224         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59225         * sysdeps/i386/fpu/e_log.S: Likewise.
59226         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59227         * sysdeps/i386/fpu/e_logf.S: Likewise.
59228         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59229         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59230         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59231         * sysdeps/i386/fpu/e_log10.S: Likewise.
59232         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59233         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59234         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59235         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59236         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59237         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59238         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59239         * sysdeps/i386/i686/strtok.S: Likewise.
59240         * sysdeps/i386/i386-mcount.S: Likewise.
59241         * sysdeps/i386/strtok.S: Likewise.
59242         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59243         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59244         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59245         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59246         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59247         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59248         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59249         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59250         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59251         * sysdeps/x86_64/_mcount.S: Likewise.
59252         * sysdeps/x86_64/strtok.S: Likewise.
59253         * sysdeps/sh/_mcount.S: Likewise.
59254
59255 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59256
59257         * libio/iofopen.c: Include <fcntl.h>.
59258         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59259         (_IO_fopen64, fopen64): Define as aliases.
59260         * libio/iofopen64.c: Include <fcntl.h>.
59261         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59262         Conditionalize body on this.
59263         * sysdeps/wordsize-64/iofopen.c: File removed.
59264         * sysdeps/wordsize-64/iofopen64.c: File removed.
59265
59266 2012-08-01  Marek Polacek  <polacek@redhat.com>
59267
59268         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59269         Use dlfcn directly instead of a variable.
59270         (binfmt-subdir): Do not define.
59271         (dlfcn): Likewise.
59272
59273 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59274
59275         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59276         Remove all definitions.
59277         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59278         <kernel-features.h>.
59279         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59280         (miss_F_GETOWN_EX): Remove all definitions.
59281         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59282         macro definition.
59283         [!__ASSUME_FCNTL64]: Remove conditional code.
59284         [__ASSUME_FCNTL64]: Make code unconditional.
59285         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59286         <kernel-features.h>.
59287         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59288         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59289         (lockf64) [__NR_fcntl64]: Make code unconditional.
59290         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59291
59292         * sysdeps/unix/sysv/linux/kernel-features.h
59293         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59294         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59295         Make code unconditional.
59296         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59297         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59299         [__NR_vfork]: Make code unconditional.
59300         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59301         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59303         [__NR_vfork]: Make code unconditional.
59304         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59305         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59306
59307 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59308
59309         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59310         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59311
59312         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59313         Define mkstemp64 as an alias.
59314         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59315         Define mkstemps64 as an alias.
59316         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59317         Define mkostemp64 as an alias.
59318         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59319         Define mkostemps64 as an alias.
59320         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59321         Conditionalize body on this.
59322         * misc/mkostemp64.c: Likewise.
59323         * misc/mkostemps64.c: Likewise.
59324         * misc/mkstemps64.c: Likewise.
59325         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59326         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59327         * sysdeps/wordsize-64/mkostemp.c: File removed.
59328         * sysdeps/wordsize-64/mkstemp.c: File removed.
59329         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59330         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59331         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59332         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59333
59334         [BZ #14138]
59335         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59336         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59337         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59338         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59339
59340         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59341         compat_symbol macros from <shlib-compat.h> rather than the underlying
59342         default_symbol_version and symbol_version macros, so that DEFAULT
59343         lines in shlib-versions are respected.
59344         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59345
59346 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59347
59348         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59349         Declare with warn_unused_result.
59350         (setgid, setregid, setegid, setresgid): Likewise.
59351         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59352         Likewise.
59353         * WUR-REPORT: Remove set*id functions.
59354
59355 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59356
59357         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59358
59359 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59360
59361         [BZ #10191]
59362         * include/sys/socket.h (__libc_accept, __libc_accept4):
59363         Add attribute_hidden.
59364         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59365
59366         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59367         use of PTR_MANGLE.
59368         * inet/getnetgrent_r.c (setup): Likewise.
59369
59370         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59371
59372 2012-07-31  David S. Miller  <davem@davemloft.net>
59373
59374         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59375
59376 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59377
59378         [BZ #13629]
59379         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59380         value between 1.0 and 2.0 and smaller part has absolute value less
59381         than 1.0.
59382         * math/s_clog10.c (__clog10): Likewise.
59383         * math/s_clog10f.c (__clog10f): Likewise.
59384         * math/s_clog10l.c (__clog10l): Likewise.
59385         * math/s_clogf.c (__clogf): Likewise.
59386         * math/s_clogl.c (__clogl): Likewise.
59387         * math/libm-test.inc (clog_test): Add more tests.
59388         (clog10_test): Likewise.
59389         * sysdeps/i386/fpu/libm-test-ulps: Update.
59390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59391
59392 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59393
59394         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59395         Exit with zero in case no suitable GID is found, and write a
59396         message to standard error.
59397
59398 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59399
59400         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59401         rather than to 1.
59402         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59403         (MAXPATHLEN): Removed.
59404         (NOGROUP, NODEV): New macros.
59405         (setbit, clrbit, isset, isclr): New macros.
59406         (howmany, roundup, powerof2): New macros.
59407         (DEV_BSIZE): New macro.
59408
59409         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59410         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59411
59412         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59413         definition on [!__NO_LONG_DOUBLE_MATH].
59414
59415         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59416         PTR_MANGLE and PTR_DEMANGLE.
59417
59418         * socket/accept4.c (accept4): Rename to __libc_accept4.
59419         Define accept4 as a weak alias.
59420
59421         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59422         on [_DIRENT_HAVE_D_TYPE].
59423         * io/ftw.c (ftw_dir): Likewise.
59424
59425         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59426
59427         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59428
59429         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59430         Use the BSD numbers rather than the arbitrary ones we had.
59431         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59432         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59433         (SIGXCPU, SIGXFSZ): New macros.
59434         (_NSIG): Now 32.
59435
59436         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59437         initializer on [_LIBC_REENTRANT].
59438
59439         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59440         definitions inside [_POSIX_MAPPED_FILES].
59441
59442         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59443
59444         * dirent/opendir.c: Include <fcntl.h>.
59445
59446         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59447         (__libc_getspecific): Likewise.
59448         (__libc_key_create): Likewise.
59449
59450         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59451         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59452         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59453         (tmpfile64): Define as alias.
59454         * sysdeps/wordsize-64/tmpfile.c: File removed.
59455         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59456         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59457         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59458
59459         * stdio-common/vfscanf.c: Include <stdbool.h>.
59460         * nss/makedb.c: Likewise.
59461         * stdio-common/_i18n_number.h: Likewise.
59462         * argp/argp-help.c: Likewise.
59463         * posix/wordexp.c: Likewise.
59464         * sysdeps/posix/spawni.c: Likewise.
59465         * nss/nss_files/files-initgroups.c: Likewise.
59466         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59467         * nss/nss_files/files-initgroups.c: Likewise.
59468         * nss/nss_db/db-netgrp.c: Likewise.
59469         * nss/nss_db/db-initgroups.c: Likewise.
59470         * io/fchmodat.c: Include <sys/stat.h>.
59471
59472         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59473         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59474
59475         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59476         [HAVE_MMAP].
59477
59478         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59479         Add multiple inclusion protection.
59480
59481 2012-07-27  David S. Miller  <davem@davemloft.net>
59482
59483         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59484
59485 2012-07-27  Gary Benson  <gbenson@redhat.com>
59486
59487         [BZ #14298]
59488         * elf/rtld.c: Include <stap-probe.h>.
59489         (dl_main): Added static probes "init_start" and "init_complete".
59490         * elf/dl-load.c: Include <stap-probe.h>.
59491         (lose): Take new parameter "nsid".
59492         Added static probe "map_failed".
59493         (_dl_map_object_from_fd): Pass namespace id to lose.
59494         Added static probe "map_start".
59495         (open_verify): Pass namespace id to lose.
59496         * elf/dl-open.c: Include <stap-probe.h>.
59497         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59498         and "reloc_complete".
59499         * elf/dl-close.c: Include <stap-probe.h>.
59500         (_dl_close_worker): Added static probes "unmap_start" and
59501         "unmap_complete".
59502         * elf/rtld-debugger-interface.txt: New file documenting the above.
59503
59504 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59505
59506         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59507         rather than a string variable.
59508         * sunrpc/rpc_main.c (h_output): Likewise.
59509         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59510
59511 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59512
59513         * inet/check_native.c: New file.
59514
59515 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59516
59517         [BZ #13629]
59518         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59519         if larger part has absolute value 1.0.
59520         * math/s_clog10.c (__clog10): Likewise.
59521         * math/s_clog10f.c (__clog10f): Likewise.
59522         * math/s_clog10l.c (__clog10l): Likewise.
59523         * math/s_clogf.c (__clogf): Likewise.
59524         * math/s_clogl.c (__clogl): Likewise.
59525         * math/libm-test.inc (clog_test): Add more tests.
59526         (clog10_test): Likewise.
59527         * sysdeps/i386/fpu/libm-test-ulps: Update.
59528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59529
59530         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59531         (pltexit): Likewise.
59532         (La_regs): Likewise.
59533         (La_retval): Likewise.
59534         (int_retval): Likewise.
59535         Update #error for removed macros to refer only to definitions in
59536         tst-audit.h.
59537         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59538         macro.
59539         (pltexit): Likewise.
59540         (La_regs): Likewise.
59541         (La_retval): Likewise.
59542         (int_retval): Likewise.
59543         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59544         macro.
59545         (pltexit): Likewise.
59546         (La_regs): Likewise.
59547         (La_retval): Likewise.
59548         (int_retval): Likewise.
59549         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59550         macro.
59551         (pltexit): Likewise.
59552         (La_regs): Likewise.
59553         (La_retval): Likewise.
59554         (int_retval): Likewise.
59555         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59556         macro.
59557         (pltexit): Likewise.
59558         (La_regs): Likewise.
59559         (La_retval): Likewise.
59560         (int_retval): Likewise.
59561         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59562         macro.
59563         (pltexit): Likewise.
59564         (La_regs): Likewise.
59565         (La_retval): Likewise.
59566         (int_retval): Likewise.
59567         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59568         macro.
59569         (pltexit): Likewise.
59570         (La_regs): Likewise.
59571         (La_retval): Likewise.
59572         (int_retval): Likewise.
59573         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59574         macro definitions in tst-audit.h.
59575         * sysdeps/i386/tst-audit.h: New file.
59576         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59577         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59578         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59579         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59580         * sysdeps/sh/tst-audit.h: Likewise.
59581         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59582         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59583         * sysdeps/x86_64/tst-audit.h: Likewise.
59584
59585 2012-07-26  Andreas Jaeger  <aj@suse.de>
59586
59587         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59588         ptrace.
59589
59590         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59591         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59592         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59593         PTRACE_O_MASK.
59594         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59595         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59596         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59597
59598         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59599         value.
59600
59601         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59602         _sigsys.
59603         (si_call_addr, si_syscall, si_arch): Define new macro.
59604         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59605         _sigsys.
59606         (si_call_addr, si_syscall, si_arch): Define new marcro.
59607         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59608         _sigsys.
59609         (si_call_addr, si_syscall, si_arch): Define new macro.
59610         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59611         _sigsys.
59612         (si_call_addr, si_syscall, si_arch): Define new macro.
59613
59614 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59615
59616         [BZ #13717]
59617         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59618         Change to 2.4.21 where previously 2.4.1.
59619         * sysdeps/unix/sysv/linux/configure: Regenerated.
59620         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59621         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59622         Linux kernel version.
59623         (__ASSUME_STD_AUXV): Remove.
59624         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59625         kernel version.
59626         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59627         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59628         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59629         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59630         (__ASSUME_NETLINK_SUPPORT): Likewise.
59631         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59632         (__no_netlink_support): Remove conditional definition.
59633         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59634         Remove.
59635         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59636         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59637         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59638         (if_nameindex_ioctl): Remove.
59639         (if_nameindex_netlink): Do not handle __no_netlink_support.
59640         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59641         code.
59642         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59643         Remove conditional code.
59644         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59645         code.
59646         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59647         unconditional.
59648         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59649         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59650         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59651         Remove.
59652         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59653         [!__ASSUME_STD_AUXV]: Remove conditional code.
59654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59655         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59656         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59658         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59659         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59660         code.
59661         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59663         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59664         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59665         conditional code.
59666         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59668         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59669         code.
59670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59671         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59672         conditional code.
59673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59674         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59675         code unconditional.
59676         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59677         conditional code.
59678         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59679         unconditional.
59680         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59681         conditional code.
59682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59683         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59684         unconditional.
59685         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59686         conditional code.
59687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59688         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59689         code unconditional.
59690         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59691         conditional code.
59692         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59693         unconditional.
59694         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59695         conditional code.
59696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59697         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59698         code unconditional.
59699         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59700         conditional code.
59701         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59702         unconditional.
59703         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59704         conditional code.
59705
59706 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59707
59708         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59709         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59710         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59711         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59712         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59713         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59714         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59715         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59716         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59717         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59718         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59719         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59720         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59721         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59722         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59723         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59724         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59725         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59726         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59727         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59728         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59729         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59730         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59731
59732 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59733
59734         * Versions.def: Add GLIBC_2.17.
59735         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59736         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59737         Introduce __libc_secure_getenv.
59738         * stdlib/Versions (2.17): Add secure_getenv
59739         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59740         * stdlib/secure-getenv.c: Rename __secure_getenv to
59741         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59742         symbol __secure_getenv for GLIBC_2.0.
59743         * stdlib/tst-secure-getenv.c: New.
59744         * stdlib/Makefile (tests): Add testcase.
59745         * manual/startup.texi (Environment Access): Document
59746         secure_getenv.
59747         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59748         __libc_secure_getenv.
59749         * inet/ruserpass.c (ruserpass): Likewise.
59750         * malloc/mtrace.c (mtrace): Likewise.
59751         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59752         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59753         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59754         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59755         HAVE_SECURE_GETENV.
59756         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59757         __secure_getenv to __libc_secure_getenv.
59758         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59760         Likewise.
59761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59762         Likewise.
59763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59765         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59766         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59767         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59769         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59770
59771 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59772
59773         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59774         (struct La_i86_retval): Likewise.
59775         (struct La_x86_64_regs): Likewise.
59776         (struct La_x86_64_retval): Likewise.
59777         (struct La_x32_regs): Likewise.
59778         (struct La_x32_retval): Likewise.
59779         (struct La_ppc32_regs): Likewise.
59780         (struct La_ppc32_retval): Likewise.
59781         (struct La_ppc64_regs): Likewise.
59782         (struct La_ppc64_retval): Likewise.
59783         (struct La_sh_regs): Likewise.
59784         (struct La_sh_retval): Likewise.
59785         (struct La_s390_32_regs): Likewise.
59786         (struct La_s390_32_retval): Likewise.
59787         (struct La_s390_64_regs): Likewise.
59788         (struct La_s390_64_retval): Likewise.
59789         (struct La_sparc32_regs): Likewise.
59790         (struct La_sparc32_retval): Likewise.
59791         (struct La_sparc64_regs): Likewise.
59792         (struct La_sparc64_retval): Likewise.
59793         (struct audit_ifaces): Remove architecture-specific pltenter and
59794         pltexit members.
59795         * sysdeps/i386/ldsodefs.h: New file.
59796         * sysdeps/powerpc/ldsodefs.h: Likewise.
59797         * sysdeps/s390/ldsodefs.h: Likewise.
59798         * sysdeps/sh/ldsodefs.h: Likewise.
59799         * sysdeps/sparc/ldsodefs.h: Likewise.
59800         * sysdeps/x86_64/ldsodefs.h: Likewise.
59801
59802 2012-07-25  Marek Polacek  <polacek@redhat.com>
59803
59804         [BZ #6808]
59805         * math/libm-test.inc (yn_test): Add another test.
59806         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59807         to ERANGE when the result is +-Inf.
59808         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59809         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59810         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59811         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59812
59813 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59814
59815         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59816         equal to 0.
59817         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59818         clock_t.
59819         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59820
59821 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59822
59823         * configure.in <sysdeps resolving>: Correct printing
59824         Implies_before.
59825         * configure: Regenerate.
59826
59827 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59828
59829         * math/w_ilogb.c: Include <limits.h>.
59830         * math/w_ilogbl.c: Likewise.
59831
59832 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59833
59834         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59835         va_copy.  Document allowing for unavailable va_copy only as
59836         pre-C99 compatibility.
59837         * manual/string.texi (Copying and Concatenation): Use va_copy
59838         instead of __va_copy in concat example.
59839
59840 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59841
59842         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59843         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59844         it if not null.
59845
59846         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59847         with O_NOLINK passed to __file_name_lookup.
59848
59849         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59850         with O_NOLINK passed to __file_name_lookup.
59851
59852         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59853         negative N or less than NGIDS.
59854
59855         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59856         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59857         enough.  Use memcpy instead of strncpy.
59858
59859 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59860
59861         * elf/Makefile (check-data): Remove.
59862         (localplt.data): New vpath directive.
59863         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59864         instead of $(check-data).
59865         * scripts/data/localplt-generic.data: Move to ...
59866         * sysdeps/generic/localplt.data: ... here.
59867         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59868         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59869         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59871         ... here.
59872         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59874         ... here.
59875         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59877         ... here.
59878         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59880         ... here.
59881         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59882         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59883         ... here.
59884         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59885         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59886         ... here.
59887
59888 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59889
59890         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59891         PPC32 and PPC64 files.
59892         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59893         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59894
59895 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59896
59897         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59898         __makecontext_ret to ...
59899         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59900         ... here and call exit if uc_link is NULL.  New file.
59901         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59902         __makecontext_ret.S.
59903         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59904         __makecontext_ret to ...
59905         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59906         ... here and call exit if uc_link is NULL.  New file.
59907         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59908         __makecontext_ret.S.
59909
59910 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59911
59912         * elf/elf.h (R_390_IRELATIVE): New definition.
59913         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59914         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59915         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59916         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59917         (elf_machine_lazy_rel): Likewise.
59918         * sysdeps/s390/dl-irel.h: New file.
59919         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59920         * sysdeps/s390/s390-64/memset.S: New asm code.
59921         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59922         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59923         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59924         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59925         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59926         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59927         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59928         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59929         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59930         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59931         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59932         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59933         * sysdeps/s390/s390-32/memset.S: New asm code.
59934         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59935
59936 2012-07-17  Marek Polacek  <polacek@redhat.com>
59937
59938         [BZ #14349]
59939         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59940         * sysdeps/s390/s390-64/configure.in: Likewise.
59941         * sysdeps/sparc/configure.in: Likewise.
59942         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59943         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59944         * sysdeps/i386/configure.in: Likewise.
59945         * sysdeps/x86_64/configure.in: Likewise.
59946         * sysdeps/sh/configure.in: Likewise.
59947         * sysdeps/s390/s390-32/configure: Regenerated.
59948         * sysdeps/s390/s390-64/configure: Likewise.
59949         * sysdeps/x86_64/configure: Likewise.
59950         * sysdeps/sh/configure: Likewise.
59951         * sysdeps/powerpc/powerpc64/configure: Likewise.
59952         * sysdeps/powerpc/powerpc32/configure: Likewise.
59953         * sysdeps/sparc/configure: Likwise.
59954         * sysdeps/i386/configure: Likewise.
59955
59956         * elf/dl-open.c: Comment fixes.
59957
59958 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59959
59960         * Makefile [CXX] (check-data): Remove.
59961         [CXX] (c++-types.data): New vpath directive.
59962         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59963         vpath.  Do not allow for C++ type data being missing.
59964         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59965         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59966         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59967         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59968         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59969         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59970         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59972         ... here.
59973         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59975         ... here.
59976         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59977         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59978         ... here.
59979         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59980         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59981         ... here.
59982         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59983         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59984         ... here.
59985         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59986         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59987         ... here.
59988         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59990         ... here.
59991         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59992         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59993
59994         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59995         definitions to architecture-specific files.
59996         (TLS_IE): Likewise.
59997         (TLS_LD): Likewise.
59998         (TLS_GD): Likewise.
59999         * sysdeps/i386/tls-macros.h: New file.
60000         * sysdeps/powerpc/tls-macros.h: Likewise.
60001         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60002         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60003         * sysdeps/sh/tls-macros.h: Likewise.
60004         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60005         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60006         * sysdeps/x86_64/tls-macros.h: Likewise.
60007
60008 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60009
60010         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60011         zero value for regular exit case.
60012
60013         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60014         (__start_context): Preserve zero value for regular exit case.
60015
60016 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60017             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60018
60019         * manual/setjmp.texi (setcontext): Clarify normal process
60020         termination when uc_link is the null pointer.
60021         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60022         exit call.
60023
60024 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60025
60026         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60027         preprocessor.  Test for each exception mask separately.
60028
60029 2012-07-16  Andreas Jaeger  <aj@suse.de>
60030
60031         * po/ru.po: Update from translation team.
60032
60033 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60034
60035         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60036         equal to 0.
60037         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60038         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60039         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60040         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60041         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60042
60043 2012-07-13  Andreas Jaeger  <aj@suse.de>
60044
60045         * po/fr.po: Update from translation team.
60046
60047 2012-07-12  Marek Polacek  <polacek@redhat.com>
60048
60049         [BZ #14173]
60050         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60051         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60052         loop condition.
60053
60054 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60055
60056         [BZ #13717]
60057         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60058         Change to 2.4.1 where previously 2.4.0.
60059         * sysdeps/unix/sysv/linux/configure: Regenerated.
60060         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60061         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60062         version.
60063         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60064         (__ASSUME_AT_CLKTCK): Remove.
60065         (__ASSUME_AT_PAGESIZE): Likewise.
60066         (__ASSUME_AT_XID): Likewise.
60067         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60068         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60069         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60070         unconditionally.
60071         (HAVE_AUX_PAGESIZE): Likewise.
60072         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60073         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60074         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60075
60076 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60077
60078         [BZ #14307]
60079         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60080         the temporary buffer used to invoke __gethostbyname2_r,
60081         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60082         host_data / struct gaih_addrtuple.
60083         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60084         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60085         header file nss/nsswitch.h.
60086         * nss/nsswitch.h (global scope): Add definition of implementation
60087         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60088         resolv/nss_dns/dns-host.c).
60089
60090 2012-07-11  Andreas Jaeger  <aj@suse.de>
60091
60092         * po/fr.po: Update from translation team.
60093
60094         * po/sv.po: Update from translation team
60095         * po/fr.po: Another update from translation team.
60096
60097 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60098
60099         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60100         for subnormals or multiply small sinh result by itself.
60101         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60103
60104 2012-07-11  David S. Miller  <davem@davemloft.net>
60105
60106         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60107
60108 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60109
60110         [BZ #14347]
60111         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60112         (INTERNAL_MARK): Shift it here.
60113
60114 2012-07-10  Marek Polacek  <polacek@redhat.com>
60115
60116         [BZ #14151]
60117         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60118         libc_cv_asm_global_directive with .globl.
60119         * configure: Regenerated.
60120         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60121         with .globl.
60122         * sysdeps/i386/configure: Regenerated.
60123         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60124         with .globl.
60125         * sysdeps/x86_64/configure: Regenerated.
60126         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60127         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60128         * elf/tst-unique2mod2.c: Likewise.
60129         * elf/tst-unique2mod1.c: Likewise.
60130         * elf/tst-unique1mod2.c: Likewise.
60131         * elf/tst-unique1mod1.c: Likewise.
60132         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60133         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60134         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60135         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60136         * sysdeps/mach/sysdep.h: Likewise.
60137         * sysdeps/i386/sysdep.h: Likewise.
60138         * sysdeps/i386/i386-mcount.S: Likewise.
60139         * sysdeps/x86_64/_mcount.S: Likewise.
60140         * sysdeps/x86_64/sysdep.h: Likewise.
60141         * sysdeps/sh/_mcount.S: Likewise.
60142         * sysdeps/sh/sysdep.h: Likewise.
60143         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60144         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60145         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60146         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60147         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60148         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60149         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60150         * locale/localeinfo.h: Likewise.
60151         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60152         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60153
60154 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60155
60156         [BZ #14336]
60157         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60158         system".
60159         * manual/message.texi (The Uniforum approach): Likewise.
60160         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60161         (glibc iconv Implementation): Likewise.
60162
60163 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60164
60165         [BZ #14337]
60166         * math/s_clog.c (__clog): Avoid scaling a value down where that
60167         could result in underflow.
60168         * math/s_clog10.c (__clog10): Likewise.
60169         * math/s_clog10f.c (__clog10f): Likewise.
60170         * math/s_clog10l.c (__clog10l): Likewise.
60171         * math/s_clogf.c (__clogf): Likewise.
60172         * math/s_clogl.c (__clogl): Likewise.
60173         * math/libm-test.inc (clog_test): Add more tests.
60174         (clog10_test): Likewise.
60175         * sysdeps/i386/fpu/libm-test-ulps: Update.
60176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60177
60178 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60179
60180         [BZ #14283]
60181         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60182         by 7 not 8 to examine high bit of fractional part.
60183
60184         [BZ #14042]
60185         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60186         for call to __mcount_internal.
60187         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60188         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60189         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60190
60191 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60192
60193         [BZ #14154]
60194         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60195         approximation for values within 0x1p-13f of an odd multiple of
60196         pi/4.
60197         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60198         exception.  Add more tests.
60199         * sysdeps/i386/fpu/libm-test-ulps: Update.
60200
60201         [BZ #6778]
60202         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60203         inputs and return -1 for them.  Do not check for +Inf in case not
60204         reachable for +Inf.
60205         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60206         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60207         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60208         and return -1 for them.  Do not check for +Inf in case not
60209         reachable for +Inf.
60210         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60211         define.
60212         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60213         and return -1 for them.  Do not check for +Inf in case not
60214         reachable for +Inf.
60215         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60216         spurious underflow.
60217         * sysdeps/i386/fpu/libm-test-ulps: Update.
60218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60219
60220 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60221
60222         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60223
60224 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60225
60226         [BZ #14157]
60227         [BZ #14331]
60228         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60229         could result in spurious underflow.  Scale down values above
60230         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60231         * math/s_csqrtf.c (__csqrtf): Likewise.
60232         * math/s_csqrtl.c (__csqrtl): Likewise.
60233         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60234         spurious underflow.
60235         * sysdeps/i386/fpu/libm-test-ulps: Update.
60236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60237
60238 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60239
60240         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60241         xopen-msg.sed.
60242         * catgets/xopen-msg.awk: New file.
60243         * catgets/xopen-msg.sed: Removed.
60244
60245         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60246         po2text.sed.
60247         * intl/po2test.awk: New file.
60248         * intl/po2test.sed: Removed.
60249
60250 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60251
60252         [BZ #14328]
60253         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60254         or multiply small sinh result by itself.
60255         * math/s_ctanf.c (__ctanf): Likewise.
60256         * math/s_ctanh.c (__ctanh): Likewise.
60257         * math/s_ctanhf.c (__ctanhf): Likewise.
60258         * math/s_ctanhl.c (__ctanhl): Likewise.
60259         * math/s_ctanl.c (__ctanl): Likewise.
60260         * math/libm-test.inc (ctan_test_tonearest): New function.
60261         (ctan_test_towardzero): Likewise.
60262         (ctan_test_downward): Likewise.
60263         (ctan_test_upward): Likewise.
60264         (ctanh_test_tonearest): Likewise.
60265         (ctanh_test_towardzero): Likewise.
60266         (ctanh_test_downward): Likewise.
60267         (ctanh_test_upward): Likewise.
60268         (main): Call these new functions.
60269         * sysdeps/i386/fpu/libm-test-ulps: Update.
60270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60271
60272 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60273
60274         * .gitignore: Delete /ports entry.
60275
60276 2012-07-03  Andreas Jaeger  <aj@suse.de>
60277
60278         * po/bg.po: Update from translation team.
60279         * po/cs.po: Likewise.
60280         * po/de.po: Likewise.
60281         * po/hr.po: Likewise.
60282         * po/nl.pl: Likewise.
60283         * po/pl.po: Likewise.
60284         * po/vi.po: Likewise.
60285
60286 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60287
60288         * Makeconfig [!+link] (+link-before-libc): New variable.
60289         [!+link] (+link-after-libc): Likewise.
60290         [!+link] (+link-tests): Likewise.
60291         [!+link] (+link): Define in terms of $(+link-before-libc) and
60292         $(+link-after-libc).
60293         [!+link-static] (+link-static-before-libc): New variable.
60294         [!+link-static] (+link-static-after-libc): Likewise.
60295         [!+link-static] (+link-static-tests): Likewise.
60296         [!+link-static] (+link-static): Define in terms of
60297         $(+link-static-before-libc) and $(+link-static-after-libc).
60298         [build-shared] (link-libc-before-gnulib): New variable.
60299         [build-shared] (link-libc-tests): Likewise.
60300         [build-shared] (link-libc): Define in terms of
60301         $(link-libc-before-gnulib).
60302         [!build-shared] (link-libc-tests): New variable.
60303         (link-libc-static-tests): New variable.
60304         [!gnulib] (gnulib-arch): New variable.
60305         [!gnulib] (gnulib-tests): Likewise.
60306         [!gnulib] (static-gnulib-arch): Likewise.
60307         [!gnulib] (static-gnulib-tests): Likewise.
60308         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60309         Define with "=" instead of ":=".
60310         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60311         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60312         * Rules (binaries-all-notests): New variable.
60313         (binaries-all-tests): Likewise.
60314         (binaries-static-notests): Likewise.
60315         (binaries-static-tests): Likewise.
60316         (binaries-all): Define using $(binaries-all-notests) and
60317         $(binaries-all-tests).
60318         (binaries-static): Define using $(binaries-static-notests) and
60319         $(binaries-static-tests).
60320         (binaries-shared-tests): New variable.
60321         (binaries-shared-notests): Likewise.
60322         (binaries-shared): Remove variable.
60323         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60324         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60325         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60326         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60327         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60328         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60329         * elf/Makefile (sln-modules): New variable.
60330         (extra-objs): Add $(sln-modules:=.o).
60331         (ldconfig-modules): Add static-stubs.
60332         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60333         * elf/static-stubs.c: New file.
60334
60335         [BZ #14283]
60336         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60337         by 7 not 8 to examine high bit of fractional part.  Use volatile
60338         variables when splitting into final array of floats if
60339         __FLT_EVAL_METHOD__ != 0.
60340         * math/libm-test.inc (cos_test): Add another test.
60341         (sin_test): Likewise.
60342         * sysdeps/i386/fpu/libm-test-ulps: Update.
60343
60344         [BZ #14273]
60345         * math/libm-test.inc (cosh_test): Add more tests.
60346
60347         * version.h (RELEASE): Set to "development".
60348         (VERSION): Set to "2.16.90".
60349
60350 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60351
60352         * NEWS: Update copyright. Remove last-updated date.
60353         Mention math library bug fixes and timezone data changes.
60354         * README: Mention GNU/Hurd, x32, and HPPA support status.
60355
60356 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60357
60358         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60359
60360 2012-06-27  Andreas Jaeger  <aj@suse.de>
60361
60362         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60363
60364 2012-06-25  Andreas Jaeger  <aj@suse.de>
60365
60366         * sysdeps/s390/fpu/libm-test-ulps: Update.
60367
60368 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60369             Thomas Schwinge  <thomas@codesourcery.com>
60370
60371         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60372         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60373         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60374         fanotify_mark.
60375
60376 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60377
60378         * sysdeps/mach/start.c: Remove file.
60379         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60380         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60381         * sysdeps/sh/init-first.c: Likewise.
60382
60383         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60384         registers for frame unwinding purposes, add CFI directives.
60385         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60386         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60387         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60388         Likewise.
60389
60390         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60391         __fortify_fail returning.
60392         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60393
60394         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60395         sysdeps/sh/____longjmp_chk.S.
60396         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60397         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60398         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60399         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60400
60401         * sysdeps/sh/abort-instr.h: New file.
60402         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60403         process in case exit returns.
60404
60405         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60406         initialize the GOT register before use.
60407
60408         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60409         calculation of ARGC > 4.
60410
60411         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60412         meaningful names to some local labels.
60413
60414 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60415             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60416
60417         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60418         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60419         (__arch_compare_and_exchange_val_16_acq): Likewise.
60420         (__arch_compare_and_exchange_val_32_acq): Likewise.
60421         (atomic_exchange_and_add): Fix gUSA sequence.
60422         (atomic_add): Likewise.
60423         (atomic_add_negative): Likewise.
60424         (atomic_add_zero): Likewise.
60425         (atomic_bit_test_set): Likewise.
60426
60427 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60428
60429         [BZ #13579]
60430         * include/link.h (struct link_map): Add l_free_initfini.
60431         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60432         l_initfini.
60433         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60434         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60435         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60436         set.
60437
60438 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60439
60440         * configure.in: Use AC_LANG_SOURCE.
60441         * configure: Regenerate.
60442
60443 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60444
60445         * configure.in (libc_cv_localstatedir): New substituted variable.
60446         * configure: Regenerated.
60447         * config.make.in (localstatedir): New variable, substituted from
60448         libc_cv_localstatedir.
60449         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60450         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60451         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60452         * sysdeps/gnu/configure: Regenerated.
60453
60454 2012-06-21  Jeff Law  <law@redhat.com>
60455
60456         [BZ #14277]
60457         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60458         free.  Simplify list management for _LIBC case.
60459
60460 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60461
60462         [BZ #14273]
60463         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60464         Clear sign bit of 64-bit integer value before comparing against
60465         overflow value.
60466
60467         * sysdeps/mach/configure: Regenerated.
60468
60469 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60470
60471         [BZ #14278]
60472         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60473
60474 2012-06-21  Jeff Law  <law@redhat.com>
60475
60476         [BZ #13882]
60477         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60478         uint16_t for elements in the "seen" array to avoid char overflows.
60479         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60480         * elf/dl-open.c (dl_open_worker): Likewise.
60481
60482 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60483
60484         * scripts/list-sources.sh: Scan PORTS for translations.
60485         * po/libc.pot: Regenerated.
60486
60487 2012-06-21  Andreas Jaeger  <aj@suse.de>
60488
60489         [BZ #12194]
60490         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60491         warning.
60492         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60493         * bits/byteswap-16.h (__bswap_16): Likewise.
60494         * bits/byteswap.h (__bswap_constant_16): Likewise.
60495
60496 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60497
60498         [BZ #14117]
60499         * sysdeps/i386/fpu_control.h: Removed.
60500         * sysdeps/x86_64/fpu_control.h: Moved to ...
60501         * sysdeps/x86/fpu_control.h: Here.
60502
60503         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60504         (_FPU_SETCW): Likewise.
60505
60506 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60507
60508         [BZ #14117]
60509         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60510         * sysdeps/x86/fpu/bits/mathinline.h: This.
60511         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60512
60513         [BZ #14050]
60514         [BZ #14117]
60515         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60516         functions if __x86_64__ is defined.
60517
60518 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60519
60520         * string/endian.h: Add !__ASSEMBLER__ condition for including
60521         conversion interfaces.
60522
60523 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60524
60525         [BZ #14241]
60526         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60527         of ABS(x) in calculating zero to negative powers other than odd
60528         integers.
60529         * math/libm-test.inc (pow_test): Add more tests.
60530
60531 2012-06-15  Andreas Jaeger  <aj@suse.de>
60532
60533         * manual/contrib.texi (Contributors): Update entry of Liubov
60534         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60535         Machado Filho.
60536
60537 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60538
60539         * string/string.h: Add __wur to GNU version of strerror_r.
60540
60541 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60542
60543         [BZ #14229]
60544         * string/Makefile (tests): Add tst-strtok_r.
60545         * string/tst-strtok_r.c: New file.
60546         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60547         RAX_LP/RDX_LP on SAVE_PTR.
60548
60549 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60550
60551         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60552
60553 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60554
60555         * libm_test.inc (csqrt_test): Allow more spurious underflow
60556         exceptions.
60557         (j0_test): Likewise.
60558         (j1_test): Likewise.
60559         (y0_test): Likewise.
60560         (y1_test): Likewise.
60561
60562 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60563
60564         * po/Makefile (libc.pot): Use UTF-8 charset.
60565
60566 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60567
60568         [BZ #14210]
60569         Suppress sign-conversion warning from FD_SET.
60570         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60571         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60572         not unsigned long int.
60573         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60574
60575 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60576
60577         [BZ #14050]
60578         [BZ #14117]
60579         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60580         __extern_always_inline instead of __extern_inline.
60581         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60582         (__signbit): Likewise.
60583         (__signbitl): Support C++ namespace.
60584         (lrintf): New inline function.
60585         (lrint): Likewise.
60586         (llrintf): Likewise.
60587         (llrint): Likewise.
60588         (fmaxf): Likewise.
60589         (fmax): Likewise.
60590         (fminf): Likewise.
60591         (fmin): Likewise.
60592         (rint): Likewise.
60593         (rintf): Likewise.
60594         (ceil): Likewise.
60595         (ceilf): Likewise.
60596         (floor): Likewise.
60597         (floorf): Likewise.
60598         (nearbyint): Likewise.
60599         (nearbyintf): Likewise.
60600
60601 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60602
60603         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60604         non-default versions.
60605
60606 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60607
60608         [BZ #14218]
60609         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60610
60611 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60612
60613         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60614         (FE_UPWARD, FE_DOWNWARD): Don't define.
60615         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60616         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60617
60618         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60619         reading it.
60620         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60621         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60622
60623 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60624
60625         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60626         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60627         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60628         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60629
60630 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60631
60632         [BZ #14117]
60633         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60634         * sysdeps/i386/fpu/Implies: New file.
60635         * sysdeps/x86_64/fpu/Implies: Likewise.
60636         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60637         * sysdeps/x86/fpu/bits/fenv.h: This.
60638
60639         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60640         __SSE_MATH__.
60641
60642 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60643
60644         [BZ #14134]
60645         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60646         character 0xffff that matches the last element of the
60647         conversion table.
60648
60649 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60650
60651         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60652         fmodl commit.
60653
60654 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60655
60656         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60657         values higher than 25.6283.
60658
60659 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60660
60661         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60662         subnormal exponent extraction and add some __builtin_expect.
60663         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60664         Fix for subnormal mantissa calculation.
60665
60666 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60667
60668         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60669         cpu2 is -1 and errno is not ENOSYS.
60670
60671 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60672
60673         [BZ #14117]
60674         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60675         * sysdeps/x86/bits/string.h: This.
60676         * sysdeps/x86_64/bits/string.h: Removed.
60677
60678         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60679         if not compiling for x86-64, but compiling for >= i486.
60680
60681         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60682         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60683
60684         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60685         New macro from Linux kernel 3.4.0.
60686         (FP_XSTATE_MAGIC2): Likewise.
60687         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60688         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60689         (struct _fpx_sw_bytes): New struct.
60690         (struct _xsave_hdr): Likewise.
60691         (struct _ymmh_state): Likewise.
60692         (struct _xstate): Likewise.
60693
60694         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60695         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60696         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60697         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60698         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60699         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60700
60701         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60702         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60703         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60704         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60705         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60706         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60707
60708 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60709
60710         [BZ #13743]
60711         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60712         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60713         (sysdep_headers): Include sys/platform/ppc.h.
60714         * sysdeps/powerpc/test-gettimebase.c: Test for
60715         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60716         * manual/Makefile (appendices): Include platform.texi.
60717         * manual/contrib.texi (Contributors): Update @node pointers.
60718         * manual/maint.texi (Maintenance): Likewise.
60719         (Platform): New node.
60720         * manual/platform.texi: New file.  Document the new features.
60721
60722 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60723             Jakub Jelinek  <jakub@redhat.com>
60724
60725         [BZ #14188]
60726         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60727         where __builtin_expect is unavailable.
60728
60729 2012-06-03  David S. Miller  <davem@davemloft.net>
60730
60731         * stdlib/longlong.h: Updated from GCC.
60732
60733 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60734
60735         [BZ #14042]
60736         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60737         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60738         __mcount_internal.
60739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60740         (GLIBC_2.16): Likewise.
60741
60742 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60743
60744         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60745
60746 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60747
60748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60749         (default-abi): New variable.
60750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60751         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60752         variable.
60753         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60754         Likewise.
60755         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60756         Likewise.
60757         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60758         Likewise.
60759
60760         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60761         definition.  Document in comment.
60762
60763 2012-06-01  David S. Miller  <davem@davemloft.net>
60764
60765         * stdlib/longlong.h: Updated from GCC.
60766
60767 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60768
60769         [BZ #14117]
60770         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60771         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60772         sys/debugreg.h sys/io.h here.
60773         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60774         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60775         sys/io.h.
60776         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60777         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60778         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60779         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60780         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60781         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60782
60783         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60784         Define only if __x86_64__ is defined.
60785
60786 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60787
60788         [BZ #14048]
60789         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60790         Use int64_t for variable i.
60791         * math/libm-test.inc (fmod_test): Add more tests.
60792
60793         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60794         z computation is not scheduled after fetestexcept.
60795         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60796         Use math_force_eval instead of asm to ensure calculation scheduled
60797         before exception test.
60798         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60799         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60800
60801 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60802
60803         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60804         computation is not scheduled after fetestexcept.
60805
60806 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60807
60808         [BZ #14117]
60809         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60810         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60811
60812 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60813
60814         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60815         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60816
60817 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60818
60819         [BZ #14117]
60820         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60821         <bits/wordsize.h>.
60822         (__WCHAR_MIN): Support __WORDSIZE == 64.
60823         (__WCHAR_MAX): Likewise.
60824
60825         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60826         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60827
60828         [BZ #14183]
60829         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60830         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60831
60832         [BZ #14117]
60833         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60834         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60835
60836         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60837         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60838
60839         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60840         Defined to 1 if __x86_64__ isn't defined.
60841         (_STAT_VER_LINUX_OLD): New.
60842         (st_atime): Remove duplicate.
60843         (st_mtime): Likewise.
60844         (st_ctime): Likewise.
60845
60846 2012-05-31  David S. Miller  <davem@davemloft.net>
60847
60848         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60849         entries.
60850
60851 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60852
60853         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60854         gen-libm-test.pl.
60855
60856         [BZ #14132]
60857         * elf/dl-reloc.c: Include <_itoa.h>.
60858         (_dl_reloc_bad_type): Remove use of INTUSE.
60859         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60860         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60861         * stdio-common/psiginfo.c (psiginfo): Likewise.
60862         * stdio-common/psignal.c (psignal): Likewise.
60863         * string/strsignal.c (strsignal): Likewise.
60864         * include/signal.h (_sys_siglist): Declare hidden proto.
60865         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60866         INTVARDEF with libc_hidden_data_def.
60867         * stdio-common/itoa-udigits.c: Likewise.
60868         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60869         (_itoa_lower_digits_internal): Remove declaration.
60870         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60871         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60872         (_sys_sigabbrev_internal): Remove aliases.
60873         (_sys_siglist): Define hidden alias.
60874
60875 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60876
60877         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60878         bits/sysctl.h.
60879
60880 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60881
60882         [BZ #14117]
60883         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60884         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60885
60886         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60887         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60888         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60889         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60890         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60891         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60892
60893         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60894         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60895         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60896
60897         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60898         with __addr.
60899         (insw): Likewise.
60900         (insl): Likewise.
60901         (outsb): Likewise.
60902         (outsw): Likewise.
60903         (outsl): Likewise.
60904
60905         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60906         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60907         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60908
60909         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60910         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60911         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60912         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60913         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60914         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60915
60916         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60917         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60918
60919         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60920         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60921
60922         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60923         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60924         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60925
60926         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60927         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60928         to ...
60929         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60930
60931         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60932         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60933         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60934
60935         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60936         for x86-64.
60937         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60938
60939 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60940
60941         * math/math.h (M_El): Use two more decimal places.
60942         (M_LOG2El): Likewise.
60943         (M_LOG10El): Likewise.
60944         (M_LN2l): Likewise.
60945         (M_LN10l): Likewise.
60946         (M_PIl): Likewise.
60947         (M_PI_2l): Likewise.
60948         (M_PI_4l): Likewise.
60949         (M_1_PIl): Likewise.
60950         (M_2_PIl): Likewise.
60951         (M_2_SQRTPIl): Likewise.
60952         (M_SQRT2l): Likewise.
60953         (M_SQRT1_2l): Likewise.
60954
60955 2012-05-31  David S. Miller  <davem@davemloft.net>
60956
60957         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60958         values between float registers.
60959         * sysdeps/sparc/sparc64/memset.S: Likewise.
60960         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60961
60962 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60963
60964         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60965         -D_FORTIFY_SOURCE=1.
60966         (CPPFLAGS-tst-longjmp_chk.c): Define.
60967         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60968         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60969         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60970         CFLAGS-tst-wchar-h.c.
60971
60972 2012-05-31  Marek Polacek  <polacek@redhat.com>
60973
60974         [BZ #14132]
60975         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60976         __endmntent_internal): Remove declaration.
60977         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60978         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60979         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60980
60981 2012-05-30  David S. Miller  <davem@davemloft.net>
60982
60983         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60984         (___Q_simulate_exceptions): Use real FP ops rather than writing
60985         into the %fsr.
60986         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60987         Likewise.
60988
60989 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60990
60991         [BZ #14117]
60992         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60993         * sysdeps/x86/bits/xtitypes.h: This.
60994
60995         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60996         * sysdeps/x86/bits/wordsize.h: This.
60997
60998         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60999         * sysdeps/x86/bits/huge_vall.h: This.
61000
61001         * sysdeps/i386/bits/select.h: Removed.
61002         * sysdeps/x86_64/bits/select.h: Renamed to ...
61003         * sysdeps/x86/bits/select.h: This.
61004
61005         * sysdeps/i386/bits/setjmp.h: Removed.
61006         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61007         * sysdeps/x86/bits/setjmp.h: This.
61008
61009         * sysdeps/i386/bits/mathdef.h: Removed.
61010         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61011         * sysdeps/x86/bits/mathdef.h: This.
61012
61013 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61014
61015         [BZ #14132]
61016         * include/sys/socket.h (__connect_internal)
61017         (__libc_sa_len_internal): Remove declaration.
61018         (__connect, __libc_sa_len): Declare hidden_proto.
61019         (SA_LEN): Remove use of INTUSE.
61020         * socket/connect.c: Add libc_hidden_def.
61021         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61022         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61023         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61024         alias.
61025         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61026         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61027         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61028         of adding _internal alias.
61029
61030 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61031
61032         [BZ #14117]
61033         * sysdeps/i386/bits/link.h: Removed.
61034         * sysdeps/i386/bits/linkmap.h: Likewise.
61035         * sysdeps/x86_64/bits/link.h: Renamed to ...
61036         * sysdeps/x86/bits/link.h: This.
61037         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61038         * sysdeps/x86/bits/linkmap.h: This.
61039
61040         * sysdeps/i386/bits/endian.h: Removed.
61041         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61042         * sysdeps/x86/bits/endian.h: This.
61043
61044         * sysdeps/i386/bits/byteswap.h: Removed.
61045         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61046         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61047         * sysdeps/x86/bits/byteswap.h: This.
61048         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61049         * sysdeps/x86/bits/byteswap-16.h: This.
61050         * sysdeps/i386/Implies: Add x86.
61051         * sysdeps/x86_64/Implies: Likewise.
61052
61053 2012-05-30  David S. Miller  <davem@davemloft.net>
61054
61055         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61056         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61057         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61058         (FP_TRAPPING_EXCEPTIONS): Define.
61059         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61060         (FP_TRAPPING_EXCEPTIONS): Define.
61061         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61062         subnormals only when inexact has been signalled or underflow
61063         exceptions are enabled.
61064         (_FP_PACK_CANONICAL): Likewise.
61065
61066 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61067
61068         [BZ #14183]
61069         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61070         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61071
61072 2012-05-30  Richard Henderson  <rth@twiddle.net>
61073
61074         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61075         with #ifndef NOT_IN_libc.
61076
61077         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61078         marked to avoid plt entry.
61079
61080 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61081
61082         [BZ #14112]
61083         * Makeconfig (default-abi): New macro.
61084         (abi-includes): Likewise.
61085         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61086         $(abi-$(default-abi)-lib-soname) for soname if defined.
61087         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61088         abi-variants.
61089         * Makefile (installed-stubs): Likewise.
61090         * include/stubs-biarch.h: Removed.
61091         * scripts/lib-names.awk: Only handle one library at a time.
61092         * scripts/soversions.awk: Remove WORDSIZE support.
61093         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61094         entries.
61095         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61096         Removed.
61097         (syscall-list-default-condition): Likewise.
61098         (syscall-list-default-condition): Likewise.
61099         (syscall-list-includes): Likewise.
61100         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61101         syscall-list-* with abi-*.  Handle undefined abi-variants.
61102         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61103         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61104         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61105         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61106         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61107         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61108         Removed.
61109         (syscall-list-32-options): Likewise.
61110         (syscall-list-32-condition): Likewise.
61111         (syscall-list-64-options): Likewise.
61112         (syscall-list-64-condition): Likewise.
61113         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61114         macro.
61115         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61116         Renamed to ...
61117         (abi-*): This.
61118         (abi-64-ld-soname): New macro.
61119         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61120         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61121         Renamed to ...
61122         (abi-*): This.
61123         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61124         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61125
61126 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61127
61128         * sysdeps/unix/sysv/linux/kernel-features.h
61129         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61130         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61131         include <kernel-features.h>.
61132         [!__NR_ftruncate64]: Remove conditional code.
61133         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61134         [__NR_ftruncate64]: Make code unconditional.
61135         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61136         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61137         include <kernel-features.h>.
61138         [!__NR_ftruncate64]: Remove conditional code.
61139         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61140         [__NR_ftruncate64]: Make code unconditional.
61141         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61143         include <kernel-features.h>.
61144         [!__NR_ftruncate64]: Remove conditional code.
61145         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61146         [__NR_ftruncate64]: Make code unconditional.
61147         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61149         include <kernel-features.h>.
61150         [!__NR_ftruncate64]: Remove conditional code.
61151         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61152         [__NR_ftruncate64]: Make code unconditional.
61153         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61154
61155         * configure.in (libc_cv_fpie): Weaken to a compile test using
61156         LIBC_TRY_CC_OPTION.
61157         * configure: Regenerated.
61158
61159 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61160
61161         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61162         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61163         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61164         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61165         Refreshed.
61166         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61167         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61168         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61171         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61172         Refreshed.
61173
61174 2012-05-27  David S. Miller  <davem@davemloft.net>
61175
61176         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61177         (___Q_zero): New.
61178         (__Q_simulate_exceptions): Return void.  Change to simulate
61179         exceptions by writing into the %fsr.
61180         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61181         (__Qp_handle_exceptions): Likewise.
61182         (numbers): Delete.
61183         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61184         __Qp_handle_exceptions.
61185         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61186         __Qp_handle_exceptions.
61187         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61188         as unused and give dummy FP_RND_NEAREST initializer.
61189         (FP_INHIBIT_RESULTS): Define.
61190         (___Q_simulate_exceptions): Update declaration.
61191         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61192         formatting.
61193         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61194         as unused and give dummy FP_RND_NEAREST initializer.
61195         (__Qp_handle_exceptions): Update declaration.
61196         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61197         formatting.
61198
61199 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61200
61201         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61202         the temporary FPU control word.
61203         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61204         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61205         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61206         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61207         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61208         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61209         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61210         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61211         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61212         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61213         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61214
61215 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61216
61217         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61218         fields.
61219
61220 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61221
61222         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61223         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61224         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61225         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61226         Likewise.
61227         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61228         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61229         Likewise.
61230
61231 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61232
61233         * po/h.po: Update from translation team.
61234
61235 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61236
61237         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61238
61239         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61240         handling of denormals.
61241         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61242         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61243         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61244         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61245         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61246         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61247         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61248         Likewise.
61249
61250 2012-05-26  Marek Polacek  <polacek@redhat.com>
61251
61252         [BZ #14152]
61253         * math/libm-test.inc (fma_test): Don't always expect underflow
61254         exception.
61255
61256 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61257
61258         [BZ #12416]
61259         * elf/tst-execstack.c: Include stackinfo.h.
61260         (do_test): Adjust test case to ensure that pthread_getattr_np
61261         behaviour remains the same after marking stack executable.
61262
61263 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61264
61265         * sysdeps/unix/sysv/linux/kernel-features.h
61266         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61267         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61268         kernel-features.h.
61269         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61270         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61271         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61272         kernel-features.h.
61273         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61274         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61275
61276 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61277
61278         * configure.in: Define the default includes to being none.
61279         * configure: Regenerated.
61280
61281 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61282
61283         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61284         * sysdeps/x86_64/setjmp.S: Likewise.
61285         * sysdeps/i386/bsd-setjmp.S: Likewise.
61286         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61287         * sysdeps/i386/setjmp.S: Likewise.
61288         * sysdeps/i386/__longjmp.S: Likewise.
61289         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61290         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61291
61292         * include/stap-probe.h: New file.
61293         * configure.in: Handle --enable-systemtap.
61294         * configure: Regenerated.
61295         * config.h.in (USE_STAP_PROBE): New #undef.
61296         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61297         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61298         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61299
61300 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61301
61302         [BZ #13717]
61303         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61304         to 2.4.0 where earlier.
61305         * sysdeps/unix/sysv/linux/configure: Regenerated.
61306         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61307         <kernel-features.h>.
61308         [__ASSUME_32BITUIDS]: Make code unconditional.
61309         [!__ASSUME_32BITUIDS]: Remove conditional code.
61310         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61311         <kernel-features.h>.
61312         [__ASSUME_32BITUIDS]: Make code unconditional.
61313         [!__ASSUME_32BITUIDS]: Remove conditional code.
61314         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61315         [__ASSUME_32BITUIDS]: Make code unconditional.
61316         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61317         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61318         <kernel-features.h>.
61319         [__ASSUME_32BITUIDS]: Make code unconditional.
61320         [!__ASSUME_32BITUIDS]: Remove conditional code.
61321         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61322         <kernel-features.h>.
61323         [__ASSUME_32BITUIDS]: Make code unconditional.
61324         [!__ASSUME_32BITUIDS]: Remove conditional code.
61325         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61326         <kernel-features.h>.
61327         [__ASSUME_32BITUIDS]: Make code unconditional.
61328         [!__ASSUME_32BITUIDS]: Remove conditional code.
61329         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61330         <kernel-features.h>.
61331         [__ASSUME_32BITUIDS]: Make code unconditional.
61332         [!__ASSUME_32BITUIDS]: Remove conditional code.
61333         * sysdeps/unix/sysv/linux/i386/getresgid.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/i386/getresuid.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/i386/getuid.c: Do not include
61342         <kernel-features.h>.
61343         [__ASSUME_32BITUIDS]: Make code unconditional.
61344         [!__ASSUME_32BITUIDS]: Remove conditional code.
61345         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61346         <kernel-features.h>.
61347         [__ASSUME_32BITUIDS]: Make code unconditional.
61348         [!__ASSUME_32BITUIDS]: Remove conditional code.
61349         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61350         <kernel-features.h>.
61351         [__ASSUME_32BITUIDS]: Make code unconditional.
61352         [!__ASSUME_32BITUIDS]: Remove conditional code.
61353         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61354         <kernel-features.h>.
61355         [__ASSUME_32BITUIDS]: Make code unconditional.
61356         [!__ASSUME_32BITUIDS]: Remove conditional code.
61357         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61358         <kernel-features.h>.
61359         [__NR_setresgid] (__setresgid): Do not declare.
61360         [__ASSUME_32BITUIDS]: Make code unconditional.
61361         [!__ASSUME_32BITUIDS]: Remove conditional code.
61362         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61363         <kernel-features.h>.
61364         [__NR_setresuid] (__setresuid): Do not declare.
61365         [__ASSUME_32BITUIDS]: Make code unconditional.
61366         [!__ASSUME_32BITUIDS]: Remove conditional code.
61367         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61368         <kernel-features.h>.
61369         [__ASSUME_32BITUIDS]: Make code unconditional.
61370         [!__ASSUME_32BITUIDS]: Remove conditional code.
61371         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61372         <kernel-features.h>.
61373         [__ASSUME_32BITUIDS]: Make code unconditional.
61374         [!__ASSUME_32BITUIDS]: Remove conditional code.
61375         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61376         <kernel-features.h>.
61377         [__ASSUME_32BITUIDS]: Make code unconditional.
61378         [!__ASSUME_32BITUIDS]: Remove conditional code.
61379         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61380         <kernel-features.h>.
61381         [__ASSUME_32BITUIDS]: Make code unconditional.
61382         [!__ASSUME_32BITUIDS]: Remove conditional code.
61383         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61384         <kernel-features.h>.
61385         [__ASSUME_32BITUIDS]: Make code unconditional.
61386         [!__ASSUME_32BITUIDS]: Remove conditional code.
61387         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61388         <kernel-features.h>.
61389         [__ASSUME_32BITUIDS]: Make code unconditional.
61390         [!__ASSUME_32BITUIDS]: Remove conditional code.
61391         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61392         <kernel-features.h>.
61393         [__ASSUME_32BITUIDS]: Make code unconditional.
61394         [!__ASSUME_32BITUIDS]: Remove conditional code.
61395         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61396         <kernel-features.h>.
61397         [__ASSUME_32BITUIDS]: Make code unconditional.
61398         [!__ASSUME_32BITUIDS]: Remove conditional code.
61399         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61400         <kernel-features.h>.
61401         [__ASSUME_32BITUIDS]: Make code unconditional.
61402         [!__ASSUME_32BITUIDS]: Remove conditional code.
61403         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61404         <kernel-features.h>.
61405         [__ASSUME_32BITUIDS]: Make code unconditional.
61406         [!__ASSUME_32BITUIDS]: Remove conditional code.
61407         * sysdeps/unix/sysv/linux/kernel-features.h
61408         (__ASSUME_SETRESUID_SYSCALL): Remove.
61409         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61410         (__ASSUME_32BITUIDS): Likewise.
61411         (__ASSUME_LDT_WORKS): Likewise.
61412         (__ASSUME_O_DIRECTORY): Likewise.
61413         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61414         architecture but not kernel version.
61415         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61416         (__ASSUME_MMAP2_SYSCALL): Likewise.
61417         (__ASSUME_STAT64_SYSCALL): Likewise.
61418         (__ASSUME_IPC64): Likewise.
61419         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61420         <kernel-features.h>.
61421         [__ASSUME_32BITUIDS]: Make code unconditional.
61422         [!__ASSUME_32BITUIDS]: Remove conditional code.
61423         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61424         <kernel-features.h>.
61425         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61426         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61427         132096]: Remove conditional code.
61428         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61429         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61430         <kernel-features.h>.
61431         [__ASSUME_32BITUIDS]: Make code unconditional.
61432         [!__ASSUME_32BITUIDS]: Remove conditional code.
61433         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61434         <kernel-features.h>.
61435         [__ASSUME_32BITUIDS]: Make code unconditional.
61436         [!__ASSUME_32BITUIDS]: Remove conditional code.
61437         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61438         <kernel-features.h>.
61439         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61440         unconditional.
61441         (__setresgid): Do not declare.
61442         [__ASSUME_32BITUIDS]: Make code unconditional.
61443         [!__ASSUME_32BITUIDS]: Remove conditional code.
61444         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61445         <kernel-features.h>.
61446         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61447         unconditional.
61448         (__setresuid): Do not declare.
61449         [__ASSUME_32BITUIDS]: Make code unconditional.
61450         [!__ASSUME_32BITUIDS]: Remove conditional code.
61451         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61452         <kernel-features.h>.
61453         [__ASSUME_32BITUIDS]: Make code unconditional.
61454         [!__ASSUME_32BITUIDS]: Remove conditional code.
61455         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61456         <kernel-features.h>.
61457         [__ASSUME_32BITUIDS]: Make code unconditional.
61458         [!__ASSUME_32BITUIDS]: Remove conditional code.
61459
61460 2012-05-25  Richard Henderson  <rth@twiddle.net>
61461
61462         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61463         dl_hwcap to ifunc resolver.
61464         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61465         elf_ifunc_invoke.
61466         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61467         dl_hwcap to ifunc resolver.
61468         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61469
61470 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61471
61472         [BZ #14153]
61473         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61474         for |x| <= 2**-26, not 2**-57.
61475         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61476         exception.
61477
61478 2012-05-24  Jeff Law  <law@redhat.com>
61479
61480         * stdio-common/Makefile (tests): Add bug25.
61481         * stdio-common/bug25.c: New test.
61482
61483 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61484
61485         [BZ #13576]
61486         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61487         multiple of MALLOC_ALIGNMENT in size.
61488         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61489
61490 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61491
61492         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61493         Require >= 256.
61494         (FILENAME_MAX): Use macro-int-constant.
61495         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61496         (_IOFBF): Use macro-int-constant.
61497         (_IOLBF): Likewise.
61498         (_IONBF): Likewise.
61499         (SEEK_CUR): Likewise.
61500         (SEEK_END): Likewise.
61501         (SEEK_SET): Likewise.
61502         (TMP_MAX): Likewise.
61503         (EOF): Use macro-int-constant.  Require < 0.
61504         (NULL): Use macro-constant.  Require == 0.
61505         (stdin): Require type to be FILE *.
61506         (stdout): Likewise.
61507         (stderr): Likewise.
61508         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61509         macro-int-constant.
61510         (EXIT_SUCCESS): Likewise.
61511         (NULL): Use macro-constant.  Require == 0.
61512         (RAND_MAX): Use macro-int-constant.
61513         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61514         [C99-based standards] (strtof): Require function.
61515         [C99-based standards] (strtold): Likewise.
61516         [C99-based standards] (strtoll): Likewise.
61517         [C99-based standards] (strtoull): Likewise.
61518         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61519         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61520         [ISO || ISO99 || ISO11] (math.h): Likewise.
61521         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61522         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61523         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61524
61525 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61526
61527         [BZ #14132]
61528         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61529         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61530         * intl/dgettext.c (DCGETTEXT): Likewise.
61531         * intl/gettext.c (DCGETTEXT): Likewise.
61532         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61533         * posix/regex_internal.h (gettext): Likewise.
61534         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61535         Remove declaration.
61536         * include/argz.h (__argz_count_internal)
61537         (__argz_stringify_internal): Remove declaration.
61538         (__argz_count, __argz_stringify): Declare hidden proto.
61539         * intl/dcgettext.c: Remove use of INTDEF.
61540         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61541         * string/argz-stringify.c: Likewise.
61542         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61543         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61544         Declare hidden proto.
61545         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61546         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61547         Declare hidden proto.
61548         * include/stdio.h (__asprintf_internal): Don't declare.
61549         (__asprintf): Don't define as macro.  Declare hidden proto.
61550         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61551         (__fsetlocking): Declare hidden proto.
61552         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61553         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61554         hidden proto.
61555         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61556         (_IO_setlinebuf): Remove use of INTUSE.
61557         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61558         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61559         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61560         Remove declaration.
61561         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61562         (_IO_do_flush): Remove use of INTUSE.
61563         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61564         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61565         (_IO_adjust_column, _IO_least_wmarker)
61566         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61567         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61568         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61569         (_IO_default_doallocate, _IO_wdefault_doallocate)
61570         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61571         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61572         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61573         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61574         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61575         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61576         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61577         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61578         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61579         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61580         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61581         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61582         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61583         proto.
61584         (_IO_flush_all_internal, _IO_adjust_column_internal)
61585         (_IO_default_uflow_internal, _IO_default_finish_internal)
61586         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61587         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61588         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61589         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61590         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61591         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61592         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61593         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61594         (_IO_file_close_internal, _IO_file_close_it_internal)
61595         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61596         (_IO_file_init_internal, _IO_file_attach_internal)
61597         (_IO_file_fopen_internal, _IO_file_read_internal)
61598         (_IO_file_sync_internal, _IO_file_seek_internal)
61599         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61600         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61601         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61602         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61603         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61604         (_IO_list_all_internal, _IO_link_in_internal)
61605         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61606         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61607         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61608         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61609         (_IO_do_write_internal, _IO_padn_internal)
61610         (_IO_getline_info_internal, _IO_getline_internal)
61611         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61612         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61613         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61614         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61615         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61616         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61617         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61618         with libc_hidden_ver, remove use of INTUSE.
61619         * libio/genops.c: Likewise.
61620         * libio/freopen.c: Likewise.
61621         * libio/freopen64.c: Likewise.
61622         * libio/iofclose.c: Likewise.
61623         * libio/iofdopen.c: Likewise.
61624         * libio/iofflush.c: Likewise.
61625         * libio/iofflush_u.c: Likewise.
61626         * libio/iofgets.c: Likewise.
61627         * libio/iofgets_u.c: Likewise.
61628         * libio/iofopen.c: Likewise.
61629         * libio/iofopncook.c: Likewise.
61630         * libio/iofread.c: Likewise.
61631         * libio/iofread_u.c: Likewise.
61632         * libio/ioftell.c: Likewise.
61633         * libio/iofwrite.c: Likewise.
61634         * libio/iogetline.c: Likewise.
61635         * libio/iogets.c: Likewise.
61636         * libio/iogetwline.c: Likewise.
61637         * libio/iopadn.c: Likewise.
61638         * libio/iopopen.c: Likewise.
61639         * libio/ioseekoff.c: Likewise.
61640         * libio/ioseekpos.c: Likewise.
61641         * libio/iosetbuffer.c: Likewise.
61642         * libio/iosetvbuf.c: Likewise.
61643         * libio/ioungetc.c: Likewise.
61644         * libio/ioungetwc.c: Likewise.
61645         * libio/iovdprintf.c: Likewise.
61646         * libio/iovsprintf.c: Likewise.
61647         * libio/iovsscanf.c: Likewise.
61648         * libio/memstream.c: Likewise.
61649         * libio/obprintf.c: Likewise.
61650         * libio/oldfileops.c: Likewise.
61651         * libio/oldiofclose.c: Likewise.
61652         * libio/oldiofdopen.c: Likewise.
61653         * libio/oldiofopen.c: Likewise.
61654         * libio/oldiopopen.c: Likewise.
61655         * libio/oldstdfiles.c: Likewise.
61656         * libio/putc.c: Likewise.
61657         * libio/setbuf.c: Likewise.
61658         * libio/setlinebuf.c: Likewise.
61659         * libio/stdfiles.c: Likewise.
61660         * libio/strops.c: Likewise.
61661         * libio/vasprintf.c: Likewise.
61662         * libio/vscanf.c: Likewise.
61663         * libio/vsnprintf.c: Likewise.
61664         * libio/vswprintf.c: Likewise.
61665         * libio/wfiledoalloc.c: Likewise.
61666         * libio/wfileops.c: Likewise.
61667         * libio/wgenops.c: Likewise.
61668         * libio/wmemstream.c: Likewise.
61669         * libio/wstrops.c: Likewise.
61670         * libio/__fpurge.c: Likewise.
61671         * libio/__fsetlocking.c: Likewise.
61672         * assert/assert.c: Likewise.
61673         * debug/fgets_chk.c: Likewise.
61674         * debug/fgets_u_chk.c: Likewise.
61675         * debug/fread_chk.c: Likewise.
61676         * debug/fread_u_chk.c: Likewise.
61677         * debug/gets_chk.c: Likewise.
61678         * debug/obprintf_chk.c: Likewise.
61679         * debug/vasprintf_chk.c: Likewise.
61680         * debug/vdprintf_chk.c: Likewise.
61681         * debug/vsnprintf_chk.c: Likewise.
61682         * debug/vsprintf_chk.c: Likewise.
61683         * malloc/mtrace.c: Likewise.
61684         * misc/error.c: Likewise.
61685         * misc/syslog.c: Likewise.
61686         * stdio-common/asprintf.c: Likewise.
61687         * stdio-common/fxprintf.c: Likewise.
61688         * stdio-common/getw.c: Likewise.
61689         * stdio-common/isoc99_fscanf.c: Likewise.
61690         * stdio-common/isoc99_scanf.c: Likewise.
61691         * stdio-common/isoc99_vfscanf.c: Likewise.
61692         * stdio-common/isoc99_vscanf.c: Likewise.
61693         * stdio-common/isoc99_vsscanf.c: Likewise.
61694         * stdio-common/printf-prs.c: Likewise.
61695         * stdio-common/printf_fp.c: Likewise.
61696         * stdio-common/printf_fphex.c: Likewise.
61697         * stdio-common/printf_size.c: Likewise.
61698         * stdio-common/putw.c: Likewise.
61699         * stdio-common/scanf.c: Likewise.
61700         * stdio-common/sprintf.c: Likewise.
61701         * stdio-common/tmpfile.c: Likewise.
61702         * stdio-common/vfprintf.c: Likewise.
61703         * stdio-common/vfscanf.c: Likewise.
61704         * stdlib/strfmon_l.c: Likewise.
61705         * sunrpc/openchild.c: Likewise.
61706         * sunrpc/xdr_stdio.c: Likewise.
61707         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61708         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61709
61710 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61711
61712         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61713
61714         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61715         in the third column, to generate for the shared library an IFUNC
61716         that uses _dl_vdso_vsym.
61717         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61718         * Makeconfig (object-suffixes-noshared): New variable.
61719
61720         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61721         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61722         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61723         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61724
61725         [BZ #14132]
61726         * include/sys/time.h (__gettimeofday): Remove macro.
61727         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61728         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61729         Remove INTDEF.
61730         (__gettimeofday): Add libc_hidden_def.
61731         (gettimeofday): Add libc_hidden_weak.
61732         * sysdeps/mach/gettimeofday.c: Likewise.
61733         * sysdeps/posix/gettimeofday.c: Likewise.
61734         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61735         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61736         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61737         (__gettimeofday_internal): Remove strong_alias.
61738         (__gettimeofday): Add libc_hidden_def.
61739         (gettimeofday): Add libc_hidden_weak.
61740         * sysdeps/unix/syscalls.list (gettimeofday):
61741         Remove __gettimeofday_internal alias.
61742
61743 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61744             H.J. Lu  <hongjiu.lu@intel.com>
61745
61746         [BZ #12495]
61747         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61748         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61749         (largebin_index_32_big): New.
61750         (largebin_index): Use it for 16-byte alignment.
61751         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61752         correction with front_misalign.
61753
61754 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61755
61756         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61757         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61758         Likewise.
61759         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61760         Likewise.
61761         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61762         Likewise.
61763         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61764         Likewise.
61765         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61766         Likewise.
61767         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61768         Likewise.
61769         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61770         Likewise.
61771         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61772         Likewise.
61773         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61774         Likewise.
61775         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61776         Likewise.
61777         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61778         Likewise.
61779         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61780         Likewise.
61781
61782         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61783         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61784
61785 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61786
61787         [BZ #10846]
61788         [BZ #14036]
61789         * math/libm-test.inc (exp_test): Add test from bug 14036.
61790         (pow_test): Add test from bug 10846.
61791
61792         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61793         and other flags.
61794         (special_function): Do not include flags in test name.
61795         (parse_args): Likewise.
61796         * sysdeps/i386/fpu/libm-test-ulps: Update.
61797         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61798         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61799         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61801
61802         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61803         exceptions.
61804         * math/libm-test.inc ("Philosophy"): Update comment about
61805         exception testing.
61806         (UNDERFLOW_EXCEPTION): New macro.
61807         (UNDERFLOW_EXCEPTION_OK): Likewise.
61808         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61809         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61810         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61811         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61812         (INVALID_EXCEPTION_OK): Update value.
61813         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61814         (OVERFLOW_EXCEPTION_OK): Likewise.
61815         (IGNORE_ZERO_INF_SIGN): Likewise.
61816         (test_exceptions): Handle underflow exceptions.
61817         (acos_test): Update for underflow exception expectations.
61818         (cexp_test): Likewise.
61819         (clog_test): Likewise.
61820         (clog10_test): Likewise.
61821         (csqrt_test): Likewise.
61822         (ctan_test): Likewise.
61823         (ctanh_test): Likewise.
61824         (exp_test): Likewise.
61825         (exp10_test): Likewise.
61826         (exp2_test): Likewise.
61827         (expm1_test): Likewise.
61828         (fma_test): Likewise.
61829         (j0_test): Likewise.
61830         (jn_test): Likewise.
61831         (nexttoward_test): Likewise.
61832         (pow_test): Likewise.
61833         (scalbn_test): Likewise.
61834         (scalbln_test): Likewise.
61835         (tan_test): Likewise.
61836         (y1_test): Likewise.
61837         * sysdeps/i386/fpu/libm-test-ulps: Update.
61838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61839
61840 2012-05-23  David S. Miller  <davem@davemloft.net>
61841
61842         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61843         (__libc_sigaction): Remove unused local variables.
61844
61845 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61846
61847         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61848
61849 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         mktime: avoid signed integer overflow
61852         * time/mktime.c (__mktime_internal): Do not mishandle the case
61853         where diff == INT_MIN.
61854
61855         mktime: simplify computation of average
61856         * time/mktime.c (ranged_convert): Use new time_t_avg function
61857         instead of rolling our own (probably-slower) code.
61858
61859         mktime: do not assume signed right shift propagates sign bit
61860         * time/mktime.c (isdst_differ): New static function.
61861         (__mktime_internal): No need to normalize tm_isdst now.
61862         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61863         tm_isdst values.
61864
61865         mktime: merge another wrapv change from gnulib
61866         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61867         from some compilers.
61868
61869         mktime: remove incorrect attempt at unusual arithmetics
61870         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61871         The code didn't really work on such machines anyway.
61872         (TYPE_MINIMUM): Assume two's complement.
61873         (twos_complement_arithmetic): Verify that long_int and time_t
61874         are two's complement (or unsigned, in the latter case).
61875
61876         mktime: check signed shifts on long_int and time_t, too
61877         * time/mktime.c (SHR): Check that shifts work as desired
61878         on the types long_int and time_t too, as SHR is used on
61879         such types.
61880
61881         mktime: do not assume 'long' is wide enough
61882         * time/mktime.c (verify): Move decl up.
61883         (long_int): New type.
61884         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61885         to remove assumption in the code that 'long' is wide enough to
61886         store year values.  This assumption is not true on x32 and on
61887         some non-glibc platforms.
61888
61889         mktime: merge wrapv change from gnulib
61890         * time/mktime.c (WRAPV): New macro.
61891         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61892         (guess_time_tm, __mktime_internal): Do not assume that signed
61893         integer overflow wraps around; modern compilers generate code
61894         where this assumption is no longer valid.
61895
61896 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61897
61898         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61899         Replace "jmp L(pseudo_end)" with "ret".
61900         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61901         Likewise.
61902
61903 2012-05-23  Andreas Jaeger  <aj@suse.de>
61904
61905         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61906         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61907
61908 2012-05-23  Andreas Jaeger  <aj@suse.de>
61909             Maximilian Attems  <max@stro.at>
61910
61911         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61912         New macros.
61913
61914 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61915
61916         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61917         code so that pseudo_end is just ret and the stack pointer is
61918         correct also for static library in error case.
61919
61920 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61921
61922         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61923         move to syscalls.list.
61924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61928
61929         * manual/install.texi (Running make install): Do not mention Linux
61930         kernel version for which pt_chown is not needed.
61931         (Linux): Do not mention problems with nscd with 2.0 kernels.
61932         * INSTALL: Regenerated.
61933
61934 2012-05-23  Andreas Jaeger  <aj@suse.de>
61935
61936         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61937         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61938         macro.
61939         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61940         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61941         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61942         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61943         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61944         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61945         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61946         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61947         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61948         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61949         * sysdeps/unix/sysv/linux/bits/in.h
61950         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61951
61952 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61953
61954         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61955         (PREPARE_VERSION): Just use assert instead, it will be elided
61956         under [NDEBUG] anyway.
61957
61958 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61959
61960         * sysdeps/unix/sysv/linux/Makefile: Include
61961         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61962         (sysdep_routines): Remove sysctl.
61963         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61964         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61965         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61966         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61967         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61968
61969 2012-05-22  Andreas Jaeger  <aj@suse.de>
61970
61971         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61972         that pseudo_end is just ret and the stack pointer is correct also
61973         for static library in error case.
61974
61975 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61976
61977         [BZ #14122]
61978         * nss/nsswitch.c (defconfig_entries): New variable.
61979         (__nss_database_lookup): Don't leak defconfig entries.
61980         (nss_parse_service_list): Don't leak on error paths.
61981         (free_database_entries): New function.
61982         (free_defconfig): New function.
61983         (free_mem): Move common code to free_database_entries.
61984
61985 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61986
61987         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61988         Add arch_prctl.
61989         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61990
61991         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61992         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61993         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61994         New macro.
61995         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61996         (INTERNAL_SYSCALL_TYPES): Likewise.
61997         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61998         (LOAD_REGS_TYPES_[1-6]): Likewise.
61999         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62000         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62001
62002 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62003
62004         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62005         copysignl for GLIBC_2_0.
62006         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62007         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62008         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62009         logbl for GLIBC_2_0.
62010         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62011         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62012
62013 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62014
62015         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62016         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62017
62018         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62019         Use "neg %eax".
62020
62021         * time/mktime.c: Update copyright years.
62022
62023 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         mktime: merge comment-quoting-style change from gnulib
62026         * time/mktime.c: Quote 'like this' in comments.
62027         The GNU coding standards suggest that we no longer quote `like this',
62028         as "`" and "'" are typically rendered asymmetrically nowadays.
62029         The typical gnulib style is to quote 'like this' when quoting
62030         code, and "like this" when quoting English.
62031
62032         * time/mktime.c (compile-command): Add "-I.".
62033
62034         mktime: merge mktime-internal.h change from gnulib
62035         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62036
62037         mktime: merge time_r change from gnulib
62038         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62039
62040         mktime: merge DEBUG change from gnulib
62041         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62042         case system <time.h> has a #define.
62043
62044         mktime: merge <sys/types.h> change from gnulib
62045         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62046         since <time.t> is now guaranteed to define time_t.
62047
62048         mktime: merge HAVE_CONFIG_H change from gnulib
62049         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62050
62051 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62052
62053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62054         Use "neg %eax".
62055
62056         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62057         __rlim_t cast.
62058         (struct rusage): Use anonymous union to pad each field to
62059         __syscall_slong_t.
62060
62061 2012-05-21  David S. Miller  <davem@davemloft.net>
62062
62063         * Makefules (o-iterator): Remove .s cases.
62064         (compile-command.s): Delete.
62065         (COMPILE.s): Delete.
62066         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62067
62068 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62069
62070         * configure.in (libc_cv_predef_stack_protector): Only consider
62071         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62072         * configure: Regenerated.
62073
62074 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62075
62076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62077         New macro.  Use R*LP on int and pointer.
62078         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62079         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62080         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62081         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62082
62083         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62084         [__WORDSIZE_TIME64_COMPAT32] instead of
62085         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62086         (struct utmp): Likewise.
62087         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62088         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62089         Renamed to ...
62090         (__WORDSIZE_TIME64_COMPAT32): This.
62091         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62092         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62093         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62094         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62095         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62096         (__WORDSIZE_TIME64_COMPAT32): New macro.
62097
62098 2012-05-21  Andreas Jaeger  <aj@suse.de>
62099
62100         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62101         only if [SHARED]. Add prototype for __wcschr_ia32.
62102
62103 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62104
62105         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62106         of %rbp unmolested in the jmp_buf while mangling the low bits.
62107         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62108         unmolested high bits of %rbp while demangling the low bits.
62109         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62110
62111 2012-05-21  Andreas Jaeger  <aj@suse.de>
62112
62113         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62114         * sunrpc/svc_simple.c: Use it for registerrpc.
62115         * sunrpc/xcrypt.c: Use it for passwd2des.
62116
62117         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62118
62119 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62120
62121         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62122         Don't define if [__SYSCALL_WORDSIZE != 32].
62123         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62124         New macro.
62125
62126 2012-05-21  Bruno Haible  <bruno@clisp.org>
62127             Andreas Jaeger  <aj@suse.de>
62128
62129         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62130         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62131         inptr and inend for must_buffer_ch.
62132         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62133         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62134         * stdio-common/Makefile (tests): Remove bug15.
62135         (bug15-ENV): Remove macro.
62136         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62137         anymore.
62138
62139 2012-05-19  Andreas Jaeger  <aj@suse.de>
62140             Roland McGrath  <roland@hack.frob.com>
62141
62142         * manual/contrib.texi: Completely rewritten. It contains now an
62143         alphabetical list of contributors and their contributions.
62144
62145 2012-05-21  Richard Henderson  <rth@twiddle.net>
62146
62147         * misc/getauxval.c (__getauxval): Use unsigned long int.
62148         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62149         (getauxval): Use unsigned long int.
62150
62151 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62152
62153         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62154
62155 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62156
62157         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62158         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62159         __alignof__ (long double).
62160
62161 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62162
62163         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62164
62165 2012-05-20  Richard Henderson  <rth@twiddle.net>
62166
62167         * misc/getauxval.c: New file.
62168         * misc/sys/auxv.h: New file.
62169         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62170         (routines): Add getauxval.
62171         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62172         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62173         * elf/dl-sysdep.c (_dl_auxv): Remove.
62174         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62175         * elf/dl-support.c (_dl_auxv): New variable.
62176         (_dl_aux_init): Initialize it.
62177         * manual/startup.texi (Auxiliary Vector): New node.
62178         * sysdeps/generic/bits/hwcap.h: New file.
62179         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62180         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62181         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62182         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62183         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62184         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62186         Update.
62187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62189         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62190         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62191         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62192         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62195
62196 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62197
62198         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62199
62200 2012-05-19  David S. Miller  <davem@davemloft.net>
62201
62202         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62203
62204 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62205
62206         [BZ #14123]
62207         * math/s_ccosh.c: Include <float.h>
62208         (__ccosh): Avoid internal overflow calculating sinh and cosh
62209         values before multiplying by sin and cos values.
62210         * math/s_ccoshf.c: Likewise.
62211         * math/s_ccoshl.c: Likewise.
62212         * math/s_csin.c: Likewise.
62213         * math/s_csinf.c: Likewise.
62214         * math/s_csinl.c: Likewise.
62215         * math/s_csinh.c: Likewise.
62216         * math/s_csinhf.c: Likewise.
62217         * math/s_csinhl.c: Likewise.
62218         * math/libm-test.inc (ccos_test): Add more tests.
62219         (ccosh_test): Likewise.
62220         (csin_test): Likewise.
62221         (csinh_test): Likewise.
62222         * sysdeps/i386/fpu/libm-test-ulps: Update.
62223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62224
62225 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62226
62227         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62228         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62229
62230         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62231
62232 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62233
62234         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62235         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62236         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62237         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62238         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62239         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62240         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62241         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62242         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62243         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62244         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62245         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62246         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62247         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62248         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62249         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62250         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62251         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62252         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62253         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62254         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62255         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62256         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62257         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62258         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62259         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62260         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62261         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62262         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62263         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62264         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62265
62266 2012-05-18  Andreas Jaeger  <aj@suse.de>
62267
62268         * csu/.gitignore: Delete.
62269
62270 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62271
62272         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62273         (timex): Use __syscall_slong_t.
62274
62275 2012-05-18  Andreas Jaeger  <aj@suse.de>
62276             Carlos O'Donell  <carlos_odonell@mentor.com>
62277
62278         * manual/install.texi (Configuring and compiling): Update
62279         description about files modified in the source directory.
62280         * INSTALL: Regenerated.
62281
62282 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62283
62284         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62285         value.  Use "or" to set return value to -1.
62286         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62287         negate return value.
62288
62289 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62290
62291         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62292         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62293         failure if the compiler has Graphite support disabled.
62294         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62295         Likewise.
62296         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62297         (CFLAGS-memmove.c): Likewise.
62298         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62299         Likewise.
62300
62301 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62302
62303         * sysdeps/x86_64/x32/_itoa.h: New file.
62304
62305         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62306         getdents system call only if kernel and user dirents have the
62307         same d_ino and d_off.
62308
62309         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62310         LLONG_MAX != LONG_MAX.
62311         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62312         (_fitoa_word): Likewise.
62313
62314         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62315         years.
62316         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62317         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62318         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62319
62320         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62321         include <bits/wordsize.h>.  Check __x86_64__ instead of
62322         __WORDSIZE.
62323         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62324         if __x86_64__ is defined.  Use anonymous union on fpstate.
62325
62326         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62327         anonymous union.
62328
62329 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62330
62331         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62332         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62333         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62334         Refer to _rtld_local_ro instead of _rtld_global_ro.
62335         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62336         Likewise.
62337         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62338         Likewise.
62339         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62340         Likewise.
62341         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62342         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62343         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62344
62345         [BZ #10882]
62346         * sysdeps/powerpc/powerpc32/dl-machine.c
62347         (__elf_machine_runtime_setup) [PROF]: Don't reference
62348         _dl_prof_resolve.
62349
62350 2012-05-18  Andreas Jaeger  <aj@suse.de>
62351
62352         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62353         function only available for GCCs before 3.4 since GCC 3.4
62354         introduced a builtin.
62355         (lrint): Likewise.
62356         (llrintf): Likewise.
62357         (llrint): Likewise.
62358         (fmaxf): Likewise.
62359         (fmax): Likewise.
62360         (fminf): Likewise.
62361         (fmin): Likewise.
62362         (rint): Likewise.
62363         (rintf): Likewise.
62364         (nearbyint): Likewise.
62365         (nearbyintf): Likewise.
62366         (ceil): Likewise.
62367         (ceilf): Likewise.
62368         (floor): Likewise.
62369         (floorf): Likewise.
62370
62371 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62372
62373         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62374         on both fields and cast pointer to __syscall_ulong_t.
62375
62376         * bits/types.h (__fsword_t): New type.
62377         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62378         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62379         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62380         (__FSWORD_T_TYPE): Likewise.
62381         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62382         (__FSWORD_T_TYPE): Likewise.
62383         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62384         (__FSWORD_T_TYPE): Likewise.
62385         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62386         (__FSWORD_T_TYPE): Likewise.
62387         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62388         __SWORD_TYPE with __fsword_t.
62389         (statfs64): Likewise.
62390
62391 2012-05-17  David S. Miller  <davem@davemloft.net>
62392
62393         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62394
62395 2012-05-17  Andreas Jaeger  <aj@suse.de>
62396
62397         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62398         warning.
62399
62400 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62401
62402         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62403
62404 2012-05-17  Andreas Jaeger  <aj@suse.de>
62405
62406         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62407         when it is used.
62408
62409 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62410
62411         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62412
62413 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62414
62415         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62416         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62417
62418 2012-05-17  Andreas Jaeger  <aj@suse.de>
62419             Carlos O'Donell  <carlos_odonell@mentor.com>
62420
62421         [BZ #14059]
62422         * sysdeps/x86_64/multiarch/init-arch.h
62423         (bit_YMM_Usable): Rename to...
62424         (bit_AVX_Usable): ... this.
62425         (bit_FMA4_Usable): New macro.
62426         (bit_XMM_state): New macro.
62427         (bit_YMM_state): New macro.
62428         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62429         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62430         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62431         (CPUID_OSXSAVE): New macro.
62432         (CPUID_AVX): New macro.
62433         (CPUID_FMA4): New macro.
62434         (index_YMM_Usable): Rename to...
62435         (index_AVX_Usable): ... this.
62436         (HAS_AVX): Use HAS_ARCH_FEATURE.
62437         (HAS_FMA4): Likewise.
62438         (HAS_YMM_USABLE): Remove.
62439         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62440         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62441         are present.
62442         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62443         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62444         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62445         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62446         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62447
62448 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62449
62450         * math/libm-test.c: Support platforms without multiple rounding modes.
62451         * math/bug-nextafter.c: Support platforms without FP exceptions.
62452         * math/bug-nexttoward.c: Likewise.
62453         * math/test-fenv.c: Likewise.
62454         * math/test-misc.c: Likewise.
62455         * stdlib/bug-getcontext.c: Likewise.
62456
62457 2012-05-17  Andreas Jaeger  <aj@suse.de>
62458
62459         * manual/examples/search.c (critter_cmp): Change signature to
62460         avoid warnings.
62461         * manual/string.texi (Collation Functions): Likewise.
62462
62463 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62464
62465         * bits/types.h: Fold copyright years.
62466         * bits/typesizes.h: Likewise.
62467         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62468         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62469         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62470         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62471         * time/time.h: Likewise.
62472
62473 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62474
62475         [BZ #208]
62476         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62477         in instead of returning them.  Return void.
62478         (__libc_mallinfo): Accumulate over all arenas.
62479         (__malloc_stats): Adjust for change in int_mallinfo interface.
62480
62481 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62482
62483         [BZ #10375]
62484         * configure.in (NM): Add AC_CHECK_TOOL for it.
62485         (libc_extra_cflags): New substituted variable.
62486         Check for -fstack-protector being used implicitly.
62487         * configure: Regenerated.
62488         * config.make.in (config-extra-cflags): New variable,
62489         gets @libc_extra_cflags@.
62490         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62491
62492         [BZ #10375]
62493         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62494         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62495         * configure: Regenerated.
62496         * config.make.in (CPPUNDEFS): New substituted variable.
62497         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62498         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62499         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62500
62501 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62502
62503         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62504         (mq_attr): Use __syscall_slong_t.
62505
62506 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62507
62508         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62509         Check __x86_64__ instead of __WORDSIZE.
62510         (_STAT_VER_LINUX): Likewise.
62511         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62512         __syscall_ulong_t and __syscall_slong_t.
62513         (stat64): Likewise.
62514
62515 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62516
62517         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62518
62519 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62520
62521         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62522
62523 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62524
62525         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62526         __syscall_ulong_t.
62527
62528         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62529         include <bits/wordsize.h>.  Check __x86_64__ instead of
62530         __WORDSIZE.
62531         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62532         defined.
62533         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62534
62535         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62536         include <bits/wordsize.h>.  Check __x86_64__ instead of
62537         __WORDSIZE.
62538         (user_regs_struct): Use "__extension__ unsigned long long"
62539         instead of "unsigned long" if __x86_64__ is defined.
62540         (user): Likewise.  Pad after pointer field if __ILP32__ is
62541         defined.
62542
62543 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62544
62545         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62546         versions 5 to 9.
62547         * configure: Regenerated.
62548         * manual/install.texi (texinfo): Increase version requirement to
62549         4.5 or later.
62550         * INSTALL: Regenerated.
62551
62552         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62553
62554 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62555
62556         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62557
62558         * sysdeps/x86_64/x32/ffs.c: New file.
62559
62560         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62561         __syscall_ulong_t.
62562         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62563         defined.  Use __syscall_ulong_t.
62564         (shminfo): Use __syscall_ulong_t.
62565         (shm_info): Likewise.
62566
62567         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62568         __syscall_ulong_t.
62569
62570         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62571         <bits/wordsize.h>.
62572         (msgqnum_t): Use __syscall_ulong_t.
62573         (msglen_t): Likewise.
62574         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62575         __syscall_ulong_t.
62576
62577         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62578         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62579
62580         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62581
62582         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62583         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62584
62585         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62586         __syscall_slong_t.
62587
62588         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62589         include <bits/wordsize.h>.  Check __x86_64__ instead of
62590         __WORDSIZE.
62591
62592         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62593         "unsigned long long int" if __x86_64__ is defined.
62594         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62595
62596         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62597         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62598         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62599
62600         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62601         <stdint.h>.
62602         (GET_PC): Cast to uintptr_t first.
62603         (GET_FRAME): Likewise.
62604         (GET_STACK): Likewise.
62605
62606         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62607         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62608         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62609         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62610         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62611         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62612         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62613         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62614         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62615         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62616         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62617         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62618         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62619         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62620         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62621         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62622         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62623         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62624         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62625         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62626         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62627         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62628         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62629         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62630         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62631         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62632         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62633         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62634         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62635
62636 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62637
62638         * Makerules (+depfiles): Also collect depfiles from .oS in
62639         $(extra-objs).
62640         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62641         .oS, $(libnldbl-routines)).
62642
62643         * Makerules (native-compile-mkdep-flags): Define.
62644         * sunrpc/Makefile (extra-objs): Add $(addprefix
62645         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62646         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62647         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62648         calling $(make-target-directory).
62649
62650 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62651
62652         * bits/types.h (__snseconds_t): Removed.
62653         * time/time.h (struct timespec): Replace __snseconds_t with
62654         __syscall_slong_t.
62655         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62656         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62657         Likewise.
62658         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62659         (__SNSECONDS_T_TYPE): Likewise.
62660         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62661         (__SNSECONDS_T_TYPE): Likewise.
62662         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62663         (__SNSECONDS_T_TYPE): Likewise.
62664
62665 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62666
62667         * sysdeps/mach/hurd/bits/typesizes.h
62668         (__SYSCALL_SLONG_TYPE): New macro.
62669         (__SYSCALL_ULONG_TYPE): Likewise.
62670
62671 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62672
62673         * bits/types.h (__syscall_slong_t): New type.
62674         (__syscall_ulong_t): Likewise.
62675
62676         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62677         (__SYSCALL_ULONG_TYPE): Likewise.
62678         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62679         (__SYSCALL_SLONG_TYPE): Likewise.
62680         (__SYSCALL_ULONG_TYPE): Likewise.
62681         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62682         (__SYSCALL_SLONG_TYPE): Likewise.
62683         (__SYSCALL_ULONG_TYPE): Likewise.
62684         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62685         (__SYSCALL_SLONG_TYPE): Likewise.
62686         (__SYSCALL_ULONG_TYPE): Likewise.
62687
62688 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62689
62690         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62691         Add sigaltstack-offsets.sym.
62692         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62693         <sigaltstack-offsets.h>.
62694         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62695         longjmp_msg pointer.
62696         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62697         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62698         signal stack.
62699         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62700
62701 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62702
62703         * elf/stackguard-macros.h: Remove file.
62704         * sysdeps/generic/stackguard-macros.h: New file.
62705         * sysdeps/i386/stackguard-macros.h: Likewise.
62706         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62707         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62708         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62709         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62710         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62711         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62712         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62713         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62714         <elf/stackguard-macros.h>.
62715
62716         [BZ #14109]
62717         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62718         __aligned__ in attribute.
62719         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62720         (gregset_t): Likewise.
62721
62722 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62723
62724         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62725         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62726         * sysdeps/x86_64/x32/Implies-after: New file.
62727
62728 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62729
62730         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62731         and access return value for _dl_profile_fixup.  Use R10_LP to
62732         load frame size.
62733
62734 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62735
62736         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62737
62738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62739
62740         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62741         * sysdeps/x86_64/x32/sysdep.h: New file.
62742
62743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62744
62745         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62746         * sysdeps/x86_64/setjmp.S: Likewise.
62747
62748 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62749
62750         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62751         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62752         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62753         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62754         remove unused global constant.
62755
62756 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62757
62758         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62759         include of <not-cancel.h>.
62760
62761 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62762
62763         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62764
62765 2012-05-15  Jeff Law  <law@redhat.com>
62766             Andreas Jaeger  <aj@suse.de>
62767
62768         [BZ #13594]
62769         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62770         out from...
62771         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62772         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62773         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62774         code changing __hst_map_handle.map.
62775
62776 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62777
62778         * configure.in (sysnames): Look for Implies-before and Implies-after
62779         files.
62780         * configure: Regenerated.
62781
62782 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62783
62784         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62785         8-byte data alignment with LP_SIZE alignment.
62786
62787 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62788
62789         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62790         into R10_LP.
62791
62792 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62793
62794         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62795
62796 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62797
62798         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62799         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62800         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62801         Likewise.
62802         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62803
62804 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62805
62806         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62807         (stackinfo_sub_sp): Likewise.
62808
62809 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62810
62811         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62812         RAX_LP.
62813
62814 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62815
62816         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62817         into R*_LP.
62818
62819 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62820
62821         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62822         sizes into R*_LP.
62823
62824 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62825
62826         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62827
62828 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62829
62830         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62831         into R11_LP and load __x86_64_shared_cache_size_half into
62832         R8_LP.
62833
62834 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62835
62836         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62837         R8_LP.
62838
62839 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62840
62841         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62842         logb for POWER7.
62843         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62844         logbf for POWER7.
62845         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62846         logbl for POWER7.
62847         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62848         powerpc32/power7/fpu/s_logb.c via #include.
62849         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62850         powerpc32/power7/fpu/s_logbf.c via #include.
62851         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62852         powerpc32/power7/fpu/s_logbl.c via #include.
62853
62854 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62855
62856         * README.libm: Remove file.
62857
62858 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62859
62860         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62861         count for x32.  Use R*_LP and omit operand-size suffix.
62862
62863 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62864
62865         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62866         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62867         * sysdeps/x86_64/x32/shlib-versions: New file.
62868
62869 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62870
62871         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62872         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62873         Use _dl_fatal_printf instead.
62874
62875 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62876
62877         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62878         set if not set by the user.  Do not allow for being unset.
62879         * sysdeps/unix/sysv/linux/configure: Regenerated.
62880
62881 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62882
62883         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62884         the `q' suffix from lea and replace .quad with ASM_ADDR.
62885
62886 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62887
62888         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62889         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62890         instead of $17.
62891         (PTR_DEMANGLE): Likewise.
62892
62893 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62894
62895         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62896         (LP_OP): Likewise.
62897         (ASM_ADDR): Likewise.
62898         (RAX_LP): Likewise.
62899         (RBP_LP): Likewise.
62900         (RBX_LP): Likewise.
62901         (RCX_LP): Likewise.
62902         (RDI_LP): Likewise.
62903         (RSI_LP): Likewise.
62904         (RSP_LP): Likewise.
62905         (R8_LP): Likewise.
62906         (R9_LP): Likewise.
62907         (R10_LP): Likewise.
62908         (R10_LP): Likewise.
62909         (R11_LP): Likewise.
62910         (R12_LP): Likewise.
62911         (R13_LP): Likewise.
62912         (R14_LP): Likewise.
62913         (R15_LP): Likewise.
62914
62915 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62916
62917         * sysdeps/x86_64/x32/dl-machine.h: New file.
62918
62919 2012-05-14  Andreas Jaeger  <aj@suse.de>
62920
62921         * manual/Makefile (subdir): Remove export of subdir.
62922         (all): Remove target.
62923         (.PHONY): Remove all from list.
62924         (mkinstalldirs): Remove.
62925         (.PHONY): Remove installdirs from list.
62926         ($(inst_infodir)/libc.info): Use make-target-directory.
62927         (installdirs): Remove.
62928         (subdir_%): Remove.
62929         (glibc-targets): Remove.
62930         (lib): Remove.
62931         (stubs): Remove.
62932         ($(objpfx)stubs ../po/manual.pot): Remove.
62933         ($(objpfx)stamp%): Remove.
62934         (make-target-directory): Remove.
62935         (subdir_install): Remove.
62936         (routines): Remove.
62937         (aux): Remove.
62938         (sources): Remove.
62939         (objects): Remove.
62940         (headers): Remove.
62941
62942         [BZ #13750]
62943         * manual/.gitignore: Remove, it's not needed anymore.
62944         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62945         all files in it.
62946         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62947         directory.
62948         (texis): Renamed to $(objpfx)texis.
62949         (texis-path): New, contains path to generated files.
62950         (chapters.%): Use texis-path for complete path, add extra argument
62951         libc-texinfo.sh.
62952         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62953         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62954         (summary,texi, stamp-summary): Use complete path of
62955         files. Generate files in build dir.
62956         (dir-add.texi): Build in build dir.
62957         (libm-err.texi,stamp-libm-err): Likewise.
62958         (version.texi, stamp-version): Likewise.
62959         (.%c.texi): Likewise.
62960         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62961         (mostlyclean): Remove target.
62962         (realclean): Remove target.
62963         (generated): Add new variable with contents from mostlyclean and
62964         realclean, remove entries duplicated in common-mostlyclean, add
62965         stamp-libm-err and stamp-version.
62966         (generated-dirs): Add libc directory.
62967         ($(inst_infodir)/libc.info): Install files from build dir.
62968
62969         * manual/install.texi (Configuring and compiling): Adjust since
62970         the info files are not part of the tar ball anymore.
62971
62972 2012-05-14  Andreas Jaeger  <aj@suse.de>
62973
62974         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62975         variable.
62976
62977 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62978
62979         [BZ #13717]
62980         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62981         to 2.2.0 where earlier.
62982         * sysdeps/unix/sysv/linux/configure: Regenerated.
62983         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62984         Remove conditional code.
62985         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62986         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62987         Remove conditional code.
62988         [!__NR_lchown]: Likewise.
62989         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62990         [__NR_lchown]: Likewise.
62991         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62992         comment referencing __ASSUME_LCHOWN_SYSCALL.
62993         * sysdeps/unix/sysv/linux/i386/sigaction.c
62994         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62995         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62996         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62997         Remove conditional code.
62998         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62999         (__protocol_available): Remove #if 0 code.
63000         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63001         conditional code.
63002         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63003         * sysdeps/unix/sysv/linux/kernel-features.h
63004         (__ASSUME_GETCWD_SYSCALL): Don't define.
63005         (__ASSUME_REALTIME_SIGNALS): Likewise.
63006         (__ASSUME_PREAD_SYSCALL): Likewise.
63007         (__ASSUME_PWRITE_SYSCALL): Likewise.
63008         (__ASSUME_POLL_SYSCALL): Likewise.
63009         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63010         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63011         non-SPARC.
63012         (__ASSUME_SIOCGIFNAME): Don't define.
63013         (__ASSUME_MSG_NOSIGNAL): Likewise.
63014         (__ASSUME_SENDFILE): Define unconditionally.
63015         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63016         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63017         conditional code.
63018         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63019         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63020         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63021         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63022         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63023         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63024         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63026         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63027         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63029         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63030         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63032         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63033         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63035         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63036         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63038         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63039         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63041         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63042         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63044         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63045         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63047         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63048         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63049         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63050         Remove conditional code.
63051         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63052         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63053         Remove conditional code.
63054         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63055         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63056         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63057         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63058         Remove conditional code.
63059         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63060         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63061         Remove conditional code.
63062         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63063         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63064         Remove conditional code.
63065         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63066         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63067         Remove conditional code.
63068         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63069         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63070         Remove conditional code.
63071         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63072         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63073         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63074         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63075         * sysdeps/unix/sysv/linux/sigaction.c
63076         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63077         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63078         * sysdeps/unix/sysv/linux/sigpending.c
63079         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63080         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63081         * sysdeps/unix/sysv/linux/sigprocmask.c
63082         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63083         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63084         * sysdeps/unix/sysv/linux/sigsuspend.c
63085         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63086         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63087         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63088         (__libc_missing_rt_sigs): Remove.
63089         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63090         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63091         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63092         Remove conditional code.
63093         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63094         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63095         return 1.
63096         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63097         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63098         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63099         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63100
63101 2012-05-14  Andreas Jaeger  <aj@suse.de>
63102
63103         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63104         it's not used in glibc.
63105         (__coshm1): Likewise.
63106         (__acosh1p): Likewise.
63107         (__sgn): Likewise.
63108
63109         * manual/string.texi (Copying and Concatenation): Add missing
63110         variable in concat example.
63111         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63112
63113 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63114
63115         [BZ #14103]
63116         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63117         __builtin_clzl with __builtin_clzll.
63118
63119 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63120
63121         [BZ #14104]
63122         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63123         libc_freeres_ptr.
63124
63125 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63126
63127         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63128         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63129         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63130         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63131
63132 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63133
63134         * NEWS: Update ia64 info.
63135
63136 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63137
63138         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63139         used as bcopy.
63140
63141 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63142
63143         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63144         * sysdeps/unix/syscalls.list (dup3): Likewise.
63145         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63146         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63147
63148 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63149
63150         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63151         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63152
63153 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63154
63155         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63156         thread pointer.
63157         (TLS_IE): Use mov/add instead of movq/addq to load thread
63158         pointer.
63159         (TLS_GD_PREFIX): New.
63160         (TLS_GD): Use it.
63161
63162 2012-05-11  David S. Miller  <davem@davemloft.net>
63163
63164         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63165         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63166         (_FPU_SETCW): Likewise.
63167
63168 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63169
63170         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63171         is 32-byte aligned.
63172
63173 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63174
63175         [BZ #11837]
63176         * iconvdata/gb18030.c: Update tables.
63177         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63178         characters specially.
63179         (BODY for TO_LOOP): Add encoding of missing ranges.
63180
63181 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63182
63183         [BZ #13673]
63184         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63185         * sysdeps/mach/hurd/dup3.c: Likewise.
63186         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63187         * sysdeps/powerpc/memmove.c:: Likewise.
63188
63189 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63190
63191         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63192         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63193
63194 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63195
63196         * elf/elf.h (R_X86_64_RELATIVE64): New.
63197         (R_X86_64_NUM): Updated.
63198         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63199         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63200         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63201         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63202         tst-quad1pie tst-quad2pie
63203         (modules-names): Add tst-quadmod1 tst-quadmod2.
63204         ($(objpfx)tst-quad1): New dependency.
63205         ($(objpfx)tst-quad2): Likewise.
63206         ($(objpfx)tst-quad1pie): Likewise.
63207         ($(objpfx)tst-quad2pie): Likewise.
63208         * sysdeps/x86_64/tst-quad1.c: New file.
63209         * sysdeps/x86_64/tst-quad1pie.c: New file.
63210         * sysdeps/x86_64/tst-quad2.c: Likewise.
63211         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63212         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63213         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63214         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63215         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63216
63217 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63218
63219         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63220         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63221         * streams/stropts.h (t_scalar_t): Define type.
63222
63223         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63224         (_PATH_PRESERVE): Set to "/var/lib".
63225         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63226
63227         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63228         instead of int.
63229
63230         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63231         if __dir_mkfile succeeded.
63232
63233         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63234         checking for _hurd_dtablesize.  Unlock it right after having
63235         finished _hurd_dtable allocation.
63236
63237 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63238
63239         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63240         * sysdeps/mach/hurd/configure: Regenerated.
63241         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63242         special-casing to...
63243         * sysdeps/gnu/configure.in: ... this new file.
63244         * sysdeps/unix/sysv/linux/configure: Regenerated.
63245         * sysdeps/gnu/configure: New generated file.
63246
63247         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63248         for Linux: use nsec instead of usec, as well as:
63249         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63250         members of type struct timespec.
63251         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63252         New macros.
63253         (struct stat64): Likewise.
63254         (_STATBUF_ST_NSEC): New macro.
63255         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63256
63257         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63258         __strtoul_internal rather than strtoul.
63259
63260 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63261
63262         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63263         and reject them.
63264
63265 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63266
63267         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63268         which preserves existing values.
63269         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63270
63271 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63272
63273         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63274         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63275         greater than FD_SETSIZE.
63276
63277 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63278
63279         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63280         allocated, call __vm_protect to finish enabling the existing space, and
63281         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63282         allocate the remainder.
63283
63284 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63285
63286         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63287         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63288
63289 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63290
63291         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63292         sysdeps/mach/hurd/readlink.c.
63293
63294         * posix/tst-sysconf.c (posix_options): Only use
63295         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63296         _POSIX_SYNCHRONIZED_IO when they are defined
63297         * sysdeps/mach/hurd/bits/posix_opt.h:
63298         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63299         (_XOPEN_REALTIME): Undefine macro.
63300         (_XOPEN_REALTIME_THREADS): Undefine macro.
63301         (_XOPEN_SHM): Undefine macro.
63302         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63303         macro to -1.
63304         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63305         macro to -1.
63306         (_POSIX_ASYNC_IO): Undefine macro.
63307         (_POSIX_PRIORITIZED_IO): Undefine macro.
63308         (_POSIX_SPIN_LOCKS): Define macro to -1.
63309
63310         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63311         SA_NODEFER, SA_RESETHAND.
63312         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63313         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63314         F_DUPFD_CLOEXEC.
63315
63316 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63317
63318         * elf/Makefile (pldd-modules): Define unconditionally.
63319
63320 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63321
63322         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63323
63324 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63325
63326         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63327         Return ENOENT when name is empty.
63328         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63329
63330 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63331
63332         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63333
63334         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63335
63336 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63337
63338         Fix mlock in all cases except non-readable pages.
63339         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63340         instead of VM_PROT_ALL as parameter to __vm_wire function.
63341
63342         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63343         (__mkdir): When path is `/', just fail with EEXIST.
63344         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63345
63346 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63347
63348         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63349         <sys/uio.h> (for writev).
63350         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63351         and <sys/param.h> (for MIN).
63352
63353 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63354
63355         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63356         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63357         if interrupted.
63358
63359 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63360
63361         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63362         Depend on against $(link-rpcuserlibs).
63363
63364 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63365
63366         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63367         (__libc_stack_end): Do not use attribute_relro.
63368         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63369         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63370         to libthread-provided value.
63371         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63372         attribute_relro.
63373
63374 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63375
63376         [BZ #3748]
63377         * bits/libc-lock.h (__libc_once_get): New macro.
63378         * sysdeps/mach/bits/libc-lock.h: Likewise.
63379         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63380         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63381         instead of using implementation details.
63382
63383         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63384         * libio/freopen.c: Likewise.
63385         * libio/freopen64.c: Likewise.
63386         * misc/syslog.c: Likewise.
63387         * nscd/connections.c: Likewise.
63388         * nscd/netgroupcache.c: Likewise.
63389         * sysdeps/posix/getcwd.c: Likewise.
63390
63391 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63392
63393         * math/w_ilogbf.c: Add #include <limits.h>.
63394
63395 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63396
63397         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63398         path instead of returning without unlocking.
63399
63400         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63401         immediate-write ioctls.
63402         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63403
63404 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63405
63406         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63407         __builtin_frame_address instead of making assumptions about the
63408         location of the return address relative to DATA.  Force early load of
63409         the return address.
63410         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63411         __builtin_frame_address.
63412
63413         dup3 for GNU Hurd.
63414         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63415         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63416         implement dup3 and do some further code clean-ups.
63417         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63418         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63419
63420 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63421
63422         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63423
63424         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63425         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63426         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63427         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63428         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63429         d->port.lock.
63430
63431         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63432         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63433         when handler == SIG_ERR, not when handler != SIG_ERR.
63434
63435 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63436
63437         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63438         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63439         definitions.
63440
63441         accept4 for GNU Hurd.
63442         * include/sys/socket.h (__libc_accept4): New prototype.
63443         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63444         to implement __libc_accept4.
63445         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63446         __libc_accept4.
63447         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63448
63449         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63450         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63451         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63452         signal-defines.sym.
63453
63454 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63455
63456         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63457
63458 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63459
63460         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63461         assertion on O_CLOEXEC flag.
63462         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63463         * hurd/intern-fd.c: Likewise.
63464         * hurd/port2fd.c: Likewise.
63465
63466 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63467
63468         [BZ #3906]
63469         * bits/in.h (IPV6_PKTINFO): Define new macro.
63470         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63471
63472 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63473
63474         [BZ #13954]
63475         [BZ #13955]
63476         [BZ #13956]
63477         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63478         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63479         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63480         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63481         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63482         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63483         * math/libm-test.inc (logb_test) : Additional logb tests.
63484
63485 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63486             Andreas Jaeger  <aj@suse.de>
63487
63488         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63489         * configure: Regenerated.
63490         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63491         * config.make.in (link-obsolete-rpc): New substituted variable.
63492         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63493         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63494         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63495         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63496         so that libc.a contains the symbols.
63497         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63498         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63499         * sunrpc/auth_none.c: Likewise.
63500         * sunrpc/auth_unix.c: Likewise.
63501         * sunrpc/authdes_prot.c: Likewise.
63502         * sunrpc/authuxprot.c: Likewise.
63503         * sunrpc/clnt_gen.c: Likewise.
63504         * sunrpc/clnt_perr.c: Likewise.
63505         * sunrpc/clnt_raw.c: Likewise.
63506         * sunrpc/clnt_simp.c: Likewise.
63507         * sunrpc/clnt_tcp.c: Likewise.
63508         * sunrpc/clnt_udp.c: Likewise.
63509         * sunrpc/clnt_unix.c: Likewise.
63510         * sunrpc/des_crypt.c: Likewise.
63511         * sunrpc/des_soft.c: Likewise.
63512         * sunrpc/get_myaddr.c: Likewise.
63513         * sunrpc/key_call.c: Likewise.
63514         * sunrpc/key_prot.c: Likewise.
63515         * sunrpc/netname.c: Likewise.
63516         * sunrpc/pm_getmaps.c: Likewise.
63517         * sunrpc/pm_getport.c: Likewise.
63518         * sunrpc/pmap_clnt.c: Likewise.
63519         * sunrpc/pmap_prot.c: Likewise.
63520         * sunrpc/pmap_prot2.c: Likewise.
63521         * sunrpc/pmap_rmt.c: Likewise.
63522         * sunrpc/publickey.c: Likewise.
63523         * sunrpc/rpc_cmsg.c: Likewise.
63524         * sunrpc/rpc_common.c: Likewise.
63525         * sunrpc/rpc_dtable.c: Likewise.
63526         * sunrpc/rpc_prot.c: Likewise.
63527         * sunrpc/rpc_thread.c: Likewise.
63528         * sunrpc/rtime.c: Likewise.
63529         * sunrpc/svc.c: Likewise.
63530         * sunrpc/svc_auth.c: Likewise.
63531         * sunrpc/svc_raw.c: Likewise.
63532         * sunrpc/svc_run.c: Likewise.
63533         * sunrpc/svc_tcp.c: Likewise.
63534         * sunrpc/svc_udp.c: Likewise.
63535         * sunrpc/svc_unix.c: Likewise.
63536         * sunrpc/svcauth_des.c: Likewise.
63537         * sunrpc/xcrypt.c: Likewise.
63538         * sunrpc/xdr.c: Likewise.
63539         * sunrpc/xdr_array.c: Likewise.
63540         * sunrpc/xdr_float.c: Likewise.
63541         * sunrpc/xdr_intXX_t.c: Likewise.
63542         * sunrpc/xdr_mem.c: Likewise.
63543         * sunrpc/xdr_rec.c: Likewise.
63544         * sunrpc/xdr_ref.c: Likewise.
63545         * sunrpc/xdr_sizeof.c: Likewise.
63546         * sunrpc/xdr_stdio.c: Likewise.
63547
63548 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63549
63550         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63551         change.  Update copyright years.
63552
63553 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63554
63555         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63556
63557 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63558             Joseph Myers  <joseph@codesourcery.com>
63559             Paul Pluzhnikov  <ppluzhnikov@google.com>
63560
63561         [BZ #14012]
63562         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63563         requiring rpcgen.
63564         [cross-compiling] (extra-libs): Likewise.
63565         [cross-compiling] (extra-libs-others): Likewise.
63566         [cross-compiling] (librpcsvc-routines): Likewise.
63567         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63568         [cross-compiling] (omit-deps): Likewise.
63569         (sunrpc-CPPFLAGS): New variable.
63570         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63571         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63572         (cross-rpcgen-objs): New variable.
63573         (extra-objs): Append $(cross-rpcgen-objs).
63574         ($(cross-rpcgen-objs)): New rule.
63575         ($(objpfx)cross-rpcgen): Likewise.
63576         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63577         comment.
63578         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63579         ($(objpfx)x%.stmp): Likewise.
63580         * sunrpc/proto.h [IS_IN_build] (_): Define.
63581         [IS_IN_build] (_libc_intl_domainname): Likewise.
63582
63583 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63584
63585         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63586         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63587         and R_X86_64_TPOFF64.
63588
63589 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63590
63591         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63592         sysdeps/unix/sysv/syscalls.list.
63593         (stime): Likewise.
63594         (utime): Likewise.
63595         * sysdeps/unix/sysv/syscalls.list: Remove file.
63596
63597 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63598
63599         [BZ #3440]
63600         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63601         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63602         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63603         (__LC_IDENTIFICATION): Make these macros useful in #if
63604         expressions, as required by C99.
63605
63606 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63607
63608         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63609         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63610         after this.
63611
63612 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63613
63614         * stdlib/longlong.h: Updated from GCC.
63615
63616 2012-05-09  Andreas Jaeger  <aj@suse.de>
63617
63618         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63619         default is first entry.
63620         (run_mode): Set type.
63621         (main): Remove informal message about syslog.
63622         (options): Fix typo.
63623
63624         [BZ #14053]
63625         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63626         to asm.
63627         (lrint): Likewise.
63628         (llrintf): Likewise.
63629         (llrint): Likewise.
63630         (rint): Likewise.
63631         (rintf): Likewise.
63632         (nearbyint): Likewise.
63633         (nearbyintf): Likewise.
63634
63635 2012-05-09  Andreas Jaeger  <aj@suse.de>
63636             Pedro Alves  <palves@redhat.com>
63637
63638         * nscd/nscd.c (run_mode): Use enum.
63639         (main): Cleanup coding style issue.
63640
63641 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63642             Andreas Jaeger  <aj@suse.de>
63643
63644         * nscd/nscd.c (go_background): Replaced with...
63645         (run_mode): ... this.
63646         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63647         (options): Add -F --foreground.
63648         (main): Implement it.
63649         (parse_opt): Parse it.
63650
63651 2012-05-09  Andreas Jaeger  <aj@suse.de>
63652
63653         [BZ #14083]
63654         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63655         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63656         -Wconversion warning.
63657         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63658         Likewise.
63659
63660 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63661
63662         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63663         == 0.
63664         (LC_ALL): Use macro-int-constant.
63665         (LC_COLLATE): Likewise.
63666         (LC_CTYPE): Likewise.
63667         (LC_MESSAGES): Likewise.
63668         (LC_MONETARY): Likewise.
63669         (LC_NUMERIC): Likewise.
63670         (LC_TIME): Likewise.
63671         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63672         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63673         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63674         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63675         Specify type.
63676         [C99-based standards] (float_t): Expect type.
63677         [C99-based standards] (double_t): Expect type.
63678         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63679         type.
63680         [C99-based standards] (HUGE_VALL): Likewise.
63681         [C99-based standards] (INFINITY): Likewise.
63682         [C99-based standards] (NAN): Likewise.
63683         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63684         [C99-based standards] (FP_NAN): Likewise.
63685         [C99-based standards] (FP_NORMAL): Likewise.
63686         [C99-based standards] (FP_SUBNORMAL): Likewise.
63687         [C99-based standards] (FP_ZERO): Likewise.
63688         [C99-based standards] (FP_FAST_FMA): Use
63689         optional-macro-int-constant.  Specify type.  Require == 1.
63690         [C99-based standards] (FP_FAST_FMAF): Likewise.
63691         [C99-based standards] (FP_FAST_FMAL): Likewise.
63692         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63693         [C99-based standards] (FP_ILOGBNAN): Likewise.
63694         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63695         Specify type.
63696         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63697         [C99-based standards] (math_errhandling): Specify type.
63698         [ISO99 || ISO11] (signgam): Do not allow.
63699         [non-C99-based standards] (copysignf): Do not allow.
63700         [non-C99-based standards] (exp2f): Likewise.
63701         [non-C99-based standards] (log2f): Likewise.
63702         [non-C99-based standards] (modff): Allow.
63703         [non-C99-based standards] (erff): Do not allow.
63704         [non-C99-based standards] (erfcf): Likewise.
63705         [non-C99-based standards] (gammaf): Likewise.
63706         [non-C99-based standards] (hypotf): Likewise.
63707         [non-C99-based standards] (j0f): Likewise.
63708         [non-C99-based standards] (j1f): Likewise.
63709         [non-C99-based standards] (jnf): Likewise.
63710         [non-C99-based standards] (lgammaf): Likewise.
63711         [non-C99-based standards] (tgammaf): Likewise.
63712         [non-C99-based standards] (y0f): Likewise.
63713         [non-C99-based standards] (y1f): Likewise.
63714         [non-C99-based standards] (ynf): Likewise.
63715         [non-C99-based standards] (isnanf): Likewise.
63716         [non-C99-based standards] (acoshf): Likewise.
63717         [non-C99-based standards] (asinhf): Likewise.
63718         [non-C99-based standards] (atanhf): Likewise.
63719         [non-C99-based standards] (cbrtf): Likewise.
63720         [non-C99-based standards] (expm1f): Likewise.
63721         [non-C99-based standards] (ilogbf): Likewise.
63722         [non-C99-based standards] (log1pf): Likewise.
63723         [non-C99-based standards] (logbf): Likewise.
63724         [non-C99-based standards] (nextafterf): Likewise.
63725         [non-C99-based standards] (remainderf): Likewise.
63726         [non-C99-based standards] (rintf): Likewise.
63727         [non-C99-based standards] (scalbf): Likewise.
63728         [non-C99-based standards] (copysignl): Likewise.
63729         [non-C99-based standards] (exp2l): Likewise.
63730         [non-C99-based standards] (log2l): Likewise.
63731         [non-C99-based standards] (modfl): Allow.
63732         [non-C99-based standards] (erfl): Do not allow.
63733         [non-C99-based standards] (erfcl): Likewise.
63734         [non-C99-based standards] (gammal): Likewise.
63735         [non-C99-based standards] (hypotl): Likewise.
63736         [non-C99-based standards] (j0l): Likewise.
63737         [non-C99-based standards] (j1l): Likewise.
63738         [non-C99-based standards] (jnl): Likewise.
63739         [non-C99-based standards] (lgammal): Likewise.
63740         [non-C99-based standards] (tgammal): Likewise.
63741         [non-C99-based standards] (y0l): Likewise.
63742         [non-C99-based standards] (y1l): Likewise.
63743         [non-C99-based standards] (ynl): Likewise.
63744         [non-C99-based standards] (isnanl): Likewise.
63745         [non-C99-based standards] (acoshl): Likewise.
63746         [non-C99-based standards] (asinhl): Likewise.
63747         [non-C99-based standards] (atanhl): Likewise.
63748         [non-C99-based standards] (cbrtl): Likewise.
63749         [non-C99-based standards] (expm1l): Likewise.
63750         [non-C99-based standards] (ilogbl): Likewise.
63751         [non-C99-based standards] (log1pl): Likewise.
63752         [non-C99-based standards] (logbl): Likewise.
63753         [non-C99-based standards] (nextafterl): Likewise.
63754         [non-C99-based standards] (remainderl): Likewise.
63755         [non-C99-based standards] (rintl): Likewise.
63756         [non-C99-based standards] (scalbl): Likewise.
63757         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63758         [non-C99-based standards] (FP_*): Do not allow.
63759         [C99-based standards] (FP_*): Change to
63760         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63761         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63762         allow.
63763         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63764         (SIG_ERR): Likewise.
63765         [X/Open-based standards] (SIG_HOLD): Likewise.
63766         (SIG_IGN): Likewise.
63767         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63768         positive value.
63769         (SIGFPE): Likewise.
63770         (SIGILL): Likewise.
63771         (SIGINT): Likewise.
63772         (SIGSEGV): Likewise.
63773         (SIGTER): Likewise.
63774         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63775         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63776         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63777         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63778         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63779         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63780         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63781         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63782         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63783         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63784         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63785         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63786         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63787         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63788         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63789         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63790         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63791         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63792         [X/Open-based standards] (SIGTRAP): Likewise.
63793         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63794         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63795         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63796         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63797         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63798         allow.
63799
63800 2012-05-08  Ian Wienand  <ianw@vmware.com>
63801
63802         [BZ #14080]
63803         * time/tzset.c (__tzset_parse_tz): Update default rules for
63804         daylight time changes in the Energy Policy Act of 2005.
63805
63806 2012-05-09  Andreas Jaeger  <aj@suse.de>
63807
63808         [BZ #13983]
63809         * elf/ldconfig.c (parse_conf): Change string to make clear that
63810         ldconfig only issued a warning if ld.so.conf does not exist.
63811
63812 2012-05-08  David S. Miller  <davem@davemloft.net>
63813
63814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63815         movxtod instead of popping the value on the stack.
63816
63817         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63818
63819 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63820
63821         * config.h.in: Add HAVE_ARM_PCS_VFP.
63822
63823 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63824
63825         [BZ #13979]
63826         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63827         checking but the checks are disabled for any reason.
63828
63829 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63830
63831         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63832         and ELF64_R_TYPE with ELFW(R_TYPE).
63833
63834 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63835
63836         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63837         (ulimit): Likewise.
63838
63839         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63840         (settimeofday): Likewise.
63841
63842 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63843
63844         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63845         a struct th_u2 inside the union, and move tu_block/tu_code into
63846         a new th_u3 union of tu_block/tu_code inside of that.  Move
63847         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63848         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63849         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63850         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63851         (th_stuff): Change to th_u1.tu_stuff.
63852         (th_data): Define.
63853         (th_msg): Change to th_u1.th_u2.tu_data.
63854
63855 2012-05-07  David S. Miller  <davem@davemloft.net>
63856
63857         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63858
63859         [BZ #14074]
63860         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63861         (SETUP_PIC_REG): Use it.
63862         (SETUP_PIC_REG_LEAF): Use it.
63863
63864 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63865
63866         [BZ #13885]
63867         [BZ #13923]
63868         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63869         USE_AS_EXPM1L.
63870         (EXPL_FINITE): Likewise.
63871         (FLDLOG): Likewise.
63872         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63873         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63874         e_expl.S.
63875         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63876         USE_AS_EXPM1L.
63877         (EXPL_FINITE): Likewise.
63878         (FLDLOG): Likewise.
63879         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63880         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63881         e_expl.S.
63882         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63883         test of -max_value argument for long double.
63884         * sysdeps/i386/fpu/libm-test-ulps: Update.
63885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63886
63887 2012-05-06  David S. Miller  <davem@davemloft.net>
63888
63889         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63890         quad soft-float symbols whose references which are compiler
63891         generated.
63892         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63893
63894 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63895
63896         [BZ #13884]
63897         [BZ #13914]
63898         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63899         USE_AS_EXP10L.
63900         (EXPL_FINITE): Likewise.
63901         (FLDLOG): Likewise.
63902         (c0): Likewise.
63903         (c1): Likewise.
63904         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63905         Adjust comments for base varying.
63906         (__expl_finite): Change alias to EXPL_FINITE.
63907         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63908         e_expl.S.
63909         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63910         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63911         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63912         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63913         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63914         USE_AS_EXP10L.
63915         (EXPL_FINITE): Likewise.
63916         (FLDLOG): Likewise.
63917         (c0): Likewise.
63918         (c1): Likewise.
63919         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63920         Adjust comments for base varying.
63921         (__expl_finite): Change alias to EXPL_FINITE.
63922         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63923         tests for bugs.
63924         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63925
63926         [BZ #14064]
63927         * math/libm-test.inc (check_float_internal): Correct ulp
63928         calculation for subnormal expected results.
63929
63930 2012-05-06  Andreas Jaeger  <aj@suse.de>
63931
63932         * Makeconfig (+math-flags): New, set to -frounding-math.
63933         (+cflags): Add +math-flags so that all of glibc gets compiled with
63934         it.
63935
63936         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63937
63938 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63939
63940         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63941         Disable one test.
63942
63943         [BZ #13787]
63944         [BZ #13922]
63945         [BZ #14036]
63946         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63947         (__ieee754_expl): Allow for and saturate large arguments.
63948         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63949         (u_threshold): Likewise.
63950         (__exp): Call __ieee754_exp before checking for overflow and
63951         underflow.
63952         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63953         (u_threshold): Likewise.
63954         (__expf): Call __ieee754_expf before checking for overflow and
63955         underflow.
63956         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63957         (u_threshold): Likewise.
63958         (__expl): Call __ieee754_expl before checking for overflow and
63959         underflow.
63960         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63961         (__ieee754_expl): Allow for and saturate large arguments.
63962         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63963         missing overflow exception on overflow.
63964         (expm1_test): Do not allow missing overflow exception on overflow.
63965
63966         * sysdeps/i386/fpu/e_expl.c: Move to ...
63967         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63968         rather than using inline asm.
63969         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63970         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63971         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63972
63973         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63974         (nice): Likewise.
63975         (poll): Likewise.
63976         (signal): Likewise.
63977         (time): Likewise.
63978         (times): Likewise.
63979
63980 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63981
63982         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63983         sysdeps/unix/common/syscalls.list.
63984         (fchmod): Likewise.
63985         (fchown): Likewise.
63986         (ftruncate): Likewise.
63987         (getrusage): Likewise.
63988         (gettimeofday): Likewise.
63989         (setpgid): Likewise.
63990         (setregid): Likewise.
63991         (setreuid): Likewise.
63992         (sigaction): Likewise.
63993         (truncate): Likewise.
63994         (vhangup): Likewise.
63995         * sysdeps/unix/common/syscalls.list: Remove file.
63996         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63997         * sysdeps/unix/sysv/linux/Implies: Likewise.
63998
63999 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64000
64001         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64002         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64003         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64004         Moved to ...
64005         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64006         Here.
64007         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64008         to ...
64009         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64010         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64011         to ...
64012         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64013         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64014         to ...
64015         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64016         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64017         to ...
64018         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64019         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64020         to ...
64021         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64022         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64023         to ...
64024         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64025         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64026         to ...
64027         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64028         Here.
64029         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64030         to ...
64031         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64032         Here.
64033         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64034         to ...
64035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64036         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64037         Moved to ...
64038         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64039         Here.
64040         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64041         to ...
64042         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64043
64044 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64045
64046         * sysdeps/unix/common/bits/dirent.h: Remove file.
64047         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64048
64049         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64050         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64051         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64052         * sysdeps/unix/bsd/isatty.c: Likewise.
64053         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64054         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64055         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64056
64057 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64058
64059         [BZ #13563]
64060         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64061         long double comparison inaccuracies.
64062         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64064
64065 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64066
64067         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64068         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64069
64070 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64071
64072         [BZ #14049]
64073         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64074         nonzero digits before rounding a hex value.
64075         * stdlib/tst-strtod.c (tests): Add another test.
64076
64077 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64078
64079         * sysdeps/s390/fpu/libm-test-ulps: Update.
64080
64081 2012-05-03  Andreas Jaeger  <aj@suse.de>
64082
64083         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64084         does not get optimized out.
64085         (malloc_opt_barrier): New.
64086
64087 2012-05-03  Andreas Jaeger  <aj@suse.de>
64088             Roland McGrath  <roland@hack.frob.com>
64089
64090         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64091         intermediate file deletion.
64092         (generated): Add .symlist files.
64093
64094 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64095
64096         [BZ #13775]
64097         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64098         Redirect under this condition.
64099         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64100         [__USE_GNU] (__dprintf_chk): Not under this condition.
64101         [__USE_GNU] (__vdprintf_chk): Likewise.
64102         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64103         under this condition.
64104         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64105         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64106         [__USE_XOPEN2K8] (vdprintf): Likewise.
64107         [__USE_GNU] (__dprintf_chk): Not under this condition.
64108         [__USE_GNU] (__vdprintf_chk): Likewise.
64109         [__USE_GNU] (dprintf): Likewise.
64110         [__USE_GNU] (vdprintf): Likewise.
64111
64112 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64113
64114         * elf/Makefile (common-generated): Set this instead of generated for
64115         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64116         $(all-built-dso)-derived lists.
64117
64118 2012-05-03  Andreas Jaeger  <aj@suse.de>
64119
64120         * sysdeps/i386/fpu/libm-test-ulps: Update.
64121
64122         * FAQ: Removed.
64123         * FAQ.in: Likewise.
64124         * scripts/gen-FAQ.pl: Likewise.
64125         * manual/install.texi (Installation): Point to online location of
64126         FAQ.
64127         * Makefile (files-for-dist): Remove FAQ.
64128         (FAQ): Remove.
64129
64130 2012-05-02  Allan McRae  <allan@archlinux.org>
64131
64132         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64133         (LDFLAGS-reldepmod5.so): Likewise.
64134         (LDFLAGS-reldep6mod1.so): Likewise.
64135         (LDFLAGS-reldep6mod4.so): Likewise.
64136         (LDFLAGS-reldep8mod3.so): Likewise.
64137         (LDFLAGS-unload4mod1.so): Likewise.
64138         (LDFLAGS-unload4mod2.so): Likewise.
64139         (LDFLAGS-tst-initorder): Likewise.
64140         (LDFLAGS-tst-initordera2.so): Likewise.
64141         (LDFLAGS-tst-initordera3.so): Likewise.
64142         (LDFLAGS-tst-initordera4.so): Likewise.
64143         (LDFLAGS-tst-initorderb2.so): Likewise.
64144         (LDFLAGS-noload): Likewise.
64145         (LDFLAGS-next): Likewise.
64146         (LDFLAGS-order2mod1.so): Likewise.
64147         (LDFLAGS-order2mod2.so): Likewise.
64148         (LDFLAGS-tst-initorder2): Likewise.
64149         (LDFLAGS-tst-initorder2a.so): Likewise.
64150         (LDFLAGS-tst-initorder2b.so): Likewise.
64151         (LDFLAGS-tst-initorder2c.so): Likewise.
64152         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64153
64154 2012-05-02  David S. Miller  <davem@davemloft.net>
64155
64156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64157
64158 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64159
64160         [BZ #14055]
64161         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64162
64163 2012-05-02  Andreas Jaeger  <aj@suse.de>
64164
64165         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64166         since we manipulate rounding mode.
64167         (CPPFLAGS-test-idouble.c): Likewise.
64168         (CPPFLAGS-test-ifloat.c): Likewise.
64169         (CFLAGS-test-ldouble.c): Likewise.
64170         (CFLAGS-test-double.c): Likewise.
64171         (CFLAGS-test-float.c): Likewise.
64172         (CFLAGS-test-misc.c): Likewise.
64173         (CFLAGS-test-test-fenv.c): Likewise.
64174
64175 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64176
64177         [BZ #2550]
64178         [BZ #2570]
64179         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64180         comparisons to determine direction to adjust input.
64181
64182 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64183
64184         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64185         output to the target.
64186
64187         * scripts/localplt.awk: New file.
64188         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64189         (check-localplt-CFLAGS): Variable removed.
64190         ($(all-built-dso:=.jmprel)): New static pattern rule.
64191         (generated): Add those targets.
64192         (localplt-built-dso): New variable.
64193         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64194
64195         * elf/check-localplt.c: File removed.
64196
64197         * scripts/check-execstack.awk: New file.
64198         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64199         (check-execstack-CFLAGS): Variable removed.
64200         ($(objpfx)check-execstack.h): Target removed.
64201         ($(objpfx)execstack-default): New target.
64202         (generated): Add that instead of check-execstack.h.
64203         ($(all-built-dso:=.phdr)): New static pattern rule.
64204         (generated): Add those targets.
64205         * elf/check-execstack.c: File removed.
64206
64207         * scripts/check-textrel.awk: New file.
64208         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64209         (check-textrel-CFLAGS): Variable removed.
64210         (all-built-dso): Use := to define.o
64211         ($(all-built-dso:=.dyn)): New static pattern rule.
64212         (generated): Add those targets.
64213         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64214         * config.make.in (READELF): New substituted variable.
64215         * elf/check-textrel.c: File removed.
64216
64217 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64218
64219         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64220         allow.
64221         * conform/data/ctype.h-data [C99-based standards] (isblank):
64222         Expect function.
64223         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64224         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64225         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64226         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64227         Specify type.  Require positive value.
64228         (EILSEQ): Likewise.
64229         (ERANGE): Likewise.
64230         [ISO || POSIX] (EILSEQ): Do not expect.
64231         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64232         Specify type.  Require positive value.
64233         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64234         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64235         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64236         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64237         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64238         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64239         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64240         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64241         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64242         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64243         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64244         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64245         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64246         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64247         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64248         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64249         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64250         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64251         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64252         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64253         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64254         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64255         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64256         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64257         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64258         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64259         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64260         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64261         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64262         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64263         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64264         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64265         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64266         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64267         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64268         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64269         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64270         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64271         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64272         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64273         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64274         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64275         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64276         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64277         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64278         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64279         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64280         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64281         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64282         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64283         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64284         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64285         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64286         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64287         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64288         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64289         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64290         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64291         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64292         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64293         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64294         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64295         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64296         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64297         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64298         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64299         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64300         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64301         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64302         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64303         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64304         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64305         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64306         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64307         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64308         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64309         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64310         Require >= 2.
64311         (FLT_ROUNDS): Expect as macro, not constant.
64312         (FLT_MANT_DIG): Use macro-int-constant.
64313         (DBL_MANT_DIG): Likewise.
64314         (LDBL_MANT_DIG): Likewise.
64315         (FLT_DIG): Likewise.
64316         (DBL_DIG): Likewise.
64317         (LDBL_DIG): Likewise.
64318         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64319         (DBL_MIN_EXP): Likewise.
64320         (LDBL_MIN_EXP): Likewise.
64321         (FLT_MAX_EXP): Use macro-int-constant.
64322         (DBL_MAX_EXP): Likewise.
64323         (LDBL_MAX_EXP): Likewise.
64324         (FLT_MAX_10_EXP): Likewise.
64325         (DBL_MAX_10_EXP): Likewise.
64326         (LDBL_MAX_10_EXP): Likewise.
64327         (FLT_MAX): Use macro-constant.
64328         (DBL_MAX): Likewise.
64329         (LDBL_MAX): Likewise.
64330         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64331         (DBL_EPSILON): Likewise.
64332         (LDBL_EPSILON): Likewise.
64333         (FLT_MIN): Likewise.
64334         (DBL_MIN): Likewise.
64335         (LDBL_MIN): Likewise.
64336         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64337         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64338         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64339         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64340         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64341         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64342         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64343         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64344         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64345         [ISO11] (FLT_TRUE_MIN): Likewise.
64346         [ISO11] (LDBL_TRUE_MIN): Likewise.
64347         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64348         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64349         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64350         (SCHAR_MAX): Likewise.
64351         (UCHAR_MAX): Likewise.
64352         (CHAR_MIN): Likewise.
64353         (CHAR_MAX): Likewise.
64354         (MB_LEN_MAX): Use macro-int-constant.
64355         (SHRT_MIN): Use macro-int-constant.  Specify type.
64356         (SHRT_MAX): Likewise.
64357         (USHRT_MAX): Likewise.
64358         (INT_MAX): Likewise.
64359         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64360         bound negative.
64361         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64362         bound with "U".
64363         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64364         bound with "L".
64365         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64366         bound negative.  Suffix upper bound with "L".
64367         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64368         bound with "UL".
64369         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64370         Specify type.
64371         [C99-based standards] (LLONG_MAX): Likewise.
64372         [C99-based standards] (ULLONG_MAX): Likewise.
64373         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64374         == 0.
64375         [ISO11] (max_align_t): Require type.
64376         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64377
64378         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64379         from $CFLAGS, without defining away __attribute__ calls.
64380         (checknamespace): Use $CFLAGS_namespace.
64381
64382         * conform/conformtest.pl (@keywords): Only include C99 keywords
64383         for standards based on C99 or C11.
64384
64385         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64386         Disable tests.
64387         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64388         UNIX98]: Likewise.
64389
64390         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64391         usability of symbols in #if.
64392
64393         * conform/conformtest.pl: If macro or constant types start
64394         "promoted:", expect the symbol to be of the following type
64395         promoted by the integer promotions.
64396
64397         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64398         in one place.  Also handle "macro-constant".
64399
64400         * conform/conformtest.pl: Only accept expected macro values with
64401         "==".  Parse all "macro" lines in one place.
64402         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64403
64404         * conform/conformtest.pl: Handle braced types on "constant" lines
64405         instead of handling "typed-constant".
64406         * conform/data/signal.h-data: Use "constant" instead of
64407         "typed-constant".
64408
64409         * conform/conformtest.pl: Handle "optional-" at start of lines in
64410         one place rather than duplicating several cases.  Handle each
64411         format of "macro" line with initial "optional-".
64412
64413         * conform/conformtest.pl: Only accept expected constant or
64414         optional-constant values with "==".  Parse all "constant" lines in
64415         one place.  Parse all "optional-constant" lines in one place.
64416         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64417         * conform/data/fmtmsg.h-data: Likewise.
64418         * conform/data/netinet/in.h-data: Likewise.
64419         * conform/data/tar.h-data: Likewise.
64420         * conform/data/limits.h-data: Use "==" form on "constant" and
64421         "optional-constant" lines.
64422
64423         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64424         Use -std=c99 for XOPEN2K.
64425         (@knownproblems): Remove.
64426         (newtoken): Don't check %isknown.
64427
64428         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64429         Do not expect macro.
64430         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64431         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64432         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64433         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64434         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64435         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64436         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64437         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64438         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64439         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64440         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64441         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64442         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64443         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64444         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64445         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64446         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64447         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64448         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64449         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64450         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64451         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64452         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64453         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64454         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64455         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64456         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64457         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64458         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64459         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64460         [XPG3] (acosh): Likewise.
64461         [XPG3] (asinh): Likewise.
64462         [XPG3] (atanh): Likewise.
64463         [XPG3] (cbrt): Likewise.
64464         [XPG3] (expm1): Likewise.
64465         [XPG3] (ilogb): Likewise.
64466         [XPG3] (log1p): Likewise.
64467         [XPG3] (logb): Likewise.
64468         [XPG3] (nextafter): Likewise.
64469         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64470         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64471         [XPG3] (remainder): Likewise.
64472         [XPG3] (rint): Likewise.
64473         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64474         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64475         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64476         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64477         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64478         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64479         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64480         [UNIX98 || XOPEN2K] (scalb): Expect.
64481         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64482         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64483         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64484         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64485         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64486         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64487         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64488         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64489         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64490         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64491         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64492         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64493         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64494         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64495         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64496         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64497         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64498         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64499         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64500         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64501         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64502         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64503         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64504         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64505         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64506         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64507         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64508         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64509         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64510         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64511         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64512         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64513         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64514         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64515         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64516         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64517         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64518         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64519         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64520         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64521         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64522         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64523         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64524         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64525         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64526         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64527         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64528         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64529         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64530         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64531         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64532         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64533         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64534         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64535         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64536         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64537         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64538         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64539         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64540         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64541         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64542         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64543         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64544         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64545         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64546         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64547         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64548         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64549         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64550         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64551         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64552         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64553         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64554         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64555         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64556         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64557         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64558         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64559         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64560         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64561         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64562         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64563         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64564         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64565         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64566         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64567         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64568         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64569         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64570         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64571         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64572         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64573         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64574         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64575         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64576         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64577         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64578         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64579         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64580         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64581         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64582         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64583         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64584         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64585         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64586         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64587         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64588         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64589         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64590         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64591         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64592         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64593         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64594         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64595         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64596         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64597         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64598         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64599         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64600         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64601         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64602         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64603         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64604         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64605         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64606         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64607         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64608         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64609         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64610         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64611         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64612         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64613         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64614         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64615         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64616         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64617         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64618
64619         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64620         _XOPEN_SOURCE_EXTENDED for XPG4.
64621
64622         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64623
64624         * Makeconfig (localtime): Remove variable.
64625         (inst_localtime-file): Likewise.
64626
64627 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64628
64629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64630         Update.
64631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64632         Update.
64633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64634         Update.
64635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64636         Update.
64637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64638         Update.
64639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64640         Update.
64641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64642         Update.
64643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64644         Update.
64645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64646         Update.
64647
64648 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64649
64650         [BZ #2550]
64651         [BZ #2570]
64652         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64653         comparisons to determine direction to adjust input.
64654         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64655         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64656         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64657         Likewise.
64658         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64659         Likewise.
64660         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64661         Likewise.
64662         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64663         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64664         Likewise.
64665         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64666         Likewise.
64667         * math/libm-test.inc (nexttoward_test): Add more tests.
64668
64669 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64670
64671         [BZ #14040]
64672         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64673         in version GLIBC_2.1, not GLIBC_2.0.
64674         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64675         Likewise.
64676
64677 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64678
64679         [BZ #13942]
64680         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64681         (1 - x) * (1 + x).
64682         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64683         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64684         * math/libm-test.inc (acos_test): Add more tests.
64685         (asin_test): Likewise.
64686         * sysdeps/i386/fpu/libm-test-ulps: Update.
64687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64688
64689         [BZ #14034]
64690         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64691         of square root.
64692         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64693         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64694         * math/libm-test.inc (acos_test_tonearest): New function.
64695         (acos_test_towardzero): Likewise.
64696         (acos_test_downward): Likewise.
64697         (acos_test_upward): Likewise.
64698         (asin_test_tonearest): Likewise.
64699         (asin_test_towardzero): Likewise.
64700         (asin_test_downward): Likewise.
64701         (asin_test_upward): Likewise.
64702         (main): Call the new functions.
64703         * sysdeps/i386/fpu/libm-test-ulps: Update.
64704         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64705
64706         [BZ #13884]
64707         [BZ #13924]
64708         * math/e_exp10.c: Include <float.h>.
64709         (__ieee754_exp10): Handle underflow here rather than multiplying
64710         large negative argument by M_LN10.
64711         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64712         of __ieee754_expf.
64713         * math/e_exp10l.c: Include <float.h>.
64714         (__ieee754_exp10l): Handle underflow here rather than multiplying
64715         large negative argument by M_LN10l.
64716         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64717         spurious overflow exception on underflow.
64718
64719 2012-04-29  Marek Polacek  <polacek@redhat.com>
64720
64721         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64722         (__fortify_function): New macro.
64723         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64724         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64725         __extern_always_inline.
64726         * libio/bits/stdio2.h: Likewise.
64727         * libio/bits/stdio.h: Likewise.
64728         * string/string.h: Likewise.
64729         * string/bits/string3.h: Likewise.
64730         * include/stdio.h: Likewise.
64731         * stdlib/bits/stdlib.h: Likewise.
64732         * stdlib/stdlib.h: Likewise.
64733         * rt/bits/mqueue2.h: Likewise.
64734         * rt/mqueue.h: Likewise.
64735         * posix/bits/unistd.h: Likewise.
64736         * posix/unistd.h: Likewise.
64737         * io/bits/poll2.h: Likewise.
64738         * io/bits/fcntl2.h: Likewise.
64739         * io/fcntl.h: Likewise.
64740         * io/sys/poll.h: Likewise.
64741         * misc/bits/syslog.h: Likewise.
64742         * misc/bits/syslog-ldbl.h: Likewise.
64743         * misc/sys/syslog.h: Likewise.
64744         * socket/bits/socket2.h: Likewise.
64745         * socket/sys/socket.h: Likewise.
64746         * debug/tst-chk1.c: Likewise.
64747         * wcsmbs/bits/wchar2.h: Likewise.
64748         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64749         * wcsmbs/wchar.h: Likewise.
64750
64751 2012-04-29  Andreas Jaeger  <aj@suse.de>
64752
64753         * Makerules (tests): Remove enable-check-abi protection.
64754         (check-abi-warn): Remove.
64755         (check-abi-%): Remove check-abi-warn usage.
64756
64757         * configure.in: Remove check-abi configure option.
64758         * configure: Regenerated.
64759         * config.make.in (enable-check-abi): Remove.
64760
64761 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64762
64763         [BZ #14033]
64764         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64765         double functions to double *_finite functions.
64766
64767         [BZ #13941]
64768         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64769         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64770         LDBL_MIN_EXP.
64771         * stdio-common/Makefile (tests): Add tst-sprintf3.
64772         * stdio-common/tst-sprintf3.c: New file.
64773
64774         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64775         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64776
64777 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64778
64779         * conform/conformtest.pl: Remove duplicate typed-constant
64780         handling.
64781
64782 2012-04-28  David S. Miller  <davem@davemloft.net>
64783
64784         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64785         (check-abi-%): Remove AWK script prerequisite and explicit
64786         abilist directory.
64787         (check-abi): Rewrite to just diff the symlist with the abilist.
64788         (config-tls, config-abi-config): Delete, no longer used.
64789         (update-abi-%): Remove AWK script and explicit abilist directory.
64790         (update-abi): Rewrite to simply compare and conditionally copy the
64791         symlist and the sysdep abilist file.  Remove update-abi-config
64792         checks.
64793         * abilist/ld.abilist: Remove.
64794         * abilist/libBrokenLocale.abilist: Remove.
64795         * abilist/libanl.abilist: Remove.
64796         * abilist/libcrypt.abilist: Remove.
64797         * abilist/libdl.abilist: Remove.
64798         * abilist/librt.abilist: Remove.
64799         * abilist/libthread_db.abilist: Remove.
64800         * abilist/libutil.abilist: Remove.
64801         * scripts/extract-abilist.awk: Remove.
64802         * scripts/merge-abilist.awk: Remove.
64803         * sysdeps/generic/libcidn.abilist: New file.
64804         * sysdeps/generic/libnss_compat.abilist: New file.
64805         * sysdeps/generic/libnss_db.abilist: New file.
64806         * sysdeps/generic/libnss_dns.abilist: New file.
64807         * sysdeps/generic/libnss_files.abilist: New file.
64808         * sysdeps/generic/libnss_hesiod.abilist: New file.
64809         * sysdeps/generic/libnss_nis.abilist: New file.
64810         * sysdeps/generic/libnss_nisplus.abilist: New file.
64811         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64812         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64813         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64814         file.
64815         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64816         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64817         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64818         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64819         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64820         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64821         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64822         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64823         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64824         file.
64825         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64826         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64827         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64828         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64829         file.
64830         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64831         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64832         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64833         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64834         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64835         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64836         file.
64837         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64838         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64839         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64840         file.
64841         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64842         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64843         New file.
64844         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64845         New file.
64846         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64847         New file.
64848         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64849         New file.
64850         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64851         New file.
64852         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64853         New file.
64854         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64855         New file.
64856         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64857         New file.
64858         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64859         New file.
64860         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64861         New file.
64862         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64863         New file.
64864         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64865         New file.
64866         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64867         New file.
64868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64869         file.
64870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64871         New file.
64872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64873         New file.
64874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64875         file.
64876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64877         New file.
64878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64879         New file.
64880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64881         file.
64882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64883         New file.
64884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64885         New file.
64886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64887         New file.
64888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64889         New file.
64890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64891         New file.
64892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64893         New file.
64894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64895         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64896         file.
64897         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64898         New file.
64899         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64900         file.
64901         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64902         file.
64903         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64904         file.
64905         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64906         file.
64907         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64908         file.
64909         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64910         New file.
64911         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64912         file.
64913         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64914         file.
64915         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64916         New file.
64917         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64918         file.
64919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64920         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64921         file.
64922         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64923         New file.
64924         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64925         file.
64926         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64927         file.
64928         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64929         file.
64930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64931         file.
64932         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64933         file.
64934         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64935         New file.
64936         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64937         file.
64938         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64939         file.
64940         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64941         New file.
64942         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64943         file.
64944         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64945         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64946         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64947         file.
64948         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64949         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64950         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64951         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64952         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64953         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64954         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64955         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64956         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64957         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64959         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64960         file.
64961         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64962         New file.
64963         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64964         file.
64965         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64966         file.
64967         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64968         file.
64969         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64970         file.
64971         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64972         file.
64973         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64974         New file.
64975         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64976         New file.
64977         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64978         file.
64979         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64980         New file.
64981         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64982         file.
64983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64984         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64985         file.
64986         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64987         New file.
64988         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64989         file.
64990         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64991         file.
64992         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64993         file.
64994         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64995         file.
64996         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64997         file.
64998         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64999         New file.
65000         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65001         New file.
65002         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65003         file.
65004         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65005         New file.
65006         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65007         file.
65008
65009 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65010
65011         * conform/conformtest.pl: Fix typo in handling typed-constant from
65012         allow-header.
65013
65014 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65015
65016         * README: Cut down references to pre-2.6 Linux kernels and
65017         Linuxthreads.  Update lists of configurations in libc and ports
65018         and sort alphabetically.  Say "or newer" with Linux kernel version
65019         requirements.
65020
65021         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65022
65023 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65024
65025         [BZ #887]
65026         * math/libm-test.inc (logb_test_downward): New test to expose
65027         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65028         rounding mode.
65029
65030 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65031
65032         [BZ #14027]
65033         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65034         to be done.
65035         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65036         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65037
65038 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65039
65040         * sysdeps/unix/i386/brk.S: Remove file.
65041         * sysdeps/unix/i386/dl-brk.S: Likewise.
65042         * sysdeps/unix/i386/pipe.S: Likewise.
65043         * sysdeps/unix/i386/sigreturn.S: Likewise.
65044         * sysdeps/unix/i386/syscall.S: Likewise.
65045         * sysdeps/unix/i386/vfork.S: Likewise.
65046         * sysdeps/unix/i386/wait.S: Likewise.
65047
65048         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65049         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65050
65051         * configure.in (arm*-none*): Do not allow without
65052         --enable-hacker-mode.
65053         (netbsd*): Remove case setting base_os.
65054         (386bsd*): Likewise.
65055         (freebsd*): Likewise.
65056         (bsdi*): Likewise.
65057         (osf*): Likewise.
65058         (sunos*): Likewise.
65059         (ultrix*): Likewise.
65060         (newsos*): Likewise.
65061         (dynix*): Likewise.
65062         (*bsd*): Likewise.
65063         (sysv*): Likewise.
65064         (isc*): Likewise.
65065         (esix*): Likewise.
65066         (sco*): Likewise.
65067         (minix*): Likewise.
65068         (irix4*): Likewise.
65069         (irix6*): Likewise.
65070         (solaris[2-9]*): Likewise.
65071         (none): Likewise.
65072         * configure: Regenerated.
65073
65074 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65075
65076         [BZ #11521]
65077         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65078         overflow or cancellation in calculating denominator.
65079         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65080         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65081         down expression to avoid unexpected rounding in newer GCCs.
65082         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65083
65084 2012-04-26  David S. Miller  <davem@davemloft.net>
65085
65086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65087         long-double compat symbols.
65088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65094         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65095         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65096         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65097         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65098         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65099         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65101
65102 2012-04-25  David S. Miller  <davem@davemloft.net>
65103
65104         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65105         HWCAP_* values only after the memory barriers have been defined.
65106         (atomic_full_barrier): Define.
65107         (atomic_read_barrier): Define.
65108         (atomic_write_barrier): Define.
65109
65110 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65111
65112         * shlib-versions: Add libgcc_s version information.
65113         * sysdeps/generic/libgcc_s.h: Remove.
65114         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65115         libgcc_s.h.
65116         * sysdeps/gnu/unwind-resume.c: Likewise.
65117         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65118
65119 2012-04-25  David S. Miller  <davem@davemloft.net>
65120
65121         * sysdeps/unix/sparc/brk.S: Delete.
65122         * sysdeps/unix/sparc/dl-brk.S: Delete.
65123         * sysdeps/unix/sparc/pipe.S: Delete.
65124         * sysdeps/unix/sparc/sysdep.S: Delete.
65125         * sysdeps/unix/sparc/sysdep.h: Delete.
65126         * sysdeps/unix/sparc/vfork.S: Delete.
65127         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65128         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65129         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65130         (ret_ERRVAL, r0, r1, MOVE): Define.
65131         (JUMPTARGET): Remove.
65132         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65133         sysdeps/unix/sparc/sysdep.h
65134         (ENTRY, END): Remove.
65135         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65136
65137 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65138
65139         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65140         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65141         -DIS_IN_build.
65142
65143         * timezone/README: Update upstream location and email address for
65144         tzcode and tzdata.
65145         * timezone/zdump.c: Update from tzcode 2012b.
65146         * timezone/zic.c: Likewise.
65147
65148         * configure.in (libc_cv_as_needed): Remove test.
65149         * configure: Regenerated.
65150         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65151         conditional definition.
65152         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65153         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65154         * config.make.in (have-as-needed): Remove variable.
65155
65156 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65157             Paul Pluzhnikov  <ppluzhnikov@google.com>
65158
65159         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65160         strings correctly.
65161
65162 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65163
65164         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65165         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65166         * sysdeps/sh/strlen.S: Likewise.
65167
65168 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65169
65170         * sysdeps/unix/fork.S: Remove file.
65171         * sysdeps/unix/i386/fork.S: Likewise.
65172         * sysdeps/unix/sparc/fork.S: Likewise.
65173
65174         * sysdeps/unix/system.c: Remove file.
65175         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65176
65177         * sysdeps/unix/getegid.S: Remove file.
65178         * sysdeps/unix/geteuid.S: Likewise.
65179
65180 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65181
65182         * scripts/check-localplt.awk: New file.
65183         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65184         of diff.
65185         * scripts/data/localplt-generic.data: Add a comment.
65186
65187         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65188         NODE when __dir_mkfile failed.
65189         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65190         Reported by Ludovic Courtès <ludo@gnu.org>.
65191
65192 2012-04-24  Andreas Jaeger  <aj@suse.de>
65193
65194         * Makerules (common-clean): Also remove gen-as-const-headers
65195         files.
65196
65197 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65198
65199         * Makerules (native-compile): Do not change working directory for
65200         build.  Use $(OUTPUT_OPTION) in command.
65201         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65202
65203 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65204
65205         [BZ #13886]
65206         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65207         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65208         * math/libm-test.inc (floor_test): Add more tests.
65209         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65210
65211 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65212
65213         * sysdeps/unix/getdents.c: Remove file.
65214         * sysdeps/unix/sysv/getdents.c: Likewise.
65215         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65216
65217         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65218         sysdeps/unix/mman/syscalls.list.
65219         (mmap): Likewise.
65220         (mprotect): Likewise.
65221         (msync): Likewise.
65222         (munmap): Likewise.
65223         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65224         * sysdeps/unix/mman/syscalls.list: Remove.
65225         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65226
65227         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65228         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65229         * configure: Regenerated.
65230         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65231         $(libgcc_s_suffix).
65232         * config.make.in (libgcc_s_suffix): Remove variable.
65233
65234 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65235
65236         * sysdeps/unix/sysv/gethostname.c: Move to ...
65237         * sysdeps/posix/gethostname.c: ... here.
65238
65239         * sysdeps/unix/execve.S: Remove file.
65240
65241         * sysdeps/unix/_exit.S: Remove file.
65242
65243 2012-04-23  Andreas Jaeger  <aj@suse.de>
65244
65245         [BZ #13739]
65246         * manual/Makefile: Remove make dist support, there's no
65247         need for a stand-alone documentation tar ball.
65248         (TEXI2DVI): Define always, it's not in Makeconfig.
65249         (dist): Removed.
65250         (tar-it): Removed.
65251         (edition): Removed.
65252         (glibc-doc-$(edition).tar): Removed
65253         (%.Z): Removed.
65254         (%.gz): Removed.
65255         (%.uu): Removed.
65256         (ETAGS): Remove, it's in Makeconfig.
65257         (move-if-change): Remove, it's in Makeconfig.
65258
65259 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         [BZ #13970]
65262         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65263         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65264         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65265         (strtod_l, strtof_l, strtold_l): Remove __wur.
65266         It is not necessarily an error to ignore strtol's return value.
65267         One can reliably look at the stored endptr to decide whether
65268         the number had valid syntax.
65269
65270 2012-04-21  Andreas Jaeger  <aj@suse.de>
65271
65272         [BZ #13739]
65273         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65274
65275 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65276
65277         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65278         * sysdeps/unix/sysv/Versions: Remove file.
65279
65280 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65281
65282         [BZ #13927]
65283         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65284
65285 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65286
65287         [BZ #7064]
65288         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65289         version from __vm86.
65290
65291 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65292
65293         * sysdeps/unix/common/lxstat.c: Remove file.
65294         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65295
65296         * sysdeps/unix/sysv/Makefile: Remove file.
65297
65298         * sysdeps/unix/sysv/direct.h: Remove file.
65299
65300         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65301         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65302         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65303         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65304         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65305         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65306         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65307
65308         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65309
65310         * sysdeps/unix/xmknod.c: Remove file.
65311         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65312
65313         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65314
65315         * sysdeps/unix/sysv/i386/time.S: Remove file.
65316
65317         * sysdeps/unix/fxstat.c: Remove file.
65318         * sysdeps/unix/xstat.c: Likewise.
65319         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65320
65321         * sysdeps/unix/sysv/sigaction.c: Remove file.
65322
65323         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65324         (sysdep_headers): Remove variable.
65325         [termio.h not in sysdep_headers] (generated): Likewise.
65326         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65327         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65328         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65329         * sysdeps/unix/sysv/tcflow.c: Likewise.
65330         * sysdeps/unix/sysv/tcflush.c: Likewise.
65331         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65332         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65333         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65334         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65335         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65336
65337         * sysdeps/unix/siglist.c: Remove file.
65338
65339         * sysdeps/unix/getppid.S: Remove file.
65340
65341         * sysdeps/unix/mkdir.c: Remove file.
65342         * sysdeps/unix/rmdir.c: Likewise.
65343
65344 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65345
65346         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65347         ERR_MAX value.
65348         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65349         errlist-compat value.
65350
65351 2012-04-18  David S. Miller  <davem@davemloft.net>
65352
65353         * sysdeps/generic/memcopy.h (reg_char): Delete.
65354         * debug/strcat_chk.c: Use char, not reg_char.
65355         * debug/strcpy_chk.c: Likewise.
65356         * debug/strncat_chk.c: Likewise.
65357         * debug/strncpy_chk.c: Likewise.
65358         * string/memchr.c: Likewise.
65359         * string/memrchr.c: Likewise.
65360         * string/rawmemchr.c: Likewise.
65361         * string/strcat.c: Likewise.
65362         * string/strchr.c: Likewise.
65363         * string/strchrnul.c: Likewise.
65364         * string/strcmp.c: Likewise.
65365         * string/strcpy.c: Likewise.
65366         * string/strncat.c: Likewise.
65367         * string/strncmp.c: Likewise.
65368         * string/strncpy.c: Likewise.
65369
65370 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65371
65372         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65373         __builtin_memcopy is called when src and dest ranges are known to not
65374         overlap.
65375
65376 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65377
65378         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65379         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65380         fwd_align_merge macro call.
65381         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65382         bwd_align_merge macro call.
65383         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65384
65385 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65386
65387         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65388         bwd_align_merge macros.
65389         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65390         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65391         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65392
65393 2012-04-18  David S. Miller  <davem@davemloft.net>
65394
65395         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65396
65397 2012-04-18  Andreas Jaeger  <aj@suse.de>
65398
65399         [BZ# 6794]
65400         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65401         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65402         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65403
65404         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65405         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65406         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65407
65408         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65409         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65410         Adjust for changed ldbl-128 files.
65411
65412         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65413         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65414         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65415
65416 2012-04-17  David S. Miller  <davem@davemloft.net>
65417
65418         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65419
65420 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65421
65422         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65423         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65424         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65425         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65426         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65427         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65428
65429 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65430
65431         [BZ #6794]
65432         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65433         * math/libm-test.inc: Add ilogb errno and exception tests.
65434         * math/w_ilogb.c: New file: ilogb wrapper.
65435         * math/w_ilogbf.c: New file: ilogbf wrapper.
65436         * math/w_ilogbl.c: New file: ilogbl wrapper.
65437         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65438         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65439         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65440         exception being thrown with 0.0 as argument.
65441         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65442         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65443         exception being thrown with 0.0 as argument.
65444         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65445         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65446         exception being thrown with 0.0 as argument.
65447         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65448         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65449         exception being thrown with 0.0 as argument.
65450         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65451         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65452         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65453         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65454         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65455         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65456         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65457         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65458         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65459
65460 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65461
65462         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65463         with altivec.
65464
65465 2012-04-16  Marek Polacek  <polacek@redhat.com>
65466
65467         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65468
65469 2012-04-16  Marek Polacek  <polacek@redhat.com>
65470
65471         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65472         operands of fdivp instruction.
65473
65474 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65475
65476         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65477         * elf/tst-auditmod3b.c: Likewise.
65478         * elf/tst-auditmod4b.c: Likewise.
65479         * elf/tst-auditmod5b.c: Likewise.
65480         * elf/tst-auditmod6b.c: Likewise.
65481         * elf/tst-auditmod6c.c: Likewise.
65482         * elf/tst-auditmod7b.c: Likewise.
65483         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65484         * sysdeps/x86_64/preconfigure.in: Likewise.
65485         * sysdeps/x86_64/preconfigure: Regenerated.
65486
65487 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65488
65489         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65490         __ILP32__.
65491
65492 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65493
65494         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65495         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65496
65497 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65498
65499         [BZ #13973]
65500         * locale/iso-639.def: Fix gl language name. Spotted by
65501         Yaron Shahrabani.
65502
65503 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65504
65505         [BZ #2074]
65506         * libio/libio.h (__io_write_fn): Update comment.
65507
65508 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65509
65510         [BZ #2074]
65511         * stdio.texi (Hook Functions): The user provided writer function
65512         is not allowed to return -1.
65513
65514 2012-04-11  David S. Miller  <davem@davemloft.net>
65515
65516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65517
65518 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65519
65520         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65521         Add a leading slash to rtkaio.
65522
65523 2012-04-11  Jim Meyering  <meyering@redhat.com>
65524
65525         [BZ #11959]
65526         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65527         It is not necessarily an error to ignore fwrite's return
65528         value.  One can reliably use ferror to test for errors after
65529         the fact.
65530
65531 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65532
65533         * bits/types.h (__snseconds_t): New type.
65534         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65535
65536         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65537         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65538         (__SNSECONDS_T_TYPE): Likewise.
65539         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65540         (__SNSECONDS_T_TYPE): Likewise.
65541         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65542         (__SNSECONDS_T_TYPE): Likewise.
65543
65544 2012-04-10  Andreas Jaeger  <aj@suse.de>
65545
65546         [BZ #2636]
65547         * manual/time.texi (Processor Time): Return type of times is
65548         elapsed real time since an arbitrary point in the past.
65549         (CPU Time): Move CLK_TCK from here...
65550         (Processor Time): ...to here.  Correct description.
65551         * manual/conf.texi (Constants for Sysconf): Correct description of
65552         _SC_CLK_TCK.
65553
65554 2012-04-10  David S. Miller  <davem@davemloft.net>
65555
65556         [BZ #13967]
65557         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65558         where the is a gap between DT_REL(A) and DT_JMPREL.
65559
65560 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65561
65562         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65563         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65564         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65565
65566 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65567
65568         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65569         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65570         (dl_main): Handle --inhibit-cache.
65571         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65572         _dl_inhibit_cache.
65573         * elf/dl-load.c (_dl_map_object): Use it.
65574         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65575
65576 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65577
65578         [BZ #13872]
65579         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65580         (__ieee754_powl): Saturate large exponents rather than testing for
65581         overflow of y*log2(x).
65582         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65583         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65584         exceptions.
65585
65586         [BZ #11521]
65587         * math/s_ctan.c: Include <float.h>.
65588         (__ctan): Avoid internal overflow or cancellation in calculating
65589         denominator.
65590         * math/s_ctanf.c: Likewise.
65591         * math/s_ctanl.c: Likewise.
65592         * math/s_ctanh.c: Likewise.
65593         * math/s_ctanhf.c: Likewise.
65594         * math/s_ctanhl.c: Likewise.
65595         * math/libm-test.inc (ctan_test): Add more tests.
65596         (ctanh_test): Likewise.
65597         * sysdeps/i386/fpu/libm-test-ulps: Update.
65598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65599
65600 2012-04-09  Andreas Jaeger  <aj@suse.de>
65601
65602         [BZ #6894]
65603         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65604         is an optional BSD extension.
65605
65606         [BZ #10254]
65607         * manual/stdio.texi (Opening Streams): Document additional fopen
65608         parameters.
65609
65610 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65611
65612         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65613         %eax without telling the compiler.
65614
65615 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65616
65617         [BZ # 13963]
65618         * manual/install.texi: Use sourceware.org.
65619
65620 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65621
65622         [BZ #13873]
65623         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65624         (__ieee754_pow): Generate overflow and underflow using huge*huge
65625         and tiny*tiny rather than just returning constant infinity or zero
65626         for large exponents.
65627         * math/libm-test.inc (pow_test): Require overflow exceptions for
65628         applicable cases of large exponents.
65629
65630         [BZ #706]
65631         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65632         (__ieee754_pow): Use iterative multiplication algorithm only for
65633         integer exponents with absolute value below 1024.  Check for odd
65634         integer exponents when using algorithm for real exponents.
65635         * math/libm-test.inc (pow_test): Add more tests.
65636         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65637
65638 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65639
65640         [BZ #13705]
65641         * math/libm-test.inc (exp_test): Do not allow overflow exception
65642         on underflow test.
65643
65644 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65645
65646         [BZ #13705]
65647         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65648         instead of __kernel_standard_f.
65649
65650 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65651
65652         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65653         * sysdeps/x86_64/memset_chk.S: Likewise.
65654
65655 2012-04-08  Andreas Jaeger  <aj@suse.de>
65656
65657         [BZ #10153]
65658         * manual/startup.texi (Environment Access): Describe return value
65659         for putenv and setenv.
65660
65661         [BZ #6895]
65662         * manual/filesys.texi (Directory Entries): Add description for
65663         DT_LNK.
65664
65665         [BZ #6890]
65666         * manual/filesys.texi (Directory Entries): Clarify that it's file
65667         system not operating system in the description of DT_UNKNOWN.
65668
65669         [BZ #6578]
65670         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65671
65672 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65673
65674         [BZ #6649]
65675         * manual/llio.texi (Opening and Closing Files): Add cross
65676         reference to explain mode argument.
65677
65678 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65679
65680         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65681         * sysdeps/x86_64/memset_chk.S: Likewise.
65682
65683 2012-04-07  David S. Miller  <davem@davemloft.net>
65684
65685         * elf/elf.h (R_SPARC_WDISP10): Define.
65686         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65687         R_SPARC_SIZE32.
65688         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65689         R_SPARC_SIZE64 and R_SPARC_H34.
65690
65691 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65692
65693         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65694         conditions and remove no longer applicable assertion.
65695
65696 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65697
65698         * bits/byteswap.h: Include <features.h>.
65699         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65700         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65701
65702 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65703
65704         * bits/byteswap.h (__bswap_16): Removed.
65705         Include <bits/byteswap-16.h> to get __bswap_16.
65706         * sysdeps/i386/bits/byteswap.h: Likewise.
65707         * sysdeps/s390/bits/byteswap.h: Likewise.
65708         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65709         * bits/byteswap-16.h: New file.
65710         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65711         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65712         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65713         * string/Makefile (headers): Add bits/byteswap-16.h.
65714
65715 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65716
65717         [BZ #13895]
65718         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65719         extra indirection.
65720         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65721         * nss/tst-nss-static.c: New.
65722
65723 2012-04-06  Robert Millan  <rmh@gnu.org>
65724
65725         [BZ #6486]
65726         * manual/llio.texi (File Position Primitive): lseek
65727         refers to WHENCE when it really means OFFSET.
65728
65729 2012-04-06  Andreas Jaeger  <aj@suse.de>
65730
65731         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65732         strncmp declarations.
65733
65734         * abilist/libc.abilist: Add __poll and __ppoll.
65735
65736 2012-04-05  David S. Miller  <davem@davemloft.net>
65737
65738         * scripts/check-local-headers.sh: Accept a host triplet in the
65739         path matched by the exclude regexp.
65740
65741         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65742         definition.
65743         * sysdeps/powerpc/powerpc32/dl-machine.h
65744         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65745         * sysdeps/s390/s390-32/dl-machine.h
65746         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65747         * sysdeps/sparc/sparc32/dl-machine.h
65748         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65749         * sysdeps/sparc/sparc64/dl-machine.h
65750         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65751
65752         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65753         lazy binding.
65754         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65755         undefined symbol errors.
65756
65757         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65758         DT_NEEDED entries.
65759
65760 2012-04-05  Michael Matz  <matz@suse.de>
65761
65762         [BZ #13592]
65763         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65764
65765 2012-04-05  Andreas Jaeger  <aj@suse.de>
65766
65767         [BZ #13908]
65768         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65769         comment.
65770
65771 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65772
65773         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65774         which ROUND is no valid rounding mode.
65775
65776 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65777
65778         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65779         read again.
65780         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65781
65782 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65783
65784         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65785         an exception using FPU order intentionally.
65786
65787 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65788
65789         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65790         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65791         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65792         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65793
65794 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65795
65796         [BZ #12340]
65797         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65798         EINVAL when BUFLEN is too smal.
65799
65800 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65801
65802         [BZ #13553]
65803         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65804         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65805
65806 2012-04-03  Andreas Jaeger  <aj@suse.de>
65807
65808         [BZ #13938]
65809         * manual/setjmp.texi (System V contexts): Fix sentence.
65810
65811         [BZ #13926]
65812         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65813         New macro for this case.
65814         [!__GNUC__] (__bswap_64): New inline function for this case.
65815         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65816         * bits/byteswap.h: Likewise.
65817         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65818         ull, guard with __GLIBC_HAVE_LONG_LONG.
65819
65820         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65821         __GLIBC_HAVE_LONG_LONG.
65822
65823         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65824         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65825
65826 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65827
65828         [BZ #13691]
65829         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65830         inptr and inend, rather than using last_ch.
65831
65832 2012-04-02  David S. Miller  <davem@davemloft.net>
65833
65834         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65835         * stdio-common/printf-parse.h (read_int): Change return type to
65836         'int', return -1 on INT_MAX overflow.
65837         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65838         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65839         overflows INT_MAX.  Check for overflow of in-format-string precision
65840         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65841         SIZE_MAX not INT_MAX for integer overflow test.
65842         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65843         skip the construct in the format string but do not record anything.
65844         * stdio-common/bug22.c: Adjust to test both width/prevision
65845         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65846         explicitly for proper errno values.
65847
65848 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65849
65850         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65851         CHAR_MAX.
65852         * string/test-strcmp.c [! WIDE]: Likewise.
65853         * time/tst-mktime2.c: Likewise for INT_MAX.
65854         * string/test-string.h: #include <sys/param.h> for MIN.
65855
65856         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65857         * sysdeps/i386/init-first.c (init): Likewise.
65858         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65859         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65860         * sysdeps/sh/init-first.c (init): Likewise.
65861
65862 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65863
65864         * po/ru.po: Update from translation team.
65865         * po/vi.po: Likewise.
65866
65867 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65868
65869         * resolv/nss_dns/dns-host.c: Merge copyright years.
65870
65871 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65872
65873         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65874         Optimize memcpy with prefetch if
65875         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65876         src, dst pointers have unequal 16 byte alignments.
65877
65878 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65879
65880         [BZ #13928]
65881         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65882         from a CNAME entry and return the minimum ttl for the query.
65883         (gaih_getanswer_slice): Likewise.
65884
65885 2012-03-30  Jeff Law  <law@redhat.com>
65886
65887         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65888         due to long keys.
65889         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65890         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65891
65892         * resolv/nss_dns/dns-host.c: Update copyright year.
65893
65894 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65895
65896         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65897         requests to save a system call.  Fix check that all bytes are sent.
65898
65899         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65900         comments for sendmmsg.
65901
65902 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65903
65904         [BZ #13691]
65905         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65906         with only 1 character between 0x0041 and 0x01b0.
65907         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65908         * wcsmbs/tst-mbsnrtowcs.c: New file.
65909
65910 2012-03-29  David S. Miller  <davem@davemloft.net>
65911
65912         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65913         small copies by hand.
65914
65915 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65916
65917         [BZ #13761]
65918         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65919         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65920         group memberships.
65921
65922 2012-03-28  David S. Miller  <davem@davemloft.net>
65923
65924         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65925         that branches into memcpy.
65926         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65927         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65928         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65929         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65930         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65931         bits.
65932         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65933         implementation too.
65934         * sysdeps/sparc/mempcpy.S: New file.
65935
65936         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65937         the IFUNC routine in the libc case.
65938         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65939
65940         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65941         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65942         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65943         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65944         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65945         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65946         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65947         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65948
65949         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65950         loop to 256 bytes instead of 64 bytes and fix test signedness.
65951
65952         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65953         * sysdeps/sparc/sparc32/Makefile: rather than here...
65954         * sysdeps/sparc/sparc64/Makefile: and here.
65955
65956 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65957
65958         * malloc/mallocbug.c: Avoid warnings about unused variables.
65959
65960 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65961
65962         [BZ #13760]
65963         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65964         in the right place. Discard and retry query if response is
65965         larger than input buffer size.
65966
65967 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65968
65969         [BZ #369]
65970         [BZ #2678]
65971         [BZ #3866]
65972         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65973         x for large integer exponent.
65974         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65975         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65976         sign of result as needed afterwards.
65977         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65978         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65979         result for underflowing pow the same as for overflow.
65980         (__kernel_standard_l): Handle powl overflow and underflow here
65981         rather than calling __kernel_standard.
65982         * math/libm-test.inc (pow_test): Add more tests.
65983
65984         [BZ #3868]
65985         [BZ #13879]
65986         [BZ #13910]
65987         [BZ #13911]
65988         [BZ #13912]
65989         [BZ #13913]
65990         [BZ #13915]
65991         [BZ #13916]
65992         [BZ #13917]
65993         [BZ #13918]
65994         [BZ #13919]
65995         [BZ #13920]
65996         [BZ #13921]
65997         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65998         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65999         (__kernel_standard_l): New function.
66000         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66001         __kernel_standard.
66002         * math/w_acosl.c (__acosl): Likewise.
66003         * math/w_asinl.c (__asinl): Likewise.
66004         * math/w_atan2l.c (__atan2l): Likewise.
66005         * math/w_atanhl.c (__atanhl): Likewise.
66006         * math/w_coshl.c (__coshl): Likewise.
66007         * math/w_exp10l.c (__exp10l): Likewise.
66008         * math/w_exp2l.c (__exp2l): Likewise.
66009         * math/w_fmodl.c (__fmodl): Likewise.
66010         * math/w_hypotl.c (__hypotl): Likewise.
66011         * math/w_j0l.c (__j0l, __y0l): Likewise.
66012         * math/w_j1l.c (__j1l, __y1l): Likewise.
66013         * math/w_jnl.c (__jnl, __ynl): Likewise.
66014         * math/w_lgammal.c (__lgammal): Likewise.
66015         * math/w_log10l.c (__log10l): Likewise.
66016         * math/w_log2l.c (__log2l): Likewise.
66017         * math/w_logl.c (__logl): Likewise.
66018         * math/w_powl.c (__powl): Likewise.
66019         * math/w_remainderl.c (__remainderl): Likewise.
66020         * math/w_scalbl.c (sysv_scalbl): Likewise.
66021         * math/w_sinhl.c (__sinhl): Likewise.
66022         * math/w_sqrtl.c (__sqrtl): Likewise.
66023         * math/w_tgammal.c (__tgammal): Likewise.
66024         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66025         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66026         * math/libm-test.inc (acos_test): Add more tests.
66027         (acosh_test): Likewise.
66028         (asin_test): Likewise.
66029         (atanh_test): Likewise.
66030         (exp_test): Likewise.
66031         (exp10_test): Likewise.
66032         (exp2_test): Likewise.
66033         (expm1_test): Likewise.
66034         (lgamma_test): Likewise.
66035         (log_test): Likewise.
66036         (log10_test): Likewise.
66037         (log1p_test): Likewise.
66038         (log2_test): Likewise.
66039         (pow_test): Do not allow some spurious overflow exceptions.
66040         (sqrt_test): Add more tests.
66041         (tgamma_test): Likewise.
66042         (y0_test): Likewise.
66043         (y1_test): Likewise.
66044         (yn_test): Likewise.
66045
66046 2012-03-27  Anton Blanchard  <anton@samba.org>
66047
66048         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66049         MAP_HUGETLB.
66050         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66051         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66052         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66053
66054 2012-03-27  David S. Miller  <davem@davemloft.net>
66055
66056         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66057
66058         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66059         have-as-vis3 check.
66060
66061 2012-03-27  Andreas Jaeger  <aj@suse.de>
66062
66063         * sysdeps/x86_64/elf/configure.in: Moved to ...
66064         * sysdeps/x86_64/configure.in: ... here.
66065         * sysdeps/x86_64/elf/start.S: Moved to ...
66066         * sysdeps/x86_64/start.S: ... here.
66067         * sysdeps/x86_64/elf/configure: Delete.
66068
66069         * sysdeps/x86_64/configure.in: Merge contents from
66070         sysdeps/i386/configure.in (without i686 check).
66071
66072         * sysdeps/i386/elf/Versions: Merge into ...
66073         * sysdeps/i386/Versions: ... this.
66074         * sysdeps/i386/elf/Versions: Delete file.
66075         * sysdeps/i386/elf/start.S: Moved to ...
66076         * sysdeps/i386/start.S: ...here.
66077         * sysdeps/i386/elf/configure.in: Merge into...
66078         * sysdeps/i386/configure.in: ...here.
66079         * sysdeps/i386/elf/configure.in: Delete file.
66080         * sysdeps/i386/elf/configure: Delete file.
66081
66082         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66083         * debug/backtracesyms.c: ... here.
66084         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66085         * debug/backtracesymsfd.c: ... here.
66086         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66087         * sysdeps/generic/ifunc-sel.h: ... here.
66088
66089         * sysdeps/unix/i386/start.c: Delete file.
66090         * sysdeps/unix/sparc/start.c: Delete file.
66091         * sysdeps/unix/start.c: Delete file.
66092
66093         * sysdeps/sh/elf/configure.in: Moved to ...
66094         * sysdeps/sh/configure.in: ... here.
66095         * sysdeps/sh/elf/start.S: Moved to ...
66096         * sysdeps/sh/start.S: ... here.
66097         * sysdeps/sh/elf/configure: Delete file.
66098
66099         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66100         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66101         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66102         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66103         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66104         * sysdeps/powerpc/powerpc64/start.S: here.
66105         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66106         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66107         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66108         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66109         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66110
66111         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66112         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66113         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66114         * sysdeps/powerpc/powerpc32/start.S: ... here.
66115         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66116         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66117         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66118
66119         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66120         * sysdeps/powerpc/ifunc-sel.h: ... here.
66121         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66122         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66123
66124         * sysdeps/sparc/elf/configure.in: Moved to ...
66125         * sysdeps/sparc/configure.in: ... here.
66126         * sysdeps/sparc/elf/configure: Delete file.
66127         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66128         * sysdeps/sparc/sparc32/start.S: ... here.
66129         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66130         * sysdeps/sparc/sparc64/start.S: ... here.
66131         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66132         * sysdeps/sparc/sparc32/Makefile: ... this.
66133         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66134         * sysdeps/sparc/sparc64/Makefile: ... this.
66135
66136         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66137         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66138         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66139         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66140         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66141         * sysdeps/s390/s390-32/setjmp.S: ... here.
66142         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66143         * sysdeps/s390/s390-32/configure.in: ... here.
66144         * sysdeps/s390/s390-32/elf/configure: Delete file.
66145         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66146         * sysdeps/s390/s390-32/start.S: ... here.
66147
66148         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66149         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66150         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66151         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66152         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66153         * sysdeps/s390/s390-64/setjmp.S: ... here.
66154         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66155         * sysdeps/s390/s390-64/configure.in: ... here
66156         * sysdeps/s390/s390-64/elf/configure: Delete file.
66157         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66158         * sysdeps/s390/s390-64/start.S: ... here.
66159         * sysdeps/s390/s390-64/elf/configure: Delete.
66160
66161         * configure.in: Remove support for elf directories in sysdeps.
66162
66163         * configure: Regenerated.
66164         * sysdeps/i386/configure: Regenerated.
66165         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66166         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66167         * sysdeps/s390/s390-32/configure: Regenerated.
66168         * sysdeps/s390/s390-64/configure: Regenerated.
66169         * sysdeps/sh/configure: Regenerated.
66170         * sysdeps/sparc/configure: Regenerated.
66171         * sysdeps/x86_64/configure: Regenerated.
66172
66173 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66174
66175         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66176
66177         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66178         denormal result into account.
66179
66180 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66181
66182         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66183         Reported by Allan McRae <allan@archlinux.org>.
66184
66185 2012-03-23  Jeff Law  <law@redhat.com>
66186
66187         * nss/getnssent.c (__nss_getent): Fix typo.
66188
66189 2012-03-23  David S. Miller  <davem@davemloft.net>
66190
66191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66192
66193 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66194
66195         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66196         to pad to uint64_t for each field.
66197         (dl_tls_index): Replace unsigned long with uint64_t.
66198
66199 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66200         Paul Pluzhnikov  <ppluzhnikov@google.com>
66201
66202         [BZ #6528]
66203         * grp/Makefile (otherlibs): Don't set it.
66204         * inet/Makefile (otherlibs): Likewise.
66205         * login/Makefile (otherlibs): Likewise.
66206         * nscd/Makefile (otherlibs): Likewise.
66207         * posix/Makefile (otherlibs): Likewise.
66208         * pwd/Makefile (otherlibs): Likewise.
66209         * rt/Makefile (otherlibs): Likewise.
66210         * sunrpc/Makefile (otherlibs): Likewise.
66211         * nss/Makefile (otherlibs): Likewise.
66212         Add libnss_files to routines and static-only-routines.
66213         ($(objpfx)getent): Remove rule.
66214         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66215         static-only-routines.
66216
66217 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66218
66219         [BZ #13892]
66220         * math/s_cexp.c: Include <float.h>.
66221         (__cexp): Handle exp result overflowing not necessarily
66222         overflowing both real and imaginary parts of result.
66223         * math/s_cexpf.c: Likewise.
66224         * math/s_cexpl.c: Likewise.
66225         * math/libm-test.inc (cexp_test): Add more tests.
66226         * sysdeps/i386/fpu/libm-test-ulps: Update.
66227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66228
66229 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66230
66231         * include/link.h (ELFW): New macro.
66232         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66233         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66234
66235 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66236
66237         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66238         with uint64_t.
66239
66240 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66241
66242         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66243         declaration.
66244         (struct La_x32_retval): Likewise.
66245
66246 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66247
66248         * sysdeps/x86_64/preconfigure.in: New file.
66249         * sysdeps/x86_64/preconfigure: New generated file.
66250
66251 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66252
66253         [BZ #13824]
66254         * math/e_exp2l.c: Include <float.h>.
66255         (__ieee754_exp2l): Handle overflow and underflow cases
66256         separately.  Only pass fractional part of argument to
66257         __ieee754_expl.
66258         * math/libm-test.inc (exp2_test): Add more tests.
66259
66260         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66261         negating x to take absolute value.
66262         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66263         Likewise.
66264         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66265         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66266         Likewise.
66267         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66268         computing low part if x was negated.
66269         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66270
66271 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66272
66273         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66274         la_x32_gnu_pltexit.
66275         (pltexit): Cast int_retval to ptrdiff_t.
66276         * elf/tst-auditmod3b.c: Likewise.
66277         * elf/tst-auditmod4b.c: Likewise.
66278         * elf/tst-auditmod5b.c: Likewise.
66279         * elf/tst-auditmod6b.c: Likewise.
66280         * elf/tst-auditmod6c.c: Likewise.
66281         * elf/tst-auditmod7b.c: Likewise.
66282
66283         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66284         and x32_gnu_pltexit.
66285
66286         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66287         __ELF_NATIVE_CLASS.
66288         (La_x32_regs): New macro.
66289         (La_x32_retval): Likewise.
66290         (la_x32_gnu_pltenter): New function prototype.
66291         (la_x32_gnu_pltexit): Likewise.
66292
66293 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66294
66295         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66296         exponent.
66297
66298         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66299
66300         * configure.in (libc_cv_cc_nofma): Check for option to disable
66301         generation of FMA instructions.
66302         * configure: Regenerate.
66303         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66304         * sysdeps/ieee754/dbl-64/Makefile: New file.
66305         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66306         Remove brandred-fma4.
66307         (CFLAGS-brandred-fma4.c): Remove.
66308         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66309         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66310         define.
66311         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66312         define.
66313
66314 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66315
66316         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66317         LLONG_MAX != LONG_MAX.
66318         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66319         (_fitoa_word): Likewise.
66320         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66321         LLONG_MAX != LONG_MAX.
66322         * stdio-common/_itowa.h: Include <_itoa.h>.
66323         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66324         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66325         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66326         only if not defined.
66327         (_ITOA_WORD_TYPE): Likewise.
66328         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66329         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66330
66331 2012-03-21  David S. Miller  <davem@davemloft.net>
66332
66333         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66334
66335 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66336
66337         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66338         of x86_64 when setting libc_cv_slibdir, libdir and
66339         libc_cv_localedir.
66340         * sysdeps/unix/sysv/linux/configure: Regenerated.
66341
66342 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66343
66344         * manual/lang.texi (Old Varargs): Remove section.
66345         (How Variadic): Update menu.
66346         (va_start): Do not mention varargs.h.
66347
66348 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66349             Joseph Myers  <joseph@codesourcery.com>
66350
66351         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66352         link test.
66353         * configure: Regenerated.
66354
66355 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66356
66357         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66358         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66359         conformtest.pl
66360
66361 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66362
66363         * NOTES: Remove.
66364         * Makefile (files-for-dist): Remove NOTES.
66365         (NOTES): Remove rule.
66366         * README: Don't refer to NOTES.
66367         * manual/creature.texi: Don't include macros.texi.
66368         * manual/intro.texi (creature.texi): Remove comment referring to
66369         NOTES.
66370
66371         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66372         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66373         * configure: Regenerated.
66374         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66375         LIBC_TRY_CC_OPTION.
66376         (libc_cv_as_i686): Likewise.
66377         (libc_cv_cc_avx): Likewise.
66378         (libc_cv_cc_sse2avx): Likewise.
66379         (libc_cv_cc_fma4): Likewise.
66380         (libc_cv_cc_novzeroupper): Likewise.
66381         * sysdeps/i386/configure: Regenerated.
66382
66383         [BZ #13883]
66384         * sysdeps/i386/fpu/s_cexp.S: Remove.
66385         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66386         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66387         * math/libm-test.inc (cexp_test): Add more tests.
66388         * sysdeps/i386/fpu/libm-test-ulps: Update.
66389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66390
66391 2012-03-21  Allan McRae  <allan@archlinux.org>
66392
66393         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66394
66395 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66396
66397         [BZ #13871]
66398         * math/w_exp2.c: Do not include <float.h>.
66399         (o_threshold, u_threshold): Remove.
66400         (__exp2): Calculate result before checking finiteness and calling
66401         __kernel_standard.
66402         * math/w_exp2f.c: Likewise.
66403         * math/w_exp2l.c: Likewise.
66404         * math/libm-test.inc (exp2_test): Require overflow exception for
66405         1e6 input.
66406
66407         [BZ #3866]
66408         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66409         range of signed 64-bit integers before using fistpll.  Remove
66410         checks for whether integers fit in mantissa bits.
66411         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66412         the range of signed 32-bit integers before using fistpl.  Remove
66413         checks for whether integers fit in mantissa bits.
66414         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66415         (__ieee754_powl): Test for y outside the range of signed 64-bit
66416         integers before using fistpll.  Reduce 64-bit values to 63-bit
66417         ones as needed.
66418         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66419         divide-by-zero is raised for zero to large negative powers.
66420         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66421         (__ieee754_powl): Test for y outside the range of signed 64-bit
66422         integers before using fistpll.  Reduce 64-bit values to 63-bit
66423         ones as needed.
66424         * math/libm-test.inc (pow_test): Add more tests.
66425
66426 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66427
66428         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66429         <stdio-common/_itoa.h>.
66430         * debug/segfault.c: Likewise.
66431         * elf/dl-cache.c: Likewise.
66432         * elf/dl-minimal.c: Likewise.
66433         * elf/dl-misc.c: Likewise.
66434         * elf/dl-sysdep.c: Likewise.
66435         * elf/dl-version.c: Likewise.
66436         * elf/rtld.c: Likewise.
66437         * hurd/hurdsock.c: Likewise.
66438         * hurd/lookup-retry.c: Likewise.
66439         * malloc/malloc.c: Likewise.
66440         * malloc/mtrace.c: Likewise.
66441         * nscd/nscd_getgr_r.c: Likewise.
66442         * nscd/nscd_getpw_r.c: Likewise.
66443         * nscd/nscd_getserv_r.c: Likewise.
66444         * posix/getopt_init.c: Likewise.
66445         * posix/wordexp.c: Likewise.
66446         * stdio-common/_itoa.c: Likewise.
66447         * stdio-common/printf_fphex.c: Likewise.
66448         * stdio-common/vfprintf.c: Likewise.
66449         * string/_strerror.c: Likewise.
66450         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66451         * sysdeps/i386/i686/hp-timing.h: Likewise.
66452         * sysdeps/mach/_strerror.c: Likewise.
66453         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66454         * sysdeps/mach/hurd/sethostid.c: Likewise.
66455         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66456         * sysdeps/mach/xpg-strerror.c: Likewise.
66457         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66458         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66459         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66460         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66461         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66462         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66463         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66464         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66465         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66466         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66467         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66468         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66469         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66470         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66471         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66472         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66473         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66474         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66475         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66476         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66477         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66478
66479         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66480
66481         * stdio-common/_itoa.h: Moved to ...
66482         * sysdeps/generic/_itoa.h: Here.
66483
66484         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66485
66486         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66487         instead of "_itoa.h" and "_itowa.h".
66488         * stdio-common/vfprintf.: Likewise.
66489
66490 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66491
66492         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66493         <bits/wordsize.h>.
66494         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66495         (__signbit): Likwise.
66496         (llrintf): Likwise.
66497         (llrint): Likwise.
66498
66499 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66500
66501         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66502         __WORDSIZE != 64.
66503
66504 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66505
66506         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66507         OVERFLOW_EXCEPTION_OK.
66508         * math/libm-test.inc ("Philosophy"): Update comment about
66509         exception testing.
66510         (OVERFLOW_EXCEPTION): Define.
66511         (OVERFLOW_EXCEPTION_OK): Likewise.
66512         (INVALID_EXCEPTION_OK): Renumber.
66513         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66514         (IGNORE_ZERO_INF_SIGN): Likewise.
66515         (test_exceptions): Handle FE_OVERFLOW.
66516         (exp10_test): Expect overflow exceptions.
66517         (exp2_test): Likewise.
66518         (expm1_test): Likewise.
66519         (nextafter_test): Likewise.
66520         (pow_test): Likewise.
66521         (scalbn_test): Likewise.
66522         (scalbln_test): Likewise.
66523
66524 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66525
66526         * sysdeps/x86_64/bits/atomic.h
66527         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66528         64bit integer.
66529         (atomic_exchange_acq): Likewise.
66530         (__arch_exchange_and_add_body): Likewise.
66531         (__arch_add_body): Likewise.
66532         (atomic_add_negative): Likewise.
66533         (atomic_add_zero): Likewise.
66534
66535 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66536
66537         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66538         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66539
66540 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66541
66542         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66543         Check __x86_64__ instead of __WORDSIZE.
66544
66545 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66546
66547         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66548
66549 2012-03-19  David S. Miller  <davem@davemloft.net>
66550
66551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66552
66553         * sysdeps/sparc/fpu/fenv_private.h: New file.
66554         * sysdeps/sparc/fpu/math_private.h: Use it.
66555         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66556         Remove.
66557         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66558         (libc_feholdexcept_setroundl): Remove.
66559         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66560         Remove.
66561         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66562         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66563
66564 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66565
66566         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66567         int64_t instead of long int.
66568         (INSERT_WORDS64): Likwise.
66569
66570 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66571
66572         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66573         _Unwind_GetCFA return to _Unwind_Ptr first.
66574
66575 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66576
66577         [BZ #13629]
66578         * math/s_clog.c: Include <float.h>.
66579         (__clog): Scale large or subnormal inputs.
66580         * math/s_clogf.c: Likewise.
66581         * math/s_clogl.c: Likewise.
66582         * math/s_clog10.c: Include <float.h>.
66583         (M_LOG10_2): Define.
66584         (__clog10): Scale large or subnormal inputs.
66585         * math/s_clog10f.c: Likewise.
66586         * math/s_clog10l.c: Likewise.
66587         * math/libm-test.inc (clog_test): Add more tests.
66588         (clog10_test): Likewise.
66589         * sysdeps/i386/fpu/libm-test-ulps: Update.
66590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66591
66592         [BZ #11451]
66593         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66594         x and y.
66595         * math/libm-test.inc (atan2_test): Add another test.
66596
66597         * Makerules (common-objdir-compile): Remove.
66598         * sysdeps/unix/Makefile (config-generated): Do not add
66599         $(unix-generated) to variable.
66600         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66601         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66602         Remove rule.
66603         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66604         Likewise.
66605         [generic bits/local_lim.h] (before-compile): Do not append to
66606         variable.
66607         [generic bits/local_lim.h] (common-generated): Likewise.
66608         [generic sys/param.h] (before-compile): Do not append to variable.
66609         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66610         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66611         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66612         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66613         include.
66614         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66615         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66616         [generic sys/param.h] ($(addprefix
66617         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66618         [generic sys/param.h] (common-generated): Do not append to
66619         variable.
66620         [generic sys/param.h] (sysdep_headers): Likewise.
66621         [generic bits/errno.h] (before-compile): Do not append to
66622         variable.
66623         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66624         rule.
66625         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66626         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66627         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66628         [generic bits/errno.h] (common-generated): Do not append to
66629         variable.
66630         [generic bits/ioctls.h] (before-compile): Do not append to
66631         variable.
66632         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66633         rule.
66634         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66635         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66636         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66637         rule.
66638         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66639         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66640         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66641         [generic bits/ioctls.h] (common-generated): Do not append to
66642         variable.
66643         [generic sys/syscall.h] (syscall.h): Remove variable.
66644         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66645         rule.
66646         [generic sys/syscall.h] (before-compile): Do not append to
66647         variable.
66648         [generic sys/syscall.h] (common-generated): Likewise.
66649         * sysdeps/unix/errnos-tmpl.c: Remove file.
66650         * sysdeps/unix/errnos.awk: Likewise.
66651         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66652         * sysdeps/unix/ioctls.awk: Likewise.
66653         * sysdeps/unix/mk-local_lim.c: Likewise.
66654         * sysdeps/unix/snarf-ioctls: Likewise.
66655
66656 2012-03-19  Richard Henderson  <rth@twiddle.net>
66657
66658         * sysdeps/i386/fpu/fenv_private.h: New file.
66659         * sysdeps/i386/fpu/math_private.h: Use it.
66660         (math_opt_barrier, math_force_eval): Remove.
66661         (libc_feholdexcept_setround_53bit): Remove.
66662         (libc_feupdateenv_53bit): Remove.
66663         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66664         (math_opt_barrier, math_force_eval): Remove.
66665         (libc_feholdexcept): Remove.
66666         (libc_feholdexcept_setround): Remove.
66667         (libc_fetestexcept, libc_fesetenv): Remove.
66668         (libc_feupdateenv_test): Remove.
66669         (libc_feupdateenv, libc_feholdsetround): Remove.
66670         (libc_feresetround): Remove.
66671
66672         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66673         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66674
66675         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66676         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66677         (libc_feupdateenv_testl): New.
66678         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66679         (libc_feupdateenv_testf): New.
66680         (libc_feupdateenv): Use libc_feupdateenv_test.
66681         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66682         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66683
66684         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66685         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66686         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66687         (libc_feresetround_noex): New.
66688         (libc_feresetround_noexf): New.
66689         (libc_feresetround_noexl): New.
66690         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66691         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66692         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66693         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66694         SET_RESTORE_ROUND.
66695         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66696         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66697         (__cos): Likewise.
66698         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66699         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66700         SET_RESTORE_ROUND_NOEX.
66701         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66702         SET_RESTORE_ROUND_NOEXF.
66703         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66704         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66705         (libc_feholdsetroundf): New.
66706         (libc_feresetround, libc_feresetroundf): New.
66707
66708         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66709         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66710         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66711
66712         * sysdeps/generic/math_private.h: Include <fenv.h>.
66713         (default_libc_feholdexcept): New.
66714         (default_libc_feholdexcept_setround): New.
66715         (default_libc_fesetenv, default_libc_feupdateenv): New.
66716         (libc_feholdexcept): Only define if undefined.
66717         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66718         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66719         (libc_feholdexcept_setroundl): Likewise.
66720         (libc_feholdexcept_setround_53bit): Likewise.
66721         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66722         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66723         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66724         (libc_feupdateenv_53bit): Likewise.
66725         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66726         (libc_feholdexcept): Convert from macro to inline function.
66727         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66728         (libc_fesetenv, libc_feupdateenv): Likewise.
66729
66730         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66731         not previously defined.
66732         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66733         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66734         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66735         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66736         * sysdeps/ieee754/flt-32/math_private.h: New file.
66737         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66738         math_private.h below SET_FLOAT_WORD.
66739         (__isnan, __isinf_ns, __finite): Remove.
66740         (__isnanf, __isinf_nsf, __finitef): Remove.
66741
66742 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66743
66744         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66745
66746 2012-03-17  David S. Miller  <davem@davemloft.net>
66747
66748         [BZ #6471]
66749         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66750         for 2.16.
66751
66752 2012-03-16  David S. Miller  <davem@davemloft.net>
66753
66754         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66755         warnings.
66756
66757         [BZ #6471]
66758         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66759         properly.
66760         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66761         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66762         sysdep_routines when subdir is sysvipc.
66763         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66764         __getshmlba helper.
66765
66766         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66767
66768 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66769
66770         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66771         [__LP64__].
66772
66773 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66774
66775         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66776         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66777         (__lround): Renamed to ...
66778         (__llround): This.  Replace long int with long long int.
66779         Define lround functions as aliases of llround functions.
66780         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66781
66782 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66783
66784         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66785         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66786         adresses to uintptr_t.  Replace "long int" and "unsigned long
66787         int" with "greg_t" on va_arg.
66788
66789 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66790
66791         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66792         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66793
66794         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66795         Move e_machine check before EI_CLASS check.  Handle x32
66796         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66797         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66798         SKIP_EM_IA_64 and include
66799         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66800
66801         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66802         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66803         (add_system_dir): New macro.
66804
66805         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66806         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66807
66808 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66809
66810         [BZ #2551]
66811         [BZ #2552]
66812         [BZ #2553]
66813         [BZ #2554]
66814         [BZ #2562]
66815         [BZ #2563]
66816         [BZ #2565]
66817         [BZ #2566]
66818         [BZ #2576]
66819         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66820         (y0): Likewise.
66821         * math/w_j0f.c (j0f): Likewise.
66822         (y0f): Likewise.
66823         * math/w_j0l.c (__j0l): Likewise.
66824         (__y0l): Likewise.
66825         * math/w_j1.c (j1): Likewise.
66826         (y1): Likewise.
66827         * math/w_j1f.c (j1f): Likewise.
66828         (y1f): Likewise.
66829         * math/w_j1l.c (__j1l): Likewise.
66830         (__y1l): Likewise.
66831         * math/w_jn.c (jn): Likewise.
66832         (yn): Likewise.
66833         * math/w_jnf.c (jnf): Likewise.
66834         (ynf): Likewise.
66835         * math/w_jnl.c (__jnl): Likewise.
66836         (__ynl): Likewise.
66837         * math/libm-test.inc (j0_test): Add more tests.
66838         (j1_test): Likewise.
66839         (jn_test): Likewise.  Add trailing semicolon to existing test.
66840         (y0_test): Likewise.
66841         (y1_test): Likewise.
66842         * sysdeps/i386/fpu/libm-test-ulps: Update.
66843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66844
66845         [BZ #13851]
66846         [BZ #13854]
66847         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66848         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66849         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66850         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66851         (__tanl): Set errno for infinite argument.
66852         * sysdeps/i386/fpu/mptan.c: Remove.
66853         * sysdeps/i386/fpu/s_tan.S: Likewise.
66854         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66855         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66856         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66857         * math/libm-test.inc (tan_test): Add more tests and enable more
66858         tests for double and long double.
66859         * sysdeps/i386/fpu/libm-test-ulps: Update.
66860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66861
66862 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66863
66864         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66865         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66866
66867 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66868
66869         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66870         * configure.in: Use it for both main tree and add-ons.
66871         * configure: Regenerated.
66872
66873 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66874
66875         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66876
66877 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66878
66879         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66880         in comment.
66881
66882         [BZ #13851]
66883         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66884         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66885         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66886         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66887         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66888         infinite argument.
66889         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66890         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66891         != 0 for prec == 2.
66892         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66893         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66894         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66895         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66896         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66897         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66898         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66899         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66900         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66901         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66902         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66903         * math/libm-test.inc (cos_test): Add more tests and enable more
66904         tests for long double.
66905         (sin_test): Likewise.
66906         (sincos_test): Likewise.
66907         * sysdeps/i386/fpu/libm-test-ulps: Update.
66908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66909
66910 2012-03-16  David S. Miller  <davem@davemloft.net>
66911
66912         * sysdeps/sparc/fpu/math_private.h: New file.
66913
66914 2012-03-15  David S. Miller  <davem@davemloft.net>
66915
66916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66917         file.
66918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66920         file.
66921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66922         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66923         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66924         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66925         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66926         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66927         sysdep routines.
66928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66929
66930         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66931         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66932
66933         * sysdeps/sparc/sparc-ifunc.h: New file.
66934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66935         sparc-ifunc.h
66936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66938         Likewise.
66939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66940         Likewise.
66941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66945         Likewise.
66946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66951         Likewise.
66952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66953         Likewise.
66954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66958         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66959         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66960         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66961         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66962         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66963         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66964         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66965         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66966         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66967         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66968         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66969         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66970         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66971         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66972         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66973         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66974         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66975         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66976         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66977         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66978
66979 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66980
66981         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66982         scaling.
66983         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66984
66985 2012-03-15  Andreas Jaeger  <aj@suse.de>
66986
66987         [BZ #13852]
66988         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66989         ieee754/flt-32 implementation for sin, cos and sincos.
66990         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66991         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66992         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66993         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66994         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66995         ieee754/flt-32 implementation for tan.
66996
66997         * math/libm-test.inc (cos_test): Enable some large input tests for
66998         float as well
66999         (sin_test): Likewise.
67000         (sincos_test): Likewise.
67001         (tan_test): Add tests for large input.
67002
67003         * sysdeps/i386/fpu/libm-test-ulps: Update.
67004
67005 2012-03-15  Andreas Jaeger  <aj@suse.de>
67006
67007         [BZ #13658]
67008         * math/libm-test.inc (cos_test): Add more test cases.
67009         (sin_test): Likewise.
67010         (sincos_test): Likewise.
67011
67012 2012-03-15  Andreas Jaeger  <aj@suse.de>
67013
67014         [BZ #13837]
67015         * math/libm-test.inc (cos_test): Add a test case for large input
67016         value.
67017         (sin_test): Likewise.
67018         (sincos_test): Likewise.
67019
67020 2012-03-15  Andreas Jaeger  <aj@suse.de>
67021             Joseph Myers  <joseph@codesourcery.com>
67022
67023         [BZ #13658]
67024         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67025         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67026         * sysdeps/i386/fpu/branred.c: Likewise.
67027         * sysdeps/i386/fpu/dosincos.c: Likewise.
67028         * sysdeps/i386/fpu/mpa.c: Likewise.
67029         * sysdeps/i386/fpu/s_cos.S: Likewise.
67030         * sysdeps/i386/fpu/s_sin.S: Likewise.
67031         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67032         * sysdeps/i386/fpu/sincos32.c: Likewise.
67033
67034         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67035         Define.
67036         (libc_feupdateenv_53bit): Define.
67037         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67038         Define.
67039         (libc_feupdateenv_53bit): Define.
67040
67041         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67042         53 bit (without extend i386 double precision).
67043
67044         * math/libm-test.inc (sincos_test): Add tests for large input.
67045         (sin): Likewise.
67046         (cos): Likewise.
67047
67048         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67049
67050 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67051
67052         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67053
67054 2012-03-15  David S. Miller  <davem@davemloft.net>
67055
67056         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67057         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67058         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67059         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67063         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67066         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67067         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67068         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67069         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67070         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67072         file.
67073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67075         file.
67076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67078         file.
67079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67081         file.
67082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67083         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67084         fmin/fmax sysdep routines.
67085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67086
67087 2012-03-14  David S. Miller  <davem@davemloft.net>
67088
67089         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67090         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67091         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67092         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67093         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67094         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67095         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67096         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67097         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67098         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67099         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67100         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67101         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67102         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67103         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67104         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67105         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67106         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67107         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67108         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67109         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67110         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67111         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67112         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67113         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67114         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67115         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67116         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67117         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67118         routines.
67119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67120         file.
67121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67123         file.
67124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67126         file.
67127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67129         file.
67130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67132         file.
67133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67135         file.
67136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67137         file.
67138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67139         file.
67140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67141         file.
67142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67143         New file.
67144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67145         file.
67146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67147         file.
67148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67150         file.
67151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67153         file.
67154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67156         file.
67157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67159         VIS3 routines.
67160
67161         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67162         New file.
67163
67164         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67165
67166         * sysdeps/sparc/configure.in: New file.
67167         * sysdeps/sparc/configure: Generate.
67168         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67169         * configure: Regenerate.
67170         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67171         * config.make.in (have-as-vis3): New.
67172         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67173         available use -Av9d instead of -Av9a.
67174         * sysdeps/sparc/sparc64/Makefile: Likewise.
67175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67177         New file.
67178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67179         file.
67180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67181         New file.
67182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67183         file.
67184         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67185         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67186         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67187         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67188         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67189
67190         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67191         fzeros/fnegs to load 0x80000000 into a float register instead of
67192         using the stack.
67193         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67194
67195 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67196
67197         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67198         bits/syscall.h.
67199         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67200         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67201         ($(inst_includedir)/bits/syscall.h): Remove rule.
67202         ($(objpfx)bits/syscall.d): Include instead of
67203         $(objpfx)syscall-list.d.
67204         (generated): Change syscall-list.h and syscall-list.d to
67205         bits/syscall.h and bits/syscall.d.
67206
67207 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67208
67209         [BZ #13846]
67210         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67211
67212 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67213
67214         [BZ #13841]
67215         * math/s_csqrt.c: Include <float.h>.
67216         (__csqrt): Scale large or subnormal inputs.
67217         * math/s_csqrtf.c: Likewise.
67218         * math/s_csqrtl.c: Likewise.
67219         * math/libm-test.inc (csqrt_test): Add more tests.
67220         * sysdeps/i386/fpu/libm-test-ulps: Update.
67221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67222
67223         [BZ #13840]
67224         * math/libm-test.inc (hypot_test): Add more tests.
67225
67226 2012-03-13  David S. Miller  <davem@davemloft.net>
67227
67228         [BZ #13840]
67229         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67230         double-precision for the calculation instead of scaling.
67231
67232 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67233
67234         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67235         manipulate bits before adding and subtracting TWO52[sx].
67236         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67237         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67238         Likewise.
67239         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67240
67241 2012-03-13  David S. Miller  <davem@davemloft.net>
67242
67243         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67244         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67245         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67246         rtld-global-offsets.h
67247         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67248
67249         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67250         large parameters.
67251
67252         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67253
67254         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67255         'err' in the ifdef scope in which it is actually used.
67256
67257         * nss/nss_db/db-init.c: Include string.h
67258
67259 2012-03-12  David S. Miller  <davem@davemloft.net>
67260
67261         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67262         masking out of the most significant byte of random value used.
67263         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67264         Fix coding style in previous change.
67265
67266         * sysdeps/unix/sysv/linux/kernel-features.h
67267         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67268         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67269         expression.
67270         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67271         later.
67272
67273 2012-03-11  David S. Miller  <davem@davemloft.net>
67274
67275         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67276         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67277         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67278         for 'resultvar' otherwise things get truncated on 64-bit.
67279
67280         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67281         Fix masking out of the most significant byte of random value used.
67282
67283         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67284
67285 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67286
67287         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67288
67289 2012-03-09  David S. Miller  <davem@davemloft.net>
67290
67291         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67292         variables with appropriate CPP guards.
67293         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67294         from the frame pointer, not the stack pointer.  Correct layout
67295         comments.  Fix test on resulting framesize and the management of
67296         the outregs buffer for pltexit.  Preserve floating point return
67297         values across _dl_call_pltexit call.
67298         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67299         framesize and the management of the outregs buffer for pltexit.
67300         Preserve floating point return values across _dl_call_pltexit
67301         call.
67302         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67303         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67304         (la_sparc64_gnu_pltexit): New functions.
67305         (print_exit): Fix format string for return register value.
67306
67307 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67308
67309         * sunrpc/Makefile (others): Add rpcgen.
67310         ($(objpfx)rpcgen): Remove special build rule and dependency on
67311         libc.
67312         * sunrpc/rpcgen.c: New file.
67313
67314 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         [BZ #13673]
67317         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67318         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67319         * sysdeps/i386/crti.S: Likewise.
67320         * sysdeps/i386/crtn.S: Likewise.
67321         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67322         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67323         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67324         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67325         * sysdeps/sh/crti.S: Likewise.
67326         * sysdeps/sh/crtn.S: Likewise.
67327         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67328
67329         [BZ #13673]
67330         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67331         with URL.
67332         * locale/programs/locfile-kw.gperf: Likewise.
67333         * locale/programs/charmap-kw.h: Regenerated.
67334         * locale/programs/locfile-kw.h: Likewise.
67335
67336         [BZ #13673]
67337         * intl/plural.y: Replace FSF snail mail address with URL.
67338         * intl/plural.c: Regenerated.
67339
67340 2012-03-09  Richard Henderson  <rth@twiddle.net>
67341
67342         * include/math_private.h: Remove file.
67343         * math/math_private.h: Move file ...
67344         * sysdeps/generic/math_private.h: ... here.
67345
67346         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67347         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67348         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67349
67350         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67351         and <math_private.h>.
67352         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67353         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67354         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67355         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67356         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67357         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67358         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67359         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67360         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67361         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67362         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67363         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67364         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67365         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67366         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67367         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67368         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67369         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67370         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67371         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67372         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67373         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67374         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67375         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67376         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67377         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67378         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67379         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67380         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67381         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67382         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67383         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67384         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67385         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67386         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67387         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67388         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67389         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67390         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67391         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67392         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67393         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67394         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67395         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67396         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67397         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67398         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67399         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67400         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67401         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67402         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67403         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67404         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67405         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67406         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67407         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67408         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67409         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67410         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67411         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67412         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67413         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67414         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67415         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67416         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67417         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67418         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67419         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67420         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67421         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67422         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67423         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67424         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67425         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67426         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67427         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67428         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67429         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67430         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67431         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67432         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67433         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67434         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67435         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67436         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67437         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67438         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67439         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67440         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67441         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67442         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67443         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67444         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67445         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67446         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67447         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67448         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67449         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67450         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67451         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67452         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67453         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67454         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67455         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67456         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67457         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67458         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67459         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67460         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67461         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67462         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67463         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67464         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67465         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67466         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67467         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67468         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67469         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67470         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67471         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67472         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67473         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67474         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67475         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67476         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67477         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67478         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67479         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67480         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67481         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67482         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67483         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67484         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67485         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67486         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67487         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67488         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67489         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67490         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67491         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67492         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67493         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67494         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67495         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67496         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67497         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67498         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67499         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67500         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67501         * sysdeps/ieee754/k_standard.c: Likewise.
67502         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67503         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67504         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67505         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67506         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67507         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67508         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67509         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67510         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67511         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67512         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67513         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67514         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67515         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67516         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67517         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67518         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67519         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67520         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67521         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67522         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67523         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67524         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67525         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67526         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67527         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67528         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67529         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67530         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67531         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67532         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67533         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67534         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67535         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67536         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67537         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67538         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67539         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67540         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67541         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67542         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67543         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67544         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67545         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67546         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67547         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67548         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67549         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67550         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67551         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67552         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67553         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67554         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67555         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67556         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67557         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67558         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67559         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67560         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67561         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67562         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67563         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67564         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67565         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67566         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67567         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67568         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67569         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67570         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67571         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67572         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67573         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67574         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67575         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67576         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67577         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67578         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67579         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67580         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67581         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67582         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67583         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67584         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67585         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67586         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67587         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67588         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67589         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67590         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67591         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67592         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67593         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67594         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67595         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67596         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67597         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67598         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67599         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67600         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67601         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67602         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67603         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67604         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67605         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67606         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67607         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67608         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67609         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67610         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67611         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67612         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67613         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67614         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67615         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67616         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67617         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67618         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67619         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67620         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67621         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67622         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67623         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67624         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67625         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67626         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67627         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67628         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67629         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67630         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67631         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67632         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67633         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67634         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67635         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67636         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67637         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67638         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67639         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67640         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67641         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67642         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67643         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67644         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67645         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67646         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67647         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67648         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67649         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67650         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67651         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67652         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67653         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67654         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67655         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67656         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67657         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67658         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67659         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67660         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67661         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67662         * sysdeps/ieee754/s_lib_version.c: Likewise.
67663         * sysdeps/ieee754/s_matherr.c: Likewise.
67664         * sysdeps/ieee754/s_signgam.c: Likewise.
67665         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67666         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67667         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67668         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67669         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67670         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67671         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67672         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67673         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67674         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67675         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67676         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67677         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67678         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67679         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67680         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67681         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67682         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67683         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67684         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67685         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67686
67687 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67688
67689         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67690         * sunrpc/rpc_main.c: Likewise.
67691         * sunrpc/rpc_svcout.c: Likewise.
67692
67693 2012-03-09  David S. Miller  <davem@davemloft.net>
67694
67695         * include/math_private.h: New file.
67696
67697 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67698
67699         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67700         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67701         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67702         from <bits/socket_type.h>.
67703         (enum __socket_type): Don't define here.
67704         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67705         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67706         bits/socket_type.h.
67707
67708         [BZ #13566]
67709         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67710         checking __USE_GNU.
67711
67712         * Makerules ($(inst_includedir)/%.h): New rule.
67713         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67714         (install-others): Remove variable setting.
67715         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67716
67717 2012-03-08  Richard Henderson  <rth@twiddle.net>
67718
67719         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67720         from macro to inline function; merge with the
67721         !__LIBC_INTERNAL_MATH_INLINES version.
67722         (__ieee754_sqrtf): Likewise.
67723
67724         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67725         to inline function.
67726         (__rintf, __floor, __floorf): Likewise.
67727
67728         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67729         macro to inline function.
67730         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67731
67732         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67733         not <math/math_private.h>.
67734
67735 2012-03-08  David S. Miller  <davem@davemloft.net>
67736
67737         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67738         copyright year.
67739         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67740
67741 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67742
67743         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67744         normalization.
67745         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67746         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67747
67748 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67749
67750         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67751         be defined individually, they must be defined as a block.  Define
67752         S for printing a string instead of hidint the different by using a
67753         macro for adding the 'l'.
67754         * stdio-common/tst-fphex-wide.c: Adjust.
67755
67756 2012-03-07  Marek Polacek  <polacek@redhat.com>
67757
67758         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67759
67760 2012-03-08  Marek Polacek  <polacek@redhat.com>
67761
67762         [BZ #13806]
67763         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67764         * stdio-common/tst-fphex.c: Define a few macros to make the
67765         test reusable.  Use them.
67766         * stdio-common/tst-fphex-wide.c: New file.
67767
67768 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67769
67770         [BZ #6911]
67771         * manual/macros.texi (gnusystems): New macro.
67772         (nongnusystems): Likewise.
67773         (gnulinuxhurdsystems): Likewise.
67774         (gnuhurdsystems): Likewise..
67775         (gnulinuxsystems): Likewise.
67776         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67777         variants of the GNU system, not "GNU system".
67778         * manual/conf.texi: Likewise.
67779         * manual/errno.texi: Likewise.  Update example of errno macro
67780         expansion.
67781         * manual/filesys.texi: Likewise.
67782         (getumask): Document as specific to GNU/Hurd.
67783         * manual/install.texi: Likewise.  Reword some references to
67784         GNU/Linux.
67785         * manual/intro.texi: Likewise.
67786         * manual/io.texi: Likewise.
67787         (File Name Portability): Detail which constraints are inapplicable
67788         to all GNU systems and which are only inapplicable to GNU/Hurd.
67789         * manual/job.texi: Likewise.
67790         * manual/llio.texi: Likewise.
67791         (O_NOCTTY): Document as present on GNU/Linux.
67792         * manual/maint.texi: Likewise.
67793         * manual/memory.texi: Likewise.
67794         * manual/pattern.texi: Likewise.
67795         * manual/pipe.texi: Likewise.
67796         * manual/process.texi: Likewise.
67797         * manual/resource.texi: Likewise.
67798         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67799         child on GNU/Hurd.
67800         * manual/setjmp.texi: Likewise.
67801         * manual/signal.texi: Likewise.
67802         * manual/startup.texi: Likewise.
67803         * manual/stdio.texi: Likewise.
67804         * manual/terminal.texi: Likewise.
67805         (ONLCR): Document as POSIX.
67806         (OXTABS): Document availability on GNU/Linux as XTABS.
67807         (ONOEOT): Document availability separately from other bits.
67808         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67809         * manual/time.texi: Likewise.
67810         * manual/users.texi: Likewise.
67811         * INSTALL: Regenerated.
67812         * sysdeps/gnu/errlist.c: Regenerated.
67813
67814         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67815         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67816         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67817         puts.
67818         * configure: Regenerated.
67819
67820 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67821
67822         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67823         default includes instead of AC_HEADER_CHECK.
67824         * sysdeps/i386/configure: Regenerated.
67825
67826         [BZ #10716]
67827         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67828         * math/s_cacoshf.c (__cacoshf): Likewise.
67829         * math/s_cacoshl.c (__cacoshl): Likewise.
67830         * math/s_casinh.c (__casinh): Set signs of result from argument.
67831         * math/s_casinhf.c (__casinhf): Likewise.
67832         * math/s_casinhl.c (__casinhl): Likewise.
67833         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67834         (casinh_test): Add more tests.
67835         * sysdeps/i386/fpu/libm-test-ulps: Update.
67836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67837
67838 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67839
67840         * po/zh_TW.po: Update from translation team.
67841
67842         * login/Makefile (distribute): Remove variable.
67843         * catgets/Makefile: Likewise.
67844         * mach/Makefile: Likewise.
67845         * malloc/Makefile: Likewise.
67846         * misc/Makefile: Likewise.
67847         * iconv/Makefile: Likewise.
67848         * nscd/Makefile: Likewise.
67849         * hurd/Makefile: Likewise.
67850         * manual/Makefile: Likewise.
67851         * locale/Makefile: Likewise.
67852         * intl/Makefile: Likewise.
67853         * conform/Makefile: Likewise.
67854         * nss/Makefile: Likewise.
67855         * time/Makefile: Likewise.
67856         * soft-fp/Makefile: Likewise.
67857         * dirent/Makefile: Likewise.
67858         * gmon/Makefile: Likewise.
67859         * po/Makefile: Likewise.
67860         * rt/Makefile: Likewise.
67861         * socket/Makefile: Likewise.
67862         * math/Makefile: Likewise.
67863         * signal/Makefile: Likewise.
67864         * debug/Makefile: Likewise.
67865         * elf/Makefile: Likewise.
67866         * timezone/Makefile: Likewise.
67867         * stdlib/Makefile: Likewise.
67868         * iconvdata/Makefile: Likewise.
67869         * sunrpc/Makefile: Likewise.
67870         * io/Makefile: Likewise.
67871         * argp/Makefile: Likewise.
67872         * inet/Makefile: Likewise.
67873         * hesiod/Makefile: Likewise.
67874         * grp/Makefile: Likewise.
67875         * csu/Makefile: Likewise.
67876         * wctype/Makefile: Likewise.
67877         * crypt/Makefile: Likewise.
67878         * libio/Makefile: Likewise.
67879         * string/Makefile: Likewise.
67880         * nis/Makefile: Likewise.
67881         * resolv/Makefile: Likewise.
67882         * stdio-common/Makefile: Likewise.
67883         * wcsmbs/Makefile: Likewise.
67884         * dlfcn/Makefile: Likewise.
67885         * posix/Makefile: Likewise.
67886
67887         [BZ #6959]
67888         * timezone/Makefile: Don't install timezone files, just the programs
67889         and scripts.
67890
67891 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67892
67893         * nss/databases.def: Add missing gshadow entry.
67894
67895         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67896
67897 2012-03-06  Marek Polacek  <polacek@redhat.com>
67898
67899         [BZ #13726]
67900         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67901         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67902         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67903         * stdio-common/tst-long-dbl-fphex.c: New file.
67904
67905 2012-03-06  David S. Miller  <davem@davemloft.net>
67906
67907         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67908         (set_obp_int): New function.
67909         (get_obp_int): New function.
67910         (__get_clockfreq_via_dev_openprom): Likewise.
67911         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67912         Avoid unused variable warnings on 'val' and use builtin_expect.
67913         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67914         __builtin_expect.
67915         (INLINE_CLONE_SYSCALL): Likewise.
67916
67917 2012-03-05  David S. Miller  <davem@davemloft.net>
67918
67919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67920
67921 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67922
67923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67924
67925         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67926         only for |x| >= 40.
67927         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67928
67929 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67930
67931         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67932         Replace gettimeofday with __vdso_gettimeofday.
67933
67934         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67935         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67936         __vdso_clock_gettime and __vdso_getcpu.
67937
67938         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67939         time with __vdso_time.
67940
67941 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67942
67943         * manual/lang.texi (size_t): Note types to which size_t may be
67944         equivalent with the GNU C Library, but do not describe when
67945         differences between them are significant.
67946
67947 2012-03-05  Andreas Jaeger  <aj@suse.de>
67948
67949         * sysdeps/i386/fpu/libm-test-ulps: Update.
67950
67951 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67952
67953         [BZ #3976]
67954         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67955         (__ieee754_pow): Save and restore rounding mode and use
67956         round-to-nearest for main computations.
67957         * math/libm-test.inc (pow_test_tonearest): New function.
67958         (pow_test_towardzero): Likewise.
67959         (pow_test_downward): Likewise.
67960         (pow_test_upward): Likewise.
67961         (main): Call the new functions.
67962         * sysdeps/i386/fpu/libm-test-ulps: Update.
67963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67964
67965         [BZ #3976]
67966         * math/libm-test.inc (cosh_test_tonearest): New function.
67967         (cosh_test_towardzero): Likewise.
67968         (cosh_test_downward): Likewise.
67969         (cosh_test_upward): Likewise.
67970         (sinh_test_tonearest): Likewise.
67971         (sinh_test_towardzero): Likewise.
67972         (sinh_test_downward): Likewise.
67973         (sinh_test_upward): Likewise.
67974         (main): Call the new functions.
67975         * sysdeps/i386/fpu/libm-test-ulps: Update.
67976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67977
67978 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67979
67980         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67981         default stack guard is set in last bytes.
67982         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67983
67984 2012-03-05  Kees Cook  <keescook@chromium.org>
67985
67986         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67987
67988         [BZ #13656]
67989         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67990         possibly allocate from heap instead of stack.
67991         * stdio-common/bug-vfprintf-nargs.c: New file.
67992         * stdio-common/Makefile (tests): Add nargs overflow test.
67993
67994 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67995
67996         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67997
67998 2012-03-03  Marek Polacek  <polacek@redhat.com>
67999
68000         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68001         * math/math_private.h: Likewise.
68002         * stdlib/tst-strtod.c: Likewise.
68003         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68004         * sysdeps/x86_64/bits/atomic.h: Likewise.
68005
68006 2012-03-02  David S. Miller  <davem@davemloft.net>
68007
68008         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68012         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68013         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68014         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68015         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68016
68017 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68018
68019         [BZ #13792]
68020         * manual/examples/README: New file, says the example source files
68021         can be used under GPL>=2.
68022         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68023         line containing just "*/".
68024         * manual/examples/add.c: Add copyright header (GPL>=2).
68025         * manual/examples/argp-ex1.c: Likewise.
68026         * manual/examples/argp-ex2.c: Likewise.
68027         * manual/examples/argp-ex3.c: Likewise.
68028         * manual/examples/argp-ex4.c: Likewise.
68029         * manual/examples/atexit.c: Likewise.
68030         * manual/examples/db.c: Likewise.
68031         * manual/examples/dir.c: Likewise.
68032         * manual/examples/dir2.c: Likewise.
68033         * manual/examples/execinfo.c: Likewise.
68034         * manual/examples/filecli.c: Likewise.
68035         * manual/examples/filesrv.c: Likewise.
68036         * manual/examples/fmtmsgexpl.c: Likewise.
68037         * manual/examples/genpass.c: Likewise.
68038         * manual/examples/inetcli.c: Likewise.
68039         * manual/examples/inetsrv.c: Likewise.
68040         * manual/examples/isockad.c: Likewise.
68041         * manual/examples/longopt.c: Likewise.
68042         * manual/examples/memopen.c: Likewise.
68043         * manual/examples/memstrm.c: Likewise.
68044         * manual/examples/mkfsock.c: Likewise.
68045         * manual/examples/mkisock.c: Likewise.
68046         * manual/examples/mygetpass.c: Likewise.
68047         * manual/examples/pipe.c: Likewise.
68048         * manual/examples/popen.c: Likewise.
68049         * manual/examples/rprintf.c: Likewise.
68050         * manual/examples/search.c: Likewise.
68051         * manual/examples/select.c: Likewise.
68052         * manual/examples/setjmp.c: Likewise.
68053         * manual/examples/sigh1.c: Likewise.
68054         * manual/examples/sigusr.c: Likewise.
68055         * manual/examples/stpcpy.c: Likewise.
68056         * manual/examples/strdupa.c: Likewise.
68057         * manual/examples/strftim.c: Likewise.
68058         * manual/examples/strncat.c: Likewise.
68059         * manual/examples/subopt.c: Likewise.
68060         * manual/examples/swapcontext.c: Likewise.
68061         * manual/examples/termios.c: Likewise.
68062         * manual/examples/testopt.c: Likewise.
68063         * manual/examples/testpass.c: Likewise.
68064         * manual/examples/timeval_subtract.c: Likewise.
68065
68066         [BZ #13792]
68067         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68068         function to ...
68069         * manual/timeval_subtract.c.texi: ... here, new file.
68070
68071 2012-03-02  David S. Miller  <davem@davemloft.net>
68072
68073         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68074
68075 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68076
68077         [BZ #3976]
68078         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68079         (__sin): Save and restore rounding mode and use round-to-nearest
68080         for all computations.
68081         (__cos): Save and restore rounding mode and use round-to-nearest
68082         for all computations.
68083         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68084         <fenv.h>.
68085         (tan): Save and restore rounding mode and use round-to-nearest for
68086         all computations.
68087         * math/libm-test.inc (cos_test_tonearest): New function.
68088         (cos_test_towardzero): Likewise.
68089         (cos_test_downward): Likewise.
68090         (cos_test_upward): Likewise.
68091         (sin_test_tonearest): Likewise.
68092         (sin_test_towardzero): Likewise.
68093         (sin_test_downward): Likewise.
68094         (sin_test_upward): Likewise.
68095         (tan_test_tonearest): Likewise.
68096         (tan_test_towardzero): Likewise.
68097         (tan_test_downward): Likewise.
68098         (tan_test_upward): Likewise.
68099         (main): Call the new functions.
68100         * sysdeps/i386/fpu/libm-test-ulps: Update.
68101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68102
68103         [BZ #10135]
68104         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68105         small n, then large n, before computing and testing k+n.
68106         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68107         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68108         Likewise.
68109         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68110         Likewise.
68111         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68112         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68113         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68114         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68115         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68116         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68117         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68118         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68119         * math/libm-test.inc (scalbn_test): Add more tests.
68120         (scalbln_test): Likewise.
68121
68122         * manual/filesys.texi (mode_t): Describe constraints on size and
68123         signedness, not exact equivalence to a particular type.
68124         (ino_t): Likewise.
68125         (ino64_t): Likewise.
68126         (dev_t): Likewise.
68127         (nlink_t): Likewise.
68128         (blkcnt_t): Likewise.
68129         (blkcnt64_t): Likewise.
68130         * manual/llio.texi (off_t): Likewise.
68131
68132         [BZ #3976]
68133         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68134         (__ieee754_exp): Save and restore rounding mode and use
68135         round-to-nearest for all computations.
68136         * math/libm-test.inc (exp_test_tonearest): New function.
68137         (exp_test_towardzero): Likewise.
68138         (exp_test_downward): Likewise.
68139         (exp_test_upward): Likewise.
68140         (main): Call the new functions.
68141         * sysdeps/i386/fpu/libm-test-ulps: Update.
68142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68143
68144 2012-03-01  Chris Demetriou  <cgd@google.com>
68145
68146         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68147         have predictable order.
68148
68149 2012-03-01  David S. Miller  <davem@davemloft.net>
68150
68151         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68152
68153         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68154         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68155         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68156         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68157
68158         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68159         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68160         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68161         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68162         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68163         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68164         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68165         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68166         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68167
68168         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68169
68170         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68171         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68172         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68173
68174         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68175         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68176         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68177         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68178         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68179         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68180         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68181         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68182         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68183         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68184         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68185         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68186         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68187         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68188         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68189         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68190         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68191         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68192         * sysdeps/sparc/elf/configure: Regenerated.
68193
68194 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68195
68196         * configure.in (AS, LD): Require binutils 2.20 or later.
68197         * configure: Regenerated.
68198         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68199         as required minimum version.
68200         * INSTALL: Regenerated.
68201
68202         [BZ #2541]
68203         [BZ #4108]
68204         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68205         before squaring exponent.
68206         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68207         bottom long double and 27 bits of top long double before squaring
68208         exponent.
68209         * math/libm-test.inc (erfc_test): Add more tests.
68210         * sysdeps/i386/fpu/libm-test-ulps: Update.
68211         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68213
68214 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68215
68216         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68217         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68218         containing bit-fields.
68219         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68220         * soft-fp/single.h (_FP_UNION_S): Likewise.
68221         * soft-fp/double.h (_FP_UNION_D): Likewise.
68222
68223 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68224
68225         [BZ #13786]
68226         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68227         not include ../strcmp.S.
68228         [USE_AS_STRNCASECMP_L]: Likewise.
68229         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68230         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68231         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68232         (__strncasecmp_l_ia32): Define as alias to
68233         __strncasecmp_l_nonascii.
68234
68235         [BZ #5794]
68236         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68237         * sysdeps/i386/fpu/libm-test-ulps: Update.
68238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68239
68240         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68242
68243 2012-02-29  Jeff Law  <law@redhat.com>
68244
68245         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68246         out of bounds read.
68247
68248 2012-02-29  Marek Polacek  <polacek@redhat.com>
68249
68250         [BZ #13706]
68251         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68252         * elf/Makefile: Add rules to run tst-unused-dep.out.
68253
68254 2012-02-28  David S. Miller  <davem@davemloft.net>
68255
68256         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68257         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68258         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68259         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68260         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68261         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68262
68263 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68264
68265         * math/libm-test.inc (llround_test): Move one test from
68266         lround_test.  Use TEST_f_L in moved test.
68267         (lround_test): Move misplaced test to llround_test.  Add testcase
68268         from bug 2561.
68269
68270 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68271
68272         * sysdeps/x86_64/fpu/e_expf.S: New file.
68273         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68274
68275 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68276
68277         [BZ #13637]
68278         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68279         of remain_len that may cause incomplete multi-byte character and
68280         false match.
68281         * posix/bug-regex33.c: New file.
68282         * posix/Makefile (tests): Add bug-regex33.
68283
68284 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68285
68286         * manual/macros.texi: New file.
68287         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68288         * manual/libc.texinfo: Include macros.texi.
68289         * manual/creatute.texi: Likewise.
68290         * manual/install.texi: Likewise.
68291         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68292         @glibcadj{} in references to the GNU C Library.
68293         * manual/charset.texi: Likewise.
68294         * manual/conf.texi: Likewise.
68295         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68296         when not using those macros.
68297         * manual/creature.texi: Likewise.
68298         * manual/crypt.texi: Likewise.
68299         * manual/errno.texi: Likewise.
68300         * manual/filesys.texi: Likewise.
68301         * manual/header.texi: Likewise.
68302         * manual/install.texi: Likewise.
68303         * manual/intro.texi: Likewise.
68304         * manual/io.texi: Likewise.
68305         * manual/job.texi: Likewise.
68306         * manual/lang.texi: Likewise.
68307         * manual/libc.texiinfo: Likewise.
68308         * manual/llio.texi: Likewise.
68309         * manual/locale.texi: Likewise.
68310         * manual/maint.texi: Likewise.
68311         * manual/math.texi: Likewise.
68312         * manual/memory.texi: Likewise.
68313         * manual/message.texi: Likewise.
68314         * manual/nss.texi: Likewise.
68315         * manual/pattern.texi: Likewise.
68316         * manual/process.texi: Likewise.
68317         * manual/resource.texi: Likewise.
68318         * manual/search.texi: Likewise.
68319         * manual/setjmp.texi: Likewise.
68320         * manual/signal.texi: Likewise.
68321         * manual/socket.texi: Likewise.
68322         * manual/startup.texi: Likewise.
68323         * manual/stdio.texi: Likewise.
68324         * manual/string.texi: Likewise.
68325         * manual/sysinfo.texi: Likewise.
68326         * manual/syslog.texi: Likewise.
68327         * manual/terminal.texi: Likewise.
68328         * manual/time.texi: Likewise.
68329         * manual/users.texi: Likewise.
68330         * INSTALL: Regenerated.
68331         * NOTES: Regenerated.
68332         * sysdeps/gnu/errlist.c: Regenerated.
68333
68334 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68335
68336         * include/dirent.h: Include <dirstream.h> before
68337         <dirent/dirent.h>.
68338
68339 2012-02-28  David S. Miller  <davem@davemloft.net>
68340
68341         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68342         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68343         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68344         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68345
68346 2012-02-27  David S. Miller  <davem@davemloft.net>
68347
68348         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68349         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68350         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68351         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68352
68353         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68354         frame pointer instead of stack pointer relative arg slot.
68355         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68356         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68357         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68358
68359 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68360
68361         [BZ #3992]
68362         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68363
68364 2012-02-27  David S. Miller  <davem@davemloft.net>
68365
68366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68367         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68368         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68369         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68370         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68371         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68372         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68373         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68374
68375 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68376
68377         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68378         later.  Allow versions 5-9.
68379         * configure: Regenerated.
68380         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68381         required minimum version and 4.6 as recommended version.  Do not
68382         mention bugs in GCC 2.7 and 2.8.
68383         * INSTALL: Regenerated.
68384
68385 2012-02-27  David S. Miller  <davem@davemloft.net>
68386
68387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68391         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68392         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68393         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68394         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68395
68396         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68397         manipulate bits before adding and subtracting TWO112[sx].
68398         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68399
68400 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68401
68402         [BZ #13775]
68403         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68404         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68405         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68406         being in POSIX, because they are in 1003.1-2008.
68407
68408         * rt/tst-aio.c: Include <fcntl.h>.
68409         * rt/tst-aio7.c: Likewise.
68410         * rt/tst-aio64.c: Likewise.
68411
68412         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68413
68414 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68415
68416         * manual/install.texi (--with-headers): Describe headers as
68417         interface headers, not private headers.
68418         (Specific advice for GNU/Linux systems): Describe use of headers
68419         from "make headers_install", not private headers from older
68420         kernels.
68421         * INSTALL: Regenerated.
68422         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68423         Change to 2.6.19.
68424         * sysdeps/unix/sysv/linux/configure: Regenerated.
68425
68426         * manual/llio.texi (fclean): Remove documentation.
68427
68428         * manual/Makefile (libc-texi-generated): New variable.  Include
68429         version.texi.
68430         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68431         $(libc-texi-generated), not duplicated list of files.
68432         (version.texi, stamp-version): New rules.
68433         (realclean): Remove $(libc-texi-generated), not individual files
68434         from that list.  Do not remove dir-add.texinfo.
68435         * manual/libc.texinfo: Comment out uses of edition numbers and
68436         references to printed manual.  Remove last-updated dates.
68437         (EDITION): Comment out.
68438         (ISBN): Likewise.
68439         (VERSION, UPDATED): Remove.
68440         (version.texi): Include.
68441
68442 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68443
68444         * sysdeps/posix/spawni.c: Include <signal.h>.
68445         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68446         * sysdeps/pthread/aio_fsync.c: Likewise.
68447
68448 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68449
68450         * conform/Makefile (tests): Run only when not cross-compiling and
68451         when fast-check is not defined.
68452
68453         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68454         * conform/data/limits.h-data: Fixes for POSIX2008.
68455         * conform/run-conformtest.sh: Run all tests.
68456         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68457         headers.
68458         * include/bits/dlfcn.h: Likewise.
68459         * include/langinfo.h: Likewise.
68460         * include/monetary.h: Likewise.
68461         * include/sys/poll.h: Likewise.
68462
68463         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68464         for __USE_GNU.
68465         * posix/spawn.h: Define __need_sigset_t.
68466         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68467         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68468         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68469         to get sigevent_t only.
68470         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68471         only for __USE_GNU.
68472         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68473         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68474         process_vm_writev only for __USE_GNU.
68475         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68476
68477         * conform/Makefile: For now ignore errors from run-conformtest.
68478         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68479         POSIX to avoid namespace pollution.  Don't prepend headers.
68480         * conform/data/aio.h-data: Fixes for POSIX testing.
68481         * conform/data/fcntl.h-data: Likewise.
68482         * conform/data/glob.h-data: Likewise.
68483         * conform/data/grp.h-data: Likewise.
68484         * conform/data/pthread.h-data: Likewise.
68485         * conform/data/pwd.h-data: Likewise.
68486         * conform/data/signal.h-data: Likewise.
68487         * conform/data/spawn.h-data: Likewise.
68488         * conform/data/stdio.h-data: Likewise.
68489         * conform/data/stdlib.h-data: Likewise.
68490         * conform/data/stropts.h-data: Likewise.
68491         * conform/data/sys/mman.h-data: Likewise.
68492         * conform/data/sys/stat.h-data: Likewise.
68493         * conform/data/sys/types.h-data: Likewise.
68494         * conform/data/sys/wait.h-data: Likewise.
68495         * conform/data/time.h-data: Likewise.
68496         * conform/data/unistd.h-data: Likewise.
68497         * conform/data/utime.h-data: Likewise.
68498
68499         * io/sys/stat.h: fchmod was always in POSIX.
68500         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68501         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68502         * rt/aio.h: Define __need_timespec before including <time.h>.
68503         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68504         struct.  Add forward declaration of pthread_attr_t and use it in
68505         sigevent.
68506         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68507         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68508         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68509         always remove CLK_TCK definition.
68510
68511 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68512
68513         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68514
68515 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68516
68517         * conform/run-conformtest.sh: New file.
68518         * conform/Makefile: Run run-conformtest for tests.
68519         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68520         support.
68521
68522         * conform/data/uchar.h-data: New file.
68523         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68524         * conform/data/arpa/inet.h-data: Likewise.
68525         * conform/data/assert.h-data: Likewise.
68526         * conform/data/complex.h-data: Likewise.
68527         * conform/data/cpio.h-data: Likewise.
68528         * conform/data/ctype.h-data: Likewise.
68529         * conform/data/dirent.h-data: Likewise.
68530         * conform/data/dlfcn.h-data: Likewise.
68531         * conform/data/errno.h-data: Likewise.
68532         * conform/data/fcntl.h-data: Likewise.
68533         * conform/data/float.h-data: Likewise.
68534         * conform/data/fmtmsg.h-data: Likewise.
68535         * conform/data/fnmatch.h-data: Likewise.
68536         * conform/data/ftw.h-data: Likewise.
68537         * conform/data/glob.h-data: Likewise.
68538         * conform/data/grp.h-data: Likewise.
68539         * conform/data/iconv.h-data: Likewise.
68540         * conform/data/inttypes.h-data: Likewise.
68541         * conform/data/langinfo.h-data: Likewise.
68542         * conform/data/libgen.h-data: Likewise.
68543         * conform/data/limits.h-data: Likewise.
68544         * conform/data/locale.h-data: Likewise.
68545         * conform/data/math.h-data: Likewise.
68546         * conform/data/monetary.h-data: Likewise.
68547         * conform/data/mqueue.h-data: Likewise.
68548         * conform/data/ndbm.h-data: Likewise.
68549         * conform/data/net/if.h-data: Likewise.
68550         * conform/data/netdb.h-data: Likewise.
68551         * conform/data/netinet/in.h-data: Likewise.
68552         * conform/data/nl_types.h-data: Likewise.
68553         * conform/data/poll.h-data: Likewise.
68554         * conform/data/pthread.h-data: Likewise.
68555         * conform/data/pwd.h-data: Likewise.
68556         * conform/data/regex.h-data: Likewise.
68557         * conform/data/sched.h-data: Likewise.
68558         * conform/data/search.h-data: Likewise.
68559         * conform/data/semaphore.h-data: Likewise.
68560         * conform/data/setjmp.h-data: Likewise.
68561         * conform/data/signal.h-data: Likewise.
68562         * conform/data/spawn.h-data: Likewise.
68563         * conform/data/stdarg.h-data: Likewise.
68564         * conform/data/stdio.h-data: Likewise.
68565         * conform/data/stdlib.h-data: Likewise.
68566         * conform/data/string.h-data: Likewise.
68567         * conform/data/strings.h-data: Likewise.
68568         * conform/data/stropts.h-data: Likewise.
68569         * conform/data/sys/ipc.h-data: Likewise.
68570         * conform/data/sys/mman.h-data: Likewise.
68571         * conform/data/sys/msg.h-data: Likewise.
68572         * conform/data/sys/resource.h-data: Likewise.
68573         * conform/data/sys/select.h-data: Likewise.
68574         * conform/data/sys/sem.h-data: Likewise.
68575         * conform/data/sys/shm.h-data: Likewise.
68576         * conform/data/sys/socket.h-data: Likewise.
68577         * conform/data/sys/stat.h-data: Likewise.
68578         * conform/data/sys/statvfs.h-data: Likewise.
68579         * conform/data/sys/time.h-data: Likewise.
68580         * conform/data/sys/timeb.h-data: Likewise.
68581         * conform/data/sys/times.h-data: Likewise.
68582         * conform/data/sys/types.h-data: Likewise.
68583         * conform/data/sys/uio.h-data: Likewise.
68584         * conform/data/sys/un.h-data: Likewise.
68585         * conform/data/sys/utsname.h-data: Likewise.
68586         * conform/data/sys/wait.h-data: Likewise.
68587         * conform/data/syslog.h-data: Likewise.
68588         * conform/data/tar.h-data: Likewise.
68589         * conform/data/termios.h-data: Likewise.
68590         * conform/data/utime.h-data: Likewise.
68591         * conform/data/utmpx.h-data: Likewise.
68592         * conform/data/varargs.h-data: Likewise.
68593         * conform/data/wchar.h-data: Likewise.
68594         * conform/data/wctype.h-data: Likewise.
68595         * conform/data/wordexp.h-data: Likewise.
68596
68597         * include/stropts.h: New file.
68598         * include/uchar.h: New file.
68599         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68600         * include/assert.h: Likewise.
68601         * include/ctype.h: Likewise.
68602         * include/dirent.h: Likewise.
68603         * include/dlfcn.h: Likewise.
68604         * include/fcntl.h: Likewise.
68605         * include/fnmatch.h: Likewise.
68606         * include/glob.h: Likewise.
68607         * include/grp.h: Likewise.
68608         * include/libio.h: Likewise.
68609         * include/locale.h: Likewise.
68610         * include/math.h: Likewise.
68611         * include/net/if.h: Likewise.
68612         * include/netdb.h: Likewise.
68613         * include/netinet/in.h: Likewise.
68614         * include/pthread.h: Likewise.
68615         * include/pwd.h: Likewise.
68616         * include/regex.h: Likewise.
68617         * include/sched.h: Likewise.
68618         * include/search.h: Likewise.
68619         * include/setjmp.h: Likewise.
68620         * include/signal.h: Likewise.
68621         * include/stdio.h: Likewise.
68622         * include/stdlib.h: Likewise.
68623         * include/string.h: Likewise.
68624         * include/sys/cdefs.h: Likewise.
68625         * include/sys/mman.h: Likewise.
68626         * include/sys/msg.h: Likewise.
68627         * include/sys/resource.h: Likewise.
68628         * include/sys/select.h: Likewise.
68629         * include/sys/socket.h: Likewise.
68630         * include/sys/stat.h: Likewise.
68631         * include/sys/statvfs.h: Likewise.
68632         * include/sys/time.h: Likewise.
68633         * include/sys/times.h: Likewise.
68634         * include/sys/uio.h: Likewise.
68635         * include/sys/utsname.h: Likewise.
68636         * include/sys/wait.h: Likewise.
68637         * include/termios.h: Likewise.
68638         * include/time.h: Likewise.
68639         * include/ulimit.h: Likewise.
68640         * include/unistd.h: Likewise.
68641         * include/utime.h: Likewise.
68642         * include/wchar.h: Likewise.
68643         * include/wctype.h: Likewise.
68644         * include/wordexp.h: Likewise.
68645
68646         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68647
68648         * time/time.h: TIME_UTC must be a macro.
68649         Make timespec_get available for ISO C11 only as well.
68650
68651 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68652
68653         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68654         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68655
68656 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68657
68658         * configure.in: Use -o not -a in test for unsupported multi-arch.
68659
68660 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68661
68662         * manual/texinfo.tex: Update to version 2012-01-19.16.
68663
68664 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68665
68666         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68667
68668 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68669
68670         [BZ #13738]
68671         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68672         * manual/fdl-1.3.texi: New file.
68673         * manual/fdl-1.1.texi: File removed.
68674
68675         [BZ #13738]
68676         * manual/libc.texinfo (FDL_VERSION): New @set.
68677         Use it for mention of FDL in cover text.
68678         (Documentation License): Use it in @include file name.
68679
68680 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68681             Roland McGrath  <roland@hack.frob.com>
68682
68683         [BZ #5461]
68684         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68685         (not LONG_LONG_MAX and LONG_LONG_MIN.
68686         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68687         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68688         name.
68689         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68690
68691 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68692
68693         [BZ #2547]
68694         [BZ #11365]
68695         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68696         manipulate bits before adding and subtracting TWO23[sx].
68697         * math/libm-test.inc (nearbyint_test): Add more tests.
68698
68699 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68700
68701         [BZ #2548]
68702         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68703         bits before adding and subtracting TWO23[sx].
68704         * math/libm-test.inc (rint_test): Add more tests.
68705         (rint_test_tonearest): Likewise.
68706         (rint_test_towardzero): Likewise.
68707         (rint_test_downward): Likewise.
68708         (rint_test_upward: Likewise.
68709
68710 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68711
68712         [BZ #10110]
68713         * include/stdc-predef.h: New file.  Extracted from features.h.
68714         * include/features.h: Include stdc-predef.h.
68715         * Makefile (headers): Add stdc-predef.h.
68716         * CONFORMANCE (Compiler limitations): Update.
68717
68718 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68719
68720         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68721
68722 2012-02-21  David S. Miller  <davem@davemloft.net>
68723
68724         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68725         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68726
68727 2012-02-20  David S. Miller  <davem@davemloft.net>
68728
68729         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68730         using a normal save/restore sequence, rather than allocating a
68731         dummy stack frame just to store a frame pointer and restore.
68732         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68733
68734 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68735
68736         * manual/install.texi: Fix stray word in line-wrapped comment.
68737
68738 2012-02-20  David S. Miller  <davem@davemloft.net>
68739
68740         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68741         both binutils and gcc support GOTDATA.
68742
68743         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68744         "rd %pc" in the PIC register setup sequences.
68745
68746         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68747         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68748         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68749         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68750         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68751         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68752         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68753         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68754         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68755         (SYSCALL_ERROR_HANDLER): Likewise.
68756         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68757         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68758         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68759         (SYSCALL_ERROR_HANDLER): Likewise.
68760
68761         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68762         (HAVE_GCC_GOTDATA): New.
68763         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68764         relocation support in both binutils and gcc.
68765         * sysdeps/sparc/elf/configure: Regenerate.
68766
68767         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68768         * sysdeps/sparc/sparc32/elf/configure: Delete.
68769         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68770         * sysdeps/sparc/sparc64/elf/configure: Delete.
68771         * sysdeps/sparc/elf/configure.in: New file.
68772         * sysdeps/sparc/elf/configure: Generate.
68773
68774         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68775         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68776         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68777         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68778         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68779
68780 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68781
68782         * manual/install.texi: Do not mention specific glibc version
68783         numbers.
68784         * manual/libc.texinfo (VERSION, UPDATED): Update.
68785         (@copying): Use @copyright{} and range of years.
68786
68787 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68788
68789         [BZ #13695]
68790         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68791         [crti.S not in sysdirs] (generated): Do not append.
68792         [crti.S not in sysdirs] (omit-deps): Likewise.
68793         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68794         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68795         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68796         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68797         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68798         Likewise.
68799         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68800         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68801         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68802         * csu/defs.awk: Remove file.
68803         * sysdeps/generic/initfini.c: Likewise.
68804         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68805         variable.
68806         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68807         Likewise.
68808
68809 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68810
68811         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68812         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68813         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68814         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68815         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68816         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68817         <bits/epoll.h>.
68818         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68819         (__EPOLL_PACKED): Define to empty if not defined by
68820         <bits/epoll.h>.
68821         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68822         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68823         bits/epoll.h.
68824
68825 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68826
68827         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68828         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68829         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68830         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68831         <bits/timerfd.h>.
68832         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68833         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68834         bits/timerfd.h.
68835
68836 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68837
68838         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68839         in C locale.
68840         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68841         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68842         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68844
68845 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68846
68847         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68848         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68849
68850 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68851
68852         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68853         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68854         defined.
68855         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68856         Likewise.
68857         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68858         entry for 2.16.
68859
68860 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68861
68862         * math/w_acos.c: Use non-signaling floating-point comparisons.
68863         * math/w_acosf.c: Likewise.
68864         * math/w_acosh.c: Likewise.
68865         * math/w_acoshf.c: Likewise.
68866         * math/w_acoshl.c: Likewise.
68867         * math/w_acosl.c: Likewise.
68868         * math/w_asin.c: Likewise.
68869         * math/w_asinf.c: Likewise.
68870         * math/w_asinl.c: Likewise.
68871         * math/w_atanh.c: Likewise.
68872         * math/w_atanhf.c: Likewise.
68873         * math/w_atanhl.c: Likewise.
68874         * math/w_exp2.c: Likewise.
68875         * math/w_exp2f.c: Likewise.
68876         * math/w_exp2l.c: Likewise.
68877         * math/w_j0.c: Likewise.
68878         * math/w_j0f.c: Likewise.
68879         * math/w_j0l.c: Likewise.
68880         * math/w_j1.c: Likewise.
68881         * math/w_j1f.c: Likewise.
68882         * math/w_j1l.c: Likewise.
68883         * math/w_jn.c: Likewise.
68884         * math/w_jnf.c: Likewise.
68885         * math/w_log.c: Likewise.
68886         * math/w_log10.c: Likewise.
68887         * math/w_log10f.c: Likewise.
68888         * math/w_log10l.c: Likewise.
68889         * math/w_log2.c: Likewise.
68890         * math/w_log2f.c: Likewise.
68891         * math/w_log2l.c: Likewise.
68892         * math/w_logf.c: Likewise.
68893         * math/w_logl.c: Likewise.
68894         * math/w_sqrt.c: Likewise.
68895         * math/w_sqrtf.c: Likewise.
68896         * math/w_sqrtl.c: Likewise.
68897         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68898         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68899         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68900         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68901         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68902
68903 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68904
68905         [BZ #9739]
68906         * manual/string.texi (strnlen): Use correct parameter name in
68907         equivalent expression.
68908
68909 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68910
68911         [BZ #11174]
68912         * manual/users.texi (seteuid): Consistently use neweuid for
68913         argument name.
68914
68915 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68916
68917         [BZ #13704]
68918         * manual/nss.texi (Services in the NSS configuration): Correct
68919         list of services in example configuration file.
68920
68921 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68922
68923         [BZ #11322]
68924         * manual/arith.texi: Remove statements about negative zero
68925         behaving identically to zero.
68926
68927 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68928
68929         [BZ #5993]
68930         * manual/install.texi: Do not document upgrading from libc5.
68931
68932 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68933
68934         [BZ #4596]
68935         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68936
68937 2012-02-18  David S. Miller  <davem@davemloft.net>
68938
68939         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68940         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68941         %o7 across the call.
68942         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68943         instead.
68944         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68945         SETUP_PIC_REG_LEAF.
68946         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68947         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68948         * sysdeps/sparc/crtn.S: Likewise.
68949
68950 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68951
68952         * aout/Makefile: Remove.
68953
68954 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68955
68956         [BZ #13058]
68957         * manual/examples/argp-ex1.c (main): Format definition in GNU
68958         style.
68959         * manual/examples/argp-ex2.c (main): Likewise.
68960         * manual/examples/argp-ex3.c (main): Likewise.
68961         * manual/examples/argp-ex4.c (main): Likewise.
68962         * manual/examples/longopt.c (main): Use new-style prototype
68963         definition.
68964         * manual/examples/strncat.c (main): Specify return type and use
68965         (void) for arguments.
68966         * manual/examples/subopt.c (main): Use char **argv argument.
68967
68968 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68969
68970         [BZ #5077]
68971         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68972         rounding modes.
68973
68974 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68975
68976         [BZ #6907]
68977         * manual/string.texi (strchr): Change when strchrnul is
68978         recommended.
68979
68980 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68981
68982         [BZ #174]
68983         * manual/locale.texi (setlocale): Document LOCPATH.
68984
68985 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68986
68987         [BZ #10210]
68988         * manual/process.texi (execle): Move @dots{} before last argument.
68989
68990 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68991
68992         [BZ #12047]
68993         * manual/charset.texi (Generic Charset Conversion): Fix typo
68994         (LC_TYPE -> LC_CTYPE).
68995
68996 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68997
68998         [BZ #5805]
68999         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69000         (scalbnf): Likewise.
69001         (scalbnl): Likewise.
69002         (scalbln): Likewise.
69003         (scalblnf): Likewise.
69004         (scalblnl): Likewise.
69005         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69006         (vwarnx): Likewise.
69007         (verr): Likewise.
69008         (verrx): Likewise.
69009         * manual/filesys.texi (telldir): Use braces around return type.
69010         * manual/llio.texi (mmap): Add space after comma.
69011         (mmap64): Likewise.
69012         * manual/math.texi (jn): Use @var{} on parameter names.
69013         (jnf): Likewise.
69014         (jnl): Likewise.
69015         (yn): Likewise.
69016         (ynf): Likewise.
69017         (ynl): Likewise.
69018         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69019         line.
69020         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69021         "...".
69022         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69023         (sched_get_priority_max): Likewise.
69024         * manual/signal.texi (sigvec): Add space after comma.
69025         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69026         names.
69027         (if_indextoname): Likewise.
69028         (if_freenameindex): Likewise.
69029         (sendto): Use ',' instead of '.' in prototype.
69030         * manual/startup.texi (syscall): Use @dots{} instead of literal
69031         "...".
69032         * manual/stdio.texi (__fpending): Separate initial words of
69033         paragraph from @deftypefun line.
69034         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69035         "...".
69036         (vsyslog): Use @var{} on parameter names.
69037         * manual/terminal.texi (stty): Use @var{} on parameter names.
69038         * manual/users.texi (getutmp): Use @var{} on parameter names.
69039         (getutmpx): Likewise.
69040
69041 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69042
69043         [BZ #6884]
69044         * manual/stdio.texi (fopen): Fix typos in description of
69045         ",ccs=STRING".
69046
69047 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69048
69049         [BZ #4026]
69050         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69051         get clock_id definition.
69052
69053 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69054
69055         [BZ #4822]
69056         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69057         (madvise): Cast every argument to void on its own.
69058
69059 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69060
69061         [BZ #9902]
69062         * manual/startup.texi (Exit Status): Fix typo.
69063
69064 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69065
69066         [BZ #10140]
69067         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69068         * manual/examples/argp-ex2.c: Likewise.
69069         * manual/examples/argp-ex3.c: Likewise.
69070
69071 2012-02-16  Richard Henderson  <rth@redhat.com>
69072
69073         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69074         * sysdeps/s390/s390-32/initfini.c: Remove.
69075         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69076         * sysdeps/s390/s390-64/initfini.c: Remove.
69077
69078 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69079
69080         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69081         compiler output for sysdeps/generic/initfini.c.
69082         * sysdeps/sh/elf/initfini.c: Remove file.
69083
69084 2012-02-16  David S. Miller  <davem@davemloft.net>
69085
69086         [BZ #11494]
69087         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69088
69089         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69090         * sysdeps/sparc/crti.S: New file.
69091         * sysdeps/sparc/crtn.S: New file.
69092         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69093         * sysdeps/sparc/sparc64/Makefile: Likewise.
69094
69095 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69096
69097         [BZ #3335]
69098         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69099
69100 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69101
69102         [BZ #4822]
69103         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69104
69105         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69106         (write, read, close): Likewise.
69107         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69108
69109 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69110
69111         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69112         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69113         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69114         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69115         <bits/signalfd.h>.
69116         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69117         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69118         bits/signalfd.h.
69119
69120 2012-02-14  Marek Polacek  <polacek@redhat.com>
69121
69122         * sysdeps/x86_64/crti.S: New file.
69123         * sysdeps/x86_64/crtn.S: New file.
69124         * sysdeps/x86_64/elf/initfini.c: Remove file.
69125
69126 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69127
69128         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69129         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69130         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69131         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69132         <bits/inotify.h>.
69133         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69134         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69135         bits/inotify.h.
69136
69137 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69138
69139         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69140         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69141         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69142         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69143         <bits/eventfd.h>.
69144         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69145         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69146         bits/eventfd.h.
69147
69148 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69149
69150         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69151         __feraiseexcept instead of feraiseexcept.
69152
69153         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69154         nanosleep invocations.
69155         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69156         strings, and add error checking for a nanosleep invocations.
69157
69158 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         Replace FSF snail mail address with URLs, as per GNU coding standards.
69161         Most of the snail mail addresses were wrong anyway, and omitting
69162         them makes the source code easier to maintain.  Almost all of the
69163         changes are to license notices and to locale LC_IDENTIFICATION
69164         addresses, except for this one:
69165         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69166         not its snail mail address.
69167
69168 2012-02-09  Richard Henderson  <rth@twiddle.net>
69169
69170         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69171         of kernel-features.h.
69172
69173         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69174
69175 2012-02-08  Marek Polacek  <polacek@redhat.com>
69176
69177         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69178         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69179         * sysdeps/gnu/_G_config.h: Likewise.
69180         * sysdeps/generic/_G_config.h: Likewise.
69181
69182 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69183
69184         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69185         tests.
69186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69187
69188         * sysdeps/powerpc/powerpc32/crti.S: New file.
69189         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69190         * sysdeps/powerpc/powerpc64/crti.S: New file.
69191         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69192
69193         * Makeconfig (have-initfini): Don't set.
69194         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69195         * configure.in (nopic_initfini): Don't substitute.
69196         * config.h.in (HAVE_INITFINI): Don't #undef.
69197         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69198         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69199
69200 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69201
69202         Support crti.S and crtn.S provided directly by architectures.
69203         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69204         [crti.S in sysdirs] (omit-deps): Likewise.
69205         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69206         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69207         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69208         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69209         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69210         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69211         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69212         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69213         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69214         compiler output for sysdeps/generic/initfini.c.
69215         * sysdeps/i386/elf/Makefile: Remove file.
69216         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69217
69218 2012-02-07  Marek Polacek  <polacek@redhat.com>
69219
69220         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69221         * sysdeps/gnu/_G_config.h: Likewise.
69222         * sysdeps/mach/hurd/_G_config.h: Likewise.
69223
69224 2012-02-07  Marek Polacek  <polacek@redhat.com>
69225
69226         * math/Makefile (tests): Add tst-CMPLX2.
69227         * math/tst-CMPLX2.c: New file.
69228
69229 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69230
69231         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69232
69233         * math/libm-test.inc (jn_test): Add missing L suffix.
69234
69235 2012-02-06  Marek Polacek  <polacek@redhat.com>
69236
69237         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69238         * sysdeps/i386/fpu/e_powf.S: Likewise.
69239         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69240         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69241         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69242         * sysdeps/i386/fpu/e_pow.S: Likewise.
69243         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69244         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69245         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69246         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69247         * sysdeps/i386/fpu/e_log2.S: Likewise.
69248         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69249         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69250         * sysdeps/i386/fpu/e_powl.S: Likewise.
69251         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69252         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69253         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69254         * sysdeps/i386/fpu/e_logl.S: Likewise.
69255         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69256         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69257         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69258         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69259         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69260         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69261         * sysdeps/i386/fpu/e_log.S: Likewise.
69262         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69263         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69264         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69265         * sysdeps/i386/fpu/e_logf.S: Likewise.
69266         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69267         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69268         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69269         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69270         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69271         * sysdeps/i386/fpu/e_log10.S: Likewise.
69272         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69273         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69274         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69275         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69276         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69277         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69278         * sysdeps/i386/asm-syntax.h: Likewise.
69279         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69280         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69281         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69282         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69283         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69284         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69285         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69286         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69287         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69288         * sysdeps/powerpc/sysdep.h: Likewise.
69289         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69290         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69291
69292 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69293
69294         [BZ #411]
69295         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69296
69297 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69298
69299         * sysdeps/i386/sysdep.h: Include <features.h>.
69300         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69301         version.
69302
69303 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69304
69305         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69306         Define.
69307         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69308         LOAD_PIC_REG_STR.
69309
69310 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69311
69312         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69313         (SETUP_PIC_REG): Use GET_PC_THUNK.
69314         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69315         macro.
69316
69317 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69318
69319         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69320         for non-PIC compilation.
69321         (SETUP_PIC_REG): Add .p2align directive.
69322         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69323         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69324         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69325         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69326         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69327         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69328         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69329         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69330         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69331         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69332         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69333         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69334         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69335         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69336         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69337         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69338         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69339         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69340         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69341         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69342         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69343         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69344         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69345         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69346         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69347         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69348         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69349         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69350         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69351         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69352         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69353         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69354         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69355         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69356         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69357         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69358         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69359         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69360         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69361         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69362         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69363
69364 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69365
69366         * math/tst-CMPLX.c: Include <stdio.h>.
69367
69368 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69369
69370         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69371         float.
69372         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69373         * sysdeps/sparc/bits/mathdef.h: Likewise.
69374
69375 2012-01-31  Marek Polacek  <polacek@redhat.com>
69376
69377         * libio/libio.h: Don't define _PARAMS.
69378         * locale/programs/config.h: Don't define PARAMS.
69379         * stdlib/strtol_l.c: Likewise.
69380         (__strtol_l): Remove PARAMS from the prototype.
69381
69382 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69383
69384         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69385         names.  Just use the correct names.  Remove unnecessary wrapper
69386         functions.
69387         * malloc/arena.c: Likewise.
69388         * malloc/hooks.c: Likewise.
69389
69390         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69391         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69392         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69393
69394 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69395
69396         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69397         into tail calls.
69398         (update_get_addr): New function.
69399         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69400         GET_ADDR_MODULE parameter.
69401
69402 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69403
69404         * crypt/cert.c: Remove __STDC__ conditionals.
69405         * crypt/crypt-entry.c: Likewise.
69406         * crypt/crypt_util.c: Likewise.
69407         * libio/filedoalloc.c: Likewise.
69408         * libio/fileops.c: Likewise.
69409         * libio/genops.c: Likewise.
69410         * libio/iofclose.c: Likewise.
69411         * libio/iofdopen.c: Likewise.
69412         * libio/iofopen.c: Likewise.
69413         * libio/iofopen64.c: Likewise.
69414         * libio/iogetdelim.c: Likewise.
69415         * libio/iopopen.c: Likewise.
69416         * libio/obprintf.c: Likewise.
69417         * libio/oldfileops.c: Likewise.
69418         * libio/oldiofclose.c: Likewise.
69419         * libio/oldiofdopen.c: Likewise.
69420         * libio/oldiofopen.c: Likewise.
69421         * libio/oldiopopen.c: Likewise.
69422         * libio/wfiledoalloc.c: Likewise.
69423         * libio/wgenops.c: Likewise.
69424         * locale/programs/xmalloc.c: Likewise.
69425         * misc/syslog.c: Likewise.
69426         * stdio-common/xbug.c: Likewise.
69427         * string/memchr.c: Likewise.
69428         * string/memcmp.c: Likewise.
69429         * string/memrchr.c: Likewise.
69430         * string/rawmemchr.c: Likewise.
69431         * sysdeps/posix/getcwd.c: Likewise.
69432         * time/strftime_l.c: Likewise.
69433
69434 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69435
69436         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69437         * config.make.in (config-cflags-sse2avx): Define.
69438         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69439         Fix typo.
69440
69441 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69442
69443         * scripts/config.guess: Update from upstream config git repository.
69444         * scripts/config.sub: Likewise.
69445
69446 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69447
69448         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69449         (EM_NUM): Update.
69450         (R_TILEPRO_*, R_TILEGX_*): New macros.
69451
69452         * scripts/firstversions.awk: Fix bug in version range handling.
69453
69454         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69455
69456         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69457
69458         * include/sys/epoll.h: New file.
69459         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69460         libc_hidden_def.
69461
69462 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69463
69464         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69465         Avoid unnecessary __WORDSIZE == 64 test.
69466         (fmaxf): Use VEX format if possible.
69467         (fmax): Likewise.
69468         (fminf): Likewise.
69469         (fmin): Likewise.
69470
69471         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69472         * math/math_private.h: Remove libc_fegetround* and
69473         libc_fesetround*.
69474         * sysdeps/i386/configure.in: Check for -msse2avx.
69475         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69476         also if SSE2AVX is defined.
69477         Remove libc_fegetround* and libc_fesetround*.
69478         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69479         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69480         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69481         of HAS_YMM_USABLE.
69482         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69483         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69484         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69485         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69486         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69487
69488         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69489
69490 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69491
69492         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69493         size is not set.
69494         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69495
69496 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69497
69498         [BZ #13618]
69499         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69500         relocation.
69501         * Makeconfig (libm): Define.
69502         * elf/Makefile: Add rules to build and run tst-relsort1.
69503         * elf/tst-relsort1.c: New file.
69504         * elf/tst-relsort1mod1.c: New file.
69505         * elf/tst-relsort1mod2.c: New file.
69506
69507 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69508
69509         * math/s_ldexp.c: Remove __STDC__ conditionals.
69510         * math/s_ldexpf.c: Likewise.
69511         * math/s_ldexpl.c: Likewise.
69512         * math/s_nextafter.c: Likewise.
69513         * math/s_nexttowardf.c: Likewise.
69514         * math/s_significand.c: Likewise.
69515         * math/s_significandf.c: Likewise.
69516         * math/s_significandl.c: Likewise.
69517         * math/w_jnl.c: Likewise.
69518         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69519         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69520         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69521         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69522         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69523         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69524         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69525         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69526         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69527         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69528         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69529         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69530         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69531         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69532         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69533         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69534         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69535         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69536         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69537         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69538         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69539         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69540         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69541         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69542         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69543         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69544         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69545         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69546         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69547         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69548         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69549         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69550         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69551         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69552         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69553         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69554         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69555         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69556         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69557         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69558         * sysdeps/ieee754/k_standard.c: Likewise.
69559         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69560         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69561         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69562         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69563         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69564         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69565         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69566         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69567         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69568         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69569         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69570         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69571         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69572         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69573         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69574         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69575         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69576         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69577         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69578         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69579         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69580         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69581         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69582         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69583         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69584         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69585         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69586         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69587         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69588         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69589         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69590         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69591         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69592         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69593         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69594         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69595         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69596         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69597         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69598         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69599         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69600         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69601         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69602         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69603         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69604         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69605         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69606         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69607         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69608         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69609         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69610         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69611         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69612         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69613         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69614         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69615         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69616         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69617         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69618         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69619         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69620         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69621         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69622         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69623         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69624         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69625         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69626         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69627         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69628         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69629         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69630         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69631         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69632         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69633         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69634         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69635         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69636         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69637         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69638         * sysdeps/ieee754/s_matherr.c: Likewise.
69639         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69640         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69641         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69642         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69643
69644 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69645
69646         * crypt/md5.h: Remove __STDC__ conditionals.
69647         * libio/libioP.h: Likewise.
69648         * locale/programs/config.h: Likewise.
69649         * sysdeps/generic/sysdep.h: Likewise.
69650         * sysdeps/i386/asm-syntax.h: Likewise.
69651         * sysdeps/s390/asm-syntax.h: Likewise.
69652         * sysdeps/unix/sysdep.h: Likewise.
69653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69655
69656 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69657
69658         * libio/libio.h: Remove __STDC__ conditionals.
69659         * malloc/obstack.h: Likewise.
69660         * math/complex.h: Likewise.
69661         * math/math.h: Likewise.
69662         * sysdeps/generic/_G_config.h: Likewise.
69663         * sysdeps/gnu/_G_config.h: Likewise.
69664         * sysdeps/mach/hurd/_G_config.h: Likewise.
69665         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69666         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69667         * sysdeps/sparc/bits/mathdef.h: Likewise.
69668
69669 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69670
69671         [BZ #13583]
69672         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69673         Clean up HAS_* macros.
69674         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69675         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69676         possible.
69677         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69678         HAS_AVX.
69679         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69680         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69681         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69682         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69683         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69684
69685 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69686
69687         * elf/tst-unique3.cc (gets): Remove declaration.
69688         * elf/tst-unique3lib.cc (gets): Likewise.
69689         * elf/tst-unique3lib2.cc (gets): Likewise.
69690         * elf/tst-unique4.cc (gets): Likewise.
69691
69692 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69693
69694         * include/stdio.h: Add C++ protection.  Add gets declarations and
69695         definitions.
69696         * debug/tst-chk1.c: Don't declare gets here.
69697         * stdio-common/tst-gets.c: Likewise.
69698
69699 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69700
69701         * posix/glob: Remove directory.
69702
69703 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69704
69705         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69706
69707 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69708
69709         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69710         of the non-standard EPFNOSUPPORT.
69711
69712 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69713
69714         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69715         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69716         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69717
69718 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69719
69720         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69721
69722 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69723
69724         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69725         transient errors.
69726         * nscd/grpcache.c (cache_addgr): Likewise.
69727         * nscd/hstcache.c (cache_addhst): Likewise.
69728         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69729         * nscd/pwdcache.c (cache_addpw): Likewise.
69730         * nscd/servicescache.c (cache_addserv): Likewise.
69731
69732 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69733
69734         * malloc/malloc.c: Various cleanups.
69735         * malloc/hooks.c: Likewise.
69736
69737         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69738         * stdlib/bug-fmtmsg1.c: New file.
69739
69740         * stdlib/fmtmsg.c (init): Add missing unlock.
69741         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69742
69743 2012-01-12  Marek Polacek  <polacek@redhat.com>
69744
69745         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69746         and _GNU_SOURCE.
69747
69748 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69749
69750         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69751         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69752         macro to ensure uniqueness of label name.
69753         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69754         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69755
69756 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69757
69758         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69759
69760         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69761         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69762         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69763         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69764
69765 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69766
69767         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69768
69769         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69770         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69771         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69772
69773         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69774
69775         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69776         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69777         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69778         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69779
69780         * math/bits/math-finite.h: Add ldexp support.
69781
69782 2012-01-10  Marek Polacek  <polacek@redhat.com>
69783
69784         * locale/programs/localedef.h (show_archive_content): Add noreturn
69785         attribute.
69786
69787 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69788
69789         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69790
69791 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69792
69793         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69794
69795         * io/Makefile (headers): Add bits/poll2.h.
69796
69797 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69798
69799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69800         typo #include statement.
69801
69802 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69803
69804         * include/sys/cdefs.h: Define __attribute_alloc_size.
69805         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69806         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69807         * elf/pldd.c: Likewise.
69808         * iconv/iconv_charmap.c: Likewise.
69809         * iconv/iconvconfig.c: Likewise.
69810         * iconv/strtab.c: Likewise.
69811         * locale/programs/locale.c: Likewise.
69812         * locale/programs/localedef.h: Likewise.
69813         * locale/programs/simple-hash.c: Likewise.
69814         * nscd/nscd.h: Likewise.
69815         * nss/makedb.c: Likewise.
69816         * sysdeps/generic/ldconfig.h: Likewise.
69817         * locale/programs/localedef.c: Remove xmalloc prototype.
69818         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69819
69820 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69821
69822         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69823         appropriate.
69824
69825 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69826
69827         * math/Makefile (tests): Add tst-CMPLX.
69828         * math/tst-CMPLX.c: New file.
69829
69830         * math/complex.h (CMPLXL): Fix typo.
69831
69832         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69833         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69834         GLIBC_2.16.
69835         * debug/tst-chk1.c: Add poll and ppoll tests.
69836         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69837         * include/sys/poll.h: Add hidden proto for ppoll.
69838         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69839         * sysdeps/mach/hurd/ppoll.c: Likewise.
69840         * io/ppoll.c: Likewise.
69841         * debug/poll_chk.c: New file.
69842         * debug/ppoll_chk.c: New file.
69843         * include/bits/poll2.h: New file.
69844         * io/bits/poll2.h: New file.
69845
69846         [BZ #1350]
69847         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69848
69849         * configure.in: static is always set to yes.  Remove.
69850         * config.make.in: Don't set build-static.
69851         * Makeconfig: Remove use of build-static.
69852         * dlfcn/Makefile: Likewise.
69853         * elf/Makefile: Likewise.
69854         * math/Makefile: Likewise.
69855         * misc/Makefile: Likewise.
69856         * nptl/Makefile: Likewise.
69857         * sysdeps/mach/hurd/Makefile: Likewise.
69858
69859         * configure.in: PWD_P is not used anymore.
69860         * config.make.in: Remove PWD_P entry.
69861
69862         * configure.in: Remove last remnants of RANLIB.
69863         No need to check for signed size_t anymore.
69864         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69865         and IA-64.
69866         Remove __builtin_expect test because we require at least gcc 3.4.
69867         * aclocal.m4: Likewise.
69868
69869         * wcsmbs/mbrtoc16.c: Implement using towc function.
69870         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69871         * wcsmbs/wcsmbsload.c: Likewise.
69872         * iconv/gconv_simple.c: Likewise.
69873         * iconv/gconv_int.h: Likewise.
69874         * iconv/gconv_builtin.h: Likewise.
69875         * iconv/iconv_prog.c: Remove CHAR16 handling.
69876
69877         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69878
69879         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69880
69881         * configure.in: Remove --with-elf and --enable-bounded options.
69882         Dont set base_machine for ia64.  More non-ELF conditions removed.
69883         Remove testing and setting of leading underscore information.
69884         * config.make.in (build-bounded): Set to no.
69885         * config.h.in: Remove NO_UNDERSCORES entry.
69886         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69887         them.
69888         * csu/start.c: Remove !NO_UNDERSCORE code.
69889         * locale/localeinfo.h: Likewise.
69890         * sysdeps/generic/machine-gmon.h: Likewise.
69891         * sysdeps/generic/sysdep.h: Likewise.
69892         * sysdeps/i386/sysdep.h: Likewise.
69893         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69894         * sysdeps/mach/sysdep.h: Likewise.
69895         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69896         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69897         * sysdeps/sh/sysdep.h: Likewise.
69898         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69899         * sysdeps/unix/i386/sysdep.S: Likewise.
69900         * sysdeps/unix/sparc/start.c: Likewise.
69901         * sysdeps/unix/sparc/sysdep.S: Likewise.
69902         * sysdeps/unix/sparc/sysdep.h: Likewise.
69903         * sysdeps/unix/start.c: Likewise.
69904         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69905         * sysdeps/x86_64/sysdep.h: Likewise.
69906
69907 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69908
69909         [BZ #13553]
69910         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69911         for non-gcc.
69912         * argp/argp-fmtstream.h: Use const instead __const.
69913         * argp/argp.h: Likewise.
69914         * assert/assert.h: Likewise.
69915         * bits/fenv.h: Likewise.
69916         * bits/sched.h: Likewise.
69917         * bits/sigset.h: Likewise.
69918         * bits/sigthread.h: Likewise.
69919         * catgets/nl_types.h: Likewise.
69920         * conform/data/pthread.h-data: Likewise.
69921         * crypt/crypt-private.h: Likewise.
69922         * crypt/crypt.h: Likewise.
69923         * crypt/crypt_util.c: Likewise.
69924         * ctype/ctype.h: Likewise.
69925         * debug/execinfo.h: Likewise.
69926         * debug/mbsnrtowcs_chk.c: Likewise.
69927         * debug/mbsrtowcs_chk.c: Likewise.
69928         * debug/wcsnrtombs_chk.c: Likewise.
69929         * debug/wcsrtombs_chk.c: Likewise.
69930         * debug/wcstombs_chk.c: Likewise.
69931         * dirent/dirent.h: Likewise.
69932         * dlfcn/dlfcn.h: Likewise.
69933         * elf/neededtest4.c: Likewise.
69934         * grp/grp.h: Likewise.
69935         * gshadow/gshadow.h: Likewise.
69936         * iconv/gconv.h: Likewise.
69937         * iconv/gconv_int.h: Likewise.
69938         * iconv/gconv_simple.c: Likewise.
69939         * iconv/iconv.h: Likewise.
69940         * iconv/loop.c: Likewise.
69941         * iconv/skeleton.c: Likewise.
69942         * include/aio.h: Likewise.
69943         * include/aliases.h: Likewise.
69944         * include/argz.h: Likewise.
69945         * include/arpa/inet.h: Likewise.
69946         * include/assert.h: Likewise.
69947         * include/dirent.h: Likewise.
69948         * include/dlfcn.h: Likewise.
69949         * include/execinfo.h: Likewise.
69950         * include/fcntl.h: Likewise.
69951         * include/fenv.h: Likewise.
69952         * include/glob.h: Likewise.
69953         * include/grp.h: Likewise.
69954         * include/libintl.h: Likewise.
69955         * include/mntent.h: Likewise.
69956         * include/netdb.h: Likewise.
69957         * include/pwd.h: Likewise.
69958         * include/rpc/netdb.h: Likewise.
69959         * include/sched.h: Likewise.
69960         * include/search.h: Likewise.
69961         * include/shadow.h: Likewise.
69962         * include/signal.h: Likewise.
69963         * include/stdio.h: Likewise.
69964         * include/stdlib.h: Likewise.
69965         * include/string.h: Likewise.
69966         * include/sys/socket.h: Likewise.
69967         * include/sys/stat.h: Likewise.
69968         * include/sys/statfs.h: Likewise.
69969         * include/sys/statvfs.h: Likewise.
69970         * include/sys/syslog.h: Likewise.
69971         * include/sys/time.h: Likewise.
69972         * include/sys/uio.h: Likewise.
69973         * include/time.h: Likewise.
69974         * include/unistd.h: Likewise.
69975         * include/utmp.h: Likewise.
69976         * include/wchar.h: Likewise.
69977         * include/wctype.h: Likewise.
69978         * inet/aliases.h: Likewise.
69979         * inet/arpa/inet.h: Likewise.
69980         * inet/netinet/ether.h: Likewise.
69981         * inet/netinet/in.h: Likewise.
69982         * intl/libintl.h: Likewise.
69983         * io/bits/fcntl2.h: Likewise.
69984         * io/fcntl.h: Likewise.
69985         * io/ftw.h: Likewise.
69986         * io/sys/poll.h: Likewise.
69987         * io/sys/stat.h: Likewise.
69988         * io/sys/statfs.h: Likewise.
69989         * io/sys/statvfs.h: Likewise.
69990         * io/utime.h: Likewise.
69991         * libio/bits/stdio.h: Likewise.
69992         * libio/bits/stdio2.h: Likewise.
69993         * libio/libio.h: Likewise.
69994         * libio/libioP.h: Likewise.
69995         * libio/stdio.h: Likewise.
69996         * locale/lc-ctype.c: Likewise.
69997         * locale/locale.h: Likewise.
69998         * login/utmp.h: Likewise.
69999         * malloc/arena.c: Likewise.
70000         * malloc/malloc.c: Likewise.
70001         * malloc/malloc.h: Likewise.
70002         * malloc/mcheck.c: Likewise.
70003         * malloc/mtrace.c: Likewise.
70004         * math/bits/mathcalls.h: Likewise.
70005         * math/fenv.h: Likewise.
70006         * math/math_private.h: Likewise.
70007         * misc/bits/error.h: Likewise.
70008         * misc/bits/syslog.h: Likewise.
70009         * misc/err.h: Likewise.
70010         * misc/error.h: Likewise.
70011         * misc/fstab.h: Likewise.
70012         * misc/mntent.h: Likewise.
70013         * misc/regexp.h: Likewise.
70014         * misc/search.h: Likewise.
70015         * misc/sgtty.h: Likewise.
70016         * misc/sys/mman.h: Likewise.
70017         * misc/sys/syslog.h: Likewise.
70018         * misc/sys/uio.h: Likewise.
70019         * misc/sys/xattr.h: Likewise.
70020         * misc/ttyent.h: Likewise.
70021         * nis/rpcsvc/ypclnt.h: Likewise.
70022         * nss/nss.h: Likewise.
70023         * posix/bits/unistd.h: Likewise.
70024         * posix/fnmatch.h: Likewise.
70025         * posix/glob.h: Likewise.
70026         * posix/sched.h: Likewise.
70027         * posix/spawn.h: Likewise.
70028         * posix/sys/wait.h: Likewise.
70029         * posix/unistd.h: Likewise.
70030         * posix/wordexp.h: Likewise.
70031         * pwd/pwd.h: Likewise.
70032         * resolv/netdb.h: Likewise.
70033         * resource/sys/resource.h: Likewise.
70034         * rt/aio.h: Likewise.
70035         * rt/bits/mqueue2.h: Likewise.
70036         * rt/mqueue.h: Likewise.
70037         * shadow/shadow.h: Likewise.
70038         * signal/signal.h: Likewise.
70039         * socket/send.c: Likewise.
70040         * socket/sendto.c: Likewise.
70041         * socket/sys/socket.h: Likewise.
70042         * stdio-common/printf.h: Likewise.
70043         * stdlib/bits/stdlib.h: Likewise.
70044         * stdlib/fmtmsg.h: Likewise.
70045         * stdlib/monetary.h: Likewise.
70046         * stdlib/stdlib.h: Likewise.
70047         * stdlib/ucontext.h: Likewise.
70048         * streams/stropts.h: Likewise.
70049         * string/argz.h: Likewise.
70050         * string/bits/string2.h: Likewise.
70051         * string/string.h: Likewise.
70052         * string/strings.h: Likewise.
70053         * sunrpc/rpc/auth.h: Likewise.
70054         * sunrpc/rpc/auth_des.h: Likewise.
70055         * sunrpc/rpc/clnt.h: Likewise.
70056         * sunrpc/rpc/netdb.h: Likewise.
70057         * sunrpc/rpc/pmap_clnt.h: Likewise.
70058         * sunrpc/rpc/xdr.h: Likewise.
70059         * sysdeps/generic/inttypes.h: Likewise.
70060         * sysdeps/generic/net/if.h: Likewise.
70061         * sysdeps/generic/sys/swap.h: Likewise.
70062         * sysdeps/gnu/net/if.h: Likewise.
70063         * sysdeps/gnu/utmpx.h: Likewise.
70064         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70065         * sysdeps/i386/i486/bits/string.h: Likewise.
70066         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70067         * sysdeps/s390/bits/string.h: Likewise.
70068         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70069         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70070         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70071         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70072         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70073         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70074         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70075         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70076         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70077         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70078         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70079         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70080         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70081         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70082         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70083         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70084         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70085         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70086         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70087         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70088         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70089         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70090         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70091         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70092         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70093         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70094         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70095         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70096         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70097         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70098         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70099         * sysvipc/sys/ipc.h: Likewise.
70100         * sysvipc/sys/msg.h: Likewise.
70101         * sysvipc/sys/sem.h: Likewise.
70102         * sysvipc/sys/shm.h: Likewise.
70103         * termios/termios.h: Likewise.
70104         * time/sys/time.h: Likewise.
70105         * time/time.h: Likewise.
70106         * wcsmbs/bits/wchar2.h: Likewise.
70107         * wcsmbs/uchar.h: Likewise.
70108         * wcsmbs/wchar.h: Likewise.
70109         * wctype/wctype.h: Likewise.
70110
70111         [BZ #13551]
70112         * Makeconfig: Remove all but ELF support including AIX support.
70113         * Makerules: Likewise.
70114         * config.h.in: Likewise.
70115         * config.make.in: Likewise.
70116         * configure: Likewise.
70117         * configure.in: Likewise.
70118         * csu/Makefile: Likewise.
70119         * csu/version.c: Likewise.
70120         * debug/Makefile: Likewise.
70121         * dlfcn/Makefile: Likewise.
70122         * elf/Makefile: Likewise.
70123         * extra-lib.mk: Likewise.
70124         * iconv/Makefile: Likewise.
70125         * include/libc-symbols.h: Likewise.
70126         * include/shlib-compat.h: Likewise.
70127         * resolv/Makefile: Likewise.
70128         * resolv/res_libc.c: Likewise.
70129         * rt/Makefile: Likewise.
70130         * sysdeps/i386/asm-syntax.h: Likewise.
70131         * sysdeps/i386/sysdep.h: Likewise.
70132         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70133         * sysdeps/mach/sysdep.h: Likewise.
70134         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70135         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70136         * sysdeps/s390/asm-syntax.h: Likewise.
70137         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70138         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70139         * sysdeps/sh/sysdep.h: Likewise.
70140         * sysdeps/unix/sparc/sysdep.h: Likewise.
70141         * sysdeps/wordsize-32/divdi3.c: Likewise.
70142         * sysdeps/x86_64/sysdep.h: Likewise.
70143
70144         * argp/Versions: Remove _argp_unlock_xxx.
70145
70146         [BZ #13559]
70147         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70148         * abilist/libBrokenLocale.abilist: Likewise.
70149         * abilist/libanl.abilist: Likewise.
70150         * abilist/libc.abilist: Likewise.
70151         * abilist/libcrypt.abilist: Likewise.
70152         * abilist/libdl.abilist: Likewise.
70153         * abilist/libm.abilist: Likewise.
70154         * abilist/libnsl.abilist: Likewise.
70155         * abilist/libpthread.abilist: Likewise.
70156         * abilist/libresolv.abilist: Likewise.
70157         * abilist/librt.abilist: Likewise.
70158         * abilist/libthread_db.abilist: Likewise.
70159         * abilist/libutil.abilist: Likewise.
70160         * abilist/libnss_db.abilist: New file.
70161
70162         * scripts/abilist.awk: Add support for indirect functions.
70163
70164         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70165
70166         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70167
70168         * shlib-versions: Remove entries for ports architectures.
70169
70170         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70171         files in ports.
70172         * elf/stackguard-macros.h: Remove support for IA-64.
70173         * elf/tst-auditmod1.c: Likewise.
70174         * sysdeps/generic/ldsodefs.h: Likewise.
70175
70176         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70177         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70178         configure files.
70179
70180         [BZ #13552]
70181         * configure.in: Remove --enable-omitfp support.
70182         * FAQ.in: Adjust.
70183         * config.make.in: Likewise.
70184         * Makeconfig: Likewise.
70185         * manual/install.texi: Likewise.
70186
70187         In case anyone cares, the IA-64 architecture could move to ports.
70188         * sysdeps/ia64/*: Removed.
70189         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70190         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70191
70192         [BZ #13555]
70193         * configure.in: Remove entries for unsupported architectures.
70194
70195         [BZ #13533]
70196         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70197         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70198         routines.
70199         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70200         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70201         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70202         fall back to using wcrtomb.
70203         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70204         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70205         renaming.
70206         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70207         * wcsmbs/tst-c16c32-1.c: New file.
70208
70209         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70210         local variable.
70211
70212         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70213
70214         * elf/tst-unique3.cc: Add explicit declaration of gets.
70215         * elf/tst-unique3lib.cc: Likewise.
70216         * elf/tst-unique3lib2.cc: Likewise.
70217         * elf/tst-unique4.cc: Likewise.
70218
70219         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70220
70221 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70222
70223         [BZ #13566]
70224         * assert/assert.h (static_assert): Don't define for C++.
70225         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70226         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70227
70228 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70229
70230         * iconv/loop.c (single loop): Fix assertion in storing of
70231         remaining bytes.
70232
70233         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70234
70235 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70236
70237         * posix/getconf.c: Update copyright year.
70238         * nss/getent.c: Likewise.
70239         * nss/makedb.c: Likewise.
70240         * iconv/iconvconfig.c: Likewise.
70241         * iconv/iconv_prog.c: Likewise.
70242         * elf/ldconfig.c: Likewise.
70243         * elf/pldd.c: Likewise.
70244         * elf/sotruss.ksh: Likewise.
70245         * catgets/gencat.c: Likewise.
70246         * csu/version.c: Likewise.
70247         * elf/ldd.bash.in: Likewise.
70248         * elf/sprof.c (print_version): Likewise.
70249         * locale/programs/locale.c: Likewise.
70250         * locale/programs/localedef.c: Likewise.
70251         * login/programs/pt_chown.c: Likewise.
70252         * nscd/nscd.c (print_version): Likewise.
70253         * debug/xtrace.sh: Likewise.
70254         * malloc/memusage.sh: Likewise.
70255         * malloc/mtrace.pl: Likewise.
70256         * debug/catchsegv.sh: Likewise.
70257
70258 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70259
70260         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70261         pure attribute.
70262
70263 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70264
70265         [BZ #13533]
70266         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70267         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70268         transformations.
70269         * iconv/gconv_int.h: Likewise.
70270         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70271         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70272         from libc for GLIBC_2.16.
70273         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70274         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70275         * wcsmbs/uchar.h: Really define mbstate_t.
70276         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70277         * wcsmbs/c16rtomb.c: New file.
70278         * wcsmbs/mbrtoc16.c: New file.
70279         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70280         for C/POSIX locale.
70281         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70282         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70283
70284         * wcsmbs/wchar.h: Add missing __restrict.
70285
70286 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70287
70288         [BZ #13532]
70289         * time/Makefile (routines): Add timespec_get.
70290         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70291         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70292         timespec for ISO C11.
70293         * time/timespec_get.c: New file.
70294         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70295         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70296
70297         [BZ #13531]
70298         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70299         * stdlib/stdlib.h: Declare aligned_alloc.
70300         * Versions.def: Add GLIBC_2.16 for libc.
70301         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70302
70303         [BZ 13527]
70304         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70305         ISO C11.
70306
70307         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70308         code.
70309
70310         [BZ #13528]
70311         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70312
70313         [BZ #13529]
70314         * assert/assert.h (static_assert): Define.
70315
70316         * version.h: Update for 2.16 development version.
70317
70318         [BZ #13526]
70319         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70320         _ISOC11_SOURCE.
70321
70322         * version.h (RELEASE): Bump for 2.15 release.
70323         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70324
70325         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70326         Patch by Marek Polacek <mpolacek@redhat.com>.
70327
70328         * bits/byteswap.h: Protect long long constants with __extension__.
70329         * sysdeps/i386/bits/byteswap.h: Likewise.
70330         * sysdeps/ia64/bits/byteswap.h: Likewise.
70331         * sysdeps/s390/bits/byteswap.h: Likewise.
70332         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70333
70334 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70335
70336         [BZ #13540]
70337         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70338         destination buffer.
70339         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70340
70341 2011-12-23  Marek Polacek  <polacek@redhat.com>
70342
70343         * elf/dl-addr.c (determine_info): Add inline keyword.
70344         * elf/tst-auditmod4b.c (check_avx): Likewise.
70345         * elf/tst-auditmod6b.c (check_avx): Likewise.
70346         * elf/tst-auditmod6c.c (check_avx): Likewise.
70347         * elf/tst-auditmod7b.c (check_avx): Likewise.
70348
70349 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70350
70351         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70352         !__SSE_MATH__.
70353
70354 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70355
70356         [BZ #13540]
70357         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70358         processing for last bytes.
70359
70360 2011-08-06  Bruno Haible  <bruno@clisp.org>
70361
70362         [BZ #13061]
70363         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70364         U+0385, not to U+1FEE.
70365
70366         [BZ #13062]
70367         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70368         entry for U+00A5 U+0301.
70369
70370 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70371
70372         [BZ #13166]
70373         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70374         buffer for the output is too small.
70375
70376         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70377         optimization.
70378
70379         [BZ #13185]
70380         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70381         SSE flags if possible.
70382
70383 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70384
70385         [BZ #13540]
70386         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70387         processing for last bytes.
70388
70389 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70390
70391         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70392         (syscall-list-default-options, syscall-list-default-condition)
70393         (syscall-list-includes): Define.
70394         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70395         list of ABIs and options and #if conditions for each ABI.  Do not
70396         handle common syscalls between ABIs specially.
70397         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70398         Remove.
70399         (syscall-list-variants, syscall-list-32bit-options)
70400         (syscall-list-32bit-condition, syscall-list-64bit-options)
70401         (syscall-list-64bit-condition): Define.
70402         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70403         (syscall-list-variants, syscall-list-32bit-options)
70404         (syscall-list-32bit-condition, syscall-list-64bit-options)
70405         (syscall-list-64bit-condition): Define.
70406         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70407         Remove.
70408         (syscall-list-variants, syscall-list-32bit-options)
70409         (syscall-list-32bit-condition, syscall-list-64bit-options)
70410         (syscall-list-64bit-condition): Define.
70411         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70412         Remove.
70413         (syscall-list-variants, syscall-list-32bit-options)
70414         (syscall-list-32bit-condition, syscall-list-64bit-options)
70415         (syscall-list-64bit-condition): Define.
70416
70417 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70418
70419         * locale/iso-639.def: Add brx entry.
70420
70421         [BZ #13328]
70422         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70423         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70424
70425         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70426         __feraiseexcept_renamed.
70427
70428 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70429
70430         [BZ #13538]
70431         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70432         EPOLLET with unsigned values.
70433         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70434         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70435
70436         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70437         to large cancellation.
70438         * math/s_cacoshf.c: Likewise.
70439         * math/s_cacoshl.c: Likewise.
70440
70441 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70442
70443         [BZ #13305]
70444         [BZ #12786]
70445         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70446         * math/s_cacoshf.c: Likewise.
70447         * math/s_cacoshl.c: Likewise.
70448
70449 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70450
70451         [BZ #13439]
70452         * iconv/gconv.h: Define __GCONV_SWAP.
70453         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70454         * iconvdata/utf-16.c: Likewise.
70455         * iconvdata/utf-32.c: Likewise.
70456
70457 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70458
70459         [BZ #13524]
70460         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70461         numerator after shifting it by one limb.
70462
70463 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70464
70465         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70466         under [__USE_EXTERN_INLINES].
70467
70468 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70469
70470         [BZ #13446]
70471         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70472
70473 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70474
70475         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70476         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70477         optimized code.
70478         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70479         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70480         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70481         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70482         for strncasecmp/strncasecmp_l compilation.
70483         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70484         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70485
70486 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70487
70488         [BZ #13484]
70489         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70490         of __asm__.
70491
70492 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70493
70494         [BZ #13506]
70495         * time/tzfile.c (__tzfile_read): Check values from file header.
70496
70497 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70498
70499         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70500         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70501         * powerpc/powerpc32/dl-start.S: Likewise.
70502         * powerpc/powerpc32/elf/start.S: Likewise.
70503         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70504         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70505         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70506         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70507         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70508         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70509         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70510         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70511         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70512         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70513         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70514         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70515         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70516         * powerpc/powerpc32/memset.S: Likewise.
70517         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70518         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70519         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70520         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70521         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70522         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70523         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70524         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70525         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70526         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70527         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70528         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70529         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70530
70531 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70532
70533         * math/libm-test.inc: Added more nearbyint tests.
70534         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70535         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70536         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70537         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70538
70539 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70540
70541         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70542         FD_CLOEXEC.
70543
70544 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70545
70546         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70547         Add wcscpy-ssse3 wcscpy-c.
70548         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70549         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70550         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70551         * sysdeps/x86_64/wcschr.S: New file.
70552         * sysdeps/x86_64/wcsrchr.S: New file.
70553         * string/test-strcmp.c: Remove checking of wcscmp function for
70554         wrong alignments.
70555         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70556         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70557         wcsrchr-sse2 wcsrchr-c.
70558         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70559         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70560         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70561         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70562         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70563         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70564         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70565         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70566         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70567         * wcsmbc/wcschr.c (WCSCHR): New macro.
70568
70569 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70570
70571         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70572         * wcsmbs/test-wcsrchr.c: New file.
70573         * string/test-strrchr.c: Add wcsrchr support.
70574         (WIDE): New macro.
70575         * wcsmbs/test-wcscpy.c: New file.
70576         * string/test-strcpy.c: Add wcscpy support.
70577         (WIDE): New macro.
70578
70579 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70580
70581         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70582         the inner loop.
70583
70584 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70585
70586         [BZ #13472]
70587         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70588
70589 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70590
70591         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70592         Minor optimizations.
70593
70594         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70595         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70596         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70597
70598 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70599
70600         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70601         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70602         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70603         for gcc to avoid warnings.
70604         * inet/Makefile (tests): Add tst-checks.
70605         * inet/tst-checks.c: New file.
70606
70607         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70608         warning.
70609
70610         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70611         __wmemcmp_sse2.
70612
70613         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70614         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70615
70616         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70617
70618 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70619
70620         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70621         problem.
70622
70623         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70624
70625 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70626
70627         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70628         conditional on GCC version.
70629         (__arch_compare_and_exchange_val_8_acq)
70630         (__arch_compare_and_exchange_val_16_acq)
70631         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70632         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70633         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70634
70635 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70636
70637         * sysdeps/sh/backtrace.c: New file.
70638
70639 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70640
70641         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70642         parenthesis.
70643
70644 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70645
70646         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70647         falling back to utime.
70648
70649 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70650
70651         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70652         expectations for float.
70653
70654 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70655
70656         * locale/weight.h (findidx): Add parameter len.
70657         * locale/weightwc.h (findidx): Likewise.
70658         * posix/fnmatch_loop.c (FCT): Adjust caller.
70659         * posix/regcomp.c (build_equiv_class): Likewise.
70660         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70661         * posix/regexec.c (check_node_accept_bytes): Likewise.
70662         * string/strcoll_l.c (STRCOLL): Likewise.
70663         * string/strxfrm_l.c (STRXFRM): Likewise.
70664
70665 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70666
70667         * Makefile.in: Remove CVSOPT handling.
70668         * configure.in: Remove use of AC_REVISION.
70669         * iconvdata/Makefile (distribute): No need to filter out CVS.
70670         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70671         handling.
70672
70673 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70674
70675         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70676         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70677         [USE_AS_STRNCASECMP_L]: Likewise.
70678         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70679         NO_TLS_DIRECT_SEG_REFS.
70680         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70681         Fix argument offsets for non-PIC.
70682         [USE_AS_STRNCASECMP_L]: Likewise.
70683         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70684         NO_TLS_DIRECT_SEG_REFS.
70685
70686 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70687
70688         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70689         O_CLOEXEC.
70690         * locale/loadlocale.c (_nl_load_locale): Likewise.
70691
70692 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70693
70694         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70695         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70696         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70697         (SYSCALL_GETTIME): Set errno on error.
70698
70699         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70700         count references to noai6ai_cached.
70701
70702 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70703
70704         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70705
70706         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70707         FD_CLOEXEC for /proc/self/maps.
70708
70709         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70710         FD_CLOEXEC for /proc/meminfo.
70711
70712         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70713         gai.conf.
70714
70715         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70716         FD_CLOEXEC for given file.
70717
70718         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70719
70720         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70721         FD_CLOEXEC for /etc/hosts.
70722         (_gethtent): Likewise.
70723
70724         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70725
70726         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70727         cancellation and set FD_CLOEXEC for /etc/netgroup.
70728
70729         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70730         reading /etc/publickey.
70731
70732         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70733         allow cancellation when reading /etc/group.
70734
70735         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70736         cancellation.
70737         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70738
70739         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70740         when using data file.
70741
70742         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70743
70744         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70745         (write_nis_obj): Use "c" and "e" in fopen.
70746
70747         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70748
70749         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70750
70751         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70752
70753         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70754
70755         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70756         locale.alias.
70757
70758         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70759
70760         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70761
70762         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70763
70764         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70765         file parsing and set FD_CLOEXEC.
70766
70767 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70768
70769         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70770
70771 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70772
70773         * malloc/arena.c (arena_get2): Don't call reused_arena when
70774         _int_new_arena failed.
70775
70776 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70777
70778         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70779         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70780         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70781         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70782         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70783         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70784         to compile strcasecmp and strncasecmp.
70785         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70786         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70787
70788         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70789
70790 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70791
70792         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70793         locale-defines.sym to gen-as-const-headers.
70794         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70795         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70796         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70797         to compile strcasecmp and strncasecmp.
70798         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70799         strcasecmp_l and strncasecmp_l.
70800         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70801         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70802         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70803         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70804         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70805         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70806         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70807         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70808         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70809         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70810         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70811
70812 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70813
70814         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70815         result of SYSDEP_GETTIME_CPU to retval.
70816         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70817         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70818
70819         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70820         variable.
70821
70822         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70823         mantissa words.
70824         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70825
70826         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70827         from unused variable.
70828
70829         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70830         DWARF definitions.
70831         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70832         for assembling.
70833
70834         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70835         over namespaces.
70836
70837         * sunrpc/rpc_prot.c (rejected): Fix case value.
70838
70839         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70840         unsigned long long int to avoid warnings in shift.
70841
70842         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70843         of use of trans.
70844         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70845         variable tmp.
70846
70847         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70848         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70849         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70850
70851         * nis/nis_table.c (nis_list): Use variable of correct type for
70852         result of __follow_path call.
70853
70854 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70855
70856         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70857         of math functions ceil, trunc, floor, round, and sqrt, when
70858         avaliable on the platform.
70859         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70860         name clash.
70861         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70862         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70863         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70864
70865 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70866
70867         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70868         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70869
70870 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70871
70872         * include/unistd.h: Fix __readlink return type.
70873         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70874
70875 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70876
70877         * stdlib/ucontext.h: Undo last change for makecontext.
70878
70879 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70880
70881         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70882
70883         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70884         * setjmp/setjmp.h: Mark functions as non-leaf.
70885         * setjmp/bits/setjmp2.h: Likewise.
70886         * stdlib/ucontext.h: Likewise.
70887
70888 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70889
70890         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70891         (reused_arena): Don't check arena limit.
70892         (arena_get2): Atomically check arena limit.
70893
70894 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70895
70896         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70897         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70898
70899         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70900         instructions.
70901
70902 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70903
70904         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70905         handler when locking.
70906
70907         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70908         Fix size of allocated buffer.
70909
70910 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70911
70912         [BZ #10103]
70913         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70914         declarations for long double functions.
70915         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70916
70917         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70918
70919 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70920
70921         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70922         installed.
70923
70924         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70925         is disabled.
70926
70927 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70928
70929         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70930
70931 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70932
70933         * include/alloca.h (stackinfo_alloca_round): Define.
70934         (extend_alloca): Use it.
70935         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70936         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70937         here.
70938
70939         * scripts/check-local-headers.sh: Ignore libaudit.h.
70940
70941         * nscd/Makefile (extra-objs): Make recursively expanded.
70942
70943 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70944
70945         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70946         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70947
70948         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70949         * posix/tst-rfc3484-2.c: Likewise.
70950         * posix/tst-rfc3484-3.c: Likewise.
70951
70952         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70953         process_vm_writev.
70954         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70955         process_vm_writev.
70956         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70957         process_vm_writev from libc using GLIBC_2.15 version.
70958
70959         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70960
70961 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70962
70963         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70964         stack usage.
70965
70966 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70967
70968         [BZ #13367]
70969         * nss/getent.c (initgroups_keys): Show error message in case no group
70970         names are given.
70971
70972         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70973         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70974         __bump_nl_timestamp.
70975         * nscd/connections (nscd_init): When host database is served open
70976         netlink socket and request notification about configuration changes.
70977         (main_loop_poll): Track netlink file descriptor and bump timestamp
70978         in case data becomes available.
70979         (main_loop_epoll): Likewise.
70980         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70981         (database_pers_head): Add extra_data fileds.
70982         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70983         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70984         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70985         Adjust caller.
70986         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70987         in6ai data, call __free_in6ai.
70988         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70989         Add -DHAVE_NETLINK.
70990         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70991         interface information.  Reuse previous data if netlink timestamp
70992         is not changed.
70993         (__bump_nl_timestamp): New function.
70994         (__free_in6ai): New function.
70995
70996 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70997
70998         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70999         close_not_cancel_no_status here.
71000         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71001
71002 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71003
71004         [BZ #13276]
71005         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71006         return value.
71007
71008         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71009         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71010         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71011
71012 2011-07-03  Andreas Jaeger  <aj@suse.de>
71013
71014         [BZ #10709]
71015         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71016         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71017         * math/libm-test.inc (sin_test): Add test case.
71018
71019 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71020
71021         [BZ #13337]
71022         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71023         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71024
71025         * elf/chroot_canon.c (chroot_canon): Cleanups.
71026
71027         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71028
71029         [BZ #13335]
71030         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71031         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71032
71033         * string/test-strchr.c: Make usable for strchrnul testing.
71034         * string/test-strchrnul.c: New file.
71035         * string/Makefile (strop-tests): Add strchrnul.
71036
71037         * po/it.po: Update from translation team.
71038         * po/es.po: Likewise.
71039
71040 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71041
71042         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71043         the three constants needed as parameters.  Drop the others.
71044         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71045         __m128i_strloadu_tolower.
71046         Create and initialize variable zero and use it in all the places
71047         where _mm_setzero_si128 was used.
71048
71049         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71050         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71051         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71052         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71053         anymore.
71054         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71055         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71056         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71057         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71058         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71059         __mpranred, __mptan.
71060         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71061         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71062         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71063         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71064         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71065         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71066         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71067         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71068         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71069
71070 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71071
71072         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71073         redefine if SHARED.
71074         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71075
71076         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71077         wide char related routines to wcsmbs subdir.
71078
71079 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71080
71081         [BZ #13344]
71082         * misc/sys/cdefs.h (__THROWNL): Define.
71083         * posix/unistd.h: Use __THREADNL instead of __THREAD
71084         for memory synchronization functions.
71085
71086 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71087
71088         [BZ #13349]
71089         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71090         doesn't exist.
71091         * manual/stdio.texi (Obstack Streams): Node removed.
71092
71093 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71094
71095         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71096         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71097         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71098
71099         * math/math_private.h (math_force_eval): Allow non-addressable
71100         arguments.
71101         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71102
71103 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71104
71105         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71106         file is not needed.
71107
71108         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71109         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71110         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71111         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71112         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71113         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71114         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71115         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71116         Add AVX variants.
71117         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71118         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71119         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71120         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71121         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71122         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71123         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71124         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71125         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71126         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71127         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71128         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71129         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71130         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71131         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71132         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71133         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71134         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71135         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71136
71137         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71138         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71139
71140         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71141         place.  Use VEX encoding when compiling for AVX.
71142
71143 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71144
71145         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71146         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71147
71148         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71149
71150 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71151
71152         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71153         useless if() expression.
71154         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71155         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71156         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71157         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71158         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71159         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71160         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71161         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71162         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71163         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71164         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71165         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71166         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71167         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71168         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71169         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71170         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71171         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71172         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71173
71174         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71175
71176 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71177
71178         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71179         condition.
71180         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71181
71182 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71183
71184         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71185         .text section.  Avoid duplicate constants.
71186         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71187         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71188         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71189         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71190         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71191         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71192         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71193         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71194         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71195         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71196         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71197         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71198         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71199         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71200         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71201         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71202         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71203         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71204         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71205         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71206         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71207         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71208         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71209         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71210         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71211         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71212         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71213         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71214         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71215         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71216         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71217         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71218         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71219         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71220         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71221         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71222         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71223         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71224         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71225         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71226         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71227         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71228         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71229         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71230         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71231
71232 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71233
71234         * sysdeps/x86_64/dla.h: Move to ...
71235         * sysdeps/x86_64/fpu/dla.h: ...here.
71236         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71237         situations.  Use __builtin_fma only for gcc 4.6 and up.
71238
71239         * config.make.in: Add have-mfma4 entry.
71240         * configure.in: Substitute libc_cv_cc_fma4.
71241         * math/Makefile (dbl-only-routines): Add sincostab.
71242         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71243         Use __sincostab not sincos.
71244         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71245         name is a macro.
71246         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71247         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71248         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71249         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71250         using __copysign.
71251         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71252         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71253         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71254         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71255         and __inv.
71256         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71257         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71258         __copysign.
71259         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71260         define aliases when function name is a macro.
71261         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71262         sysdeps/ieee754/dbl-64/sincos.tbl.
71263         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71264         fma4-enabled routines.
71265         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71266         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71267         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71268         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71269         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71270         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71271         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71272         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71273         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71274         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71275         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71276         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71277         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71278         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71279         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71280         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71281         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71282         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71283         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71284         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71285         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71286         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71287         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71288         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71289         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71290         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71291         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71292         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71293         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71294         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71295
71296         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71297         rename.
71298         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71299         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71300         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71301         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71302         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71303         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71304         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71305         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71306
71307 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71308
71309         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71310
71311 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71312
71313         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71314
71315         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71316         prediction.
71317         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71318
71319         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71320         Remove unused variable magic_bits.
71321         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71322
71323         * string/strnlen.c: Define and use STRNLEN macro.
71324         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71325         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71326         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71327         * wcsmbs/wcslen.c: Define and use WCSLEN.
71328         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71329         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71330         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71331         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71332         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71333         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71334         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71335
71336 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71337
71338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71339         strnlen-sse2-no-bsf.
71340         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71341         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71342         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71343         Add strnlen support.
71344         (USE_AS_STRNLEN): New macro.
71345         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71346         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71347         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71348         * sysdeps/x86_64/wcslen.S: New file.
71349
71350 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71351
71352         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71353         XMM-moves are used for copying on small sizes.
71354
71355 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71356
71357         * wcsmbs/Makefile (strop-tests): Add wcschr.
71358         * wcsmbs/test-wcschr.c: New file.
71359         * string/test-strchr.c: Update.
71360         Add wcschr support.
71361         (WIDE): New macro.
71362
71363 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71364
71365         * wcsmbs/Makefile (strop-tests): Add wcslen.
71366         * wcsmbs/test-wcslen.c: New file.
71367         * string/test-strlen.c: Update.
71368         Add wcslen support.
71369         (WIDE): New macro.
71370
71371 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71372
71373         * po/it.po: Update from translation team.
71374
71375 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71376
71377         * sysdeps/x86_64/wcscmp.S: Update.
71378         Fix wrong comparison semantics.
71379         wcscmp shall use signed comparison not unsigned.
71380         Don't use substraction to avoid overflow bug.
71381         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71382         * wcsmbc/wcscmp.c: Likewise.
71383         * string/test-strcmp.c: Likewise.
71384         Add new tests to check cases with negative values.
71385
71386 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71387
71388         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71389         * sysdeps/x86_64/dla.h: ...here.  New file.
71390         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71391         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71392         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71393         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71394         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71395         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71396         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71397         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71398         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71399
71400 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71401
71402         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71403         __ynl_finite aliases.
71404
71405 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71406
71407         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71408
71409         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71410         define DLA_FMA.
71411         [DLA_FMA] (EMULV): Use DLA_FMA.
71412         [DLA_FMA] (MUL12): Use EMULV.
71413         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71414         that are not needed.
71415         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71416         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71417         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71418         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71419         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71420         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71421         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71422
71423 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71424
71425         * math/s_nan.c: Undef __nan.
71426         * math/s_nanf.c: Undef __nanf.
71427         * math/s_nanl.c: Undef __nanl.
71428         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71429         "math_private.h".
71430
71431 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71432
71433         * math/s_catan.c: Add branch predictions.
71434         * math/s_catanf.c: Likewise.
71435         * math/s_catanh.c: Likewise.
71436         * math/s_catanhf.c: Likewise.
71437         * math/s_catanhl.c: Likewise.
71438         * math/s_catanl.c: Likewise.
71439         * math/s_cexp.c: Likewise.
71440         * math/s_cexpf.c: Likewise.
71441         * math/s_cexpl.c: Likewise.
71442         * math/s_clog.c: Likewise.
71443         * math/s_clog10.c: Likewise.
71444         * math/s_clog10f.c: Likewise.
71445         * math/s_clog10l.c: Likewise.
71446         * math/s_clogf.c: Likewise.
71447         * math/s_clogl.c: Likewise.
71448         * math/s_csqrt.c: Likewise.
71449         * math/s_csqrtf.c: Likewise.
71450         * math/s_csqrtl.c: Likewise.
71451         * math/s_ctanf.c: Likewise.
71452         * math/s_ctanh.c: Likewise.
71453         * math/s_ctanhf.c: Likewise.
71454         * math/s_ctanhl.c: Likewise.
71455         * math/s_ctanl.c: Likewise.
71456
71457         * math/math_private.h: Define __nan, __nanf, __nanl.
71458         * math/s_cacosh.c: Include <math_private.h>.
71459         * math/s_cacoshl.c: Likewise.
71460         * math/s_casinh.c: Likewise.
71461         * math/s_casinhf.c: Likewise.
71462         * math/s_casinhl.c: Likewise.
71463         * math/s_ccos.c: Rely entire on ccosh.
71464         * math/s_ccosf.c: Rely entire on ccoshf.
71465         * math/s_ccosl.c: Rely entirely on ccoshl.
71466         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71467         Remove tests for FE_INVALID.
71468         * math/s_ccoshf.c: Likewise.
71469         * math/s_ccoshl.c: Likewise.
71470         * math/s_csin.c: Likewise.
71471         * math/s_csinf.c: Likewise.
71472         * math/s_csinh.c Likewise.
71473         * math/s_csinhf.c: Likewise.
71474         * math/s_csinhl.c: Likewise.
71475         * math/s_csinl.c: Likewise.
71476         * math/s_ctan.c: Likewise.
71477         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71478         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71479         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71480
71481 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71482
71483         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71484         compilation problems.
71485
71486         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71487         __builtin_expect.
71488
71489 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71490
71491         * sysdeps/i386/configure.in: Test for -mfma4 option.
71492         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71493         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71494         COMMON_CPUID_INDEX_80000001.
71495         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71496         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71497         use it if FMA3 is not supported.
71498         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71499
71500         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71501         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71502
71503 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71504
71505         [BZ #12892]
71506         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71507         it would create a cycle with a link time dependency.
71508
71509 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71510
71511         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71512         instruction.
71513         * string/Makefile (strop-tests): Add rawmemchr.
71514         * string/test-rawmemchr.c: New file.
71515
71516         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71517         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71518         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71519         when compiling str{,n}casecmp and when AVX is available.  Hook up
71520         new optimized code in initializers.
71521
71522 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71523
71524         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71525         __feraiseexcept instead of feraiseexcept.
71526
71527 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71528
71529         * math/math_private.h: Define defaults for libc_fetestexcept and
71530         libc_feupdateenv.
71531         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71532         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71533         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71534         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71535         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71536         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71537         libc_fetestexcept and libc_feupdateenv.
71538
71539         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71540         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71541         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71542         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71543         libc_feholdexcept_setround.
71544
71545         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71546         Add s_nearbyint-c and s_nearbyintf-c.
71547         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71548         nearbyintf inlines.
71549         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71550         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71551         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71552         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71553
71554         * math/math_private.h: Define defaults for libc_fegetround,
71555         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71556         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71557         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71558         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71559         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71560         standard functions.
71561         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71562         Remove comments and hacks for old compiler versions.
71563         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71564         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71565         libc_feholdexceptl.
71566
71567 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71568
71569         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71570         (__feraiseexcept_renamed): Add __NTH.
71571         (feraiseexcept): Add __NTH.  Rename local variables to fix
71572         namespace violations.
71573
71574 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71575
71576         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71577
71578         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71579
71580         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71581         recently added interfaces.
71582         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71583
71584         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71585         about macro parameter expansion.
71586
71587         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71588         __NO_MATH_INLINES is defined.  Cleanups.
71589
71590         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71591         and __floorf is target has SSE4.1.
71592         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71593         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71594         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71595         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71596
71597         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71598         name.
71599         (floorf): Likewise.
71600
71601         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71602
71603 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71604
71605         * misc/sys/cdefs.h: Fix last change.
71606
71607         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71608         database lookup.
71609
71610 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71611
71612         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71613
71614         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71615         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71616         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71617         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71618         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71619         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71620         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71621         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71622         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71623         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71624         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71625         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71626         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71627         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71628         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71629         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71630         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71631         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71632         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71633         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71634         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71635         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71636
71637         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71638         ceil, ceilf, floor, floorf.
71639
71640         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71641         Perform IRELATIVE relocations last.
71642
71643         * elf/do-rel.h: Add another parameter nrelative, replacing the
71644         local variable with the same name.  Change name of the function
71645         to end in Rel or Rela (uppercase).
71646         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71647         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71648         elf_dynamic_do_##reloc function.
71649
71650 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71651
71652         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71653         is sufficient, at least on modern CPUs.
71654
71655         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71656
71657         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71658         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71659
71660         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71661         __expl_finite.
71662         * math/bits/math-finite.h: Add entries for exp.
71663         * math/e_expl.c: Add __*_finite alias.
71664         * sysdeps/i386/fpu/e_exp.S: Likewise.
71665         * sysdeps/i386/fpu/e_expf.S: Likewise.
71666         * sysdeps/i386/fpu/e_expl.c: Likewise.
71667         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71668         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71669         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71670         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71671         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71672         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71673         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71674
71675         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71676         is sufficient, at least on modern CPUs.
71677
71678         * ctype/ctype-info.c (__ctype_init): Define.
71679         * include/ctype.h (__ctype_init): Declare.
71680         (__ctype_b_loc): The variable is always initialized.
71681         (__ctype_toupper_loc): Likewise.
71682         (__ctype_tolower_loc): Likewise.
71683         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71684         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71685
71686 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71687
71688         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71689
71690         * configure.in: Also look in $cxxmachine/include for C++ system
71691         headers.
71692
71693 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71694
71695         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71696         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71697         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71698         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71699         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71700         (USE_AS_WMEMCMP): New macro.
71701         Fixing indents.
71702         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71703         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71704         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71705         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71706         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71707         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71708         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71709         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71710         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71711         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71712         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71713         (USE_AS_WMEMCMP): New macro.
71714         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71715         * sysdeps/string/test-memcmp.c: Update.
71716         Fix simple_wmemcmp.
71717         Add new tests.
71718         * wcsmbs/wmemcmp.c: Update.
71719         (WMEMCMP): New macro.
71720         Fix overflow bug.
71721
71722 2011-10-12  Andreas Jaeger  <aj@suse.de>
71723
71724         [BZ #13268]
71725         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71726
71727 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71728
71729         * libio/iofwide.c (do_length): Avoid warning.
71730
71731         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71732
71733 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71734
71735         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71736
71737         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71738         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71739         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71740         * sysdeps/i386/i686/fpu/e_log.S: New file.
71741         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71742         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71743
71744         * ctype/ctype.h: Add support for inlined isXXX functions when
71745         compiling C++ code.
71746
71747 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71748
71749         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71750
71751         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71752
71753 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71754
71755         [BZ #13291]
71756         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71757
71758 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71759
71760         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71761         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71762         feraiseexcept.
71763
71764         * sysdeps/x86_64/memrchr.S: Check for zero size.
71765
71766         * string/stratcliff.c: Add memrchr tests.
71767
71768 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71769
71770         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71771         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71772         rawmemchr-sse2 rawmemchr-sse2-bsf.
71773         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71774         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71775         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71776         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71777         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71778         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71779         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71780         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71781         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71782         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71783         * string/memrchr.c (MEMRCHR): New macro.
71784
71785 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71786
71787         Add integration with gcc's -ffinite-math-only and optimize wrapper
71788         functions in libm.
71789         * Versions.def: Define GLIBC_2.15 version for libm.
71790         * math/Makefile (headers): Add bits/math-finite.h.
71791         * math/bits/math-finite.h: New file.
71792         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71793         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71794         * math/e_acoshl.c: Add __*_finite alias.
71795         * math/e_acosl.c: Likewise.
71796         * math/e_asinl.c: Likewise.
71797         * math/e_atan2l.c: Likewise.
71798         * math/e_atanhl.c: Likewise.
71799         * math/e_coshl.c: Likewise.
71800         * math/e_exp10.c: Likewise.
71801         * math/e_exp10f.c: Likewise.
71802         * math/e_exp10l.c: Likewise.
71803         * math/e_exp2l.c: Likewise.
71804         * math/e_fmodl.c: Likewise.
71805         * math/e_gammal_r.c: Likewise.
71806         * math/e_hypotl.c: Likewise.
71807         * math/e_j0l.c: Likewise.
71808         * math/e_j1l.c: Likewise.
71809         * math/e_jnl.c: Likewise.
71810         * math/e_lgammal_r.c: Likewise.
71811         * math/e_log10l.c: Likewise.
71812         * math/e_log2l.c: Likewise.
71813         * math/e_logl.c: Likewise.
71814         * math/e_powl.c: Likewise.
71815         * math/e_sinhl.c: Likewise.
71816         * math/e_sqrtl.c: Likewise.
71817         * math/e_scalb.c: Completely rewritten and optimized.
71818         * math/e_scalbf.c: Likewise.
71819         * math/e_scalbl.c: Likewise.
71820         * math/w_acos.c: Likewise.
71821         * math/w_acosf.c: Likewise.
71822         * math/w_acosl.c: Likewise.
71823         * math/w_acosh.c: Likewise.
71824         * math/w_acoshf.c: Likewise.
71825         * math/w_acoshl.c: Likewise.
71826         * math/w_asin.c: Likewise.
71827         * math/w_asinf.c: Likewise.
71828         * math/w_asinl.c: Likewise.
71829         * math/w_atan2.c: Likewise.
71830         * math/w_atan2f.c: Likewise.
71831         * math/w_atan2l.c: Likewise.
71832         * math/w_atanh.c: Likewise.
71833         * math/w_atanhf.c: Likewise.
71834         * math/w_atanhl.c: Likewise.
71835         * math/w_exp10.c: Likewise.
71836         * math/w_exp10f.c: Likewise.
71837         * math/w_exp10l.c: Likewise.
71838         * math/w_fmod.c: Likewise.
71839         * math/w_fmodf.c: Likewise.
71840         * math/w_fmodl.c: Likewise.
71841         * math/w_j0.c: Likewise.
71842         * math/w_j0f.c: Likewise.
71843         * math/w_j0l.c: Likewise.
71844         * math/w_j1.c: Likewise.
71845         * math/w_j1f.c: Likewise.
71846         * math/w_j1l.c: Likewise.
71847         * math/w_jn.c: Likewise.
71848         * math/w_jnf.c: Likewise.
71849         * math/w_log.c: Likewise.
71850         * math/w_logf.c: Likewise.
71851         * math/w_logl.c: Likewise.
71852         * math/w_log10.c: Likewise.
71853         * math/w_log10f.c: Likewise.
71854         * math/w_log10l.c: Likewise.
71855         * math/w_log2.c: Likewise.
71856         * math/w_log2f.c: Likewise.
71857         * math/w_log2l.c: Likewise.
71858         * math/w_pow.c: Likewise.
71859         * math/w_powf.c: Likewise.
71860         * math/w_powl.c: Likewise.
71861         * math/w_remainder.c: Likewise.
71862         * math/w_remainderf.c: Likewise.
71863         * math/w_remainderl.c: Likewise.
71864         * math/w_scalb.c: Likewise.
71865         * math/w_scalbf.c: Likewise.
71866         * math/w_scalbl.c: Likewise.
71867         * math/w_sqrt.c: Likewise.
71868         * math/w_sqrtf.c: Likewise.
71869         * math/w_sqrtl.c: Likewise.
71870         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71871         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71872         used.
71873         * math/math_private.h: Declare __kernel_standard_f.
71874         * math/w_cosh.c: Remove cruft and optimize a bit.
71875         * math/w_coshf.c: Likewise.
71876         * math/w_coshl.c: Likewise.
71877         * math/w_exp2.c: Likewise.
71878         * math/w_exp2f.c: Likewise.
71879         * math/w_exp2l.c: Likewise.
71880         * math/w_hypot.c: Likewise.
71881         * math/w_hypotf.c: Likewise.
71882         * math/w_hypotl.c: Likewise.
71883         * math/w_lgamma.c: Likewise.
71884         * math/w_lgamma_r.c: Likewise.
71885         * math/w_lgammaf.c: Likewise.
71886         * math/w_lgammaf_r.c: Likewise.
71887         * math/w_lgammal.c: Likewise.
71888         * math/w_lgammal_r.c: Likewise.
71889         * math/w_sinh.c: Likewise.
71890         * math/w_sinhf.c: Likewise.
71891         * math/w_sinhl.c: Likewise.
71892         * math/w_tgamma.c: Likewise.
71893         * math/w_tgammaf.c: Likewise.
71894         * math/w_tgammal.c: Likewise.
71895         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71896         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71897         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71898         Minor optimizations.  Pretty printing.  Remove cruft.
71899         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71900         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71901         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71902         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71903         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71904         * sysdeps/i386/fpu/e_asin.S: Likewise.
71905         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71906         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71907         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71908         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71909         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71910         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71911         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71912         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71913         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71914         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71915         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71916         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71917         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71918         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71919         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71920         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71921         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71922         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71923         * sysdeps/i386/fpu/e_log.S: Likewise.
71924         * sysdeps/i386/fpu/e_log10.S: Likewise.
71925         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71926         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71927         * sysdeps/i386/fpu/e_log2.S: Likewise.
71928         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71929         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71930         * sysdeps/i386/fpu/e_logf.S: Likewise.
71931         * sysdeps/i386/fpu/e_logl.S: Likewise.
71932         * sysdeps/i386/fpu/e_pow.S: Likewise.
71933         * sysdeps/i386/fpu/e_powf.S: Likewise.
71934         * sysdeps/i386/fpu/e_powl.S: Likewise.
71935         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71936         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71937         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71938         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71939         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71940         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71941         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71942         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71943         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71944         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71945         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71946         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71947         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71948         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71949         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71950         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71951         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71952         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71953         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71954         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71955         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71956         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71957         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71958         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71959         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71960         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71961         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71962         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71963         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71964         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71965         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71966         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71967         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71968         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71969         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71970         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71971         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71972         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71973         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71974         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71975         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71976         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71977         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71978         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71979         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71980         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71981         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71982         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71983         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71984         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71985         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71986         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71987         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71988         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71989         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71990         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71991         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71992         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71993         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71994         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71995         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71996         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71997         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71998         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71999         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72000         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72001         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72002         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72003         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72004         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72005         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72006         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72007         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72008         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72009         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72010         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72011         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72012         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72013         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72014         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72015         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72016         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72017         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72018         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72019         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72020         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72021         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72022         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72023         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72024         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72025         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72026         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72027         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72028         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72029         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72030         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72031         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72032         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72033         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72034         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72035         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72036         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72037         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72038         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72039         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72040         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72041         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72042         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72043         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72044         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72045         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72046         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72047         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72048         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72049         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72050         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72051         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72052         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72053         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72054         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72055         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72056         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72057         (__isnanf): Likewise.
72058         (__isinf_ns): Likewise.
72059         (__isinf_nsf): Likewise.
72060         (__finite): Likewise.
72061         (__finitef): Likewise.
72062         (__ieee754_sqrt): Define as macro.
72063         (__ieee754_sqrtf): Define as macro.
72064         (__ieee754_sqrtl): Define as macro.
72065         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72066         inlined copy.
72067         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72068         __FINITE_MATH_ONLY__ consistent.
72069         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72070
72071 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72072
72073         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72074         of rawmemchr.
72075
72076         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72077
72078 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72079
72080         * po/ja.po: Update from translation team.
72081
72082 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72083
72084         * locale/programs/locarchive.c (prepare_address_space): New function.
72085         (create_archive, enlarge_archive, open_archive): Use it.
72086
72087         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72088         inside [SHARED], where it is used.
72089
72090         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72091
72092         * nss/getent.c (netgroup_keys): Remove unused variable.
72093         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72094
72095 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72096
72097         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72098         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72099         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72100         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72101         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72102         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72103         * math/Makefile (libm-calls): Add s_isinf_ns.
72104         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72105         * math/multc3.c: Likewise.
72106         * math/s_casin.c: Likewise.
72107         * math/s_casinf.c: Likewise.
72108         * math/s_casinl.c: Likewise.
72109         * math/s_ccos.c: Likewise.
72110         * math/s_ccosf.c: Likewise.
72111         * math/s_ccosl.c: Likewise.
72112         * math/s_ctan.c: Likewise.
72113         * math/s_ctanf.c: Likewise.
72114         * math/s_ctanh.c: Likewise.
72115         * math/s_ctanhf.c: Likewise.
72116         * math/s_ctanhl.c: Likewise.
72117         * math/s_ctanl.c: Likewise.
72118         * math/w_fmod.c: Likewise.
72119         * math/w_fmodf.c: Likewise.
72120         * math/w_fmodl.c: Likewise.
72121         * math/w_remainder.c: Likewise.
72122         * math/w_remainderf.c: Likewise.
72123         * math/w_remainderl.c: Likewise.
72124         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72125         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72126         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72127         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72128         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72129         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72130         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72131         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72132
72133         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72134         of the number.
72135         * stdio-common/printf_fphex.c: Likewise.
72136         * stdio-common/printf_size.c: Likewise.
72137
72138         * math/e_exp10.c: Include math_private.h using <...> not "...".
72139         * math/e_exp10f.c: Likewise.
72140         * math/e_exp10l.c: Likewise.
72141         * math/e_exp2l.c: Likewise.
72142         * math/e_j0l.c: Likewise.
72143         * math/e_j1l.c: Likewise.
72144         * math/e_jnl.c: Likewise.
72145         * math/e_lgammal_r.c: Likewise.
72146         * math/e_rem_pio2l.c: Likewise.
72147         * math/e_scalb.c: Likewise.
72148         * math/e_scalbf.c: Likewise.
72149         * math/e_scalbl.c: Likewise.
72150         * math/k_cosl.c: Likewise.
72151         * math/k_sinl.c: Likewise.
72152         * math/k_tanl.c: Likewise.
72153         * math/s_cacoshf.c: Likewise.
72154         * math/s_catan.c: Likewise.
72155         * math/s_catanf.c: Likewise.
72156         * math/s_catanh.c: Likewise.
72157         * math/s_catanhf.c: Likewise.
72158         * math/s_catanhl.c: Likewise.
72159         * math/s_catanl.c: Likewise.
72160         * math/s_ccosh.c: Likewise.
72161         * math/s_ccoshf.c: Likewise.
72162         * math/s_ccoshl.c: Likewise.
72163         * math/s_cexp.c: Likewise.
72164         * math/s_cexpf.c: Likewise.
72165         * math/s_cexpl.c: Likewise.
72166         * math/s_clog.c: Likewise.
72167         * math/s_clog10.c: Likewise.
72168         * math/s_clog10f.c: Likewise.
72169         * math/s_clog10l.c: Likewise.
72170         * math/s_clogf.c: Likewise.
72171         * math/s_clogl.c: Likewise.
72172         * math/s_csin.c: Likewise.
72173         * math/s_csinf.c: Likewise.
72174         * math/s_csinh.c: Likewise.
72175         * math/s_csinhf.c: Likewise.
72176         * math/s_csinhl.c: Likewise.
72177         * math/s_csinl.c: Likewise.
72178         * math/s_csqrt.c: Likewise.
72179         * math/s_csqrtf.c: Likewise.
72180         * math/s_csqrtl.c: Likewise.
72181         * math/s_ctan.c: Likewise.
72182         * math/s_ctanf.c: Likewise.
72183         * math/s_ctanh.c: Likewise.
72184         * math/s_ctanhf.c: Likewise.
72185         * math/s_ctanhl.c: Likewise.
72186         * math/s_ctanl.c: Likewise.
72187         * math/s_ldexp.c: Likewise.
72188         * math/s_ldexpf.c: Likewise.
72189         * math/s_ldexpl.c: Likewise.
72190         * math/s_significand.c: Likewise.
72191         * math/s_significandf.c: Likewise.
72192         * math/s_significandl.c: Likewise.
72193         * math/w_acos.c: Likewise.
72194         * math/w_acosf.c: Likewise.
72195         * math/w_acosh.c: Likewise.
72196         * math/w_acoshf.c: Likewise.
72197         * math/w_acoshl.c: Likewise.
72198         * math/w_acosl.c: Likewise.
72199         * math/w_asin.c: Likewise.
72200         * math/w_asinf.c: Likewise.
72201         * math/w_asinl.c: Likewise.
72202         * math/w_atan2.c: Likewise.
72203         * math/w_atan2f.c: Likewise.
72204         * math/w_atan2l.c: Likewise.
72205         * math/w_atanh.c: Likewise.
72206         * math/w_atanhf.c: Likewise.
72207         * math/w_atanhl.c: Likewise.
72208         * math/w_cosh.c: Likewise.
72209         * math/w_coshf.c: Likewise.
72210         * math/w_coshl.c: Likewise.
72211         * math/w_dremf.c: Likewise.
72212         * math/w_exp10.c: Likewise.
72213         * math/w_exp10f.c: Likewise.
72214         * math/w_exp10l.c: Likewise.
72215         * math/w_exp2.c: Likewise.
72216         * math/w_exp2f.c: Likewise.
72217         * math/w_fmod.c: Likewise.
72218         * math/w_fmodf.c: Likewise.
72219         * math/w_fmodl.c: Likewise.
72220         * math/w_hypot.c: Likewise.
72221         * math/w_hypotf.c: Likewise.
72222         * math/w_hypotl.c: Likewise.
72223         * math/w_j0.c: Likewise.
72224         * math/w_j0f.c: Likewise.
72225         * math/w_j0l.c: Likewise.
72226         * math/w_j1.c: Likewise.
72227         * math/w_j1f.c: Likewise.
72228         * math/w_j1l.c: Likewise.
72229         * math/w_jn.c: Likewise.
72230         * math/w_jnf.c: Likewise.
72231         * math/w_jnl.c: Likewise.
72232         * math/w_lgamma.c: Likewise.
72233         * math/w_lgamma_r.c: Likewise.
72234         * math/w_lgammaf.c: Likewise.
72235         * math/w_lgammaf_r.c: Likewise.
72236         * math/w_lgammal.c: Likewise.
72237         * math/w_lgammal_r.c: Likewise.
72238         * math/w_log.c: Likewise.
72239         * math/w_log10.c: Likewise.
72240         * math/w_log10f.c: Likewise.
72241         * math/w_log10l.c: Likewise.
72242         * math/w_log2.c: Likewise.
72243         * math/w_log2f.c: Likewise.
72244         * math/w_log2l.c: Likewise.
72245         * math/w_logf.c: Likewise.
72246         * math/w_logl.c: Likewise.
72247         * math/w_pow.c: Likewise.
72248         * math/w_powf.c: Likewise.
72249         * math/w_powl.c: Likewise.
72250         * math/w_remainder.c: Likewise.
72251         * math/w_remainderf.c: Likewise.
72252         * math/w_remainderl.c: Likewise.
72253         * math/w_scalb.c: Likewise.
72254         * math/w_scalbf.c: Likewise.
72255         * math/w_scalbl.c: Likewise.
72256         * math/w_sinh.c: Likewise.
72257         * math/w_sinhf.c: Likewise.
72258         * math/w_sinhl.c: Likewise.
72259         * math/w_sqrt.c: Likewise.
72260         * math/w_sqrtf.c: Likewise.
72261         * math/w_sqrtl.c: Likewise.
72262         * math/w_tgamma.c: Likewise.
72263         * math/w_tgammaf.c: Likewise.
72264         * math/w_tgammal.c: Likewise.
72265
72266         * po/ja.po: Update from translation team.
72267
72268 2011-09-29  Andreas Jaeger  <aj@suse.de>
72269
72270         [BZ #13179]
72271         * sunrpc/netname.c (netname2host): Fix logic.
72272
72273         [BZ #6779]
72274         [BZ #6783]
72275         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72276         correctly.
72277         * math/w_remainder.c (__remainder): Likewise.
72278         * math/w_remainderf.c (__remainderf): Likewise.
72279         * math/libm-test.inc (remainder_test): Add test cases.
72280
72281 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72282
72283         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72284         sdiv_qrnnd.
72285
72286 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72287
72288         * string/test-memcmp.c: Avoid unncessary #defines.
72289         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72290
72291 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72292
72293         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72294         Use new sse2 version for core i3 - i7 as it's faster
72295         than sse42 version.
72296         (bit_Prefer_PMINUB_for_stringop): New.
72297         * sysdeps/x86_64/rawmemchr.S: Update.
72298         Replace with faster SSE2 version.
72299         * sysdeps/x86_64/memrchr.S: New file.
72300         * sysdeps/x86_64/memchr.S: Update.
72301         Replace with faster SSE2 version.
72302
72303 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72304
72305         * elf/dl-load.c (lose): Add cast to avoid warning.
72306
72307 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72308
72309         * po/ca.po: Update from translation team.
72310
72311         * inet/getnetgrent_r.c: Hook up nscd.
72312         * nscd/Makefile (routines): Add nscd_netgroup.
72313         (nscd-modules): Add netgroupcache.
72314         (CFLAGS-netgroupcache.c): Define.
72315         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72316         (cache_search): Add const to second parameter.
72317         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72318         INNETGR.
72319         (dbs): Add netgrdb entry.
72320         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72321         (verify_persistent_db): Handle netgrdb.
72322         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72323         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72324         GETFDNETGR.
72325         (netgroup_response_header): Define.
72326         (innetgroup_response_header): Define.
72327         (datahead): Add netgroup_response_header and innetgroup_response_header
72328         elements.
72329         * nscd/nscd.conf: Add entries for netgroup cache.
72330         * nscd/nscd.h (dbtype): Add netgrdb.
72331         (_PATH_NSCD_NETGROUP_DB): Define.
72332         (netgroup_iov_disabled): Declare.
72333         (xmalloc, xcalloc, xrealloc): Move declarations here.
72334         (cache_search): Adjust prototype.
72335         Add netgroup-related prototypes.
72336         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72337         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72338         (__nscd_innetgr): Declare.
72339         * nscd/selinux.c (perms): Use access_vector_t as element type and
72340         add netgroup-related initializers.
72341         * nscd/netgroupcache.c: New file.
72342         * nscd/nscd_netgroup.c: New file.
72343         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72344         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72345         For four parameters use innetgr.
72346         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72347         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72348         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72349         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72350
72351         * nscd/connections.c (register_traced_file): Don't register file
72352         for disabled databases.
72353
72354 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72355
72356         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72357
72358         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72359         from tree and freeing node.
72360
72361 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72362
72363         * nss/nsswitch.c (__nss_database_lookup): Handle
72364         nss_parse_service_list out of memory case.
72365
72366 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72367
72368         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72369         out of memory case.
72370
72371 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72372
72373         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72374         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72375         pass it down.
72376         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72377         elf_machine_rela, elf_machine_lazy_rel.
72378         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72379         (ELF_DYNAMIC_DO_REL): Likewise.
72380         (ELF_DYNAMIC_DO_RELA): Likewise.
72381         (ELF_DYNAMIC_RELOCATE): Likewise.
72382         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72383         to ELF_DYNAMIC_DO_REL.
72384         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72385         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72386         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72387         elf_machine_rela.
72388         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72389         skip_ifunc, don't call ifunc function if non-zero.
72390         (elf_machine_rela): Likewise.
72391         (elf_machine_lazy_rel): Likewise.
72392         (elf_machine_lazy_rela): Likewise.
72393         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72394         (elf_machine_lazy_rel): Likewise.
72395         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72396         Likewise.
72397         (elf_machine_lazy_rel): Likewise.
72398         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72399         Likewise.
72400         (elf_machine_lazy_rel): Likewise.
72401         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72402         (elf_machine_lazy_rel): Likewise.
72403         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72404         (elf_machine_lazy_rel): Likewise.
72405         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72406         (elf_machine_lazy_rel): Likewise.
72407         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72408         (elf_machine_lazy_rel): Likewise.
72409         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72410         (elf_machine_lazy_rel): Likewise.
72411         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72412         (elf_machine_lazy_rel): Likewise.
72413
72414 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72415
72416         * nss/nss_files/files-init.c (_nss_files_init): Use static
72417         initialization for all the *_traced_file variables.
72418
72419 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72420
72421         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72422
72423 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72424
72425         [BZ #13226]
72426         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72427
72428 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72429
72430         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72431         Reread the line before reparsing it.
72432
72433 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72434
72435         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72436
72437 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72438             Maxim Kuvyrkov  <maxim@codesourcery.com>
72439             Joseph Myers  <joseph@codesourcery.com>
72440
72441         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72442         if needed for __stack_chk_guard.
72443
72444 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72445
72446         * sysdeps/posix/spawni.c (script_execute): Always define it.
72447         It will be optimized away if unused.
72448         (maybe_script_execute): New function.
72449         (__spawni): Call it.
72450
72451         * Makerules: Don't include tls.make.
72452         (config-tls): Always set to thread.
72453         * tls.make.c: File removed.
72454
72455 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72456
72457         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72458         * config.make.in (CPPFLAGS-config): New substituted variable.
72459
72460 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72461
72462         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72463
72464         [BZ #13192]
72465         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72466         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72467
72468 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72469
72470         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72471         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72472         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72473         (CALL_FAIL): Likewise.
72474         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72475         (CALL_FAIL): Macro removed.
72476         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72477
72478 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72479
72480         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72481         for __FINITE_MATH_ONLY__ == 1.
72482
72483 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72484
72485         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72486         __ieee754_sqrt instead of sqrt.
72487         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72488         __ieee754_sqrtf instead of sqrtf.
72489         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72490         __floorf instead of floorf.
72491         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72492         __floorf, __truncf instead of floorf, truncf.
72493
72494 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72495
72496         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72497
72498         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72499         __extern_always_inline.
72500         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72501         32-bit.
72502
72503 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72504
72505         * elf/rtld.c (dl_main): Also relocate in dependency order when
72506         doing symbol dependency testing.
72507
72508 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72509
72510         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72511         Always define `refsym'.
72512
72513 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72514
72515         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72516         (__FD_ELT): Renamed from __FDELT.
72517         * misc/bits/select2.h (__FD_ELT): Likewise.
72518         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72519         __FD_MASK instead of __FDELT, __FDMASK.
72520         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72521         Likewise.
72522         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72523         Likewise.
72524
72525         * elf/Makefile (gen-ldd): Fix pattern.
72526
72527         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72528         (init_tls): Likewise.
72529
72530 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72531
72532         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72533
72534 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72535
72536         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72537         `struct cmsghdr *' instead of `void *'.
72538         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72539         Likewise.
72540
72541 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72542
72543         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72544         if non-absolute.
72545         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72546         ldd_rewrite_script.
72547
72548 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72549
72550         * configure.in: Remove --with-tls option.
72551         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72552         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72553         out in case it is missing.
72554         * sysdeps/ia64/elf/configure.in: Likewise.
72555         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72556         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72557         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72558         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72559         * sysdeps/sh/elf/configure.in: Likewise.
72560         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72561         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72562         * sysdeps/x86_64/elf/configure.in: Likewise.
72563         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72564         * sysdeps/mach/hurd/tls.h: Likewise.
72565
72566         [BZ #13067]
72567         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72568
72569         [BZ #13090]
72570         * configure.in: Fix use of AC_INIT.
72571
72572         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72573
72574 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72575
72576         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72577         __set_errno.
72578         * malloc/hooks.c: Likewise.
72579
72580         [BZ #11929]
72581         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72582         variables statically.
72583         (narenas): Initialize.
72584         (list_lock): Initialize.
72585         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72586         initializtion of main_arena and list_lock.  Small cleanups.
72587         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72588         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72589         Add initializers to main_arena and mp_.
72590         (malloc_state): Remove pagesize member.  Change all users to use
72591         GLRO(dl_pagesize).
72592
72593         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72594         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72595         is always initialized.
72596
72597         * malloc/malloc.c: Removed unused configurations and dead code.
72598         * malloc/arena.c: Likewise.
72599         * malloc/hooks.c: Likewise.
72600         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72601
72602         * include/tls.h: Removed.  USE___THREAD must always be defined.
72603         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72604         * elf/dl-libc.c: Likewise.
72605         * elf/dl-tsd.c: Likewise.
72606         * include/errno.h: Likewise.
72607         * include/netdb.h: Likewise.
72608         * include/resolv.h: Likewise.
72609         * inet/herrno-loc.c: Likewise.
72610         * inet/herrno.c: Likewise.
72611         * malloc/arena.c: Likewise.
72612         * malloc/hooks.c: Likewise.
72613         * malloc/malloc.c: Likewise.
72614         * resolv/res-state.c: Likewise.
72615         * resolv/res_libc.c: Likewise.
72616         * sysdeps/i386/dl-machine.h: Likewise.
72617         * sysdeps/ia64/dl-machine.h: Likewise.
72618         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72619         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72620         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72621         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72622         * sysdeps/sh/dl-machine.h: Likewise.
72623         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72624         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72625         * sysdeps/unix/i386/sysdep.S: Likewise.
72626         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72627         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72628         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72629         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72630         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72631         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72632         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72633         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72634         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72635         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72636         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72637         * sysdeps/x86_64/dl-machine.h: Likewise.
72638         * tls.make.c: Likewise.
72639
72640         * configure.in: Remove --with-__thread option.  Make tests for
72641         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72642         tls_model attribute fail if no support is available.  Remove
72643         USE_IN_LIBIO.
72644         * Makeconfig: Adjust for dropped configure option.  All features are
72645         now mandatory.
72646         * Makerules: Likewise.
72647         * Versions.def: Likewise.
72648         * argp/argp-fmtstream.c: Likewise.
72649         * argp/argp-fmtstream.h: Likewise.
72650         * argp/argp-help.c: Likewise.
72651         * assert/assert.c: Likewise.
72652         * config.h.in: Likewise.
72653         * config.make.in: Likewise.
72654         * configure: Likewise.
72655         * configure.in: Likewise.
72656         * csu/Versions: Likewise.
72657         * csu/init.c: Likewise.
72658         * elf/tst-audit2.c: Likewise.
72659         * elf/tst-tls10.c: Likewise.
72660         * elf/tst-tls10.h: Likewise.
72661         * elf/tst-tls11.c: Likewise.
72662         * elf/tst-tls12.c: Likewise.
72663         * elf/tst-tls14.c: Likewise.
72664         * elf/tst-tlsmod11.c: Likewise.
72665         * elf/tst-tlsmod12.c: Likewise.
72666         * elf/tst-tlsmod13.c: Likewise.
72667         * elf/tst-tlsmod13a.c: Likewise.
72668         * elf/tst-tlsmod14a.c: Likewise.
72669         * elf/tst-tlsmod15b.c: Likewise.
72670         * elf/tst-tlsmod16a.c: Likewise.
72671         * elf/tst-tlsmod16b.c: Likewise.
72672         * elf/tst-tlsmod7.c: Likewise.
72673         * elf/tst-tlsmod8.c: Likewise.
72674         * elf/tst-tlsmod9.c: Likewise.
72675         * gmon/gmon.c: Likewise.
72676         * grp/fgetgrent_r.c: Likewise.
72677         * grp/putgrent.c: Likewise.
72678         * hurd/fopenport.c: Likewise.
72679         * include/libc-symbols.h: Likewise.
72680         * include/tls.h: Likewise.
72681         * intl/gettextP.h: Likewise.
72682         * intl/loadinfo.h: Likewise.
72683         * locale/global-locale.c: Likewise.
72684         * locale/localeinfo.h: Likewise.
72685         * mach/devstream.c: Likewise.
72686         * malloc/arena.c: Likewise.
72687         * malloc/set-freeres.c: Likewise.
72688         * misc/err.c: Likewise.
72689         * misc/getttyent.c: Likewise.
72690         * misc/mntent_r.c: Likewise.
72691         * posix/getopt.c: Likewise.
72692         * posix/wordexp.c: Likewise.
72693         * pwd/fgetpwent_r.c: Likewise.
72694         * resolv/Versions: Likewise.
72695         * resolv/res_hconf.c: Likewise.
72696         * shadow/fgetspent_r.c: Likewise.
72697         * shadow/putspent.c: Likewise.
72698         * stdio-common/printf_fphex.c: Likewise.
72699         * stdio-common/tmpfile.c: Likewise.
72700         * stdlib/abort.c: Likewise.
72701         * stdlib/fmtmsg.c: Likewise.
72702         * sunrpc/auth_unix.c: Likewise.
72703         * sunrpc/clnt_perr.c: Likewise.
72704         * sunrpc/clnt_tcp.c: Likewise.
72705         * sunrpc/clnt_udp.c: Likewise.
72706         * sunrpc/clnt_unix.c: Likewise.
72707         * sunrpc/openchild.c: Likewise.
72708         * sunrpc/svc_simple.c: Likewise.
72709         * sunrpc/svc_tcp.c: Likewise.
72710         * sunrpc/svc_udp.c: Likewise.
72711         * sunrpc/svc_unix.c: Likewise.
72712         * sunrpc/xdr.c: Likewise.
72713         * sunrpc/xdr_array.c: Likewise.
72714         * sunrpc/xdr_rec.c: Likewise.
72715         * sunrpc/xdr_ref.c: Likewise.
72716         * sunrpc/xdr_stdio.c: Likewise.
72717
72718 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72719
72720         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72721
72722 2011-07-03  Andreas Jaeger  <aj@suse.de>
72723
72724         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72725         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72726         regenerate with gen-libm-tests.pl.
72727
72728 2010-05-12  Petr Baudis  <pasky@suse.cz>
72729
72730         [BZ #11589]
72731         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72732         around j0() zero points by switching to j1().
72733         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72734         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72735         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72736         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72737
72738 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72739
72740         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72741         instead of 0.
72742         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72743         instead of 0.
72744         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72745         Patch in part by Pavel Roskin <proski@gnu.org>.
72746
72747         [BZ #13138]
72748         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72749         realloc.
72750         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72751         Free memory block if necessary.
72752
72753         [BZ #12847]
72754         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72755         be NULL.  Don't lock in this case.
72756
72757 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72758
72759         * elf/elf.h (ELFOSABI_GNU): New macro.
72760         (ELFOSABI_LINUX): Define to that.
72761
72762 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72763
72764         * string/strncat.c (strncat): Undef the symbol in case it has been
72765         defined in bits/string.h.
72766
72767 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72768
72769         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72770
72771         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72772         link map.
72773
72774 2011-08-17  Andreas Jaeger  <aj@suse.de>
72775
72776         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72777
72778 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72779             Ian Lance Taylor  <iant@google.com>
72780
72781         * math/libm-test.inc (lround_test): New testcase.
72782         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72783
72784 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72785
72786         * Makefile: Remove support for automatic cvs check-ins.
72787         * Makerules: Likewise.
72788         * config.make.in: Likewise.
72789         * configure.in: Likewise.
72790         * intl/Makefile: Likewise.
72791         * locale/Makefile: Likewise.
72792         * po/Makefile: Likewise.
72793         * posix/Makefile: Likewise.
72794         * sysdeps/gnu/Makefile: Likewise.
72795         * sysdeps/mach/hurd/Makefile: Likewise.
72796         * sysdeps/sparc/sparc32/Makefile: Likewise.
72797
72798         [BZ #13118]
72799         * posix/Makefile (bug-regex32-ENV): Define.
72800         Patch by John Stanley <jpsinthemix@verizon.net>.
72801
72802         * misc/Makefile (headers): Add bits/select2.h.
72803         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72804         * misc/bits/select2.h: New file.
72805         * include/bits/select2.h: New file.
72806         * debug/Makefile (routines): Add fdelt_chk.
72807         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72808         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72809         FD_ISSET.
72810         * debug/fdelt_chk.c: New file.
72811
72812         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72813         * wcsmbs/test-wmemcmp.c: Likewise.
72814         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72815         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72816
72817 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72818
72819         * string/Makefile (strop-tests): Add memcmp.
72820         * string/test-wmemcmp.c: New file.
72821         * string/test-memcmp.c: Add wmemcmp support.
72822
72823 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72824
72825         [BZ #13153]
72826         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72827         2011-07-19 change.
72828
72829         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72830         garbage value in a __mach_port_mod_refs call in the cases of the
72831         task-self and thread-self ports.
72832
72833 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72834
72835         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72836
72837 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72838
72839         * elf/dl-load.c (lose): Check for non-null L.
72840
72841 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72842
72843         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72844
72845         * elf/dl-libc.c (dlerror_run): Pass back error code from
72846         dl_catch_error.
72847
72848         [BZ #13123]
72849         * elf/dl-load.c (lose): Free l_origin if it is valid.
72850
72851         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72852         names.
72853         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72854         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72855         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72856         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72857         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72858         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72859
72860 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72861
72862         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72863         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72864         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72865         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72866         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72867         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72868         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72869         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72870         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72871         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72872
72873 2011-08-15  Alan Modra  <amodra@gmail.com>
72874
72875         [BZ #13092]
72876         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72877         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72878         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72879         ppc_mcount to static-only-routines.
72880         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72881         __mcount_internal.
72882         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72883         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72884
72885 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72886
72887         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72888         for finite and infinity parameters.
72889
72890 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72891
72892         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72893         and add nop instructions for throughput optimization.
72894         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72895
72896 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72897
72898         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72899         aligned copy for power7 with vector-scalar instructions.
72900         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72901
72902 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72903
72904         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72905         AVX check.
72906
72907 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72908
72909         [BZ #13144]
72910         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72911         last change.
72912
72913 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72914
72915         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72916         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72917         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72918         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72919         clock_gettime.
72920
72921 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72922
72923         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72924         Forgot to demangle the pointer.
72925
72926         * sysdeps/i386/sysdep.h: Define atom_text_section.
72927         * sysdeps/x86_64/sysdep.h: Likewise.
72928         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72929         section with atom_text_section.
72930         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72931         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72932         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72933         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72934         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72935
72936         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72937         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72938         already be defined.  Change to take two parameters and don't assign
72939         result to variable.  Adjust all users.
72940         Define INTERNAL_GETTIME if not already defined.
72941         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72942         call.
72943         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72944         HAVE_CLOCK_GETTIME_VSYSCALL.
72945         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72946
72947         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72948         gettimeofday vsyscall, just use time.
72949
72950 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72951
72952         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72953         <errno.h>.
72954
72955 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72956
72957         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72958         syscall on x86-64.
72959         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72960         syscall.
72961         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72962         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72963         syscall if possible.
72964
72965 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72966
72967         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72968         e_ident.  Don't pass to find_mapsXX.
72969         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72970
72971 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72972
72973         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72974         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72975         * sysdeps/x86_64/multiarch/strchr.S: Update.
72976         Check bit_slow_BSF bit.
72977         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72978         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72979         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72980
72981 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72982
72983         [BZ #13134]
72984         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72985         before glibc 2.15.
72986         (tryshell): Define.
72987         (__spawni): Change last parameter to be flag.  Test
72988         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72989         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72990         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72991         * posix/spawni.c: Likewise.
72992         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72993         * posix/spawnp.c: Likewise.  Change normal version to use
72994         SPAWN_XFLAGS_USE_PATH.
72995         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72996         SPAWN_XFLAGS_TRY_SHELL.
72997
72998         [BZ #13150]
72999         * posix/glob.h: Remove gcc 1.x support.
73000
73001         [BZ #13068]
73002         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73003
73004 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73005
73006         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73007         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73008         strrchr-sse2-bsf
73009         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73010         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73011         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73012         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73013         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73014         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73015
73016 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73017
73018         * sysdeps/x86_64/wcscmp.S: New file.
73019
73020         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73021         wcscmp-c wcscmp-sse2
73022         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73023         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73024         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73025         * wcsmbs/wcscmp.c: Allow renaming.
73026
73027 2011-09-05  David S. Miller  <davem@davemloft.net>
73028
73029         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73030         stack slot, rather than the struct return pointer slot.
73031         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73032         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73034         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73035
73036 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73037
73038         * po/ja.po: Update from translation team.
73039
73040         [BZ #13144]
73041         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73042         kernel in 64-bit binaries.
73043
73044 2011-09-01  David S. Miller  <davem@davemloft.net>
73045
73046         * elf/elf.h (HWCAP_SPARC_*): Move to..
73047         * sysdeps/sparc/sysdep.h: this new file and add new values.
73048         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73049         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73050         _DL_HWCAP_COUNT to 24.
73051         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73052         entries.
73053         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73054         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73055         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73056         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73057         instead of magic constants.
73058         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73059
73060 2011-08-31  David S. Miller  <davem@davemloft.net>
73061
73062         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73063         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73064         Reimplement to do errno handling inline.
73065         (SYSCALL_ERROR_HANDLER): New macro.
73066         (__SYSCALL_STRING): Do not do errno handling in asm.
73067         (__CLONE_SYSCALL_STRING): Delete.
73068         (__INTERNAL_SYSCALL_STRING): Delete.
73069         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73070         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73071         (PSEUDO): Reimplement to do errno handling inline.
73072         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73073         (SYSCALL_ERROR_HANDLER): New macro.
73074         (__SYSCALL_STRING): Do not do errno handling in asm.
73075         (__CLONE_SYSCALL_STRING): Delete.
73076         (__INTERNAL_SYSCALL_STRING): Delete.
73077         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73078         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73079         i386.
73080         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73081         (inline_syscall*): Add 'err' argument.
73082         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73083         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73084         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73085         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73086
73087         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73088         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73089
73090 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73091
73092         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73093
73094 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73095
73096         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73097         directive.
73098
73099 2011-08-24  David S. Miller  <davem@davemloft.net>
73100
73101         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73102
73103 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73104
73105         * elf/Makefile: Add rules to build and run unload8 test.
73106         * elf/unload8.c: New file.
73107         * elf/unload8mod1.c: New file.
73108         * elf/unload8mod1x.c: New file.
73109         * elf/unload8mod2.c: New file.
73110         * elf/unload8mod3.c: New file.
73111
73112         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73113         it wasn't used.
73114
73115 2011-08-23  David S. Miller  <davem@davemloft.net>
73116
73117         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73118         subtract stack bias.
73119         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73120         %sp not %fp in calculations.
73121         (_JMPBUF_UNWINDS_ADJ): Likewise.
73122
73123         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73124         (aio_suspend): Call it to force an exception region around the
73125         AIO_MISC_WAIT() invocation.
73126
73127 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73128
73129         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73130         backslash.
73131
73132 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73133
73134         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73135         protection macro.
73136         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73137         and <dl-machine.h>.
73138         (Elf64_FuncDesc): Remove.
73139
73140 2011-08-22  David S. Miller  <davem@davemloft.net>
73141
73142         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73143         sigaltstack check, add missing cfi directives.
73144         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73145         missing cfi directives, and sigaltstack handling.
73146
73147 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73148
73149         [BZ #11724]
73150         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73151         object is seen twice.
73152         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73153
73154         * elf/Makefile (distribute): Add tst-initorder2.c.
73155         (tests): Add tst-initorder2.
73156         (modules-names): Add tst-initorder2a tst-initorder2b
73157         tst-initorder2c tst-initorder2d.  Add rules to build them.
73158         ($(objpfx)tst-initorder2.out): New rule.
73159         * elf/tst-initorder2.c: New file.
73160         * elf/tst-initorder2.exp: New file.
73161
73162 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73163
73164         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73165
73166         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73167         dependencies back to end of function.
73168
73169         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73170         $(elfobjdir)/ld.so.
73171
73172 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73173
73174         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73175         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73176         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73177         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73178         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73179         of __vdso_gettimeofday.
73180         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73181         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73182         attribute_hidden.
73183         (_libc_vdso_platform_setup): Remove initialization of
73184         __vdso_gettimeofday and __vdso_time.
73185
73186 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73187
73188         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73189         and fgetc_unlocked.
73190         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73191         getc_unlocked.
73192
73193         * elf/dl-open.c (add_to_global): Report additions to the global scope
73194         for LD_DEBUG=scopes.
73195         (dl_open_worker): Also print scope of newly loaded dependencies.
73196         (_dl_show_scope): Indicate if there is no scope.
73197
73198         [BZ #13114]
73199         * stdio-common/Makefile (tests): Add bug24.
73200         * stdio-common/bug24.c: New file.
73201
73202 2011-08-19  Andreas Jaeger  <aj@suse.de>
73203
73204         [BZ #13114]
73205         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73206         non-existant file when using close-on-exec mode.
73207
73208 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73209
73210         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73211         the very first instruction.
73212
73213         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73214         the CFI state in the end.
73215         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73216         inclusion of dl-trampoline.h.
73217         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73218
73219 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73220
73221         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73222         expectations for long double.
73223
73224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73225         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73226
73227 2011-08-14  David S. Miller  <davem@davemloft.net>
73228
73229         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73230         artificual limit depends upon the system page size.
73231
73232 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73233
73234         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73235         * resolv/Makefile: Define CFLAGS-libresolv.
73236
73237 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73238
73239         * nss/makedb.c (compute_tables): Make variables used in nested
73240         function static.
73241
73242 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73243
73244         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73245         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73246         if buffer was too small.
73247
73248         * elf/pldd.c (main): Attach to all threads in the process.
73249         Rewrite /proc handling to use *at functions.
73250
73251 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73252
73253         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73254         specifies first scope to show.
73255         (dl_open_worker): Update callers.  Move printing scope of new
73256         object to before the relocation.
73257         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73258         * sysdeps/generic/ldsodefs.h: Update declaration.
73259
73260         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73261         string for the scope number.
73262
73263 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73264
73265         * nscd/servicescache.c (cache_addserv): Make sure written is always
73266         initialized.
73267
73268 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73269
73270         * sysdeps/i386/i486/bits/atomic.h
73271         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73272         statement expression, so as to suppress "set but not used" warning.
73273         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73274
73275         * string/strncat.c (STRNCAT): Use prototype definition.
73276
73277         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73278         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73279         -Iprograms here.
73280         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73281         (localedef-modules): Add localedef.
73282         (locale-modules): Add locale.
73283
73284         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73285         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73286         to avoid a warning.
73287
73288 2011-08-14  David S. Miller  <davem@davemloft.net>
73289
73290         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73291         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73292
73293 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73294
73295         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73296         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73297         * elf/rtld.c (dl_main): Set l_name of vDSO.
73298         Call _dl_show_scope when DL_DEBUG_SCOPES.
73299         (process_dl_debug): Recognize scopes flag and also set it for all.
73300         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73301         Declare _dl_show_scope.
73302
73303         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73304         (do_dlopen): Pass caller_dlopen to dl_open.
73305         (__libc_dlopen_mode): Initialize caller_dlopen.
73306
73307         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73308         of libc.  Make tolower call locale-independent.  Optimize a bit by
73309         using isdigit instead of isalnum.
73310         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73311
73312 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73313
73314         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73315         was a dependency or dynamically loaded.
73316
73317 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73318
73319         * intl/l10nflist.c: Allow architecture-specific pop function.
73320         * sysdeps/x86_64/l10nflist.c: New file.
73321
73322         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73323         classification.
73324
73325 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73326
73327         * include/dirent.h: Add libc_hidden_proto for scandirat and
73328         scandirat64.  Don't declare __scandirat64.
73329         * dirent/scandirat.c: Add libc_hidden_def.
73330         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73331         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73332
73333 2011-08-10  David S. Miller  <davem@davemloft.net>
73334
73335         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73336         enum.
73337         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73338         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73339         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73340
73341 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73342
73343         * Versions.def [libc]: Add GLIBC_2.15.
73344         * dirent/Makefile (routines): Add scandirat and scandirat64.
73345         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73346         GLIBC_2.15.
73347         * dirent/dirent.h: Declare scandirat and scandirat64.
73348         * dirent/scandirat.c: New file.
73349         * dirent/scandirat64.c: New file.
73350         * sysdeps/wordsize-64/scandirat.c: New file.
73351         * sysdeps/wordsize-64/scandirat64.c: New file.
73352         * dirent/opendir.c: Define opendirat.
73353         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73354         using scandirat.
73355         * dirent/scandir64.c: Adjust for scandir.c change.
73356         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73357         __scandirat64, and __scandir_cancel_handler.
73358         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73359         additional parameter and use openat instead of open (outside of ld.so).
73360         Add new __opendir as wrapper around __opendirat.
73361         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73362         here without requiring old scandirat implementation.
73363
73364 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73365
73366         * dirent/scandir.c (cancel_handler): Renamed to
73367         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73368         defined.  Adjust users.
73369         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73370         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73371
73372 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73373
73374         * string/test-string.h (IMPL): Use __STRING to expand name and then
73375         stringify it.
73376
73377         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73378         of cleanups.
73379
73380 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73381
73382         * string/Makefile: Update.
73383         (strop-tests): Append strncat.
73384         * string/test-wcscmp.c: New file.
73385         New comprehensive test for wcscmp.
73386         * string/test-strcmp.c: Update.
73387         (WIDE): New define.
73388
73389 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73390
73391         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73392         line.
73393
73394 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73395
73396         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73397         encoding to ACE if AI_IDN.
73398
73399 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73400
73401         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73402         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73403
73404 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73405
73406         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73407         Fix overflow bug in strncat.
73408         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73409
73410         * string/test-strncat.c: Update.
73411         Add new tests for checking overflow bugs.
73412
73413 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73414
73415         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73416         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73417         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73418         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73419         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73420         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73421         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73422         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73423         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73424
73425         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73426         (USE_AS_STRCAT): Define.
73427         Add strcat and strncat support.
73428         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73429
73430 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73431
73432         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73433         __n bigger than INT_MAX+1.
73434         (__strncmp_g): Likewise.
73435
73436 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73437
73438         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73439         * libio/stido.h: Likewise.
73440
73441         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73442         (AF_NFC): Define.
73443         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73444         (AF_NFC): Define.
73445
73446         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73447         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73448         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73449         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73450         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73451
73452         [BZ #13021]
73453         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73454         installed.
73455
73456         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73457         typo.
73458         (_dl_x86_64_save_sse): Likewise.
73459
73460 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73461
73462         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73463         OSXSAVE.
73464         (_dl_x86_64_save_sse): Likewise.
73465
73466         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73467
73468         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73469
73470 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73471
73472         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73473         change.
73474         (_dl_x86_64_save_sse): Use correct AVX check.
73475
73476 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73477
73478         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73479         bug in strncpy/strncat.
73480         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73481
73482 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73483
73484         * string/tester.c (test_strcat): Add tests for different alignments
73485         of source and destination.
73486         (test_strncat): Likewise.
73487
73488 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73489
73490         [BZ #12852]
73491         * posix/glob.c (glob): Check passed in values before using them in
73492         expressions to avoid some overflows.
73493         (glob_in_dir): Likewise.
73494
73495         [BZ #13007]
73496         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73497         check for AVX enablement so that we don't crash with old kernels and
73498         new hardware.
73499         * elf/tst-audit4.c: Add same checks here.
73500         * elf/tst-audit6.c: Likewise.
73501
73502         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73503
73504 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73505
73506         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73507
73508 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73509
73510         * po/cs.po: Update from translation team.
73511         * po/bg.po: Likewise.
73512
73513 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73514
73515         * misc/sys/cdefs.h: Add support for const attribute.
73516         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73517         to gnu_dev_{major,minor,makedev} functions.
73518
73519 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73520
73521         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73522
73523 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73524
73525         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73526         strlen results.
73527
73528 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73529
73530         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73531         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73532         register in order to avoid conflicts with the soft frame pointer
73533         being held in r11 when necessary.
73534         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73535         (INTERNAL_VSYSCALL_NCS): Likewise.
73536
73537 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73538
73539         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73540         * elf/dl-fini.c (_dl_fini): Adjust caller.
73541         * elf/dl-close.c (_dl_close_worker): Likewise.
73542         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73543
73544 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73545
73546         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73547         "aux_cache->nlibs < 0".
73548
73549         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73550         in the reload-count case.
73551
73552 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73553
73554         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73555         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73556         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73557         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73558         * sysdeps/x86_64/multiarch/strcat.S: New file.
73559         * sysdeps/x86_64/multiarch/strncat.S: New file.
73560         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73561         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73562         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73563         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73564         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73565         (USE_AS_STRCAT): Define.
73566         Add strcat and strncat support.
73567         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73568         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73569         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73570         * string/strncat.c: Update.
73571         (USE_AS_STRNCAT): Define.
73572         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73573         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73574         and i7.
73575         * sysdeps/x86_64/multiarch/init-arch.h
73576         (bit_Prefer_PMINUB_for_stringop): New.
73577         (index_Prefer_PMINUB_for_stringop): Likewise.
73578         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73579         bit_Prefer_PMINUB_for_stringop.
73580
73581 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73582
73583         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73584         buffer64.
73585         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73586         of casting of buffer.
73587         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73588         buffer32 and buffer64.
73589         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73590         writes instead of casting of buffer.
73591         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73592         buffer32.
73593         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73594         casting of buffer.
73595
73596 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73597
73598         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73599
73600 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73601
73602         * nscd/nscd.c (termination_handler): Don't do anything for a database
73603         if it has not yet been initialized.
73604
73605 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73606
73607         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73608
73609 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73610
73611         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73612
73613 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73614
73615         * po/nl.po: Update from translation team.
73616         * po/sv.po: Likewise.
73617
73618 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73619
73620         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73621         now disallowed by GCC.
73622
73623         * configure.in (use-default-link): Default to yes if a test -shared
73624         link meets our qualifications.
73625         * configure: Regenerated.
73626
73627         * config.make.in (output-format): New variable.
73628         * configure.in: Check for ld --print-output-format support.
73629         * configure: Regenerated.
73630         * Makerules ($(common-objpfx)format.lds)
73631         [$(output-format) != unknown]: Just use $(output-format),
73632         instead of the linker-script munging.
73633
73634 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73635
73636         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73637         of $(common-objpfx)shlib.lds.
73638         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73639
73640         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73641         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73642
73643         * configure.in (-z relro check): Adjust test code to add a large
73644         writable data section after it.
73645         * configure: Regenerated.
73646
73647 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73648
73649         * configure.in (-z relro check): Fix test code to make the variable
73650         truly const.
73651         * configure: Regenerated.
73652
73653 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73654
73655         * nscd/nscd.h (struct traced_file): Define.
73656         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73657         elements.  Add traced_files.
73658         (inotify_fd): Declare.
73659         (register_traced_file): Declare.
73660         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73661         (inotify_fd): Export.
73662         (resolv_conf_descr): Remove.
73663         (nscd_init): Move inotify descriptor creation to main.
73664         Don't register files for notification here.
73665         (register_traced_file): New function.
73666         (invalidate_cache): Don't use reset_res to determine whether to call
73667         res_init, go through the list of registered files.
73668         (main_loop_poll): The inotify descriptors are now stored in the
73669         structures for the traced files.
73670         (main_loop_epoll): Likewise.
73671         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73672         to __nss_disable_nscd.
73673         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73674         for a database anymore.  Check the records for all the registered
73675         files instead.
73676         * nss/Makefile (libnss_files-routines): Add files-init.
73677         (libnss_db-routines): Add db-init.
73678         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73679         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73680         * nss/nss_db/db-init.c: New file.
73681         * nss/nss_files/files-init.c: New file.
73682         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73683         __nss_lookup_function.
73684         (__nss_lookup_function): Call nss_load_library.
73685         (nss_load_all_libraries): New function.
73686         (__nss_disable_nscd): Take parameter with callback function for files
73687         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73688         used for the cached services.
73689         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73690         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73691         options for features to all the files in nscd.
73692
73693         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73694
73695 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73696
73697         * csu/elf-init.c (__libc_csu_init): Comment typo.
73698
73699 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73700
73701         * po/pl.po: Update from translation team.
73702         * po/ja.po: Likewise.
73703         * po/ru.po: Likewise.
73704         * po/ko.po: Likewise.
73705         * po/fr.po: Likewise.
73706
73707 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73708
73709         * configure.in (.ctors/.dtors header and trailer check):
73710         Use an empirical test on a built program.
73711         * configure: Regenerated.
73712
73713         * configure.in (-z relro check): Use an empirical test on a built DSO.
73714         Detect, but do not require, on ia64.
73715         * configure: Regenerated.
73716
73717         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73718         Update tests that use readelf to use $READELF instead.
73719         * configure: Regenerated.
73720
73721 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73722
73723         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73724         if the result is not used.
73725
73726 2011-07-05  Andreas Jaeger  <aj@suse.de>
73727
73728         [BZ#9696]
73729         * stdlib/tst-strtod.c: Add testcase.
73730
73731 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73732
73733         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73734         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73735         The latter has a higher limit.  Take additional parameter to pass to
73736         the new function.
73737         (__pathconf): Pass file to __statfs_link_max.
73738         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73739         __statfs_link_max.
73740         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73741         __statfs_link_max.
73742
73743         [BZ #12868]
73744         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73745         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73746         Handle Lustre.
73747         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73748         (__statfs_filesize_max): Likewise.
73749         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73750
73751 2011-07-05  Andreas Jaeger  <aj@suse.de>
73752
73753         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73754
73755 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73756
73757         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73758         `status' variable.
73759         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73760         Likewise.
73761
73762 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73763
73764         * Makefile (strop-tests): Add strncat.
73765         * string/test-strncat.c: New file.
73766
73767 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73768
73769         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73770
73771 2011-06-21  Andreas Jaeger  <aj@suse.de>
73772
73773         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73774         Copy rule from iconvdata/Makefile.
73775
73776 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73777
73778         [BZ #12922]
73779         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73780         but no long options are defined, just return 'W'.
73781
73782 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73783
73784         [BZ #9696]
73785         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73786
73787 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73788
73789         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73790         netgroups to read.
73791         (innetgr): Likewise.
73792
73793 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73794
73795         * config.make.in (install_root): Default to $(DESTDIR).
73796
73797 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73798
73799         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73800
73801 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73802
73803         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73804
73805         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73806         containing directory rather than embedding absolute directory names.
73807
73808         * scripts/check-local-headers.sh: Rewritten using awk.
73809         Match by word, not by line.  Print error messages for matches.
73810         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73811
73812         * Makerules [shlib-lds-flags empty]:
73813         ($(common-objpfx)libc_pic.opts): New target.
73814         ($(common-objpfx)libc_pic.os.clean): New target.
73815         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73816
73817         * config.make.in (OBJCOPY): New variable.
73818         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73819         * configure: Regenerated.
73820
73821         * config.make.in (use-default-link): New variable.
73822         * configure.in (use_default_link): Grok --with-default-link to set it.
73823         * configure: Regenerated.
73824         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73825         (shlib-lds, shlib-lds-flags): Define to empty.
73826
73827         * Makerules (shlib-lds): New variable.
73828         (shlib-lds-flags): New variable.
73829         (build-shlib, build-moduile, build-module-asneeded): Use it.
73830         ($(common-objpfx)libc.so): Use $(shlib-lds).
73831         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73832         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73833
73834         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73835         DT_FLAGS/DT_FLAGS_1 with zero flags.
73836
73837         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73838         linker script munging.
73839
73840 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73841
73842         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73843         as 128-bit value.
73844         * crypt/sha512.c (sha512_process_block): Perform total addition using
73845         128-bit if possible.
73846         (__sha512_finish_ctx): Likewise.
73847         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73848         as 64-bit value.
73849         * crypt/sha256.c (SWAP64): Define.
73850         (sha256_process_block): Perform total addition using 64-bit if
73851         possible.
73852         (__sha256_finish_ctx): Likewise.
73853
73854 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73855
73856         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73857         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73858         * nscd/hstcache.c (cache_addhst): Likewise.
73859         * nscd/grpcache.c (cache_addgr): Likewise.
73860         * nscd/aicache.c (addhstaiX): Likewise.
73861         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73862
73863 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73864
73865         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73866         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73867         * nscd/hstcache.c (cache_addhst): Likewise.
73868         * nscd/grpcache.c (cache_addgr): Likewise.
73869         * nscd/aicache.c (addhstaiX): Likewise.
73870
73871 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73872
73873         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73874         domain only when needed.
73875
73876 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73877
73878         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73879         is always restored.
73880
73881 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73882
73883         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73884         are re-adding the entry.
73885         * nscd/servicescache.c (cache_addserv): Likewise.
73886
73887 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73888
73889         * sysdeps/generic/dl-irel.h: fix protection against multiple
73890         inclusions.
73891         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73892
73893 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73894
73895         [BZ #12935]
73896         * malloc/memusage.sh: Fix quoting in message.
73897         * debug/xtrace.sh: Likewise.
73898
73899         * configure.in: Remove support for --experimental-malloc option, make
73900         it the default.
73901         * config.make.in: Likewise.
73902         * malloc/Makefile: Likewise.
73903
73904 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73905
73906         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73907         two-byte characters.
73908
73909 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73910
73911         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73912         AC_CACHE_CHECK invocation.
73913         * configure: Regenerated.
73914
73915         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73916
73917 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73918
73919         [BZ #12350]
73920         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73921         bit from old_res_options.
73922
73923         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73924
73925         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73926         value type for setfct.
73927
73928 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73929
73930         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73931         __gettimeofday instead of gettimeofday.
73932
73933 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73934
73935         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73936
73937 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73938
73939         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73940
73941         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73942         info.
73943
73944 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73945
73946         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73947         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73948         strcpy-sse2-unaligned strncpy-sse2-unaligned
73949         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73950         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73951         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73952         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73953         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73954         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73955         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73956         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73957         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73958         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73959         (STRCPY): Support SSE2 and SSSE3 versions.
73960
73961 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73962
73963         [BZ #12874]
73964         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73965         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73966         kernels which artificially limit size of requests.
73967
73968 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73969
73970         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73971         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73972         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73973         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73974         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73975         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73976         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73977         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73978         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73979         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73980         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73981         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73982         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73983         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73984         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73985         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73986         Enable unaligned load optimization for Intel Core i3, i5 and i7
73987         processors.
73988         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73989         Define.
73990         (index_Fast_Unaligned_Load): Define.
73991         (HAS_FAST_UNALIGNED_LOAD): Define.
73992
73993 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73994
73995         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73996
73997 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73998
73999         [BZ #12907]
74000         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74001         until it is clear that the information is realy needed.
74002         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74003
74004 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74005
74006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74007
74008 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74009
74010         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74011         /sys/devices/system/cpu/online if it is usable.
74012
74013         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74014         reading the information from the /proc filesystem to once a second.
74015
74016 2011-06-21  Andreas Jaeger  <aj@suse.de>
74017
74018         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74019         NULL after inclusion of kernel headers.
74020
74021 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74022
74023         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74024         calls to internal_setent.
74025
74026         [BZ #12885]
74027         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74028         addresses using gethostbyname4_r ignore IPv4 addresses.
74029
74030         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74031         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74032
74033         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74034
74035 2011-06-20  David S. Miller  <davem@davemloft.net>
74036
74037         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74038         inclusions.
74039         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74040
74041         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74042         (elf_irel): Use it.
74043         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74044         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74045         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74046         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74047         * sysdeps/x86_64/dl-irel.h: Likewise.
74048
74049         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74050         * elf/dl-sym.c: Likewise.
74051
74052 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74053
74054         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74055         need to dereference resplen2.
74056
74057 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74058
74059         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74060
74061 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74062
74063         * Makeconfig: Define vardbdir and inst_vardbdir.
74064         * nss/Makefile: Add rules to install db-Makefile.
74065
74066         * nss/nss_db/db-XXX.c: Cleanup.
74067
74068         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74069         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74070         GLIBC_PRIVATE.
74071         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74072         * nss/makedb.c: Implement -g option to specify that value strings
74073         are generated and should not be added to table iterated over for
74074         get*ent calls.
74075         * nss/nss_db/db-initgroups.c: New file.
74076
74077         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74078         interface.
74079
74080         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74081         (internal_getgrouplist): Adjust to name change.
74082         Update use_initgroups_entry if this is not the first call.
74083         * nss/databases.def: Add initgroups entry.
74084
74085         * nss/makedb.c (compute_tables): Check result of multiple hash table
74086         sizes to minimize maximum chain length.
74087
74088 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74089
74090         * Versions.def: Add entry for libnss_db.
74091         * shlib-versions: Likewise.
74092         * nss/Makefile: Add rules to build libnss_db.
74093         * nss/Versions: Add libnss_db information.  Organize libnss_files
74094         entries better.
74095         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74096         makedb progra.  Some minor improvements to generate smaller files.
74097         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74098         here from...
74099         * nss/makedb.c: ...here.
74100         Improve database format to be smaller and require less memory at
74101         runtime.
74102         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74103         db anymore.
74104         * nss/nss_db/db-netgrp.c: Likewise.
74105         * nss/nss_db/db-open.c: Likewise.
74106         * nss/nss_files/flies-XXX.x: Adjust comments.
74107         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74108         * nss/nss_files/files-grp.c: Likewise.
74109         * nss/nss_files/files-hosts.c: Likewise.
74110         * nss/nss_files/files-network.c: Likewise.
74111         * nss/nss_files/files-proto.c: Likewise.
74112         * nss/nss_files/files-pwd.c: Likewise.
74113         * nss/nss_files/files-rpc.c: Likewise.
74114         * nss/nss_files/files-service.c: Likewise.
74115         * nss/nss_files/files-sgrp.c: Likewise.
74116         * nss/nss_files/files-spwd.c: Likewise.
74117         * nss/nss_db/db-alias.c: Removed.
74118         * nss/nss_db/dummy-db.h: Removed.
74119
74120 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74121
74122         * nss/makedb.c: Rewritten to not use database library.
74123         * nss/Makefile: Update to build new makedb program.
74124
74125 2011-06-14  Andreas Jaeger  <aj@suse.de>
74126
74127         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74128         memset declaration.
74129
74130 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74131
74132         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74133         tmpbuf.
74134
74135 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74136
74137         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74138         * elf/Makefile ($(objpfx)ld.so): Likewise.
74139
74140         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74141         Don't list ld.so twice in dependencies.
74142
74143         * posix/bug-regex31.c: Include <stdlib.h>.
74144
74145         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74146
74147         * nis/nss_compat/compat-spwd.c
74148         (getspent_next_nss_netgr): Remove unused variable.
74149         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74150
74151         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74152         nonmembers" output to use the right array.
74153
74154         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74155
74156         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74157
74158         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74159         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74160         * catgets/gencat.c (read_input_file): Likewise.
74161         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74162
74163         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74164         variable definition inside #if's controlling its use.
74165
74166         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74167
74168         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74169
74170         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74171
74172         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74173         unreachable code.
74174
74175         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74176
74177         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74178         * configure: Regenerated.
74179
74180         * Makerules: Revert last change.
74181         * elf/Makefile: Likewise.
74182
74183 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74184
74185         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74186         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74187         (reloc-link): Likewise.
74188
74189 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74190
74191         * elf/Makefile: Add rules to build pldd.
74192         * elf/pldd.c: New file.
74193         * elf/pldd-xx.c: New file.
74194
74195 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74196
74197         * version.h: Update for 2.15 development version.
74198
74199 2011-06-07  David S. Miller  <davem@davemloft.net>
74200
74201         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74202         ifuncs.
74203         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74204         elf_machine_lazy_rel): Likewise.
74205         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74206         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74207         elf_machine_lazy_rel): Likewise.
74208         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74209         dl_hwcap via passed in argument.
74210         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74211         Likewise.
74212
74213 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74214
74215         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74216
74217 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74218
74219         [BZ #12849]
74220         * manual/fdl-1.1.texi: New file, verbatim from:
74221         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74222         * manual/lgpl-2.1.texi: New file, verbatim from:
74223         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74224         * manual/Makefile (licenses): New variable, list those new file names.
74225         (texis): Use it.
74226         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74227
74228         * manual/fdl.texi: File removed.
74229         * manual/lesser.texi: File removed.
74230         * manual/libc.texinfo (Copying, Documentation License):
74231         Use new @include file names, put @appendix directive before @include.
74232
74233 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74234
74235         [BZ #12841]
74236         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74237         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74238         (mq_open): Add __NTH.
74239
74240 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74241
74242         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74243         Assume Intel Core i3/i5/i7 processor if AVX is available.
74244
74245 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74246
74247         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74248         typo.
74249
74250 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74251
74252         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74253         memory.  Use alloca_account.  Fix memory leak when retrying.
74254
74255 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74256
74257         * version.h (RELEASE): Bump for 2.14 release.
74258         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74259
74260         * config.make.in (RANLIB): Remove entry.
74261
74262 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74263
74264         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74265         (libc.pot): Work around missing support for .ksh extension in xgettext.
74266
74267         [BZ #12684]
74268         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74269         if both request failed.
74270         (send_dg): In case of server errors clear resplen or *resplen2.
74271
74272         [BZ #12454]
74273         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74274         when there are multiple maps.
74275         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74276         (_dl_fini): Remove test here.
74277
74278         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74279
74280 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74281
74282         [BZ #12350]
74283         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74284         bit from old_res_options.
74285         (gaih_inet): Likewise.
74286
74287         [BZ #11099]
74288         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74289         as signed.
74290
74291         * resolv/res_init.c (res_setoptions): Make the code more compact.
74292
74293         [BZ #11558]
74294         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74295         set RES_USEVC.
74296
74297         [BZ #11634]
74298         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74299
74300         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74301
74302         [BZ #11781]
74303         * malloc/malloc.h: Declare malloc hook variables as volatile.
74304
74305         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74306         in last patch.
74307
74308         [BZ #11799]
74309         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74310         raise in the comment.
74311         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74312         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74313         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74314
74315 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74316
74317         [BZ #12811]
74318         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74319         grow the buffers more if it already has to be sufficient.
74320         (build_wcs_upper_buffer): Likewise.
74321         * posix/regexec.c (check_matching): Likewise.
74322         (clean_state_log_if_needed): Likewise.
74323         (extend_buffers): Don't enlarge buffers beyond size of the input
74324         buffer.
74325         Patches mostly by Emil Wojak <emil@wojak.eu>.
74326         * posix/bug-regex32.c: New file.
74327         * posix/Makefile (tests): Add bug-regex32.
74328
74329         * locale/findlocale.c (_nl_find_locale): Return right away if
74330         _nl_explode_name failed.
74331         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74332
74333         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74334
74335         * debug/xtrace.sh: Unify messages.
74336         * malloc/memusage.sh: Likewise.
74337
74338         [BZ #12813]
74339         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74340         time symbol from vDSO.  Substitute with vsyscall if not available.
74341         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74342         __vdso_time.
74343
74344         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74345         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74346         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74347         Add sendmmsg and internal_sendmmsg.
74348         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74349         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74350         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74351
74352         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74353         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74354         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74355
74356 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74357
74358         [BZ #12813]
74359         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74360         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74361         available.
74362         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74363         __vdso_getcpu.
74364
74365         [BZ #12814]
74366         * iconvdata/Makefile (tests): Add bug-iconv9.
74367         * iconvdata/bug-iconv9.c: New file.
74368
74369 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74370
74371         [BZ #12814]
74372         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74373
74374 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74375
74376         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74377         (struct user_regs_struct): Change intcs field back to cs.
74378
74379 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74380
74381         * po/ja.po: Update from translation team.
74382
74383 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74384
74385         [BZ #12795]
74386         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74387         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74388
74389 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74390
74391         * stdlib/longlong.h: Update from GCC.
74392
74393 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74394
74395         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74396         parameter name.
74397         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74398         Add parameter name.
74399         (__sysconf): Pass it down.
74400
74401 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74402
74403         [BZ #12671]
74404         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74405         some situations.
74406         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74407         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74408         add in in __libc_use_alloca calls.  Adjust callers.
74409         (glob): Use malloc in some situations.
74410
74411         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74412         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74413         pltexit.
74414
74415 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74416
74417         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74418         and CLOCK_BOOTTIME_ALARM.
74419
74420         [BZ #12782]
74421         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74422         is returned.
74423
74424         * string/_strerror.c (__strerror_r): Print negative errors as signed
74425         numbers.
74426
74427         [BZ #12777]
74428         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74429         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74430         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74431
74432         * configure.in: Fix typo in redirection and correct removal of test
74433         files in two cases.
74434
74435         [BZ #12788]
74436         * locale/setlocale.c (new_composite_name): Fix test to check for
74437         identical name of all categories.
74438
74439         [BZ #12792]
74440         * libio/filedoalloc.c (local_isatty): New function.
74441         (_IO_file_doallocate): Use local_isatty.
74442         * stdio-common/perror.c (perror): In case a new stream is used
74443         forward the stream error.
74444         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74445         error flag.
74446
74447 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74448
74449         [BZ #11884]
74450         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74451         alloca.
74452         * include/alloca.h (extend_alloca_account): Define.
74453
74454         [BZ #11857]
74455         * posix/regex.h: Fix comments with documentation of user-accessible
74456         fields after compilation and describe correct free'ing of pattern
74457         after re_compile_pattern.
74458         Patch by Reuben Thomas <rrt@sc3d.org>.
74459
74460 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74461
74462         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74463         and -mno-altivec to prevent the compiler from using Altivec and/or
74464         VSX instructions when the corresponding registers are not available.
74465
74466 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74467
74468         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74469
74470 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74471
74472         * libio/freopen.c (freopen): Use __dup2, not dup2.
74473         * libio/freopen64.c (freopen64): Likewise.
74474
74475 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74476
74477         [BZ #12775]
74478         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74479         * math/Makefile (tests): Add test-powl.
74480         (CFLAGS-test-powl.c): Define.
74481         * math/test-powl.c: New file.
74482
74483 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74484
74485         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74486
74487 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74488
74489         [BZ #11837]
74490         * iconvdata/gb18030.c: Update to GB18020-2005.
74491
74492 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74493
74494         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74495         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74496         Patch by Aharon Robbins <arnold@skeeve.com>.
74497
74498         [BZ #11892]
74499         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74500         on the stack.
74501
74502         [BZ #11895]
74503         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74504         through underflows.
74505
74506         [BZ #12766]
74507         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74508         point to strings before performing equality test for error_one_per_line
74509         mode.
74510
74511         [BZ #11697]
74512         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74513
74514         [BZ #11820]
74515         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74516         (struct user_fpregs_struct): Avoid __uint*_t types.
74517
74518         [BZ #6420]
74519         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74520         symbol info.  Use it instead of calling _dl_addr locally.
74521         (lock_and_info): New function.
74522         (tr_freehook): Call lock_and_info and pass symbol info as additional
74523         parameter to tr_where.
74524         (tr_mallochook): Likewise.
74525         (tr_reallochook): Likewise.
74526         (tr_memalignhook): Likewise.
74527
74528         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74529         used and couldn't be at all thread-safe.
74530
74531 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74532
74533         * libio/freopen.c (freopen): Don't close old file descriptor
74534         before the new one is opened.  Instead dup the new file descriptor
74535         to the old one after the new stream is created.
74536         * libio/freopen64.c (freopen64): Likewise.
74537         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74538         * libio/fileops.c (_IO_new_file_close_it): Handle new
74539         _IO_FLAGS2_NOCLOSE flag.
74540         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74541         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74542         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74543         _IO_FLAGS2_NOCLOSE flag.
74544         * include/unistd.h: Add hidden_proto for dup3.
74545         Define __have_dup3.
74546         * io/dup3.c: Define hidden symbol.
74547         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74548
74549         [BZ #7101]
74550         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74551         when an incomplete long option is used.
74552         * posix/tst-getopt_long1.c: New file.
74553         * posix/Makefile (tests): Add tst-getopt_long1.
74554
74555         [BZ #10138]
74556         * scripts/config.guess: Update from autoconf-2.68.
74557         * scripts/config.sub: Likewise.
74558
74559         [BZ #10157]
74560         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74561         tests into ...
74562         (has_cpuclock): ...this.  New function.
74563         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74564         macro here based on has_cpuclock code.
74565
74566         [BZ #10149]
74567         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74568         First byte (not low byte) is now always NUL.
74569         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74570
74571         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74572         Use non-cancelable interfaces.
74573
74574         [BZ #9809]
74575         * locale/iso-639.def: Add entry for Sorani.
74576
74577         [BZ #11901]
74578         * include/stdlib.h: Move include protection to the right place.
74579         Define abort_msg_s.  Declare __abort_msg with it.
74580         * stdlib/abort.c (__abort_msg): Adjust type.
74581         * assert/assert.c (__assert_fail_base): New function.  Majority
74582         of code from __assert_fail.  Allocate memory for __abort_msg with
74583         mmap.
74584         (__assert_fail): Now call __assert_fail_base.
74585         * assert/assert-perr.c: Remove bulk of implementation.  Use
74586         __assert_fail_base.
74587         * include/assert.hL Declare __assert_fail_base.
74588         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74589         mmap.
74590         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74591
74592 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74593
74594         [BZ #11952]
74595         [BZ #12453]
74596         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74597         until all modules are registered in the DTV.
74598         * elf/Makefile: Add rules to build and run tst-tls19.
74599         * elf/tst-tls19.c: New file.
74600         * elf/tst-tls19mod1.c: New file.
74601         * elf/tst-tls19mod2.c: New file.
74602         * elf/tst-tls19mod3.c: New file.
74603         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74604
74605         [BZ #12083]
74606         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74607         correctly.
74608
74609         [BZ #12601]
74610         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74611         two-byte sequence errors.
74612         * iconvdata/Makefile (tests): Add bug-iconv8.
74613         * iconvdata/bug-iconv8.c: New file.
74614
74615         [BZ #12626]
74616         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74617         buf2 definition.
74618
74619         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74620
74621         [BZ #12432]
74622         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74623         (dummy_getcfa): New function.
74624         (init): Get _Unwind_GetCFA address, use dummy if not found.
74625         (backtrace_helper): In recursion check, also check whether CFA changes.
74626         (__backtrace): Completely initialize arg.
74627
74628         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74629         storing incomplete byte sequence in state object.  Avoid testing for
74630         guaranteed too small input if we know there is enough data available.
74631
74632 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74633
74634         * Makeconfig (+link-pie): Indent.
74635         * Rules (binaries-pie): Define if $(have-fpie) and
74636         $(build-shared).
74637         (binaries-shared): Also filter out $(binaries-pie).
74638         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74639         * nscd/Makefile (others-pie): Add nscd.
74640         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74641         ($(objpfx)nscd): Remove command override.
74642         * login/Makefile (others-pie): Add pt_chown.
74643         ($(objpfx)pt_chown): Remove command override.
74644         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74645         remove command overrides.
74646
74647 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74648
74649         * libio/tst_putwc.c: Fix error messages.
74650
74651         [BZ #12724]
74652         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74653         currently writing and seek to current position when not.
74654         * libio/Makefile (tests): Add bug-fclose1.
74655         * libio/bug-fclose1.c: New file.
74656
74657 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74658
74659         [BZ #12511]
74660         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74661         don't set DF_1_NODELETE here.
74662         (do_lookup_x): When entering new entry test for copy relocation
74663         and if necessary set DF_1_NODELETE flag.
74664         * elf/tst-unique4.cc: New file.
74665         * elf/tst-unique4.h: New file.
74666         * elf/tst-unique4lib.cc: New file.
74667         * elf/Makefile: Add rules to build and run tst-unique4.
74668         Patch by Piotr Bury <pbury@goahead.com>.
74669
74670 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74671
74672         [BZ #12052]
74673         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74674
74675         [BZ #12625]
74676         * misc/mntent_r.c (addmntent): Flush the stream after the output
74677
74678         [BZ #12393]
74679         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74680         (is_trusted_path_normalize): Skip initial colon.  Append slash
74681         to empty buffer.  Duplicate is_trusted_path code but allow
74682         constructed patch to be prefix.
74683         (is_dst): Allow $ORIGIN followed by /.
74684         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74685         Correct testing of result of is_trusted_path_normalize
74686         (decompose_rpath): Fix warning.
74687
74688 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74689
74690         [BZ #11257]
74691         * grp/initgroups.c (internal_getgrouplist): When we found the service
74692         list through the initgroups entry in nsswitch.conf do not always
74693         continue on a successful lookup.  Don't always use the
74694         __nss_group_database value if it is set.
74695         * nss/nsswitch.conf (initgroups): Change action for successful db
74696         lookup to continue for compatibility.
74697
74698 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74699
74700         [BZ #11532]
74701         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74702         and CP774 modules.
74703         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74704         and CP774 modules.
74705         * iconvdata/tst-tables.sh: Likewise.
74706         * iconvdata/cp770.c: New file.
74707         * iconvdata/cp771.c: New file.
74708         * iconvdata/cp772.c: New file.
74709         * iconvdata/cp773.c: New file.
74710         * iconvdata/cp774.c: New file.
74711         * iconvdata/testdata/CP770: New file.
74712         * iconvdata/testdata/CP770..UTF8: New file.
74713         * iconvdata/testdata/CP771: New file.
74714         * iconvdata/testdata/CP771..UTF8: New file.
74715         * iconvdata/testdata/CP772: New file.
74716         * iconvdata/testdata/CP772..UTF8: New file.
74717         * iconvdata/testdata/CP773: New file.
74718         * iconvdata/testdata/CP773..UTF8: New file.
74719         * iconvdata/testdata/CP774: New file.
74720         * iconvdata/testdata/CP774..UTF8: New file.
74721
74722         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74723         END CHARMAP line.
74724         * iconvdata/gen-8bit-gap.sh: Likewise.
74725         * iconvdata/gen-8bit.sh: Likewise.
74726
74727         * locale/iso-639.def: Add ary entry.
74728
74729         [BZ #11258]
74730         * locale/C-translit.h.in: Add U20A1 transliteration.
74731
74732         [BZ #12178]
74733         * locale/iso-639.def: Add wae entry.
74734         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74735
74736         [BZ #12545]
74737         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74738         for n.
74739
74740         [BZ #12711]
74741         * locale/C-translit.h.in: Add entry for U20B9.
74742         Patch by pravin.d.s@gmail.com.
74743
74744 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74745
74746         [BZ #12713]
74747         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74748         ENAMETOOLONG use generic getcwd.
74749         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74750         in rtld.  Use *stat64.
74751         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74752         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74753         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74754         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74755         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74756         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74757         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74758         __fstatat64 macros.
74759         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74760         * dirent/rewinddir.c: Add libc_hidden_def.
74761         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74762         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74763
74764         * include/dirent.h (__alloc_dir): Add flags parameter.
74765         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74766         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74767         __alloc_dir.
74768         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74769         from fdopendir if O_CLOEXEC is already set.
74770
74771 2011-03-15  Alan Modra  <amodra@gmail.com>
74772
74773         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74774         l_tls_firstbyte_offset non-zero.  Save padding offset in
74775         l_tls_firstbyte_offset for later use.
74776         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74777         freeing static tls block.
74778
74779 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74780
74781         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74782         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74783         being defined by the kernel headers.
74784
74785 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74786
74787         [BZ #12734]
74788         * resolv/resolv.h: Define RES_NOTLDQUERY.
74789         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74790         no-tld-query and set RES_NOTLDQUERY.
74791         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74792         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74793         modern BIND to search name as TLD unless forbidden.
74794
74795 2011-05-07  Petr Baudis  <pasky@suse.cz>
74796             Ulrich Drepper  <drepper@gmail.com>
74797
74798         [BZ #12393]
74799         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74800         (is_trusted_path): ...to here.
74801         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74802         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74803         using is_trusted_path_normalize() in setuid scripts.
74804
74805 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74806
74807         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74808         __BEGIN/__END_DECLS.
74809
74810 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74811
74812         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74813         NSS_STATUS_NOTFOUND if no record was found.
74814
74815 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74816
74817         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74818         (headers-not-in-tirpc): Remove rpc/netdb.h
74819         * resolv/netdb.h: Revert last change.
74820
74821 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74822
74823         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74824         circular dependency between libgcc.a and libc.a.
74825
74826 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74827
74828         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74829         * nis/Makefile: Don't install rpcsvc/*.
74830         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74831         instead of <rpc/types.h>.
74832         (MAXHOSTNAMELEN): Define.
74833
74834 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74835
74836         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74837
74838 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74839
74840         [BZ #12714]
74841         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74842         gethostbyname4_r when IPv6 results are possible.
74843
74844 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74845
74846         [BZ #12723]
74847         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74848         _PC_PIPE_BUF handling.
74849
74850 2011-04-30  Bruno Haible  <bruno@clisp.org>
74851
74852         [BZ #12717]
74853         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74854         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74855         to 'int'.
74856         * inet/getnameinfo.c (getnameinfo): Likewise.
74857
74858 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74859
74860         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74861         to groups setting in database lookup.
74862         * nss/nsswitch.conf: Add initgroups entry.
74863
74864 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74865
74866         [BZ #12685]
74867         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74868         mode string.
74869         Patch by Eric Blake <eblake@redhat.com>.
74870
74871 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74872
74873         * sunrpc/Makefile (need-export-routines): Add svc_run.
74874         (routines): Remove svc_run.
74875         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74876         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74877         * sunrpc/svc_run.c (svc_run): Likewise.
74878         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74879
74880 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74881
74882         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74883         problem in reallocation in last patch.
74884
74885 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74886
74887         * sunrpc/Makefile: Move inclusion of Rules.
74888
74889 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74890
74891         * nss/nss_files/files-initgroups.c: New file.
74892         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74893         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74894         _nss_files_initgroups_dyn.
74895
74896 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74897
74898         * elf/elf.h (R_ARM_IRELATIVE): Define.
74899
74900 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74901
74902         * po/ru.po: Update from translation team.
74903
74904 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74905
74906         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74907         dependencies.
74908
74909 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74910
74911         [BZ #12653]
74912         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74913         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74914         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74915         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74916         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74917
74918 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74919
74920         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74921         differing bytes.
74922         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74923         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74924         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74925
74926 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74927
74928         [BZ #12420]
74929         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74930         storing it.
74931         * stdlib/bug-getcontext.c: New file.
74932         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74933
74934 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74935
74936         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74937         instructions into .machine "z9-109".
74938         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74939         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74940
74941 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74942
74943         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74944         between environment variables and auxiliary vector.
74945
74946 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74947
74948         * Makefile: Add rules to build linkobj/libc.so.
74949         * include/libc-symbols.h: Define libc_hidden_nolink.
74950         * include/rpc/auth.h: Mark functions which are to be hidden.
74951         * include/rpc/auth_des.h: Likewise.
74952         * include/rpc/auth_unix.h: Likewise.
74953         * include/rpc/clnt.h: Likewise.
74954         * include/rpc/des_crypt.h: Likewise.
74955         * include/rpc/key_prot.h: Likewise.
74956         * include/rpc/pmap_clnt.h: Likewise.
74957         * include/rpc/pmap_prot.h: Likewise.
74958         * include/rpc/pmap_rmt.h: Likewise.
74959         * include/rpc/rpc_msg.h: Likewise.
74960         * include/rpc/svc.h: Likewise.
74961         * include/rpc/svc_auth.h: Likewise.
74962         * include/rpc/xdr.h: Likewise.
74963         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74964         * nss/Makefile: Likewise.
74965         * sunrpc/Makefile: Don't install headers.  Build library with normal
74966         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74967         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74968         for the compat linking library.  Remove use of INTDEF/INTUSE.
74969         * sunrpc/auth_none.c: Likewise.
74970         * sunrpc/auth_unix.c: Likewise.
74971         * sunrpc/authdes_prot.c: Likewise.
74972         * sunrpc/authuxprot.c: Likewise.
74973         * sunrpc/clnt_gen.c: Likewise.
74974         * sunrpc/clnt_perr.c: Likewise.
74975         * sunrpc/clnt_raw.c: Likewise.
74976         * sunrpc/clnt_simp.c: Likewise.
74977         * sunrpc/clnt_tcp.c: Likewise.
74978         * sunrpc/clnt_udp.c: Likewise.
74979         * sunrpc/clnt_unix.c: Likewise.
74980         * sunrpc/des_crypt.c: Likewise.
74981         * sunrpc/des_soft.c: Likewise.
74982         * sunrpc/get_myaddr.c: Likewise.
74983         * sunrpc/key_call.c: Likewise.
74984         * sunrpc/key_prot.c: Likewise.
74985         * sunrpc/netname.c: Likewise.
74986         * sunrpc/pm_getmaps.c: Likewise.
74987         * sunrpc/pm_getport.c: Likewise.
74988         * sunrpc/pmap_clnt.c: Likewise.
74989         * sunrpc/pmap_prot.c: Likewise.
74990         * sunrpc/pmap_prot2.c: Likewise.
74991         * sunrpc/pmap_rmt.c: Likewise.
74992         * sunrpc/publickey.c: Likewise.
74993         * sunrpc/rpc_cmsg.c: Likewise.
74994         * sunrpc/rpc_common.c: Likewise.
74995         * sunrpc/rpc_dtable.c: Likewise.
74996         * sunrpc/rpc_prot.c: Likewise.
74997         * sunrpc/rpc_thread.c: Likewise.
74998         * sunrpc/rtime.c: Likewise.
74999         * sunrpc/svc.c: Likewise.
75000         * sunrpc/svc_auth.c: Likewise.
75001         * sunrpc/svc_authux.c: Likewise.
75002         * sunrpc/svc_raw.c: Likewise.
75003         * sunrpc/svc_run.c: Likewise.
75004         * sunrpc/svc_simple.c: Likewise.
75005         * sunrpc/svc_tcp.c: Likewise.
75006         * sunrpc/svc_udp.c: Likewise.
75007         * sunrpc/svc_unix.c: Likewise.
75008         * sunrpc/svcauth_des.c: Likewise.
75009         * sunrpc/xcrypt.c: Likewise.
75010         * sunrpc/xdr.c: Likewise.
75011         * sunrpc/xdr_array.c: Likewise.
75012         * sunrpc/xdr_float.c: Likewise.
75013         * sunrpc/xdr_intXX_t.c: Likewise.
75014         * sunrpc/xdr_mem.c: Likewise.
75015         * sunrpc/xdr_rec.c: Likewise.
75016         * sunrpc/xdr_ref.c: Likewise.
75017         * sunrpc/xdr_sizeof.c: Likewise.
75018         * sunrpc/xdr_stdio.c: Likewise.
75019
75020 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75021
75022         [BZ #12650]
75023         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75024         * sysdeps/ia64/dl-tls.h: Likewise.
75025         * sysdeps/powerpc/dl-tls.h: Likewise.
75026         * sysdeps/s390/dl-tls.h: Likewise.
75027         * sysdeps/sh/dl-tls.h: Likewise.
75028         * sysdeps/sparc/dl-tls.h: Likewise.
75029         * sysdeps/x86_64/dl-tls.h: Likewise.
75030         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75031
75032 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75033
75034         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75035         rpath element also skip the following colon.
75036         (expand_dynamic_string_token): Add is_path parameter and pass
75037         down to DL_DST_REQUIRED and _dl_dst_substitute.
75038         (decompose_rpath): Call expand_dynamic_string_token with
75039         non-zero is_path.  Ignore empty rpaths.
75040         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75041         with zero is_path.
75042
75043 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75044
75045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75046         Make cancelable.
75047
75048 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75049
75050         [BZ #12655]
75051         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75052         Patch by Filipe David Manana <fdmanana@apache.org>.
75053
75054 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75055
75056         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75057         Maintain aligned stack.
75058         (CHECK_RSP): Remove unused macro.
75059
75060 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75061
75062         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75063         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75064
75065 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75066
75067         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75068
75069         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75070
75071 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75072
75073         [BZ #12518]
75074         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75075         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75076         * sysdeps/x86_64/memmove.c: New file.
75077         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75078         (memcpy): Renamed to ...
75079         (__new_memcpy): This.
75080         (memcpy): Provide GLIBC_2_14 memcpy.
75081         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75082         (memcpy): Provide GLIBC_2_2_5 memcpy.
75083
75084 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75085
75086         [BZ #12631]
75087         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75088
75089 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75090
75091         * misc/syncfs.c: New file.
75092         * misc/Makefile (routines): Add syncfs.
75093         * posix/unistd.h: Declare syncfs.
75094         * sysdeps/unix/syscalls.list: Add syncfs.
75095
75096 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75097
75098         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75099         open_by_handle_at.
75100         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75101         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75102         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75103         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75104         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75105         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75106         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75107
75108 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75109
75110         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75111         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75112         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75113         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75114         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75115         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75116         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75117
75118         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75119         sync_file_range.c with -fexceptions.
75120         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75121         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75122         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75123         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75124         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75125         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75126         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75127         sync_file_range as cancellation point
75128         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75129         now a wrapper around __call_sync_file_range with cancellation handling.
75130         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75131         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75132         function name to __call_sync_file_range.
75133         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75134         Add call_sync_file_range.
75135
75136 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75137
75138         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75139         bits/timex.h.
75140
75141 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75142
75143         * iconv/iconv.h: Fix typo in comment.
75144         * io/fcntl.h: Likewise.
75145         * libio/stdio.h: Likewise.
75146         * posix/spawn.h: Likewise.
75147         * posix/unistd.h: Likewise.
75148         * stdlib/stdlib.h: Likewise.
75149         * time/time.h: Likewise.
75150         * wcsmbs/wchar.h: Likewise.
75151
75152         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75153         open_by_handle): Add.
75154         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75155         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75156         Augment a few comments.
75157         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75158         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75159         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75160         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75161         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75162         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75163         open_by_handle.
75164
75165         * io/fcntl.h (AT_EMPTY_PATH): Define.
75166
75167 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75168
75169         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75170         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75171         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75172         to...
75173         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75174         * Versions.def: Add GLIBC_2.14.
75175         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75176         Export.
75177
75178 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75179
75180         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75181         round counter.
75182         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75183
75184 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75185
75186         [BZ #12597]
75187         * string/test-strncmp.c (do_page_test): New function.
75188         (check2): Likewise.
75189         (test_main): Call check2.
75190         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75191
75192 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75193
75194         [BZ #12587]
75195         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75196         Handle cache information in CPU leaf 4.
75197         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75198
75199 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75200
75201         [BZ #12583]
75202         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75203         character representation.
75204         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75205
75206 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75207
75208         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75209         END(__isnan) to END(__isnanf) to match function entry point/label
75210         EALIGN(__isnanf,...).
75211
75212 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75213
75214         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75215
75216 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75217
75218         [BZ #12510]
75219         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75220         copy from the symbol referenced in the relocation to initialize the
75221         used variable.
75222         Patch by Piotr Bury <pbury@goahead.com>.
75223         * elf/Makefile: Add rules to build and tst-unique3.
75224         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75225         * elf/tst-unique3.cc: New file.
75226         * elf/tst-unique3.h: New file.
75227         * elf/tst-unique3lib.cc: New file.
75228         * elf/tst-unique3lib2.cc: New file.
75229
75230         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75231
75232 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75233
75234         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75235         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75236         to _start.
75237
75238 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75239
75240         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75241         to-be-loaded object along a path to loader is ld.so.
75242
75243 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75244             Ulrich Drepper  <drepper@gmail.com>
75245
75246         * sysdeps/x86_64/memset.S: After aligning destination, code
75247         branches to different locations depending on the value of
75248         misalignment, when multiarch is enabled. Fix this.
75249
75250 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75251
75252         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75253         Set _x86_64_preferred_memory_instruction for AMD processsors.
75254         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75255         Set bit_Prefer_SSE_for_memop for AMD processors.
75256
75257 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75258
75259         * libio/fmemopen.c (fmemopen): Optimize a bit.
75260
75261 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75262
75263         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75264
75265 2011-03-03  Roland McGrath  <roland@redhat.com>
75266
75267         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75268
75269 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75270
75271         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75272         __bzero_ultra1 instead of __memset_ultra1.
75273
75274 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75275             Ulrich Drepper  <drepper@gmail.com>
75276
75277         [BZ #12509]
75278         * include/link.h (struct link_map): Add l_orig_initfini.
75279         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75280         returning unsuccessfully.
75281         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75282         close of a file loaded at startup, restore the original l_initfini
75283         list.
75284         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75285         list, store the pointer.
75286         * elf/Makefile ($(objpfx)noload-mem): New rule.
75287         (noload-ENV): Define.
75288         (tests): Add $(objpfx)noload-mem.
75289         * elf/noload.c: Include <memcheck.h>.
75290         (main): Call mtrace.  Close all opened handles.
75291
75292 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75293
75294         [BZ #12454]
75295         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75296         dependencies are missing.
75297
75298 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75299
75300         Fix __if_freereq crash: Unlike the generic version which uses free,
75301         Hurd needs munmap.
75302         * sysdeps/mach/hurd/ifreq.h: New file.
75303
75304 2011-01-27  Petr Baudis  <pasky@suse.cz>
75305             Ulrich Drepper  <drepper@gmail.com>
75306
75307         [BZ 12445]#
75308         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75309         to extend_alloca().
75310         * stdio-common/bug23.c: New file.
75311         * stdio-common/Makefile (tests): Add bug23.
75312
75313 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75314             Ulrich Drepper  <drepper@gmail.com>
75315
75316         [BZ #12489]
75317         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75318         before performing relro protection.  At old place add assertion
75319         to make sure nothing changed.
75320
75321 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75322             Glauber de Oliveira Costa  <glommer@gmail.com>
75323
75324         * elf/elf.h: Add new ARM TLS relocs.
75325
75326 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75327
75328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75329         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75330         cast from r3.
75331         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75332         'tests' variable.
75333         * sysdeps/wordsize-64/tst-writev.c: New file.
75334
75335 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75336
75337         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75338         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75339         insns in _dl_start to prevent a TOC reference before relocs are
75340         resolved.
75341
75342 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75343
75344         [BZ #12469]
75345         * Makeconfig: Remove RANLIB definition.
75346         * Makerules: Don't use RANLIB.
75347         * aclocal.m4: Remove ranlib test.
75348         * configure.in: No need to check for ranlib.
75349         * elf/rtld-Rules: Don't use RANLIB.
75350
75351 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75352
75353         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75354         protection macro.
75355         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75356         inclusion protection macro.
75357
75358         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75359         SIGRTMIN and SIGRTMAX and print information in that case only when
75360         SIGRTMIN is defined.
75361
75362 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75363
75364         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75365         arginfo fn returning -1.
75366
75367         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75368         and thousands string is zero terminated.
75369
75370 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75371
75372         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75373         sysdeps/unix/sysv/linux/bits/socket.h.
75374
75375 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75376
75377         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75378         (__CPU_COUNT): Remove old macros.
75379         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75380         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75381         (__CPU_ALLOC, __CPU_FREE): Add macros.
75382         (__sched_cpualloc, __sched_cpufree): Add declarations.
75383
75384 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75385
75386         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75387         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75388         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75389         (readdhstai): Return value of addhstaiX call.
75390         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75391         (addgrbyX): Return value returned by cache_addgr.
75392         (readdgrbyname): Return value returned by addgrbyX.
75393         (readdgrbygid): Likewise.
75394         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75395         (addpwbyX): Return value returned by cache_addpw.
75396         (readdpwbyname): Return value returned by addhstbyX.
75397         (readdpwbyuid): Likewise.
75398         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75399         (addservbyX): Return value returned by cache_addserv.
75400         (readdservbyname): Return value returned by addservbyX:
75401         (readdservbyport): Likewise.
75402         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75403         (addhstbyX): Return value returned by cache_addhst.
75404         (readdhstbyname): Return value returned by addhstbyX.
75405         (readdhstbyaddr): Likewise.
75406         (readdhstbynamev6): Likewise.
75407         (readdhstbyaddrv6): Likewise.
75408         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75409         (readdinitgroups): Return value returned by addinitgroupsX.
75410         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75411         (prune_cache): Keep track of timeout value of re-added entries.
75412         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75413         * nscd/nscd.h: Adjust prototypes of readd* functions.
75414
75415 2011-02-04  Roland McGrath  <roland@redhat.com>
75416
75417         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75418         (nis_stats): Likewise.
75419         * nis/nis_modify.c (nis_modify): Likewise.
75420         * nis/nis_remove.c (nis_remove): Likewise.
75421         * nis/nis_add.c (nis_add): Likewise.
75422
75423         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75424
75425         * posix/fnmatch_loop.c: Add some consts.
75426
75427         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75428
75429 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75430
75431         [BZ #12460]
75432         * config.make.in (config-cflags-novzeroupper): Define.
75433         * configure.in: Substitute libc_cv_cc_novzeroupper.
75434         * elf/Makefile (AVX-CFLAGS): Define.
75435         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75436         (CFLAGS-tst-auditmod4a.c): Likewise.
75437         (CFLAGS-tst-auditmod4b.c): Likewise.
75438         (CFLAGS-tst-auditmod6b.c): Likewise.
75439         (CFLAGS-tst-auditmod6c.c): Likewise.
75440         (CFLAGS-tst-auditmod7b.c): Likewise.
75441         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75442
75443 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75444
75445         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75446         function to the callback.
75447         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75448
75449 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75450
75451         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75452         of errno.
75453
75454 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75455
75456         [BZ #11724]
75457         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75458         of constructors.
75459         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75460         of destructors.
75461         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75462
75463         [BZ #11724]
75464         * elf/Makefile: Add rules to build and run new test.
75465         * elf/tst-initorder.c: New file.
75466         * elf/tst-initorder.exp: New file.
75467         * elf/tst-initordera1.c: New file.
75468         * elf/tst-initordera2.c: New file.
75469         * elf/tst-initordera3.c: New file.
75470         * elf/tst-initordera4.c: New file.
75471         * elf/tst-initorderb1.c: New file.
75472         * elf/tst-initorderb2.c: New file.
75473         * elf/tst-order-a1.c: New file.
75474         * elf/tst-order-a2.c: New file.
75475         * elf/tst-order-a3.c: New file.
75476         * elf/tst-order-a4.c: New file.
75477         * elf/tst-order-b1.c: New file.
75478         * elf/tst-order-b2.c: New file.
75479         * elf/tst-order-main.c: New file.
75480         New test case by George Gensure <werkt0@gmail.com>.
75481
75482 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75483
75484         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75485         decoding ACE if AI_CANONIDN.
75486
75487 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75488
75489         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75490
75491 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75492
75493         * version.h (RELEASE): Bump for 2.13 release.
75494         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75495
75496         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75497
75498         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75499         MADV_NOHUGEPAGE.
75500         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75501         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75502         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75503         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75504         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75505         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75506
75507         * posix/getconf.c: Update copyright year.
75508         * catgets/gencat.c: Likewise.
75509         * csu/version.c: Likewise.
75510         * debug/catchsegv.sh: Likewise.
75511         * debug/xtrace.sh: Likewise.
75512         * elf/ldconfig.c: Likewise.
75513         * elf/ldd.bash.in: Likewise.
75514         * elf/sprof.c (print_version): Likewise.
75515         * iconv/iconv_prog.c: Likewise.
75516         * iconv/iconvconfig.c: Likewise.
75517         * locale/programs/locale.c: Likewise.
75518         * locale/programs/localedef.c: Likewise.
75519         * malloc/memusage.sh: Likewise.
75520         * malloc/mtrace.pl: Likewise.
75521         * nscd/nscd.c (print_version): Likewise.
75522         * nss/getent.c: Likewise.
75523
75524         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75525         PF_CAIF, and PF_ALG.
75526         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75527
75528 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75529
75530         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75531         (modules-names): Use them.
75532         (ifunc-test-modules, ifunc-pie-tests): Define.
75533         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75534         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75535         (test-extras): Likewise.
75536         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75537         $(compile-command.c).
75538         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75539         (all-built-dso): Define.
75540         (check-textrel.out, check-execstack.out): Depend on it.
75541
75542         * configure.in: Don't override --enable-multi-arch.
75543
75544 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75545
75546         [BZ #6812]
75547         * nscd/hstcache.c (tryagain): Define.
75548         (cache_addhst): Return tryagain not notfound for temporary errors.
75549         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75550         failed.
75551
75552 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75553
75554         [BZ #10563]
75555         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75556         to make the syscall.
75557         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75558
75559         [BZ #12378]
75560         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75561         and fall back to matching as normal character if the string ends before
75562         the matching ']' is found.  This is what POSIX requires.
75563         * posix/testfnm.c: Adjust test result.
75564         * posix/globtest.sh: Adjust test result.  Add new test.
75565         * posix/tst-fnmatch.input: Likewise.
75566         * posix/tst-fnmatch2.c: Add new test.
75567
75568 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75569
75570         * elf/Makefile (check-execstack): Revert last change.  Depend on
75571         check-execstack.h.
75572         (check-execstack.h): New target.
75573         (generated): Add check-execstack.h.
75574         * elf/check-execstack.c: Include "check-execstack.h".
75575         (main): Revert last change.
75576         (handle_file): Return zero if GNU_STACK is absent and
75577         DEFAULT_STACK_PERMS doesn't include PF_X.
75578
75579 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75580
75581         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75582         in child fails because the descriptor is already closed.
75583         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75584         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75585         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75586
75587         [BZ #12397]
75588         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75589         syscall.
75590
75591         [BZ #10484]
75592         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75593         temporary buffer used to handle multi lookups locally.
75594         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75595
75596 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75597
75598         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75599         loader is ld.so.
75600
75601 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75602
75603         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75604         alignment for SSE2.
75605
75606 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75607
75608         [BZ #12394]
75609         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75610         characters.  When rounding increased number of integer digits recompute
75611         number of groups.
75612         * stdio-common/tst-grouping.c: New file.
75613         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75614
75615 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75616
75617         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75618         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75619
75620         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75621         void.
75622         * bits/select.h: Likewise.
75623
75624 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75625
75626         * po/ja.po: Update from translation team.
75627
75628 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75629
75630         [BZ #11155]
75631         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75632         implementation just like for lxstat, fxstatat, et al.
75633
75634 2010-12-27  Jim Meyering  <meyering@redhat.com>
75635
75636         [BZ #12348]
75637         * posix/regexec.c (build_trtable): Return failure indication upon
75638         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75639
75640 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75641
75642         [BZ #12201]
75643         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75644         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75645         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75646         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75647
75648         [BZ #12207]
75649         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75650
75651         [BZ #12204]
75652         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75653         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75654
75655 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75656
75657         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75658         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75659         script has SORT_BY_INIT_PRIORITY.
75660         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75661         NO_CTORS_DTORS_SECTIONS is defined.
75662         * elf/soinit.c: Likewise.
75663         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75664         NO_CTORS_DTORS_SECTIONS is defined.
75665         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75666         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75667         * sysdeps/sh/init-first.c: Likewise.
75668         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75669
75670 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75671
75672         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75673         always use the slow path.
75674
75675 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75676
75677         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75678         similar rule which adds the sysdep directories to the header search in
75679         order to pick up the correct platform stackinfo.h.
75680         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75681         perform test if it is, otherwise return successfully without testing.
75682         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75683         DEFAULT_STACK_PERMS define in stackinfo.h.
75684         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75685         defined in stackinfo.h.
75686         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75687         DEFAULT_STACK_PERMS defined in stackinfo.h.
75688         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75689         * sysdeps/ia64/stackinfo.h: Likewise.
75690         * sysdeps/s390/stackinfo.h: Likewise.
75691         * sysdeps/sh/stackinfo.h: Likewise.
75692         * sysdeps/sparc/stackinfo.h: Likewise.
75693         * sysdeps/x86_64/stackinfo.h: Likewise.
75694         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75695         PF_X for powerpc64.  Retain PF_X for powerpc32.
75696
75697 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75698
75699         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75700         accurately.
75701         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75702         GETDENTS_64BIT_ALIGNED.
75703
75704 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75705
75706         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75707
75708 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75709
75710         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75711         _GNU_SOURCE.
75712
75713         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75714         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75715         Remove __restrict.
75716         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75717         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75718
75719 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75720
75721         [BZ #11655]
75722         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75723         are initialized.
75724
75725 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75726
75727         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75728
75729 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75730
75731         * po/it.po: Update from translation team.
75732
75733 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75734
75735         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75736         unused codes.
75737
75738 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75739
75740         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75741
75742 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75743
75744         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75745         specially.
75746         (gaih_getanswer_slice): Likewise.
75747
75748 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75749
75750         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75751
75752 2010-05-31  Petr Baudis  <pasky@suse.cz>
75753
75754         [BZ #11149]
75755         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75756         silently even in the chroot mode.
75757
75758 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75759
75760         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75761         last patch a bit.  Pretty printing
75762
75763 2010-05-31  Petr Baudis <pasky@suse.cz>
75764
75765         [BZ #10085]
75766         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75767         initialization of skip_initgroups_dyn.
75768
75769 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75770
75771         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75772         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75773
75774 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75775
75776         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75777
75778 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75779
75780         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75781         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75782         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75783         ($(objpfx)tst-fnmatch-mem): New rule.
75784         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75785         * posix/tst-fnmatch.c (main): Call mtrace.
75786
75787 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75788
75789         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75790         Support Intel processor model 6 and model 0x2c.
75791
75792 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75793
75794         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75795           signed comparison.
75796
75797 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75798
75799         [BZ #12205]
75800         * string/test-strncasecmp.c (check_result): New function.
75801         (do_one_test): Use it.
75802         (check1): New function.
75803         (test_main): Use it.
75804         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75805         Support strcasecmp and strncasecmp.
75806
75807 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75808
75809         [BZ #12194]
75810         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75811         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75812
75813 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75814
75815         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75816         IFUNC support.
75817         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75818         memset-x86-64.
75819         * sysdeps/x86_64/multiarch/bzero.S: New file.
75820         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75821         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75822         * sysdeps/x86_64/multiarch/memset.S: New file.
75823         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75824         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75825         Set bit_Prefer_SSE_for_memop for Intel processors.
75826         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75827         Define.
75828         (index_Prefer_SSE_for_memop): Define.
75829         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75830
75831 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75832
75833         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75834         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75835
75836 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75837
75838         [BZ #12191]
75839         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75840         (__x86_64_raw_data_cache_size_half): Likewise.
75841         (__x86_64_raw_shared_cache_size): Likewise.
75842         (__x86_64_raw_shared_cache_size_half): Likewise.
75843
75844         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75845         (__x86_64_raw_data_cache_size_half): Likewise.
75846         (__x86_64_raw_shared_cache_size): Likewise.
75847         (__x86_64_raw_shared_cache_size_half): Likewise.
75848         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75849         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75850         and __x86_64_raw_shared_cache_size_half.  Round
75851         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75852         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75853         to multiple of 256 bytes.
75854
75855 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75856
75857         [BZ #12167]
75858         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75859         of inacessible symlinks.  Verify result of symlink before returning it.
75860         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75861         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75862
75863 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75864
75865         * math/math.h (isinf): Fix typo in comment.
75866
75867 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75868
75869         * po/da.po: Update from translation team.
75870
75871 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75872
75873         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75874         is added to the list.
75875
75876 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75877             Ulrich Drepper  <drepper@gmail.com>
75878
75879         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75880         the global list here.  Move code to...
75881         (_dl_add_to_namespace_list): ...here.  New function.
75882         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75883         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75884         * elf/dl-load.c (lose): Don't remove the element from the list.
75885         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75886         (_dl_map_object): Likewise.
75887
75888 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75889
75890         [BZ #12159]
75891         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75892         into all bytes of SSE register.
75893         Patch by Richard Li <richardpku@gmail.com>.
75894
75895 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75896
75897         [BZ #12140]
75898         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75899         perturbing.
75900
75901 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75902
75903         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75904         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75905         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75906         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75908         submachine.
75909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75910
75911 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75912
75913         * include/dlfcn.h (__RTLD_SECURE): Define.
75914         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75915         mode & __RTLD_SECURE instead.
75916         (open_path): Rename preloaded parameter to secure.
75917         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75918         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75919         * elf/dl-deps.c (openaux): Likewise.
75920         * elf/rtld.c (struct map_args): Remove is_preloaded.
75921         (map_doit): Don't use it.
75922         (dl_main): Likewise.
75923         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75924         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75925
75926 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75927
75928         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75929         (sysd-rules-targets): Remove duplicates.
75930         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75931         rtld-%.$o dependency.
75932
75933 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75934
75935         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75936         _dl_map_object do it.
75937
75938 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75939
75940         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75941         fast fma builtins, define the macros in the C99 standard.
75942         (FP_FAST_FMAF): Likewise.
75943         (FP_FAST_FMAL): Likewise.
75944         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75945
75946         * bits/mathdef.h: Update copyright year.
75947         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75948
75949 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75950
75951         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75952         builtins, define the macros in the C99 standard.
75953         (FP_FAST_FMAF): Likewise.
75954         (FP_FAST_FMAL): Likewise.
75955         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75956         multiply/add.
75957         (FP_FAST_FMAF): Likewise.
75958
75959 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75960
75961         [BZ #3268]
75962         * math/libm-test.inc (fma_test): Some new testcases.
75963         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75964         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75965         y and infinite z.  Do multiplication by C already in long double.
75966         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75967         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75968         y and infinite z.  Do bitwise or of inexact bit into u.d.
75969         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75970         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75971         * sysdeps/i386/fpu/s_fma.S: Removed.
75972         * sysdeps/i386/fpu/s_fmal.S: Removed.
75973
75974 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75975
75976         [BZ #3268]
75977         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75978         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75979         computation is not scheduled after fetestexcept.  Fix value
75980         of minimum denormal long double.
75981
75982 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75983
75984         [BZ #3268]
75985         * math/libm-test.inc (fma_test): Add some more tests.
75986         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75987         correctly.
75988
75989 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75990
75991         * scripts/data/localplt-s390-linux-gnu.data: New file.
75992         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75993
75994 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75995
75996         [BZ #3268]
75997         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75998         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75999         instead of dbl-64.
76000         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76001         inlines.
76002         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76003         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76004         if one of x and y is very large and the other is subnormal.
76005         * sysdeps/s390/fpu/s_fmaf.c: New file.
76006         * sysdeps/s390/fpu/s_fma.c: New file.
76007         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76008         * sysdeps/powerpc/fpu/s_fma.S: New file.
76009         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76010         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76011         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76012
76013 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76014
76015         [BZ #3268]
76016         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76017         fma tests.
76018         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76019         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76020         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76021         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76022         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76023         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76024         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76025
76026 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76027
76028         [BZ #12078]
76029         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76030         * posix/bug-regex31.input: Add test case.
76031
76032 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76033
76034         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76035         * posix/bug-regex31.input: New file.
76036
76037         [BZ #12078]
76038         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76039         (parse_sub_exp): Fix last change, use postorder.
76040
76041         * posix/bug-regex31.c: New file.
76042         * posix/Makefile: Add rules to build and run bug-regex31.
76043
76044         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76045
76046         [BZ #12078]
76047         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76048
76049         [BZ #12108]
76050         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76051         to have entries in sys_siglist.
76052
76053         [BZ #12093]
76054         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76055         be NULL.
76056
76057 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76058
76059         [BZ #3268]
76060         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76061         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76062         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76063         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76064         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76065         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76066         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76067         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76068         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76069         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76070         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76071         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76072         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76073         * math/ftestexcept.c (fetestexcept): Likewise.
76074         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76075         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76076         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76077         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76078         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76079         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76080         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76081
76082 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76083
76084         [BZ #12107]
76085         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76086         newline.
76087
76088 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76089
76090         * string/bug-strstr1.c: New file.
76091         * string/Makefile: Add rules to build and run bug-strstr1.
76092
76093 2010-10-05  Eric Blake  <eblake@redhat.com>
76094
76095         [BZ #12092]
76096         * string/str-two-way.h (two_way_long_needle): Always clear memory
76097         when skipping input due to the shift table.
76098
76099 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76100
76101         [BZ #12005]
76102         * malloc/mcheck.c: Handle large requests.
76103
76104         [BZ #12077]
76105         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76106         for strncmp and strncasecmp.
76107         * string/stratcliff.c: Add tests for strcmp and strncmp.
76108         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76109
76110 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76111
76112         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76113         __set_fpscr.
76114
76115 2010-09-30  Andreas Jaeger  <aj@suse.de>
76116
76117         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76118         (CGROUP_SUPER_MAGIC): Define.
76119         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76120         Handle btrfs and cgroup file systems.
76121         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76122         Likewise.
76123
76124 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76125
76126         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76127         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76128
76129 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76130
76131         [BZ #12067]
76132         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76133         trying to locate the ELF header.
76134
76135 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76136
76137         [BZ #11611]
76138         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76139         Mask out sign-bit copies when constructing f_fsid.
76140
76141 2010-09-24  Petr Baudis <pasky@suse.cz>
76142
76143         * debug/stack_chk_fail_local.c: Add missing licence exception.
76144         * debug/warning-nop.c: Likewise.
76145
76146 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76147
76148         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76149         implementing getdents64 using getdents syscall, set d_type if
76150         __ASSUME_GETDENTS32_D_TYPE.
76151
76152 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76153
76154         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76155         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76156
76157 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76158
76159         [BZ #12037]
76160         * posix/unistd.h: Undo change of feature selection for ftruncate from
76161         2010-01-11.
76162
76163 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76164
76165         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76166         detection.
76167
76168 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76169
76170         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76171         fanotify_mark.
76172         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76173
76174 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76175
76176         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76177         variables after CHECK_SP call.
76178         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76179
76180 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76181             Ulrich Drepper  <drepper@redhat.com>
76182
76183         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76184         re-relocationg ld.so.
76185         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76186         _dl_init_paths call.
76187         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76188         here anymore.
76189
76190 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76191
76192         * resolv/res_init.c (__res_vinit): Count the default server we added.
76193
76194 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76195             Ulrich Drepper  <drepper@redhat.com>
76196
76197         [BZ #11968]
76198         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76199         (____longjmp_chk): Use %ebx for saving value across system call.
76200         Add unwind info.
76201
76202 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76203
76204         * manual/Makefile: Don't mix pattern rules with normal rules.
76205
76206 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76207
76208         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76209         operation.
76210         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76211         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76212         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76213         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76214         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76215         Likewise.
76216
76217 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76218
76219         [BZ #11979]
76220         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76221         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76222
76223 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76224
76225         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76226         * sysdeps/x86_64/addmul_1.S: Likewise.
76227         * sysdeps/x86_64/lshift.S: Likewise.
76228         * sysdeps/x86_64/mul_1.S: Likewise.
76229         * sysdeps/x86_64/rshift.S: Likewise.
76230         * sysdeps/x86_64/sub_n.S: Likewise.
76231         * sysdeps/x86_64/submul_1.S: Likewise.
76232
76233 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76234
76235         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76236         Define __sched_param instead of SCHED_* and sched_param when
76237         <bits/sched.h> is included with __need_schedparam defined.
76238         * bits/sched.h [__need_schedparam]
76239         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76240         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76241         (__defined_schedparam): Define to 1.
76242         (__sched_param): New structure, identical to sched_param.
76243         (__need_schedparam): Undefine.
76244
76245 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76246
76247         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76248         (epoll_create1): Declare.
76249
76250         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76251
76252 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76253
76254         [BZ #7066]
76255         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76256         shifting retval into place.
76257
76258 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76259
76260         * nis/rpcsvc/nis.h: Update copyright notice.
76261         * nis/rpcsvc/nis.x: Likewise.
76262         * nis/rpcsvc/nis_callback.h: Likewise.
76263         * nis/rpcsvc/nis_callback.x: Likewise.
76264         * nis/rpcsvc/nis_object.x: Likewise.
76265         * nis/rpcsvc/nis_tags.h: Likewise.
76266         * nis/rpcsvc/yp.h: Likewise.
76267         * nis/rpcsvc/yp.x: Likewise.
76268         * nis/rpcsvc/ypupd.h: Likewise.
76269         * nis/yp_xdr.c: Likewise.
76270         * nis/ypupdate_xdr.c: Likewise.
76271
76272         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76273         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76274         (pmap_getport): Use __libc_rpc_getport.
76275         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76276         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76277         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76278
76279 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76280
76281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76282         fanotify_mark.
76283
76284 2010-08-27  Roland McGrath  <roland@redhat.com>
76285
76286         * sysdeps/i386/i686/multiarch/Makefile
76287         (CFLAGS-varshift.c): New variable.
76288
76289 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76290
76291         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76292         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76293
76294         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76295
76296         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76297
76298 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76299
76300         * sysdeps/x86_64/strlen.S: Unroll the loop.
76301         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76302         strlen-sse2 strlen-sse2-bsf.
76303         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76304         __strlen_no_bsf if bit_Slow_BSF is set.
76305         (__strlen_sse42): Removed.
76306         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76307         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76308
76309 2010-08-25  Roland McGrath  <roland@redhat.com>
76310
76311         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76312         * sysdeps/x86_64/multiarch/varshift.c: New file.
76313         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76314         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76315         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76316         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76317
76318 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76319
76320         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76321         strlen-sse2 strlen-sse2-bsf.
76322         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76323         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76324         (__strlen_sse2): Removed.
76325         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76326         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76327         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76328         bit_Slow_BSF for Atom.
76329         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76330         (index_Slow_BSF): Define.
76331         (HAS_SLOW_BSF): Define.
76332
76333 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76334
76335         [BZ #10851]
76336         * resolv/res_init.c (__res_vinit): When no server address at all
76337         is given default to loopback.
76338
76339 2010-08-24  Roland McGrath  <roland@redhat.com>
76340
76341         * configure.in: Remove config-name.h generation.
76342         * configure: Regenerated.
76343         * config-name.in: File removed.
76344         * scripts/config-uname.sh: New file.
76345         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76346         ($(objdir)config-name.h): New target.
76347
76348         * sunrpc/rpc_parse.h: Avoid nested comment.
76349
76350 2010-08-24  Richard Henderson  <rth@redhat.com>
76351             Ulrich Drepper  <drepper@redhat.com>
76352             H.J. Lu  <hongjiu.lu@intel.com>
76353
76354         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76355         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76356         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76357         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76358         _mm_alignr_epi8 with _mm_loadu_si128.
76359         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76360         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76361         (__m128i_shift_right): Removed.
76362         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76363         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76364         * sysdeps/x86_64/multiarch/varshift.h: New file.
76365         * sysdeps/x86_64/multiarch/varshift.S: New file.
76366
76367 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76368
76369         * configure.in: Move assembler checks to before sysdep dir checking.
76370
76371 2010-08-20  Petr Baudis  <pasky@suse.cz>
76372
76373         * LICENSES: Sync the sunrpc license.
76374
76375 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76376
76377         * sunrpc/auth_des.c: Update copyright notice once again.
76378         * sunrpc/auth_none.c: Likewise.
76379         * sunrpc/auth_unix.c: Likewise.
76380         * sunrpc/authdes_prot.c: Likewise.
76381         * sunrpc/authuxprot.c: Likewise.
76382         * sunrpc/bindrsvprt.c: Likewise.
76383         * sunrpc/clnt_gen.c: Likewise.
76384         * sunrpc/clnt_perr.c: Likewise.
76385         * sunrpc/clnt_raw.c: Likewise.
76386         * sunrpc/clnt_simp.c: Likewise.
76387         * sunrpc/clnt_tcp.c: Likewise.
76388         * sunrpc/clnt_udp.c: Likewise.
76389         * sunrpc/clnt_unix.c: Likewise.
76390         * sunrpc/des_crypt.c: Likewise.
76391         * sunrpc/des_soft.c: Likewise.
76392         * sunrpc/get_myaddr.c: Likewise.
76393         * sunrpc/getrpcport.c: Likewise.
76394         * sunrpc/key_call.c: Likewise.
76395         * sunrpc/key_prot.c: Likewise.
76396         * sunrpc/openchild.c: Likewise.
76397         * sunrpc/pm_getmaps.c: Likewise.
76398         * sunrpc/pm_getport.c: Likewise.
76399         * sunrpc/pmap_clnt.c: Likewise.
76400         * sunrpc/pmap_prot.c: Likewise.
76401         * sunrpc/pmap_prot2.c: Likewise.
76402         * sunrpc/pmap_rmt.c: Likewise.
76403         * sunrpc/rpc/auth.h: Likewise.
76404         * sunrpc/rpc/auth_unix.h: Likewise.
76405         * sunrpc/rpc/clnt.h: Likewise.
76406         * sunrpc/rpc/des_crypt.h: Likewise.
76407         * sunrpc/rpc/key_prot.h: Likewise.
76408         * sunrpc/rpc/netdb.h: Likewise.
76409         * sunrpc/rpc/pmap_clnt.h: Likewise.
76410         * sunrpc/rpc/pmap_prot.h: Likewise.
76411         * sunrpc/rpc/pmap_rmt.h: Likewise.
76412         * sunrpc/rpc/rpc.h: Likewise.
76413         * sunrpc/rpc/rpc_des.h: Likewise.
76414         * sunrpc/rpc/rpc_msg.h: Likewise.
76415         * sunrpc/rpc/svc.h: Likewise.
76416         * sunrpc/rpc/svc_auth.h: Likewise.
76417         * sunrpc/rpc/types.h: Likewise.
76418         * sunrpc/rpc/xdr.h: Likewise.
76419         * sunrpc/rpc_clntout.c: Likewise.
76420         * sunrpc/rpc_cmsg.c: Likewise.
76421         * sunrpc/rpc_common.c: Likewise.
76422         * sunrpc/rpc_cout.c: Likewise.
76423         * sunrpc/rpc_dtable.c: Likewise.
76424         * sunrpc/rpc_hout.c: Likewise.
76425         * sunrpc/rpc_main.c: Likewise.
76426         * sunrpc/rpc_parse.c: Likewise.
76427         * sunrpc/rpc_parse.h: Likewise.
76428         * sunrpc/rpc_prot.c: Likewise.
76429         * sunrpc/rpc_sample.c: Likewise.
76430         * sunrpc/rpc_scan.c: Likewise.
76431         * sunrpc/rpc_scan.h: Likewise.
76432         * sunrpc/rpc_svcout.c: Likewise.
76433         * sunrpc/rpc_tblout.c: Likewise.
76434         * sunrpc/rpc_util.c: Likewise.
76435         * sunrpc/rpc_util.h: Likewise.
76436         * sunrpc/rpcinfo.c: Likewise.
76437         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76438         * sunrpc/rpcsvc/key_prot.x: Likewise.
76439         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76440         * sunrpc/rpcsvc/mount.x: Likewise.
76441         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76442         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76443         * sunrpc/rpcsvc/rex.x: Likewise.
76444         * sunrpc/rpcsvc/rstat.x: Likewise.
76445         * sunrpc/rpcsvc/rusers.x: Likewise.
76446         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76447         * sunrpc/rpcsvc/spray.x: Likewise.
76448         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76449         * sunrpc/rtime.c: Likewise.
76450         * sunrpc/svc.c: Likewise.
76451         * sunrpc/svc_auth.c: Likewise.
76452         * sunrpc/svc_authux.c: Likewise.
76453         * sunrpc/svc_raw.c: Likewise.
76454         * sunrpc/svc_run.c: Likewise.
76455         * sunrpc/svc_simple.c: Likewise.
76456         * sunrpc/svc_tcp.c: Likewise.
76457         * sunrpc/svc_udp.c: Likewise.
76458         * sunrpc/svc_unix.c: Likewise.
76459         * sunrpc/svcauth_des.c: Likewise.
76460         * sunrpc/xcrypt.c: Likewise.
76461         * sunrpc/xdr.c: Likewise.
76462         * sunrpc/xdr_array.c: Likewise.
76463         * sunrpc/xdr_float.c: Likewise.
76464         * sunrpc/xdr_mem.c: Likewise.
76465         * sunrpc/xdr_rec.c: Likewise.
76466         * sunrpc/xdr_ref.c: Likewise.
76467         * sunrpc/xdr_sizeof.c: Likewise.
76468         * sunrpc/xdr_stdio.c: Likewise.
76469
76470         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76471         handling.
76472
76473 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76474
76475         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76476
76477 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76478
76479         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76480         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76481         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76482         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76483         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76484         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76485         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76486         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76487         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76488         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76489         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76490         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76491         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76492         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76493
76494 2010-07-26  Anton Blanchard  <anton@samba.org>
76495
76496         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76497         * malloc/arena.c (heap_trim): Likewise.
76498
76499 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76500
76501         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76502         here.  Not...
76503         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76504         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76505
76506 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76507
76508         * sysdeps/i386/elf/Makefile: New file.
76509
76510 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76511
76512         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76513         from fanotify_init.
76514         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76515         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76516
76517 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76518
76519         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76520         of strncasecmp_l.
76521         * sysdeps/multiarch/strcmp.S: Likewise.
76522
76523 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76524
76525         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76526         strncase_l-nonascii.
76527         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76528         Add strncase_l-ssse3.
76529         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76530         * sysdeps/x86_64/strcmp.S: Likewise.
76531         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76532         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76533         * sysdeps/x86_64/strncase.S: New file.
76534         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76535         * sysdeps/x86_64/strncase_l.S: New file.
76536         * string/Makefile (strop-tests): Add strncasecmp.
76537         * string/test-strncasecmp.c: New file.
76538
76539         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76540         warning.
76541
76542         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76543         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76544
76545 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76546
76547         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76548
76549 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76550
76551         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76552         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76553         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76554
76555 2010-05-01  Alan Modra  <amodra@gmail.com>
76556
76557         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76558         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76559         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76560         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76561         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76562         tidying.  Don't tail-call __sigjmp_save for static lib.
76563         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76564         save location.
76565         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76566         (CALL_MCOUNT): Add eh info, and nop after bl.
76567         (TAIL_CALL_SYSCALL_ERROR): New macro.
76568         (PSEUDO_RET): Use it.
76569         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76570         Correct save location of integer regs and cr.
76571         (_dl_profile_resolve): Correct cr save location.  Delete nops
76572         after bl when SHARED.  Reduce cfi size a little by better
76573         placement of cfi directives.
76574         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76575         make a stack frame.  Instead use parm save area as a temp.
76576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76577         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76579         Don't make a stack frame for parent, use parm save area.
76580         Increase child stack frame to 112 bytes.  Don't save unused reg,
76581         and adjust reg usage.  Set up cfi on error recovery and
76582         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76584         (__makecontext): Add dummy nop after jump to exit.
76585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76586         Use correct parm save area and cr save, reduce stack frame.
76587         Correct cfi for possible PSEUDO_RET frame setup.
76588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76589         Branch to local label emitted by PSEUDO_RET rather than
76590         __syscall_error.
76591
76592 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76593
76594         [BZ #11904]
76595         * locale/programs/locale.c (print_assignment): New function.
76596         (show_locale_vars): Use it.
76597
76598 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76599
76600         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76601         field.
76602         (struct statfs64): Likewise.
76603         (_STATFS_F_FLAGS): Define.
76604         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76605         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76606         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76607         (ST_VALID): Define locally.
76608         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76609         __statvfs_getflags, use the provided value.
76610         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76611         __ASSUME_STATFS_F_FLAGS.
76612
76613         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76614
76615         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76616         Add sys/fanotify.h.
76617         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76618         fanotify_mask for GLIBC_2.13.
76619         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76620         fanotify_init and fanotify_mark.
76621         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76622         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76623
76624         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76625         Add prlimit.
76626         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76627         prlimit64 for GLIBC_2.13.
76628         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76629         prlimit64.
76630         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76631         syscall.
76632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76633         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76634         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76635         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76636         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76637         add prlimit alias.
76638         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76639
76640         [BZ #11903]
76641         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76642         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76643
76644         * nss/Makefile: Add rules to build and run tst-nss-test1.
76645         * shlib-versions: Add entry for libnss_test1.
76646         * nss/nss_test1.c: New file.
76647         * nss/tst-nss-test1.c: New file.
76648
76649         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76650         (__nss_configure_lookup): Set appropriate entry in
76651         __nss_configure_lookup to true.
76652         * nss/nsswitch.h: Define enum with indeces of databases in
76653         databases and __nss_database_custom arrays.  Declare
76654         __nss_database_custom.
76655         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76656         to avoid using nscd when custom rules are installed.
76657         * nss/getXXbyYY_r.c: Likewise.
76658         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76659
76660         * nss/nss_files/files-parse.c: Whitespace fixes.
76661
76662 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76663
76664         [BZ #11883]
76665         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76666         * posix/fnmatch_loop.c: Likewise.
76667
76668 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76669
76670         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76671         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76672         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76673         * Versions.def [GLIBC_2.13]: Add.
76674
76675 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76676
76677         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76678         Also fail if tpwd after pwuid call is NULL.
76679
76680 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76681
76682         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76683         when converting to ms.
76684
76685 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76686
76687         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76688         EOPNOTSUPP errors with ENOTTY.
76689         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76690         EOPNOTSUPP errors with ENOTTY.
76691
76692 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76693
76694         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76695         Add strcasecmp_l-ssse3.
76696         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76697         strcasecmp.
76698         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76699         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76700         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76701
76702 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76703
76704         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76705
76706         * string/Makefile (strop-tests): Add strcasecmp.
76707         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76708         strcasecmp_l-nonascii.
76709         (gen-as-const-headers): Add locale-defines.sym.
76710         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76711         * sysdeps/x86_64/strcasecmp.S: New file.
76712         * sysdeps/x86_64/strcasecmp_l.S: New file.
76713         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76714         * sysdeps/x86_64/locale-defines.sym: New file.
76715         * string/test-strcasecmp.c: New file.
76716
76717         * string/test-strcasestr.c: Test both ends of the range of characters.
76718         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76719
76720 2010-07-29  Roland McGrath  <roland@redhat.com>
76721
76722         [BZ #11856]
76723         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76724
76725 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76726
76727         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76728         for ld.so.
76729
76730 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76731
76732         * manual/memory.texi (Malloc Tunable Parameters): Document
76733         M_PERTURB.
76734
76735 2010-07-26  Roland McGrath  <roland@redhat.com>
76736
76737         [BZ #11840]
76738         * configure.in (-fgnu89-inline check): Set and substitute
76739         gnu89_inline, not libc_cv_gnu89_inline.
76740         * configure: Regenerated.
76741         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76742
76743 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76744
76745         * string/test-strnlen.c: New file.
76746         * string/Makefile (strop-tests): Add strnlen.
76747         * string/tester.c (test_strnlen): Add a few more test cases.
76748         * string/tst-strlen.c: Better error reporting.
76749
76750         * sysdeps/x86_64/strnlen.S: New file.
76751
76752 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76753
76754         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76755         lower-latency instructions.
76756
76757 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76758
76759         * string/test-strcasestr.c: New file.
76760         * string/test-strstr.c: New file.
76761         * string/Makefile (strop-tests): Add strstr and strcasestr.
76762         * string/str-two-way.h: Don't undefine MAX.
76763         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76764
76765 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76766
76767         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76768         strcasestr-nonascii.
76769         (CFLAGS-strcasestr-nonascii.c): Define.
76770         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76771         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76772         Remove unused attribute.
76773
76774 2010-07-20  Roland McGrath  <roland@redhat.com>
76775
76776         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76777         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76778         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76779         like LD_HWCAP_MASK can disable hwcaps.
76780
76781 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76782
76783         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76784
76785 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76786
76787         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76788         call in strcasestr.
76789         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76790         __strcasestr_sse42_nonascii.
76791         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76792         strcasestr-nonascii.c.
76793         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76794
76795 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76796
76797         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76798         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76799         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76800         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76801
76802 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76803
76804         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76805         fcntl.
76806
76807 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76808
76809         [BZ #11577]
76810         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76811         dl_signal_cerror.
76812
76813 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76814
76815         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76816         _PC_PIPE_BUF using F_GETPIPE_SZ.
76817
76818 2010-07-05  Roland McGrath  <roland@redhat.com>
76819
76820         * manual/arith.texi (Rounding Functions): Fix rint description
76821         implicit in round description.
76822
76823 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76824
76825         * elf/Makefile: Fix linking for a few tests to make recent linker
76826         happy.
76827
76828 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76829
76830         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76831         $(common-objpfx)libc_nonshared.a.
76832
76833 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76834
76835         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76836         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76837         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76838         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76839         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76840         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76841         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76842         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76857         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76858         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76859         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76860         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76861         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76862         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76863         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76864         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76865         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76866         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76867         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76868         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76883
76884 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76885
76886         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76887         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76888         * string/memmove.c (memmove): Renamed to ...
76889         (MEMMOVE): ...this.  Default to memmove.
76890         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76891         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76892         (END_CHK): Define.
76893         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76894         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76895         mempcpy-ssse3-back memmove-ssse3-back.
76896         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76897         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76898         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76899         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76900         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76901         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76902         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76903         * sysdeps/x86_64/multiarch/memmove.c: New file.
76904         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76905         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76906         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76907         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76908         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76909         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76910         Define.
76911         (index_Fast_Copy_Backward): Define.
76912         (HAS_ARCH_FEATURE): Define.
76913         (HAS_FAST_REP_STRING): Define.
76914         (HAS_FAST_COPY_BACKWARD): Define.
76915
76916 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76917
76918         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76919         Restore proper fallback handling.
76920
76921 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76922
76923         [BZ #11701]
76924         * posix/group_member.c (__group_member): Correct checking loop.
76925
76926         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76927         OOM in getpwuid_r correctly.  Return error number when the caller
76928         should return, otherwise -1.
76929         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76930         call returning > 0 value.
76931         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76932
76933 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76934
76935         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76936         libc_nonshared.a from targets in modules-names.
76937
76938 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76939
76940         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76941         requires it.
76942
76943 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76944
76945         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76946         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76947         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76948         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76949
76950 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76951
76952         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76953
76954 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76955
76956         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76957         and F_GETPIPE_SZ.
76958         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76959         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76960         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76961         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76962         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76963         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76964
76965 2010-06-14  Roland McGrath  <roland@redhat.com>
76966
76967         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76968
76969 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76970
76971         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76972         __REDIRECT followed by __THROW.
76973         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76974         * posix/getopt.h (getopt): Likewise.
76975
76976 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76977
76978         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76979         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76980         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76981         in AT_FLAGS.
76982         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76983         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76984
76985 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76986
76987         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76988
76989 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76990
76991         [BZ #11640]
76992         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76993         Properly check family and model.
76994
76995 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76996
76997         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76998
76999 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77000
77001         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77002
77003 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77004
77005         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77006         symbol reference.
77007
77008 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77009
77010         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77011         symbol reference.
77012
77013 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77014
77015         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77016         and internal_recvmmsg.
77017         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77018         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77019         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77020         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77021
77022         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77023         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77024         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77025
77026 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77027
77028         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77029
77030 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77031
77032         POWER7 optimizations.
77033         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77034         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77035
77036 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77037
77038         * version.h: Update for 2.13 development version.
77039
77040 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77041
77042         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77043         exceptions.  Return 0.
77044
77045 2010-05-07  Roland McGrath  <roland@redhat.com>
77046
77047         * elf/ldconfig.c (main): Add a const.
77048
77049 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77050
77051         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77052         (args_options): Add no-idn option.
77053         (ahosts_keys_int): Add idn_flags to ai_flags.
77054         (parse_option): Handle 'i' option to clear idn_flags.
77055
77056         * malloc/malloc.c (_int_free): Possible race in the most recently
77057         added check.  Only act on the data if no current modification
77058         happened.
77059
77060 See ChangeLog.17 for earlier changes.